在线非rman备份产生和普通操作产生的redo大小比较

在线非rman备份产生和普通操作产生的redo大小比较如下:

SQL> create table t (id number) tablespace test;

表已创建。

SQL> select a.value from v$sesstat a,v$statname b
  2  where a.statistic#=b.statistic# and b.name='redo size'
  3  and a.sid in (select sid from v$mystat where rownum=1);

     VALUE
----------
     15632

SQL> insert into t values(10);

已创建 1 行。

SQL> commit;

提交完成。

SQL> select a.value from v$sesstat a,v$statname b
  2  where a.statistic#=b.statistic# and b.name='redo size'
  3  and a.sid in (select sid from v$mystat where rownum=1);

     VALUE
----------
     16708

SQL> select 16708-15632 from dual;

16708-15632
-----------
       1076

SQL> alter tablespace test begin backup;

表空间已更改。

SQL> select a.value from v$sesstat a,v$statname b
  2  where a.statistic#=b.statistic# and b.name='redo size'
  3  and a.sid in (select sid from v$mystat where rownum=1);

     VALUE
----------
     17296

SQL> insert into t values(10);

已创建 1 行。

SQL> commit;

提交完成。

SQL> select a.value from v$sesstat a,v$statname b
  2  where a.statistic#=b.statistic# and b.name='redo size'
  3  and a.sid in (select sid from v$mystat where rownum=1);

     VALUE
----------
     26080

SQL> select 26080-17296 from dual;

26080-17296
-----------
       8784

SQL> select 8784-1076 from dual;

 8784-1076
----------
      7708

SQL> alter tablespace test end backup;

表空间已更改。

---说明online备份比普通操作要多了很多日志。

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22374393/viewspace-710515/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/22374393/viewspace-710515/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值