ORACLE OCP之RMAN引數含義

2021-10-13 17:13:48 字數 2885 閱讀 3617

rman> show all;

using target database control file instead of recovery catalog

rman configuration parameters for database with db_unique_name orcl are:

configure retention policy to redundancy 1; # default

configure backup optimization off; # default

configure default device type to disk; # default

configure controlfile autobackup on; # default

configure controlfile autobackup format for device type disk to '%f'; # default

configure device type disk parallelism 1 backup type to backupset; # default

configure datafile backup copies for device type disk to 1; # default

configure archivelog backup copies for device type disk to 1; # default

configure maxsetsize to unlimited; # default

configure encryption for database off; # default

configure encryption algorithm 'aes128'; # default

configure compression algorithm 'basic' as of release 'default' optimize for load true ; # default

configure rman output to keep for 7 days; # default

configure archivelog deletion policy to none; # default

開啟rman備份優化器

configure backup optimization off;

rman備份的介質型別

configure default device type to disk;

rman備份是否生成控制檔案自動備份 以及生成的控制檔案自動備份存放在哪

configure controlfile autobackup on;

configure controlfile autobackup format for device type disk to 『%f』;

rman備份時開啟多少個併發

configure device type disk parallelism 1 backup type to backupset;

如果開啟rman併發備份 那麼備份的檔案數一定大於通道數 (盡量讓每個檔案都可以在專屬的通道工作)

因為通道已檔案為單位工作

1個檔案 2個通道

run

如果你分配的通道數量大於你的parallelism 數量,則按照你分配的通道數量進行備份 ???—>實驗去證明

注:對orcl_%d_%t_%s_%p』進行解釋

backup database;=備份所有資料檔案(不包含臨時檔案) + 控制檔案和引數檔案

控制檔案一定要最後備份 可以通過自動備份控制檔案解決這個問題,上文已經提到過了。因為之前所有的備份資訊 都會記錄到控制檔案中

備份集與備份片

rman複製操作時 預設的複製份數

configure datafile backup copies for device type disk to 1;

configure archivelog backup copies for device type disk to 1;

rman產生的備份集最大值 一般都是不限制

configure maxsetsize to unlimited; # default

rman設定備份與恢復時需要輸入的密碼

壓縮引數

configure compression algorithm 『basic』 as of release 『default』 optimize for load true ;

rman> backup as compressed backupset tablespace example format 『/backup/%d_%u.bak』;–壓縮加分片

歸檔刪除策略

configure archivelog deletion policy to none;

控制檔案的快照備份

ORACLE OCP之管理資料併發

在oracle中,控制事務的語句稱為tcl 事務控制語句 一共有三個動作 一致性 consistency c 隔離性 isolation i 永續性 durability d 不可重複讀 nonrepeatable read 幻讀 phantom read read committed 注 有些翻譯...

RMAN備份恢復之BLOCKRECOVER

rman提供了單獨恢復個別block的功能,這種功能作為普通恢復方法的補充,對於恢復資料庫中出現的壞塊可以快速的進行恢復。rman的blockrecover是利用乙個全備份作為基礎,在此基礎中應用日誌,對於需要恢復的個別block進行恢復。下面演示乙個blockrecover的簡單例子,首先是構造乙...

rman備份方法之 增量備份

使用型別 系統負載集中在某那個時間段,如白天8小時,晚上基本很閒,所以在晚上就可以對資料進行備份 與之相對應的是全庫備份 1 env ip 10.244.171.180 181 oracle database oracle 11.2.0.3 os rhel 5.5 backup toos rman,...