All your query should be done using sys user or system user, after that you need to find Session SID with below query :
SQL> SELECT SESSION_ID
2 FROM DBA_DML_LOCKS
3 WHERE NAME = ‘EMP_INFORMATION’;
Where EMP_INFORMATION is Table_name
Next step it’s talking about How to find Serial# :
WHERE SID IN (SELECT SESSION_ID
WHERE NAME = ‘EMP_INFORMATION’)
Use Alter system To kill this session :
ALTER SYSTEM KILL SESSION ‘SID,SERIALl#’;
Published by Osama Mustafa
Osama considered as one of the leaders in Cloud technology, DevOps and database in the Middle-East. I have more than ten years of experience within the industry. moreover, certfied 4x AWS , 4x Azure and 6x OCI, have also obtained database certifications for multiple providers.
In addition to having experience with Oracle database and Oracle products, such as middle-ware, OID, OAM and OIM, I have gained substantial knowledge with different databases.
Currently, I am architecting and implementing Cloud and DevOps. On top of that, I'm providing solutions for companies that allow them to implement the solutions and to follow the best practices.
View all posts by Osama Mustafa
2 thoughts on “Step By Step Remove Oracle Table Lock”
thanks for share..
Your Welcome 🙂