Oracle數據導入導出imp/exp 報錯,錯誤提示為:未知的命令開頭。。。忽略了剩余的行
后來查詢資料才知道應該在cmd的dos命令窗口直接執行,而不是sqlplus.exe
相關的導出命令格式如下:
a.將數據庫TEST完全導出,用戶名system 密碼manager 導出到D:\daochu.dmp中
exp system/manager@TEST file=d:\daochu.dmp full=y
b.將數據庫中system用戶與sys用戶的表導出
exp system/manager@TEST file=d:\daochu.dmp owner=(system,sys)
c.將數據庫中的表A、B導出
exp aichannel/aichannel@TESTDB2 file= d:\data\newsmgnt.dmp tables=(A,B)
相關的導入命令格式如下:
a. 將D:\daochu.dmp 中的數據導入 TEST數據庫中。
imp system/manager@TEST file=d:\daochu.dmp
imp aichannel/aichannel@HUST full=y file= d:\data\newsmgnt.dmp ignore=y
b. 將d:\daochu.dmp中的表table1 導入
imp system/manager@TEST file=d:\daochu.dmp tables=(table1)