oracle关闭块跟踪,怎样使用"10203"事件跟踪Oracle块清除

我们知道,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.

本文来源:赛迪网

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值