2010년 6월 23일 수요일

ORACLE - Table lock 확인 및 Process Kill

  1. lock 걸린 테이블 확인

         select * from dba_dml_locks ;

 

  1. 해당 sid,serial 가져오기

          select sid, serial#

          from v$session   

          where sid in (select session_id

                             from dba_dml_locks

                           where name = 'lock 걸린 테이블 명');

  1. 해당 프로세스 킬
    alter system kill session ':sid:,:serial:'

 

댓글 없음: