Oracle查看锁表记录(oracle如何看锁表)

Oracle查看锁表记录(oracle如何看锁表)转自 nbsp http blog sina com cn s blog 91339bff0100 html 查询 sql 的历史记录 select from v sqlarea t where t PARSING SCHEMA NAME in 用户名 order by t LAST ACTIVE TIME desc br select

大家好,我是讯享网,很高兴认识大家。



转自: http://blog.sina.com.cn/s/blog_91339bff0100vbdc.html

查询sql的历史记录


讯享网

select * from v\(sqlarea t where t.PARSING_SCHEMA_NAME in ('用户名') order by t.LAST_ACTIVE_TIME desc<br>select * from v\)sqlarea t order by t.LAST_ACTIVE_TIME desc

查看一段时间内的执行情况

select * from v\(sqlarea t where ( to_char(t.LAST_ACTIVE_TIME,'yyyy-mm-dd hh24:mi:ss') &gt; '2011-12-28 14:11:39' ) and (to_char(t.LAST_ACTIVE_TIME,'yyyy-mm-dd hh24:mi:ss') &lt; '2011-12-28 14:11:43') order by t.LAST_ACTIVE_TIME desc</p> <p>查询当前时间</p> <p>select sysdate from dual</p> <p>查询锁表的情况</p> <p>select * from v\)locked_object;
select b.owner,b.object_name,a.session_id,a.locked_mode&nbsp;&nbsp;&nbsp;from v\(locked_object a,dba_objects b&nbsp;&nbsp;where b.object_id = a.object_id;<br>select b.username,b.sid,b.serial#,logon_time&nbsp;&nbsp;&nbsp;from v\)locked_object a,v$session b&nbsp;&nbsp;&nbsp;where a.session_id = b.sid order by b.logon_time;

小讯
上一篇 2025-06-02 16:19
下一篇 2025-05-27 16:05

相关推荐

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/183919.html