/ Published in: SQL
List locked object Oracle Database using V$LOCKED_OBJECT view
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
SELECT o.OBJECT_NAME, l.SESSION_ID, l.ORACLE_USERNAME, l.OS_USER_NAME, l.PROCESS FROM V$LOCKED_OBJECT l, USER_OBJECTS o WHERE o.OBJECT_ID = l.OBJECT_ID;