Query the database table is locked

 Query the database table is locked in
the Select c.sid, c.serial #, d.name, b.object_name, c.username, c.program, c.osuser
        from

   gv$Locked_object a, All_objects b, gv$session c, audit_actions d

where    a.object_id = b.object_id and

            a.inst_id = c.inst_id(+) and

            a.session_id = c.sid(+)
            and c.command = d.action;

Guess you like

Origin www.cnblogs.com/dewu123/p/10962276.html