導出oracle整個數據庫


1 將數據庫baiTEST完全導出,用戶名system 密碼manager 導出du到D:\daochu.dmp中zhi
exp system/manager@TEST file=d:\daochu.dmp full=y
2 將數據庫dao中system用戶與sys用戶的表導出
exp system/manager@TEST file=d:\daochu.dmp owner=(system,sys)
3 將數據庫中的表table1 、table2導出
exp system/manager@TEST file=d:\daochu.dmp tables=(table1,table2)
4 將數據庫中的表table1中的字段filed1以"00"打頭的數據導出
exp system/manager@TEST file=d:\daochu.dmp tables=(table1) query=" where filed1 like '00%'"
上面是常用的導出,對於壓縮我不太在意,用winzip把dmp文件可以很好的壓縮。
不過在上面命令后面 加上 compress=y 就可以了

開始bai->運行->輸入“cmd”->輸入exp user/password@IP地址:1521/數據du庫實例zhi file=文件所在目錄dao
(如:exp user/password@192.168.141.40:1521/orcl file=E:\work\dmp\person.dmp)
導入
(如:imp user/password@192.168.141.40:1521/orcl file=E:\work\dmp\person.dmp full=y ignore=y)


免責聲明!

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



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