暂无图片
暂无图片
1
暂无图片
暂无图片
暂无图片

使用10203事件跟踪Oracle块清除

原创 eygle 2006-04-20
714

Oracle的10203事件可以用来跟踪数据库的块清除(cleanout)操作,从事件列表中,我们可以知道该时间的含义为:block cleanout 。


该事件需要在系统级设置,重启数据库后生效:










SQL> alter system set event="10203 trace name context forever" scope=spfile;


System altered.


SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.


Total System Global Area  126948772 bytes
Fixed Size                   452004 bytes
Variable Size              92274688 bytes
Database Buffers           33554432 bytes
Redo Buffers                 667648 bytes
Database mounted.
Database opened.


SQL> show parameter event


NAME                                 TYPE        VALUE
------------------------------------ ----------- --------------------------------
event                                string      10203 trace name context forever




在跟踪文件中,我们可以发现类似如下的block cleanout 信息:









Begin cleaning out block ...
Found all committed transactions
Block cleanout record, scn:  0xffff.ffffffff ver: 0x01 opt: 0x02, entries follow...
  itli: 1  flg: 2  scn: 0x0819.0045cd54
Block cleanout under the cache...
Block cleanout record, scn:  0x0819.0045cea1 ver: 0x01 opt: 0x02, entries follow...
  itli: 1  flg: 2  scn: 0x0819.0045cd54
... clean out dump complete.


 

「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论