打印本文 打印本文 关闭窗口 关闭窗口
PL/SQL DEVELOPER 6会话管理(原创)
作者:武汉SEO闵涛  文章来源:敏韬网  点击数4751  更新时间:2007/11/14 13:00:04  文章录入:mintao  责任编辑:mintao

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:返回当前选择会话的数据库统计信息

对应的SQL语句:

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         LocksSQL语句进行过优化):返回当前选择会话锁定的对象

对应的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(本人个人定制查询):返回当前选择会话的等待信息

对应的SQL语句:

select * from v$session_wait where sid=:sid

l         Event(本人个人定制查询):返回当前选择会话的事件信息

对应的SQL语句:

select * from v$

上一页  [1] [2] [3] [4]  下一页

打印本文 打印本文 关闭窗口 关闭窗口