1 将資料庫test完全導出.使用者名system/manager導出到D:daochu.dmp 代碼如下:
exp system/[email protected] file=d:daochu.dmp full=y
2.将資料庫中system使用者與sys使用者的表導出代碼如下:
exp system/[email protected] file=d:daochu.dmp owner=(system,sys)
3.将資料庫中的表table1 table2 導出 代碼如下:
exp system/[email protected] file:= d:daochu.dmp tables=(table1,table2)
4.将資料庫中的表table1中的字段filed1以"00"打頭的資料導出 代碼如下;
exp system/[email protected] file:=d:daochu.dmp tables=(table1) query="where filed1 like ‘00%‘"
5.将D:daochu.dmp中的資料導入到test資料庫中代碼如下
imp system/ma[email protected] file:=d:doachu.dmp (這樣寫的肯定會報錯,因為資料庫中已經存在表了,對該表就不能導入)
是以 要在後面加上ignore=y就可以了
imp system/[email protected] file:=d:daochu.dmp ignore=y 就可以了
6.将d:daochu.dmp中的表table1導入到test的資料庫中
imp system/[email protected] file:=d:daochu.dmp tables=(table1);
oracle 資料庫導入導出語句
标簽:dmp 服務 get where query font 資料導出 導入 dmp檔案
本條技術文章來源于網際網路,如果無意侵犯您的權益請點選此處回報版權投訴 本文系統來源:http://www.cnblogs.com/lijingbo/p/8082443.html