oracle 的exp和imp命令

2021-09-01 04:52:40 字數 780 閱讀 2439

我們通常要對oracle的資料進行匯入,匯出,在沒有expdb,impdb以前(10g以前),我們都是使用exp 匯出,imp命令來實現匯入。

開啟cmd視窗,實現imp,exp主要是sqlplus.exe呼叫imp.exe,exp.exe來完成的。

下面是幾個常用的關於exp,imp命令的一些舉例

1完全匯出 exp  system/oracle@tnsname  file = d:\\file.dump full=y這樣的匯出基本上可以匯出資料庫的全部物件,但有些許可權是沒有辦法匯出的。

2 指定的表匯出 exp  system/oracle@tnsname  file = d:\\file.dump tables=tablename1,tablename2...

3將制定**的指定資料匯出  exp system/oracle@tnsname file=d:\file .dmp tables=table1 query=" where filed1 like '00%'"

4資料的匯入

1 將 file.dump

中的資料匯入test資料庫中。

imp system/manager@test file=d:\file.dmp

加入 ignore=y這個引數的話,如果

有的表已經存在,對該錶就不進行匯入。

在後面加上 ignore=y 就可以了。

2 將d:daochu.dmp中的表指定的**匯入

imp system/manager@test file=d:\file.dmp tables=table1

oracle資料庫中使用imp和exp命令

200g 左右,資料備份和恢復,以及備份檔案的轉移都成了問題,因為檔案相對比較大了,在檔案備份 轉移 恢復的時間就成倍的增長,不能再向以前一樣始終在本地客戶端操作了。我將描述一下我自己的操作過程,和其中積累的經驗。資料庫資訊如下 使用者 system 密碼 oracle 使用者 test 密碼 or...

oracle的exp和imp命令的使用

我們通常要對oracle的資料進行匯入,匯出,在沒有expdb,impdb以前 10g以前 我們都是使用exp 匯出,imp命令來實現匯入。開啟cmd視窗,實現imp,exp主要是sqlplus.exe呼叫imp.exe,exp.exe來完成的。下面是幾個常用的關於exp,imp命令的一些舉例 1 ...

oracle利用imp和exp匯入匯出資料

利用cmd的操作命令匯出,詳情如下 1 g oracle product 10.1.0 client 1 network admin目錄下有個tnsname.ora檔案,內容如下 cmstar description address list address protocol tcp host 17...