中文字幕av专区_日韩电影在线播放_精品国产精品久久一区免费式_av在线免费观看网站

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

配置rman來自動刪除應用過的歸檔日志

發布時間:2020-08-08 18:09:25 來源:ITPUB博客 閱讀:223 作者:pxbibm 欄目:關系型數據庫

Configure Rman to Purge Application standby logs.

Posted on   March 26, 2011   by   Gary

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’ /


向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

泽州县| 台安县| 德安县| 巴彦县| 绩溪县| 班玛县| 广饶县| 太白县| 辽源市| 鹿邑县| 湛江市| 城步| 大余县| 大丰市| 库尔勒市| 南江县| 奈曼旗| 汝南县| 东平县| 金山区| 中西区| 舟曲县| 肃宁县| 信丰县| 霍州市| 甘德县| 徐水县| 潞城市| 武城县| 满洲里市| 教育| 玛曲县| 弥渡县| 平乐县| 宜州市| 休宁县| 丰镇市| 平遥县| 西林县| 昔阳县| 松潘县|