日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

RMAN 的备份保留策略

發布時間:2024/8/26 编程问答 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 RMAN 的备份保留策略 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

RMAN 的備份保留策略:

命令格式:

configure retention policy clear ---------------備份保留策略使用默認值

configure retention policy to none------------不采用任何備份保留策略

configure retention policy to recover window of integer days------------基于時間的備份保留策略,保留幾天前的備份文件

configure retention policy to redundancy integer-------基于冗余備份的備份保留策略,對備份文件保留幾個冗余備份

1:基于時間

RMAN> CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;

保留七天內的所有備份。

2:基于冗余備份

RMAN> CONFIGURE RETENTION POLICY TO REDUNDANCY 3

為每個數據文件保留3個冗余備份。

?

備份保留策略不需要的文件是廢棄狀態的文件,比如:八天前的數據文件和時間最早的第四個冗余備份

REPORT OBSOLETE命令查看當前處于廢棄狀態的備份文件

DELETE OBSOLET 命令可立刻刪除備份保留策略 不需要的文件(廢棄文件)。

====文檔解釋====

Configuring a Retention Policy

Retention policy governs how long database backups are retained, and?

determines how far into the past you can recover your database. Retention policy?

can be set in terms of a recovery window (how far into the past you need to be?

able to recover your database), or a redundancy value (how many backups of?

each file must be retained). Choosing an effective retention policy is a vital part?

of your backup strategy.?

This command ensures that RMAN retains all backups needed to recover the?

database to any point in time in the last 7 days:

RMAN> CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;

This command ensures that RMAN retains three backups of each datafile:

RMAN> CONFIGURE RETENTION POLICY TO REDUNDANCY 3;

Use DELETE OBSOLETE to immediately delete backups no longer required by the?

retention policy. (For backups stored in a flash recovery area, you do not need to?

perform this step. The database automatically deletes obsolete backups in the?

flash recovery area when space is needed, as well as files that have been backed?

up to a media manager.)

=======end===============================================

總結

以上是生活随笔為你收集整理的RMAN 的备份保留策略的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。