|
1. statspack ÀνºÅç-------------------------------------------------------
1-1. µð·ºÅ丮 À̵¿
cd $ORACLE_HOME/rdbms/admin
1-2.
sqlplus /nolog
1-3.
SQL>connect sys/change_on_install as sysdba
1-4.
SQL>@spcreate.sql
Password:perfstat
default tablespace:statspack
temporary tablespace:temp
2. snapshot Ãëµæ-------------------------------------------------------
ÁÖÀÇ£¾½º³À ·¹º§ÀÇ µðÆúÆ®´Â 5
½º³À ·¹º§ÀÇ Á¶Á¤Àº ¾Æ·¡ÀÇ snapshot¡¤·¹º§ÀÇ ¼³Á¤ ÂüÁ¶
SQL>conn perfstat/perfstat
SQL>execute statspack.snap
ȤÀº execute statspack.snap(i_snap_level =>5£©
3. ¸®Æ÷Æ® Ãâ·Â-------------------------------------------------------
3-1 snapshot¡¤¸®½ºÆ® È®ÀÎ
SQL>conn perfstat/perfstat
SQL>select SNAP_ID, SNAP_TIME,SNAP_LEVEL from STATS$SNAPSHOT;
3-2 ¸®Æ÷Æ® Ãâ·Â
SQL>conn perfstat/perfstat
SQL>@spreport.sql
begin_snap:3-1¿¡¼ºÎÅÍ ÃëµæÇÑ SNAP_ID
end_snap:3-1¿¡¼ºÎÅÍ ÃëµæÇÑ SNAP_ID
report_name:report0001
4. ºÒÇÊ¿ä µ¥ÀÌÅÍÀÇ »èÁ¦-------------------------------------------------------
4-1. SQL*Plus·Î perfstat À¯Àú¿¡°Ô Á¢¼Ó
4-2. µ¥ÀÌÅÍ »èÁ¦ÀÇ ½ºÅ©¸³Æ®, sppurge.sql¸¦ ½ÇÇà
SQL> connect perfstat/perfstat
SQL> @$ORACLE_HOME/rdbms/admin/sppurge.sql
4-3. »èÁ¦ÇÏ´Â snapshotÀÇ ¹üÀ§¸¦ ÁöÁ¤ÇÏ´Â snap_id¸¦ ÀÔ·Â
¿¹) Enter value for losnapid: 10
Enter value for hisnapid: 15
½º³À¼¦ ·¹º§ -------------------------------------------------------------------
LEVEL£°£ºÀϹÝÀûÀÎ ¼º´É Åë°èÁ¤º¸
LEVEL£±£º°¢ ·¹º§ £« ¾îµå¹ÙÀ̽ºÁ¤º¸£¨R9.2.0¢¦£©
LEVEL£µ£ºLEVEL£±£« SQL¹® Åë°èÁ¤º¸
LEVEL£¶£ºLEVEL£µ£« SQL»ó¼¼ (½ÇÇà°èȹ Á¤º¸)£¨R9.0.1¢¦£©
LEVEL£·£ºLEVEL£¶£« ¼¼±×¸ÕÆ® Á¤º¸£¨R9.2.0¢¦£©
LEVEL£±£°£ºLEVEL£·£« ºÎ¸ð Latch,ÀÚ½Ä LatchÁ¤º¸
¼³Á¤ÇÏ´Â ½º³À¼¦ ·¹º§¿¡ ÀÇÇØ ¼öÁýµÇ´Â µ¥ÀÌÅÍ ³»¿ëÀº À§¿Í °°ÀÌ °áÁ¤µÈ´Ù.
½º³À¼¦ ·¹º§ÀÌ ³ô¾ÆÁú¼ö·Ï º¸´Ù ¸¹Àº µ¥ÀÌÅ͸¦ ¼öÁýÇÏÁö¸¸ LEVEL10Àº ½º³À¼¦ Ãëµæ¿¡ ½Ã°£ÀÌ °É¸±¼ö ÀÖ´Ù.
LEVEL£·±îÁöÀÇ ¿À¹öÇìµå´Â ¹Ì¹ÌÇÏ°Ô »ý±â¹Ç·Î Å×½ºÆ® ÀüüÀÇ ¼º´É¿¡ ¿µÇâÀ»
¹ÌÄ¥Á¤µµ±îÁö´Â ¾Æ´Ï´Ù.
ÀνºÅç½Ã¿¡ ¼³Á¤ µÇ¾îÀÖ´Â µðÆúÆ® LEVELÀº 5ÀÌ´Ù.
LEVEL1 ¹× LEVEL£·Àº R9.2.0ºÎÅÍ »õ·Ó°Ô Ãß°¡µÇ¾ú´Ù.
°¢ ¹öÁ¯¿¡¼ Á¦°øÇÏ°í ÀÖ´Â LEVELÀÌ¿ÜÀÇ Ä¡¸¦ ¼³Á¤ÇÏ¸é ¿¡·¯°¡ ³ª¹Ç·Î ÁÖÀÇ!!
8i ¡æ 3LEVEL£º0,5,10
R9.0 ¡æ 4LEVEL£º0,5,6,10
R9.2 ¡æ 6LEVEL£º0,1,5,6,7,10
¼³Á¤ ÆĶó¸ÞÅÍ-------------------------------------------------------------
º¸´Ù Á¤È®ÇÑ ¼º´É ºÐ¼®À» À§Çؼ´Â ¼öÁýµÈ µ¥ÀÌÅÍ¿¡ ½Ã°£Á¤º¸°¡
Ãß°¡µÇµµ·Ï TIMED_STATISTICSÆĶó¸ÞÅ͸¦ TRUE·Î ÇÑ´Ù.(R9.0)
R9.2.0ºÎÅÍ´Â Åë°è¼öÁý ·¹º§À» ¼³Á¤ÇÏ´Â ½Å ÆĶó¸ÞÅÍ
STATISTICS_LEVELÀÇ °ªÀ» È®ÀÎÇÑ´Ù. ¼³Á¤Ä¡´Â BASIC,TYPCIAL
ALLÁß¿¡ ÇϳªÀÌ´Ù. µðÆúÆ®´Â TYPICAL·Î ½º³À¼¦ ·¹º§ 1¹× 7 Á¤º¸¸¦
¼öÁýÇÑ´Ù. ¶ÇÇÑ ÀÌ °ªÀÌ TYPICAL ȤÀº ALL·Î ¼³Á¤µÇ¾î ÀÖ´Â °æ¿ì
TIMED_STATISTICSÀÇ °ªÀº ÀÚµ¿ÀûÀ¸·Î TRUE·Î µÈ´Ù.
Ãâó :
http://blog.naver.com/hirokorea/20026330097
|