如何使用 10203事件 跟踪 Oracle块清除

时间:2008-11-17 来源: 网友评论0条

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

10203事件需要在系统级设置,重启后即可生效:

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.


stella

精彩推荐
热门文章
热门图文
  • PEAR简介:用PEAR来写你的下一个php程序
    PEAR简介:用PEAR来写
  • 动态网页PHP程序员的优化调试技术和技巧
    动态网页PHP程序员的
推荐文章
    最新图文
    • 理解ASP.NET中的三层结构
      理解ASP.NET中的三层
    • ASP.NET教程:抽象类和接口的比较
      ASP.NET教程:抽象类和
    最新文章
    lady
    感谢您对点点通的支持  信箱投稿  给点点通提意见
    关于我们 - 广告服务 - 成功客户 - 合作媒体 - 网站历史 - 联系我们 - 免责声明
    Copyright © 2001 - 2008 All Rights Reserved
    苏ICP备08107532号