oracle 账号密码配置(3)数据泵expdp/impdp

数据泵的功能比exp/imp强大很多,不过我在这不多举例了,就弄个最简单的展示下就够了。
在使用数据泵导出导入时在Oracle需要定义目录变量用于存放备份后的文件。create directory xcldump as ‘c:\tmp’;grant read,write on directory xcldump to scott;导出scott用户下的emp 和 dept表expdp scott/tiger direcotry=xcldump dumpfile=‘c:\scott.dmp’ logfile=C:\scott.log’ tables=emp,dept并行导出scott用户下的所有对象:expdp scott/tiger schemaoracle账号s=scott directory=xcldump dumpfile=‘c:\scott.dmp’logfile=‘c:\scott.log’ parallel=10;

在使用数据泵导出后,可以使用impdp进行导入导入scott用户下的emp和dept表:impdp scott/tiger directory=xcldump dumpfile=‘c:\scott.dmp’ tables=dept,emp;并行导入scott用户下的所有对象:impdp scott/tiger directory=xcldump dumpfile=‘c:\scott.dmp’ schemas=scott parallel=10;
MAIL: xcl_168@aliyun.comBLOG:https://blog.csdn.net/xcl168

此条目发表在oracle metalink账号分类目录,贴了标签。将固定链接加入收藏夹。