Linux oracle 數據庫整體遷移或備份


expdp: sql的命令只執行一次,以后不用再執行

mkdir /home/oracle/backup

chmod 777 /home/oracle/backup

SQL> create directory EXPDIR as '/home/oracle/backup';

SQL> grant read,write on directory EXPDIR to DEEPRADAR;

SQL> execute dbms_metadata_util.load_stylesheets;

expdp system/system密碼@SID schemas=xxx DUMPFILE=xxx.dmp DIRECTORY=EXPDIR logfile=expdp.log JOB_NAME=full

 

impdp: sql的命令只執行一次,以后不用再執行

如果用戶名存在:drop user username cascade

 

SQL> CREATE ROLE ROLE_ORACLE;

SQL> create directory IMPDIR as '/home/oracle/backup';

SQL> grant read,write on directory IMPDIR to sys;

impdp system/system密碼 directory=IMPDIR dumpfile=xxx.dmp logfile=impdp.log


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM