oracle資料庫匯入匯出

2021-06-26 11:31:04 字數 874 閱讀 4791

***********用工具匯入(匯出)資料

工具(t)—》匯出表(x)

工具(t)—》匯出表(x)

所選執行檔案位置:

e:\oracle\product\10.2.0\db_1\bin\imp.exe(exp.exe)

*********命令匯入匯出

oracle匯入dmp檔案命令:

(1)dmp檔案中的資料匯入資料庫

1.首先進入cmd命令視窗

2.執行命令:imp userid=使用者名稱/密碼@資料庫名 file=d:\daochu.dmp full=y ignore=y

file:就是你要匯入的dmp檔案全路徑。

full=y 是否全部匯入只有當前使用者是dba的時候才能用此選項 。

已經存在的表,匯入時會報錯,對該錶就不進行匯入,在後面加上 ignore=y 就可以了。

(2)將dmp中的表usertable匯入

imp 使用者名稱/密碼@資料庫名  file=d:\daochu.dmp  tables=(usertable)

oracle匯出dmp檔案命令:

(1)資料全部匯出

exp 使用者名稱/密碼@資料庫名 file=d:\daochu.dmp full=y

(2)將表匯出

exp 使用者名稱/密碼@資料庫名 file=d:\daochu.dmp tables=(table1,table2)

(3)將table1表中的id欄位以"0000"開頭匯出

exp 使用者名稱/密碼@資料庫名 file=d:\daochu.dmp tables=(table1) query=/" where id like '0000%'/"

Oracle 資料庫 匯入匯出

匯入匯出時要,通過 執行 進行到oracle的安裝目錄的 bin 目錄下導 例如 d oracle product 10.1.0 db 1 bin 匯出分三種 匯出 表 方案 資料庫 1.1.1 匯出自己的表 說明 使用者 密碼 資料庫例項 表名 可多個 檔案路徑 exp userid scott ...

Oracle資料庫匯入匯出

我們經常會在資料備份或環境移至的時候用到oracle的匯入匯出 下面我們來詳細看一下匯入匯出的步驟 1.命令列下匯出dmp檔案 資料匯出,可以帶版本 expdp bp oracle bp oracle orcl directory dump dir dumpfile bp oracle.dmp ve...

Oracle資料庫匯入匯出

一 準備工作 建立表空間 create temporary tablespace yangwen temp tempfile d oracle oradata orcl yangwen temp.dbf size 50m autoextend on next 50m maxsize 20480m e...