°£´ÜÇÏ°Ô Statspack Install ¹æ¹ý¿¡ ´ëÇؼ ¸»¾¸µå¸®°Ú½À´Ï´Ù.
1. timed_statistics °ªÀÌ TRUE·Î ¼³Á¤µÇ¾î ÀÖ¾î¾ß ÇÔ.
$ sqlplus '/as sysdba'
SQL> show parameter timed_statistics È®ÀÎÈÄ °ª º¯°æ
2. spcreate.sqlÀ» ½ÇÇàÇÏ¿© Statspack Install
SQL> @?/rdbms/admin/spcreate À» ¼öÇàÇϸé (8i ±âÁØ)
Default tablespace : tools ÀÔ·Â
Default Temporary table : temp ÀÔ·Â
Creating Package STATSPACK...
Package created.
No errors.
Creating Package Body STATSPACK...
No errors.
NOTE:
SPCPKG complete. Please check spcpkg.lis for any errors.
==> 8.1.7.4 ¹öÁ¯ºÎÅÍ´Â PERFSTAT ¾ÏÈ£¸¦ ¼³Ä¡½Ã ÀÔ·ÂÇØÁà¾ß ÇÏÁö¸¸ ±× ÀÌÀü¹öÁ¯À̶ó¸é PERFSTAT¶õ ±âº»¾ÏÈ£¸¦ °¡Áö°í »ý¼ºµÈ´Ù.
3. STATSPACK Test
oracle:/oracle/ora817/kovait_statspack> sqlplus perfstat/perfstat
SQL*Plus: Release 8.1.7.0.0 - Production on Thu Nov 24 17:31:06 2005
(c) Copyright 2000 Oracle Corporation. All rights reserved.
Connected to:
Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
With the Partitioning option
JServer Release 8.1.7.0.0 - Production
PERFSTAT> execute statspack.snap
PL/SQL procedure successfully completed.
PERFSTAT> execute statspack.snap
PL/SQL procedure successfully completed.
4. spreport¸¦ ¼öÇàÇÏ¿© Report º¸±â
PERFSTAT> @?/rdbms/admin/spreport
DB Id DB Name Inst Num Instance
----------- ------------ -------- ------------
2467847496 KOVAIT8 1 KOVAIT8
Completed Snapshots
Snap Snap
Instance DB Name Id Snap Started Level Comment
------------ ------------ ----- ----------------- ----- ----------------------
KOVAIT8 KOVAIT8 1 24 Nov 2005 17:31 5
2 24 Nov 2005 17:32 5
Specify the Begin and End Snapshot Ids
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Enter value for begin_snap: 1
Begin Snapshot Id specified: 1
Enter value for end_snap: 2
End Snapshot Id specified: 2
==> ÀÌ·¸°Ô ÀÔ·ÂÇÏ½Ã¸é ±âº»ÀûÀ¸·Î SP_1_2.lst ¶ó°í »ý¼ºµÉ °ÍÀÔ´Ï´Ù. Report¸íÀ» ÁÖ½Ã´Â°Ô ÁÁ°ÚÁÒ?
Enter value for report_name: kovait_statspack_1-2
|