配置rman來自動刪除應用過的歸檔日誌
Configure Rman to Purge Application standby logs.
Posted on
Configure RMAN to purge archivelogs after Application on standby.
Applying to EE Version 10.2.0.1 – 11.2.0.1, and 10.2 to 11.2, We need RMAN to automatically purge archivelogs from the FRA once they are applied to the standby database.
With dataguard, and archives in the FRA, they will be purged if they have been applied on the standby and they are no longer required when there is space pressure on the FRA on the primary database.
Here’s the important part, before 11g, if not using archivelog destinations which are mandatory, then the database must be restarted after setting the following parameter:
1) prior to 11g, if not using mandatory archivelog destinations, the database (primary and standby) must be restarted with the following parameter:
SQL> alter system set “_log_deletion_policy”=’ALL’ scope=spfile;
Then we can configure the parameter as normal.
2) configure the following parameter in RMAN on both the primary and standby databases:
RMAN> CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
3) the archivelog must have been applied to the standby
4) the archivelogmust beobsolete per the current RMAN retention policy.
To list the obsolete objects, run the following query:
RMAN> SHOW RETENTION POLICY RMAN> REPORT OBSOLETE;
5) there is space pressure in the FRA
Again, point 5, there has to be space pressure in the FRA before the policy kicks in. Therefore setting any normal local destination to use this will fail. In my experience the rman delete command complained that the logs were still required.
Another interesting note, the database’s have to be backed up for this policy to take place. Only performing backups on the standby will leave the primary in a state where all logs are required (obviously) since condition 4 will not be met, therefore no automatic purging will take place.
eg: the following query will identify all archivelogs applied to the standby:
select a.thread#, a.sequence#, a.applied from v$archived_log a, v$database d where a.activation# = d.activation# and a.applied=’YES’ /
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/12798004/viewspace-2214484/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 備庫自動刪除已應用的歸檔日誌
- 作用RMAN 刪除歸檔日誌
- 用rman 正確地刪除歸檔日誌
- 【Oracle】 rman 刪除歸檔日誌的命令Oracle
- crontab不能自動刪除歸檔日誌
- oracle dataguard 自動刪除歸檔日誌Oracle
- 如何定期自動刪除歸檔日誌
- oracle rman不能自動刪除歸檔日誌備份解決Oracle
- rman刪除舊的歸檔日誌問題
- rman刪除歸檔日誌命令集
- 手動刪除歸檔日誌
- oracle 刪除過期的歸檔日誌Oracle
- RMAN delete archivelog命令刪除歸檔日誌及歸檔日誌拷貝deleteHive
- rman 刪除指定時間點的歸檔日誌
- 歸檔日誌的刪除
- DataGuard已應用歸檔日誌刪除指令碼指令碼
- 11gR2 RMAN歸檔日誌刪除策略
- oracle刪除歸檔日誌Oracle
- Oracle歸檔日誌刪除Oracle
- 刪除歸檔日誌檔案
- 通過RMAN設定standby接收日誌後主庫歸檔日誌才可刪除
- oracle rman 刪除過期的歸檔Oracle
- RMAN刪除歸檔日誌時將ASM上空目錄同時刪除ASM
- asm下如何自動刪除standby上已經applied過的歸檔日誌ASMAPP
- rman 刪除所有過期歸檔
- 刪除data guard歸檔日誌
- rman刪除指定節點指定sequence範圍的歸檔日誌
- 配置RMAN清除已應用到備庫的歸檔日誌
- 刪除歸檔,保留最近的5個歸檔日誌
- RMAN刪除歸檔日誌出現RMAN-0813錯誤的處理
- dg刪除備庫已經應用的歸檔日誌指令碼指令碼
- 自動刪除歸檔日誌的指令碼(尤其是dataguard環境)指令碼
- 歸檔日誌刪除的五種方法
- 手工rm刪除歸檔日誌對備份歸檔日誌的影響
- 當ORACLE歸檔日誌滿後如何正確刪除歸檔日誌Oracle
- 誤刪歸檔日誌除導致備份歸檔日誌失敗
- 邏輯dg刪除主庫過期歸檔日誌
- Oralce資料庫關閉歸檔日誌並且刪除歸檔日誌資料庫