from DBA_DDL_LOCKS
where session_id=(select sid from V$mystat where rownum=1)
/
oracle查看会话锁定的所有对象代码分享
原文:http://www.jb51.net/article/45297.htm