Oracle資料匯入匯出imp exp命令

2021-04-21 12:32:28 字數 882 閱讀 2588

file=d:/daochu.dmp full=y

2 將資料庫中system使用者與sys使用者的表匯出

exp system/manager@test

file=d:/daochu.dmp owner=(system,sys)

3 將資料庫中的表inner_notify、notify_staff_relat匯出

exp aichannel/aichannel@testdb2

file= d:/data/newsmgnt.dmp tables=(inner_notify,notify_staff_relat) 

4 將資料庫中的表table1中的字段filed1以"00"打頭的資料匯出

exp system/manager@test

file=d:/daochu.dmp tables=(table1) query=/" where filed1 like '00%'/"

上面是常用的匯出,對於壓縮,既用winzip把dmp檔案可以很好的壓縮。

也可以在上面命令後面 加上 compress=y 來實現。

資料的匯入

1 將d:/daochu.dmp 中的資料匯入 test資料庫中。

imp system/manager@test

file=d:/daochu.dmp

imp aichannel/aichannel@hust

full=y file=file= d:/data/newsmgnt.dmp ignore=y 

上面可能有點問題,因為有的表已經存在,然後它就報錯,對該錶就不進行匯入。

在後面加上 ignore=y 就可以了。

2 將d:/daochu.dmp中的表table1 匯入

imp system/manager@test

oracle 資料備份匯入imp匯出exp

資料的匯出 1 將資料庫test完全匯出,使用者名稱system 密碼manager 匯出到d daochu.dmp中 exp system manager test file d daochu.dmp full y 2.將資料庫中system使用者與sys使用者的表匯出 exp system ma...

Oracle資料庫匯出 exp 匯入 imp

exp damp 檔案,方便資料遷移。但這個過程不能太長,以免回滾段和聯機日誌消耗完 imp 將exp dmp檔案上載到資料庫內。buffer 上載資料緩衝區,以位元組為單位,預設依賴作業系統 commit 上載資料緩衝區中的記錄上載後是否執行提交 feeback 顯示處理記錄條數,預設為0,即不顯...

oracle資料庫匯出 exp 匯入 imp)

單錶備份 前提庫的結構是一樣的 匯出 exp 使用者名稱 密碼 連線字串 grants y tables stu file c 檔名.dmp 匯入 imp 使用者名稱 密碼 連線字串 ignore y tables stu full n file c 檔名.dmp 其中stu是你要的表名 全庫導 匯...