日期:2014-05-16  浏览次数:20560 次

nologging和redo size之间的关系分析 转贴
nologging和redo size之间的关系分析
2011年01月29日 星期六 下午 12:41

试验环境:oracle 9204 on hp-ux

一、使用CTAS方式建表产生redo大小的分析
首先在noarchive模式下试验:
试验前:
SQL> select a.name, b.value from v$statname a, v$sesstat b where a.statistic#=b.statistic# and b.sid=9 and a.name = 'redo size';
NAME                                                                  VALUE
redo size                                                               600

SQL> create table t as select * from dba_objects;
试验后:
SQL>
NAME                                                                  VALUE
redo差异:30960

2、更改数据库到归档模式,过程省略。。。
table采用默认方式建立:
试验前:
SQL> select a.name, b.value from v$statname a, v$sesstat b where a.statistic#=b.statistic# and b.sid=9 and a.name = 'redo size';
NAME                                                                  VALUE
redo size                                                               1472

SQL> create table t as select * from dba_objects;
试验后:
NAME                                                                  VALUE
redo size                                                             622448

redo差异:620976,差不多是非归档模式下的20倍

3、table采用nologging方式建立:
试验前:
SQL> select a.name, b.value from v$statname a, v$sesstat b where a.statistic#=b.statistic# and b.sid=9 and a.name = 'redo size';
NAME                                           &n