[Oracle]오라클 LOCK 조회 및 해제
1. 간단하게 LOCK 확인 SELECT OBJECT_ID , SESSION_ID -- SID , ORACLE_USERNAME , OS_USER_NAME FROM V$LOCKED_OBJECT ; 2. LOCK 발생된 SID, SERIAL, OBJECT 확인 SELECT A.SID , A.SERIAL , object_name , A.SID || ', ' || A.SERIAL# AS KILL_TASK FROM V$SESSION A INNER JOIN V$LOCK B ON A.SID = B.SID INNER JOIN DBA_OBJECTS C ON B.ID1 = C.OBJECT_ID WHERE B.TYPE = 'TM' ; 3. LOCK 세션 해제 ALTER SYSTEM KILL SESSION '401, 1276..
2020. 3. 31.