Oracle資料庫匯出匯入

2022-09-18 08:36:25 字數 598 閱讀 5039

需求為將資料庫a中的資料匯出為*.dmp檔案。然後將*.dmp檔案匯入到資料庫b。

在cmd窗體輸入下面命令:

匯出所有資料庫

exp username/password@資料庫名 file=d:\*.dmp full=y

匯出當前使用者下的資料庫

exp username/password@資料庫名 owner=(username) file=d:\*.dmp

在sql plus下輸入下面命令:

conn sys/sys as sysdba;

create user username identified by password; 

grant connect,resource,dba to username;

在cmd下輸入下面命令:

匯入整個庫到某個使用者

imp username/password@資料庫名 full=y file=d:\*.dmp ignore=y 

匯入某個表到使用者

imp username/password@資料庫名 file=d:\*.dmp tables=(表名)

到此,oracle資料庫的匯出匯入完畢,希望明天部署能正常完工。

Oracle 資料庫 匯入匯出

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

oracle資料庫匯入匯出

用工具匯入 匯出 資料 工具 t 匯出表 x 工具 t 匯出表 x 所選執行檔案位置 e oracle product 10.2.0 db 1 bin imp.exe exp.exe 命令匯入匯出 oracle匯入dmp檔案命令 1 dmp檔案中的資料匯入資料庫 1.首先進入cmd命令視窗 2.執行...

Oracle資料庫匯入匯出

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