【翻译自mos文章】怎么获得datafile备份的 增长信息

怎么获得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);

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值