select * from v$open_cursor where sid = :sid
l SQL Text:返回当前选择会话正在执行的SQL
对应的SQL语句:
select sql_text from v$sqltext_with_newlines
where address = hextoraw(:sql_address)
and hash_value = :sql_hash_value
order by piece
l Statics:返回当前选择会话的数据库统计信息
select names.name, stats.statistic#, stats.value
from v$sesstat stats, v$statname names
where stats.sid = :sid
and names.Statistic# = stats.Statistic#
order by stats.Value desc
l Locks(SQL语句进行过优化):返回当前选择会话锁定的对象
select * from sys.all_objects a,v$locked_object b where a.object_id=b.object_id and b.session_id=:sid
l Wait(本人个人定制查询):返回当前选择会话的等待信息
select * from v$session_wait where sid=:sid
l Event(本人个人定制查询):返回当前选择会话的事件信息
select * from v$
上一页 [1] [2] [3] [4] 下一页
Copyright @ 2007-2012 敏韬网(敏而好学,文韬武略--MinTao.Net)(学习笔记) Inc All Rights Reserved. 闵涛 E_mail:admin@mintao.net(欢迎提供学习资源)
鄂公网安备 42011102001154号
站长:MinTao ICP备案号:鄂ICP备11006601号-18