oracle資料庫備份

2021-09-01 08:21:31 字數 782 閱讀 4830

一、exp: 具有三種模式(完全、使用者、表)

1、完全:

exp system/manager buffer=64000 log=dible_db full=y ignore=y

如果要執行完全匯出,必須具有特殊的許可權

2、使用者模式:

exp sonic/sonic buffer=64000 file=c:\sonic.dmp owner=sonic

這樣使用者sonic的所有物件被輸出到檔案中。

3、表模式:

exp sonic/sonic buffer=64000 file=c:\sonic.dmp owner=sonic tables=(sonic)

這樣使用者sonic的表sonic就被匯出

二、imp: 具有三種模式(完全、使用者、表)

1、完全:

imp system/manager file=bible_db log=dible_db full=y ignore=y

2、使用者模式:

imp sonic/sonic buffer=64000 file=c:\sonic.dmp fromuser=sonic touser=sonic

這樣使用者sonic的所有物件被匯入到檔案中。必須指定fromuser、touser引數,這樣才能匯入資料。

3、表模式:

exp sonic/sonic buffer=64000 file=c:\sonic.dmp owner=sonic tables=(sonic)

這樣使用者sonic的表sonic就被匯入。

Oracle資料庫備份

oracle資料庫備份技術 網路故障 os oracle director 一 備份的意義 當我們使用乙個資料庫時,總希望資料庫的內容是可靠的 正確的,但由於計算機系統的故障 硬體故障 網路故障 程序故障和系統故障 影響資料庫系統的操作,影響資料庫中資料的正確性,甚至破壞資料庫,使資料庫中全部或部分...

oracle資料庫備份

oracle資料庫的邏輯備份分為三種模式 表備份 使用者備份和完全備份。表模式 備份某個使用者模式下指定的物件 表 業務資料庫通常採用這種備份方式。若備份到本地檔案,使用如下命令 exp icdmain icd rows y indexes n compress n buffer 65536 fil...

Oracle資料庫備份

將下面的語句儲存為批處理檔案,即backup.dat,雙擊即可實現資料庫備份。1.資料庫匯出,儲存格式為 年月日日期時分秒.dmp 帶有日誌 exp 使用者名稱 密碼 資料庫例項名 file date 0,4 date 5,2 date 8,2 date 11,3 time 0,2 time 3,2...