oracle導入導出 dmp文件:
打開cmd窗口,在cmd窗口下,按照個人需要輸入以下對應的命令:
1、imp 用戶名/密碼@網絡服務名 file=XXX.dmp fromuser=XXX touser=XXX;//導入dmp文件
2、imp 用戶名/密碼@網絡服務名 file=xxx.dmp full=y;//導入dmp文件
3、imp aichannel/aichannel@HUST full=y file= d:\data\newsmgnt.dmp ignore=y;//跳過建表語句
4、exp system/manager@TEST file=d:\daochu.dmp full=y;//導出整個數據庫
5、exp system/manager@TEST file=d:\daochu.dmp owner=(system,sys)//導出指定用戶的數據
6、exp system/manager@myoracle file=d:\daochu.dmp tables=(table1) igonre = y;//導出指定表(igonre可有可無)
7、exp aichannel/aichannel@TESTDB2 file= d:\data\newsmgnt.dmp tables=(inner_notify,notify_staff_relat);//將數據庫中的表inner_notify、notify_staff_relat導出
8、exp 用戶名/密碼@網絡服務名 file=xxx.dmp tables=(表名);//導出 dmp文件
9、exp 用戶名/密碼@網絡服務名 file=xxx.dmp tables=(table1,table2,table3)。//導出多個 dmp文件