Get locked tables and release it
Find locked tables
---------------------------------------
select
oracle_username,
os_user_name,
locked_mode,
object_name,
object_type
from
v$locked_object a,dba_objects b
where
a.object_id = b.object_id;
Remove lock from table
--------------------------------------------
SELECT SID,SERIAL# , 'alter system kill session ''' || SID || ',' || serial# ||''';'
FROM V$SESSION
WHERE SID IN (SELECT SESSION_ID
FROM DBA_DML_LOCKS
WHERE NAME = 'MATRECTRANS')
Share this post
Blog Comments
Thank You! You comment is under review and will be published soon..
Thank You! You comment is Published.
Popular posts
Bulk add/remove of access rights
2015-01-03
Get Maximo location hierarchy
2017-11-08
Find and compile invalid Maximo objects
2016-05-05
Change NLS_LENGTH_SEMANTICS to CHAR
2015-03-01
Skip doclinks copy on object duplication
2019-06-27