|
¿À¶óŬÀº Å©°Ô dedicated/MTS ¸ðµå·Î ¿î¿µÇÒ ¼ö Àִµ¥
dedicated·Î ¿î¿µÇÒ °æ¿ì init.ora ÆÄÀÏ¿¡¼ ÁöÁ¤µÈ
processesÀÇ °¹¼ö ¸¸Å ¿À¶óŬ ÇÁ·Î¼¼½º°¡ ¶ã ¼ö ÀÖ½À´Ï´Ù.
À¯ÀúÀÇ ¿äûÀÌ ¸¹À¸¸é ´ç¿¬È÷ ±×¸¸Å ¼ºñ½º¸¦ ´ã´çÇÏ´Â
ÇÁ·Î¼¼½º°¡ ÀÖ¾î¾ß µÇ°ÚÁÒ?
´ÜÁö ´ÔÀÌ °ÆÁ¤ÇϽô °ÍÀÌ CPU¸¦ ¸¹ÀÌ »ç¿ëÇÏ´Â °ÍÀ̶ó¸é
CPU¸¦ ¸¹ÀÌ ¸Ô´Â process¿¡ SQL trace¸¦ °É¾î¼
Æ©´×À» ¿°µÎ¿¡ µÎ¼Å¾ß ÇÕ´Ï´Ù.
¶Ç´Â ½Ã½ºÅÛ »ç¾ç¿¡ ºñÇؼ ÇÁ·Î¼¼½º°¡ ³Ê¹« ¸¹ÀÌ ¶ß¼
¸Þ¸ð¸®µîÀÌ ¹®Á¦°¡ µÈ´Ù¸é MTS ¸ðµå·Î ¿À¶óŬÀ»
¿î¿µÇÏ¼Å¾ß ÇÕ´Ï´Ù.
sql trace´Â ¾Æ·¡ shell script¸¦ ÀÌ¿ëÇÏ¿©
10046.sh pid
·Î ÇÏ°í udump ¹Ø¿¡ »ý¼ºµÇ´Â trace ÆÄÀÏÀ»
tkprof ¸¦ »ç¿ëÇÏ¿© ºÐ¼®ÇϽñæ...
( ¸ÕÀú timed_statistics= true ÇÏ´Â °ÍÀÌ ÁÁ½À´Ï´Ù.)
-----------10046.sh--------------
#!/bin/sh
# Turn off 10046 event
if [ $# != "1" ]
then
echo "Usage : $0 pid"
exit
fi
svrmgrl <<EOF
connect internal
oradebug setospid $1
oradebug unlimit
oradebug tracefile_name
oradebug event 10046 trace name context forever, level 12
exit
EOF
-----------10046.sh--------------
-- oraToT ´ÔÀÌ ¾²½Å ±Û:
>> ¿À¶óŬ¹öÁ¯ÀÔ´Ï´Ù..
>> Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
>> PID USERNAME THR PRI NICE SIZE RES STATE TIME CPU COMMAND
>> 14203 oracle 11 59 0 504M 482M sleep 3:11 4.54% oracle
>> 14536 oracle 11 45 0 504M 481M sleep 0:08 3.68% oracle
>> 14426 oracle 11 58 0 504M 481M sleep 0:28 1.42% oracle
>> 14178 oracle 11 53 0 504M 482M sleep 1:18 0.50% oracle
>> 26723 root 1 32 0 8288K 6744K sleep 0:28 0.37% sendmail
>> 14201 oracle 11 32 0 504M 482M sleep 0:28 0.31% oracle
>> 14538 oracle 1 59 0 502M 479M sleep 0:00 0.18% oracle
|