์ด ์—๋Ÿฌ๊ฐ€ ๋‚ฌ์„ ๋•Œ ๋ญ ๋•Œ๋ฌธ์— busy๋ผ๊ณ  ๋‚˜์˜ค๋Š”์ง€ ๊ถ๊ธˆํ•˜๋‹ค๋ฉด??

sysdba๊ถŒํ•œ์œผ๋กœ ์•„๋ž˜ ์ฟผ๋ฆฌ๋ฅผ ๋‚ ๋ ค๋ณด์ž. ๋ฌด์Šจ์ฟผ๋ฆฌ ๋•Œ๋ฌธ์— ์–ด๋Š ํ…Œ์ด๋ธ”์ด lock์ด ๊ฑธ๋ ค์žˆ๋Š”์ง€ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋‹ค. 

SELECT O.OBJECT_NAME, S.SID, S.SERIAL#, P.SPID, S.PROGRAM,S.USERNAME,
S.MACHINE,S.PORT , S.LOGON_TIME,SQ.SQL_FULLTEXT 
FROM V$LOCKED_OBJECT L, DBA_OBJECTS O, V$SESSION S, 
V$PROCESS P, V$SQL SQ 
WHERE L.OBJECT_ID = O.OBJECT_ID 
AND L.SESSION_ID = S.SID AND S.PADDR = P.ADDR 
AND S.SQL_ADDRESS = SQ.ADDRESS;


์œ„ ์ฟผ๋ฆฌ๋ฅผ ์‹คํ–‰ํ•ด์„œ SID์™€ SERIAL#์„ ์•Œ์•„๋‚ด๋ฉด ์•„๋ž˜์™€ ๊ฐ™์€ ๋ช…๋ น์œผ๋กœ ํ•ด๋‹น ์„ธ์…˜์„ ์ฃฝ์ผ ์ˆ˜ ์žˆ๋‹ค.

ALTER SYSTEM KILL SESSION 'SID, SERIAL#';

์ด์ƒ~!!! ๋‹น์‹ ์—๊ฒŒ ๋…ธ๋ ฅ๊ณผ ํ–‰์šด์˜ ์—ฌ์‹ ์ด ํ•จ๊ป˜ํ•˜์—ฌ ๋ฌธ์ œ๊ฐ€ ํ•ด๊ฒฐ๋˜๊ธฐ๋ฅผ~~