Hi! Could we please enable some services and cookies to improve your experience and our website?

SQLize | PHPize | SQLtest

Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code

A A A
Login    Share code      Blog   FAQ
Copy Format Clear
select c.owner || '.' || c.object_name object, c.object_type as type, DECODE(a.locked_mode, 0, NONE , 1, '1 - Null' , 2, '2 - Row Share Lock' , 3, '3 - Row Exclusive Table Lock.' , 4, '4 - Share Table Lock' , 5, '5 - Share Row Exclusive Table Lock.' , 6, '6 - Exclusive Table Lock' , locked_mode, ltrim(to_char(locked_mode,'990'))) lock_mode, b.inst_id as node, b.sid, b.serial#, b.status, b.username, b.osuser from gv$locked_object a , gv$session b, dba_objects c where b.sid = a.session_id and a.object_id = c.object_id and a.inst_id=b.inst_id;

Stuck with a problem? Got Error? Ask AI support!

Copy Clear