본문
ORACLE Session Lock
DB(Oracle) 2018. 2. 7. 19:06
# ORACLE Session Lock
1. 테이블 LOCK 점검
1 2 3 4 | SELECT A.SID, A.SERIAL#, B.TYPE, C.OBJECT_NAME FROM V$SESSION A, V$LOCK B, DBA_OBJECTS C WHERE A.SID = B.SID AND B.ID1 = C.OBJECT_ID AND B.TYPE='TM' AND C.OBJECT_NAME IN ('table A', 'table B') |
2. 대상 Session Kill
1 2 3 4 | ALTER SYSTEM KILL SESSION 'sid,serial#' IMMEDIATE -- Example ALTER SYSTEM KILL SESSION '41,3210' IMMEDIATE |
- 출처:
댓글