expdp如何导出

34次阅读
没有评论

共计 1237 个字符,预计需要花费 4 分钟才能阅读完成。

这篇文章给大家分享的是有关 expdp 如何导出的内容。丸趣 TV 小编觉得挺实用的,因此分享给大家做个参考,一起跟随丸趣 TV 小编过来看看吧。

一、创建 expdp 备份目录
create directory home as /home/oracle/backup
二、对备份目录赋予读写权限
grant read,write on directory home to scott;
三、导出数据
 1、导出所有的除 SYS、ORDSYS、MDSYS 以外的方案,此类导出也被称为完全导出模式
expdp scott/oracle cluster=n compression=all full=y parallel=2 nologfile=y dumpfile=EX%U.dmp directory=home reuse_dumpfiles=y
 2、使用 tablespaces 参数导出 users 和 example 表空间内所有的对象
expdp scott/oracle cluster=n tablespace=users,example parallel=2 nologfile=y dumpfile=EX%U.dmp directory=home reuse_dumpfiles=y
3、使用 schemas 参数导出 hr 和 oe 两个方案
expdp scott/oracle cluster=n schemas=hr,oe parallel=2 nologfile=y dumpfile=EX%U.dmp directory=home reuse_dumpfiles=y
4、使用 tables 参数导出 dept 和 emp
expdp scott/oracle tables=scott.dept,scott.emp parallel=2 nologfile=y dumpfile=EX%U directory=home reuse_dumpfiles=y
5、使用排除参数备份表
不备份 DEPT 表,其它表都备份
 expdp scott/oracle exclude=table:\ IN \(\ DEPT\ \)\ parallel=2 nologfile=y dumpfile=EX%U directory=home reuse_dumpfiles=y
排除多张表
expdp scott/oracle exclude=table:\ IN \(\ DEPT\ ,\ EMP\ \)\ parallel=2 nologfile=y dumpfile=EX%U directory=home reuse_dumpfiles=y
6、排除方案备份
expdp scott/oracle full=y exclude=schema:\ IN \(\ OE\ ,\ HR\ \)\ parallel=2 nologfile=y dumpfile=EX%U directory=home reuse_dumpfiles=y

感谢各位的阅读!关于“expdp 如何导出”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,让大家可以学到更多知识,如果觉得文章不错,可以把它分享出去让更多的人看到吧!

正文完
 
丸趣
版权声明:本站原创文章,由 丸趣 2023-07-20发表,共计1237字。
转载说明:除特殊说明外本站除技术相关以外文章皆由网络搜集发布,转载请注明出处。
评论(没有评论)