1. 程式人生 > >Oracle匯出整個資料庫

Oracle匯出整個資料庫

 
 


需要加資料庫的目錄下:G:\app\sinosoft\product\12.1.0\dbhome_1\BIN   cmd命令框執行

exp system/[email protected]/sinosoft file=d:\yjzygl.dmp owner=(yjzygl,other)
exp yjzygl/[email protected]/sinosoft file=d:\yjzygl.dmp full=y



匯入:

   D:\app\Administrator\product\11.1.0\db_1\BIN>imp scott/

[email protected] full=y file=D:\database.dmp;

或者

    D:\app\Administrator\product\11.1.0\db_1\BIN>imp scott/[email protected] file=D:\database.dmp tables=(tb1,tb2);

(3)在匯入資料的過程中可能會遇到 資料表已經存在的現象,可以同ignore=y  忽略掉,比如:

    D:\app\Administrator\product\11.1.0\db_1\BIN>imp scott/

[email protected]  ignore=y  file=D:\database.dmp;


匯入某個使用者到另一個使用者

imp pfuser/[email protected] file=D:\hmp.dmp fromuser=pfuser touser=pfuser commit=y ignore=y rows=y indexes=y buffer=819200