oracle 指令碼匯入匯出

2021-08-28 08:00:25 字數 722 閱讀 2618

匯入:imp ics/ics@localhost:1521/orcl file=f:\ics.dmp full = y

匯出:資料匯出:

1 將資料庫test完全匯出,使用者名稱system 密碼manager, 例項名test  匯出到d:\daochu.dmp中

exp system/manager@test file=d:\daochu.dmp full=y

遠端  exp icoqdg/[email protected].***:1521/orcl file=f:\ico.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%'\"

上面是常用的匯出,對於壓縮我不太在意,用winzip把dmp檔案可以很好的壓縮。

不過在上面命令後面 加上 compress=y  就可以了 

oracle匯出與匯入指令碼

匯出指定使用者下的所有表 環境變數設定 export oracle sid bdyz export oracle base u01 oracle11g r2 export oracle home oracle base 11g export ld library path oracle home l...

oracle 指令碼匯入匯出dmp檔案

匯入指令碼如下 echo offsetlocal set username 使用者名稱set password 密碼set bakdir 指令碼路徑 set sid oracle服務例項名 set bakdate dmp名稱 set logdate date 0,4 date 5,2 date 8,...

oracle匯出,匯入

匯出,在dos下執行 1.exp username userpassword databasename 可以是資料庫也可是遠端的,如username userpassword caac135 2.enter array fetch buffer size 4096 回車 3.export file ...