- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
2#
发表于 2012-2-9 21:52:47
1 . 这里我们只讨论产生的undo change vector size undo 改变向量的大小
ODM TEST:- SQL> select vs.name, ms.value
- 2 from v$mystat ms, v$sysstat vs
- 3 where ms.statistic# = vs.statistic#
- 4 and name in('redo size','undo change vector size');
- NAME VALUE
- ---------------------------------------------------------------- ----------
- redo size 0
- undo change vector size 0
- SQL>
- SQL> alter index pk_obj rebuild;
- Index altered.
- SQL> select vs.name, ms.value
- 2 from v$mystat ms, v$sysstat vs
- 3 where ms.statistic# = vs.statistic#
- 4 and name in('redo size','undo change vector size');
- NAME VALUE
- ---------------------------------------------------------------- ----------
- redo size 59157424
- undo change vector size 34396
- SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
- With the Partitioning, OLAP and Data Mining options
- [oracle@vrh8 ~]$ sqlplus / as sysdba
- SQL*Plus: Release 10.2.0.1.0 - Production on Fri Feb 10 00:49:53 2012
- Copyright (c) 1982, 2005, Oracle. All rights reserved.
- Connected to:
- Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
- With the Partitioning, OLAP and Data Mining options
- SQL> select vs.name, ms.value
- 2 from v$mystat ms, v$sysstat vs
- 3 where ms.statistic# = vs.statistic#
- and name in('redo size','undo change vector size'); 4
- NAME VALUE
- ---------------------------------------------------------------- ----------
- redo size 0
- undo change vector size 0
- SQL> alter index pk_obj rebuild nologging;
- Index altered.
- SQL> select vs.name, ms.value
- 2 from v$mystat ms, v$sysstat vs
- 3 where ms.statistic# = vs.statistic#
- 4 and name in('redo size','undo change vector size');
- NAME VALUE
- ---------------------------------------------------------------- ----------
- redo size 207256
- undo change vector size 34396
复制代码 结论: nologging 对于undo 是无效的, 不要 把nologging和append 的功效混淆 |
|