資料匯入匯出EXP/IMP
1 將資料庫TEST完全匯出,使用者名稱system 密碼manager 匯出到D:\daochu.dmp中
exp system/manager@TEST file=d:\daochu.dmp full=y
2 將資料庫中system使用者與sys使用者的表匯出
exp system/manager@TEST file=d:\daochu.dmp owner=(system,sys)
3 將資料庫中的表table1 、table2匯出
exp system/manager@TEST file=d:\daochu.dmp tables=(table1,table2)
4 將資料庫中的表table1中的欄位filed1以"00"打頭的資料匯出
exp system/manager@TEST file=d:\daochu.dmp tables=(table1) query=\" where filed1 like '00%'\"
資料的匯入
11 將d:\daochu.dmp中的表table1 匯入
imp system/manager@TEST file=d:\daochu.dmp tables=(table1)
資料匯出:
exp hkb/hkb@boss_14 full=y file=c:\orabackup\hkbfull.dmp log=c:\orabackup\hkbfull.log;
匯出注意事項:匯出的是當前使用者的的資料,當前使用者如果有DBA的許可權,則匯出所有資料!
同名使用者之間的資料匯入:
imp hkb/hkb@xe file=c:\orabackup\hkbfull.dmp log=c:\orabackup\hkbimp.log full=y
不同名之間的資料匯入:
imp system/test@xe fromuser=hkb touser=hkb_new file=c:\orabackup\hkbfull.dmp log=c:\orabackup\hkbimp.log;
---匯入匯出
EXP SCOTT/TIGER@ORG11G_1 FILE=D:\DAOCHU.DMP
IMP perfstat/perfstat@ORG11G_1 FROMUSER=SCOTT TOUSER=PERFSTAT FILE=D:\DAOCHU.DMP rows=n
帶引數:rows=y —— 帶資料匯出匯入;rows=n —— 不帶資料的匯出匯入,只移植結構。
triggers=y tables statistics indexes grant constraints等等--匯出時才使用的上
因為有的表已經存在,然後它就報錯,對該表就不進行匯入。在後面加上 ignore=y 就可以了
匯出時加上compress=y就可以對錶進行壓縮。
---- 只匯出表中某一個分割槽的資料
EXP scott/tiger@ORG11G_1 FILE=D:\DAOCHU_P.DMP TABLES=DEPT:PART_1
IMP perfstat/perfstat@ORG11G_1 FROMUSER=SCOTT TOUSER=PERFSTAT FILE=D:\DAOCHU_P.DMP IGNORE=Y
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30018455/viewspace-2123844/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- exp/imp匯出匯入資料
- oracle資料匯出匯入(exp/imp)Oracle
- Oracle資料匯入匯出imp/exp命令Oracle
- oracle資料的匯入匯出imp/expOracle
- Oracle資料匯入匯出imp/exp命令(轉)Oracle
- Oracle資料庫匯入匯出。imp匯入命令和exp匯出命令Oracle資料庫
- 【EXP/IMP】使用EXP /IMP工具“模糊”匯出和匯入
- Oracle匯入(imp )與匯出(exp )Oracle
- ORACLE匯入匯出命令exp/impOracle
- Oracle 遠端匯出匯入 imp/expOracle
- exp/imp匯出匯入工具的使用
- Oracle exp/imp匯出匯入工具的使用Oracle
- 使用exp/imp匯出匯入資料(邏輯備份恢復)
- Oracle中exp,imp(匯入匯出)資料遷移注意事項Oracle
- 使用Oracle 的 imp ,exp 命令實現資料的匯入匯出Oracle
- Windows DOS窗體下Oracle 資料庫的匯入匯出(IMP/EXP)命令WindowsOracle資料庫
- 特殊符號密碼處理 - 匯入匯出exp/imp符號密碼
- 【原創】比較資料泵和exp/imp對相同資料匯出/匯入的效能差異
- 用EXP/IMP從高版本資料庫匯出至低版本資料庫匯入實驗資料庫
- imp exp 跨系統匯入案例
- Oracle資料庫資料遷移或匯出匯入(exp/imp,dblink)應該注意的點(總結)Oracle資料庫
- Oracle資料庫備份與恢復之exp/imp(匯出與匯入裝庫與卸庫)Oracle資料庫
- 【ORACLE 匯入匯出】exp 錯誤Oracle
- 用exp/imp把遠端資料匯入到本地資料庫中資料庫
- Oracle資料庫備份與恢復之匯出/匯入(EXP/IMP)、熱備份和冷備份Oracle資料庫
- Oracle資料庫備份與恢復之一:exp/imp(匯出與匯入裝庫與卸庫)Oracle資料庫
- Oracle 資料庫備份與恢復總結-exp/imp (匯出與匯入裝庫與卸庫)Oracle資料庫
- EXP直接匯出壓縮問津,IMP直接匯入壓縮檔案的方法
- 【匯入匯出】EXP-00068分析
- exp/imp匯入匯出版本問題和ORA-6550報錯
- 資料泵匯出匯入
- Oracle 資料匯入匯出Oracle
- mysql資料匯入匯出MySql
- mysql資料匯出匯入MySql
- oracle資料匯入匯出Oracle
- Oracle exp只匯出部分資料Oracle
- EXP COMPRESS以及EXP/IMP EXPDP/IMPDP匯入表結構注意
- ORACLE exp/imp匯入報錯IMP-00009&IMP-00028&IMP-00015Oracle