Oracle query lock table and unlock method

 

--View lock table records

select * from v$session s,v$locked_object o where s.sid = o.session_id
 

--kill the lock table session (sid,serial#)

alter system kill session '39, 23' immediate;
 

The cause this time is :

      Test and R&D personnel use tools such as PL/SQL to visually edit data (pessimistic locks), which are not submitted and rolled back; or some personnel execute the select * from table for update statement.

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326987046&siteId=291194637