【翻譯自mos文章】怎麼獲得datafile備份的 增長資訊,mosdatafile
怎麼獲得datafile備份的 增長資訊?
來源於:
HOWTO get information about the growth of the datafile backup (文檔 ID 352777.1)
適用於:
Oracle Server - Enterprise Edition - Version: 8.1.7.4 to 10.2.0.1 - Release: 8.1.7 to 10.2
Oracle Server - Enterprise Edition - Version: 8.1.7.4 to 11.1.0.7 [Release: 8.1.7 to 11.1]
Information in this document applies to any platform.
目標:
在如下的情況下是很有用的:
--備份時間增加的檢查時
--未來的備份空間需求
--Filling grade of a datafile.
解決方案:
可以從RC_BACKUP_DATAFILE 或者 V$BACKUP_DATAFILE中去查詢。
BLOCKS 列是被backed up 的block的數量(即:參與備份的block的數量)
DATAFILE_BLOCKS 列是 該datafile中總共的block的數量。
MAN catalog :Example for the increase in the last 14 days :SQL> select file#, min(blocks), max(blocks), max(blocks) - min(blocks) from rc_backup_datafile where db_name='V920' and completion_time > sysdate - 14 group by file# order by max(blocks)- min(blocks);
controlfile:SQL> select file#, min(blocks), max(blocks), max(blocks) - min(blocks) from v$backup_datafile where completion_time > sysdate - 14 group by file# order by max(blocks)- min(blocks);