Oracle導入導出常用命令


-- 全量導出
exp system/manager@TEST file=d:\daochu.dmp full=y

-- 將數據庫中system用戶與sys用戶的表導出
exp system/manager@TEST file=d:\daochu.dmp owner=(system,sys)

-- 將數據庫中的表table1中的字段filed1以"00"打頭的數據導出
exp system/manager@TEST file=d:\daochu.dmp tables=(table1) query=\" where filed1 like '00%'\"

-- 將數據庫中的表table1/table2導出
exp system/manager@TEST file=d:\daochu.dmp tables=(table1,table2)


-- 將d:\daochu.dmp中的表table1/table2導入
-- 如果在Linux下導入導出,需要使用 tables="(table1,table2)",否則報錯"syntax error near unexpected token("
imp system/manager@TEST file=d:\daochu.dmp tables=(table1,table2)


免責聲明!

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



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