1. View the locked table
SELECT p.spid,
a.serial#,
c.object_name,
b.session_id,
b.oracle_username,
b.os_user_name
FROM v$process p, v$session a, v$locked_object b, all_objects c
WHERE p.addr = a.paddr
AND a.process = b.process
AND c.object_id = b.object_id;
2.
SELECT sid, serial#, username, osuser
FROM v$session
where osuser = ' Administrator' ---"OS_USER_NAME
AND username = 'KAIFA'; --->ORACLE_USERNAME
3. Kill this process al
alter system kill session '10,157'; --->The two values in it are sid and serial#
Oracle user lock table solution
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326710658&siteId=291194637
Recommended
Ranking