Oracle 匯入資料庫備份 dmp 檔案

2021-04-17 21:37:30 字數 610 閱讀 3001

這個命令老是忘記,於是就直接寫在部落格上,供以後參考. 省的每次使用都會到網上查.

經過總結,一般使用下面的這個命令基本上就可以解決問題:

/home/oracle/product/bin/imp   使用者名稱/密碼  full=y  file= 備份檔案的路徑   ignore=y

把上面的漢字用你實際環境的值替換即可. 一定要記住 oracle imp 命令的路徑是在 /home/oracle/product/bin 下,這也是預設的安裝路徑,如果你不知道你本機的oracle的安裝路徑在什麼地方,你可以使用如下命令進入:

[oracle@ewellhopedb2 oracle]$   cd $oracle_home

[oracle@ewellhopedb2 product]$ cd ./bin

然後執行當前路徑下的 imp 命令即可,  如果是在 imp 所處的目錄下, 要加上 當前路徑標誌 :  ./imp 注意簽名的表示方法 ...  執行後一般就 ok 了.

我的乙個demo如下:

/home/oracle/product/bin/imp zhangbo/123456  full=y  file=/home/oracle/ca_db/0523.dmp ignore=y

Oracle資料庫的備份與匯入

oracle使用者的匯出與匯入 匯出 1 找到你oracle安裝位置的bin目錄下的 emp.exe 如 d oracletools oracle product 10.2.0 db 1 bin 2 雙擊執行,輸入你要匯出的使用者名稱和密碼 密碼不可見 3 輸入你匯出檔案存放的位置 如 d crm....

Oracle資料庫匯入匯出簡單備份

oracle資料庫簡單備份 方法一 1 匯出 exp c xmq pwda orcl owner c xmq file c expdb.dmp buffer 8000 2 匯入 2.1.刪除原來使用者 sqlplus system 123456sql drop user c xmq cascade ...

Oracle資料庫匯入匯出(備份還原)

一.資料庫的匯出 1 將資料庫test完全匯出,使用者名稱system 密碼manager 匯出到d daochu.dmp中 全庫匯出 exp system manager test file d daochu.dmp full y 2 將資料庫中system使用者與sys使用者的表匯出 區域性匯出...