匯出時用full mode即可
#export
#export
create directory expdp_dir as '/oracle/backup/expdp';
expdp \'/ as sysdba\' full=y directory=expdp_dir dumpfile=full.dmp logfile=full_expdp.log
#匯入時,把default account都排除掉
impdp \'/ as sysdba\' full=y EXCLUDE=SCHEMA:\"in \(\'SYS\',\'SYSTEM\',\'WKSYS\',\'OLAPSYS\',\'TSMSYS\',\'SYSMAN\',\'OUTLN\',\'WK_TEST\',\'MGMT_VIEW\',\'APPQOSSYS\',\'DBSNMP\',\'DIP\',\'ORACLE_OCM\'\)\" directory=expdp_dir dumpfile=full.dmp logfile=full_impdp.log
想排除更多Oracle預設帳號,可以參考這篇...
想排除更多Oracle預設帳號,可以參考這篇...
沒有留言:
張貼留言