码迷,mamicode.com
首页 > 数据库 > 详细

oracle expdp impdp 导出导入(支持高版本到低版本)

时间:2019-09-19 14:18:00      阅读:145      评论:0      收藏:0      [点我收藏+]

标签:impdp   DBName   dbn   pre   schema   sqlplus   ant   compress   ESS   

在plsql或sqlplus中创建目录:

create or replace directory dmp11g as ‘/home/oracle/dmps3‘;
grant read,write on directory dmp11g to system;

导出语句示例:

expdp system/oracle@ip:1521/dbname directory=dmp11g logfile=xxx.log dumpfile=xxx_%U.dmp parallel=8 schemas=user1,user2 compression=all version=11.2.0.0.0 cluster=n

导入语句示例:
impdp system/oracle directory=dmp11g logfile=xxx.09011.log dumpfile=xxx_%U.dmp parallel=8 schemas=user1,user2 cluster=n

导出时剔除某些表:

expdp system/oracle@ip:1521/dbname directory=dmp11g logfile=xxx.log dumpfile=xxx_%U.dmp EXCLUDE=TABLE:\"IN\(\‘table1\‘\)\" parallel=8 schemas=user1,user2 compression=all version=11.2.0.0.0 cluster=n

 导出导入时指定表:

expdp system/oracle@ip:1521/dbname directory=dmp11g logfile=xxx.log dumpfile=xxx_%U.dmp parallel=8 tables=user1.table1,user2.table2 compression=all version=11.2.0.0.0 cluster=n

impdp system/Aa123456 directory=dmp11g logfile=xxx.09011.log dumpfile=xxx_%U.dmp parallel=8 tables=user1.table1,user2.table2 cluster=n

oracle expdp impdp 导出导入(支持高版本到低版本)

标签:impdp   DBName   dbn   pre   schema   sqlplus   ant   compress   ESS   

原文地址:https://www.cnblogs.com/wangliaohan/p/11541667.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!