在线非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博客 ” ,链接:https://blog.itpub.net/22374393/viewspace-710515/ ,如需转载,请注明出处,否则将追究法律责任。