共計 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 如何導出”這篇文章就分享到這里了,希望以上內容可以對大家有一定的幫助,讓大家可以學到更多知識,如果覺得文章不錯,可以把它分享出去讓更多的人看到吧!