ITPub博客

首页 > 数据库 > Oracle > read by other session 等待事件

read by other session 等待事件

原创 Oracle 作者:wangying7737 时间:2011-01-24 10:41:43 0 删除 编辑
查看数据库 发现大量 read by other session [@more@]

这个是 10g 对 buffer busy wait 事件的 细分后的一个事件

1 查看当前session

select sid,serial#,logon_time,username,program,machine,event from v$session
where wait_class <> 'Idle'
order by logon_time desc

2 查询出现问题的对象id

SELECT p1 "file#", p2 "block#", p3 "class#"
FROM v$session_wait
WHERE event = 'read by other session';

3 查询对象

SELECT relative_fno, owner, segment_name, segment_type
FROM dba_extents
WHERE file_id = &file
AND &block BETWEEN block_id AND block_id + blocks - 1

输入查询到的对象 id 与 块id

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/748501/viewspace-1045099/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: logmnr 日志挖掘
请登录后发表评论 登录
全部评论
  • 博文量
    5
  • 访问量
    10302