首页 > 数据库 > Oracle > EXPDP数据泵使用方法
http://www.linuxidc.com/Linux/2012-09/69858.htm--报ora-39002错误的解决办法
linux上(虚拟机)
0. 查看已有情况
SELECT privilege, directory_name, DIRECTORY_PATH FROM user_tab_privs t, all_directories d
WHERE t.table_name(+) = d.directory_name ORDER BY 2, 1;
先建立导出文档位置(逻辑)
create directory verdmp as '/u01/oracle/db_1/verdmp'
再建立物理位置
/u01/oracle/db_1/verdmp
进行导出操作
expdp system/centos@omrep directory=verdmp dumpfile=scottdmp.dmp TABLES=EMP;
进行导入操作(注意覆盖)
impdp system/centos@omrep directory=verdmp dumpfile=scottdmp1.dmp TABLES=EMP TABLE_EXISTS_ACTION=replace ;
导出schema
expdp system/centos@omrep schemas=system dumpfile=omrepdmp1.dmp DIRECTORY=verdmp;
导入schema
impdp system/centos@omrep schemas=system dumpfile=omrepdmp1.dmp DIRECTORY=verdmp TABLE_EXISTS_ACTION=replace ;
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/21302630/viewspace-1571864/ ,如需转载,请注明出处,否则将追究法律责任。