怎样导出Oracle中的表? exp user/password@sid own=() tables=() 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 exp username/pass@sid owner=username tables='' file=d:\exppath.dmp 独立方式登陆不能做导出。我怀疑你没学过oracle 学习一下oracle的exp/imp导出导入吧exp有很多参数,具体你看帮助.举个例子:1.导出整个表$ exp userid = system/manager file = emp.dmp tables = emp2.导出表的某个分区$ exp userid = system/manager file = emp1.dmp tables(emp.part1)part1为分区 exp system/manager@sid file = emp.dmp tables = (table1,table2,......) $exp scott/tiger tables=(emp,dept) file=/directory/scott.dmp grants=y 说明:把scott用户里两个表emp,dept导出到文件/directory/scott.dmp$exp scott/tiger tables=emp query=\"where job=\'salesman\' and sal\<1600\" file=/directory/scott2.dmp 说明:在exp里面加上导出emp的查询条件job='salesman' and sal<1600 (但我个人很少这样用,还是把满足条件的记录生成临时表后,再exp会方便一些)$exp parfile=username.par file=/directory1/username_1.dmp,/directory1/username_2.dmp filesize=2000M log=/directory2/username_exp.log参数文件username.par内容 userid=username/userpassword buffer=8192000 compress=n grants=y说明:username.par为导出工具exp用的参数文件,里面具体参数可以根据需要去修改 filesize指定生成的二进制备份文件的最大字节数 请教oracle client安装问题 如何按时间分组,并取最大值啊? oracle导出问题 请问视图 多用好 还是 少用好? SQL Server to Oracle数据迁移 达到最大连接数了,请教一个oracle连接数的问题! 紧急求助:我用job删除分区将表的主索引破坏了,怎么恢复分区表的主索引呢?谢谢 ●关于回滚段 oracle企业管理器中没有内容 Oracle10g db link 访问MySql数据库报错ORA-28545,有没有大神知道怎么解决啊! 请问如何向数据库里面导入脚本呢!我用的是8i.... 如果用户为DBA,还需要给授权吗?为什么?
exp有很多参数,具体你看帮助.
举个例子:
1.导出整个表
$ exp userid = system/manager file = emp.dmp tables = emp
2.导出表的某个分区
$ exp userid = system/manager file = emp1.dmp tables(emp.part1)
part1为分区
(但我个人很少这样用,还是把满足条件的记录生成临时表后,再exp会方便一些)$exp parfile=username.par file=/directory1/username_1.dmp,/directory1/username_2.dmp filesize=2000M log=/directory2/username_exp.log参数文件username.par内容
userid=username/userpassword
buffer=8192000
compress=n
grants=y说明:username.par为导出工具exp用的参数文件,里面具体参数可以根据需要去修改 filesize指定生成的二进制备份文件的最大字节数