Removing Locks in Oracle 10
This will exactly serve your purpose:
SELECT SESSION_ID FROM DBA_DML_LOCKS WHERE NAME = <TABLE_NAME>;
Use the SESSION_ID
to find the corresponding SERIAL#
with this statement:
SELECT SID, SERIAL# FROM V$SESSION WHERE SID IN (
SELECT SESSION_ID FROM DBA_DML_LOCKS WHERE NAME = <TABLE_NAME>
);
Locate the offending tuples SID, SERIAL#
and release it like this:
ALTER SYSTEM KILL SESSION 'SID, SERIAL#';
Managed to resolve this issue.
I looked in DBA_BLOCKERS table and got the session ID. Then killed the session and the lock was removed.