一,創建邏輯目錄:
SQL> sqlplus / as sysdba
SQL> create or replace directory expdp as 'd:\dump';
二. 導出schema: sdeclone和forest的數據
C:\Users\Administrator>expdp yourusername/password directory=expdp dumpfile=forestsdclon
e_expdp_20180809.dmp logfile=forestsdclone_expdp_20180809.log schemas=sdeclone,f
orest
過程截圖:
補充: 如果導出的時候要排除一些數據量比較大的臨時表。日誌表的,可以使用exclude來排除:
C:\Users\Administrator>expdp forest/forest directory=expdp dumpfile=forestsdclon
e_expdp_20180810.dmp logfile=forestsdclone_expdp_20180810.log schemas=sdeclone,f
orest exclude=table:\"in (\'SYS_LOG\')\"