|
¸ÕÀú topÀ¸·Î °úµµ Á¡À¯ ÇÁ·Î¼¼½º È®ÀÎ
¨ç CPU¸¦ °úµµÇÏ°Ô »ç¿ëÇÏ´Â ÇÁ·Î¼¼½ºÀÇ SESSION ID ¹øÈ£, SERIAL ¹øÈ£ È®ÀÎ
% sqlplus ¡®/as sysdba¡¯
SQL> select a.sid, a.serial#
from v$session a, v$process b
where a.paddr= b.addr and b.spid= 'SPID';
¡Ø SID : Session ID
¨è ÇØ´ç ¼¼¼Ç¿¡ ´ëÇÑ Äõ¸® È®ÀÎ
SQL> select a.sql_text
from v$sqltext a, v$session b
where a.address=b.sql_address and a.hash_value=b.sql_hash_value
and b.sid= ¡®SID_NUMBER¡¯
order by a.piece;
¨é ÇØ´ç ¼¼¼Ç Á¾·á
SQL> alter system kill session ¡®Session ID, Serial#¡¯;
Cf) »ç¿ëÀÚ TERMINAL·Î ÇÁ·Î¼¼½º È®ÀÎ
SELECT ALL SYS.V_$SESSION.OSUSER, SYS.V_$SESSION.USERNAME,
SYS.V_$SESSION.TERMINAL, SYS.V_$SESSION.PROGRAM,
SYS.V_$PROCESS.SPID SERVER_PID
FROM SYS.V_$PROCESS, SYS.V_$SESSION
WHERE SYS.V_$PROCESS.ADDR=SYS.V_$SESSION.PADDR
and SYS.V_$SESSION.TERMINAL = ¡®TERMINAL¡¯;
|