Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to kill users holding the lock?

yxes2013Feb 15 2013 — edited Feb 18 2013
Hi all,

I have this excellent query the list locked tables.
SELECT o.owner, o.object_name, o.object_type, o.last_ddl_time, o.status, l.session_id, 
l.oracle_username, l.locked_mode
FROM dba_objects o, gv$locked_object l
WHERE o.object_id = l.object_id;
How can I join this to the v$session so that I can kill the user sid,serial#?

Thanks a lot,

Yxz
This post has been answered by moreajays on Feb 18 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 18 2013
Added on Feb 15 2013
11 comments
1,101 views