In order to find out which object has been locked (and beg your DBA to kill the associated session or free the locks), run the following query:
SELECT c.owner, c.object_name, c.object_type, b.SID,
b.serial#,
b.status, b.osuser, b.machine
FROM v$locked_object a, v$session b, dba_objects c
WHERE b.SID = a.session_id AND a.object_id = c.object_id;
b.status, b.osuser, b.machine
FROM v$locked_object a, v$session b, dba_objects c
WHERE b.SID = a.session_id AND a.object_id = c.object_id;
The output will look like this:
In case you are the DBA (and you have DBA privileges), then get the SID and the SERIAL# and run the following:
alter system kill session 'SID,SERIAL#';
Nessun commento:
Posta un commento