패키지 캐시 정보 및 db2advis를 사용하여 성능 향상 기회 확인
디자인 어드바이저에서는 SQL문을 분석하여 데이터베이스 성능을 향상시키는 방법에 대한
권장사항을 작성할 수 있습니다. 패키지 캐시의 명령문(패키지 캐시
이벤트 모니터에서 캡처된 명령문 포함)을 디자인 어드바이저에 대한 입력으로 사용하여 지정된 워크로드 또는 두 특정 시점 간에 실행된 모든
명령문에 대한 성능을 향상시키기 위해 변경할 수 있는 내용을 식별합니다.
시작하기 전에
- CREATE EVENT MONITOR문은 이벤트 모니터에 의해 생성된 형식화되지 않은 이벤트(UE) 테이블을 저장하기 위해 페이지 크기가 8K 이상인 테이블스페이스가 필요합니다. 테이블스페이스의 이름이 CREATE EVENT MONITOR문에 명시적으로 지정되지 않은 경우, 데이터베이스의 기본 테이블스페이스가 사용됩니다.
- 디자인 어드바이저에 필요한 Explain 테이블이 작성되어 있어야 합니다.
이 타스크에 대한 정보
제한
프로시저
결과
execution started at timestamp 2010-03-16-14.25.57.562000
Using the default table space name USERSPACE1
found [47] SQL statements from the input file
excluding statement [0] from the workload.
excluding statement [1] from the workload.
excluding statement [19] from the workload.
excluding statement [39] from the workload.
Recommending indexes...
Recommending MQTs...
Recommending Multi-Dimensional Clusterings...
Found 19 user defined views in the catalog table
Found [17] candidate MQTs
Getting cost of workload with MQTs
total disk space needed for initial set [ 0.159] MB
total disk space constrained to [ 69.215] MB
2 indexes in current solution
0 MQTs in current solution
total disk space needed for initial set [ 0.024] MB
total disk space constrained to [ 103.822] MB
No useful Multi-dimensional Clustering dimensions for this workload
[5651.8281] timerons (without recommendations)
[5519.8281] timerons (with current solution)
[2.34%] improvement
--
--
-- LIST OF MODIFIED CREATE-TABLE STATEMENTS WITH RECOMMENDED PARTITIONING KEYS AND TABLESPACES AND/OR RECOMMENDED MULTI-DIMENSIONAL CLUSTERINGS
-- ===========================
-- No new partitioning keys or tablespaces are recommended for this workload.
--
--
-- LIST OF RECOMMENDED MQTs
-- ===========================
--
--
-- RECOMMENDED EXISTING MQTs
-- ===========================
--
--
-- UNUSED EXISTING MQTs
-- ============================
-- DROP TABLE "ASRISK "."ADEFUSR";
--
--
-- RECOMMENDED CLUSTERING INDEXES
-- ============================
--
--
-- LIST OF RECOMMENDED INDEXES
-- ===========================
-- index[1], 0.024MB
CREATE INDEX "ASRISK "."IDX003161830530000" ON "ASRISK "."SYSINDEXES"
("CREATOR" ASC, "NAME" ASC, "TBCREATOR" ASC, "TBNAME"
ASC) ALLOW REVERSE SCANS COLLECT SAMPLED DETAILED STATISTICS;
COMMIT WORK ;
--
--
-- RECOMMENDED EXISTING INDEXES
-- ============================
-- RUNSTATS ON TABLE "SYSTOOLS"."POLICY" FOR SAMPLED DETAILED INDEX "SYSTOOLS"."POLICY_UNQ" ;
-- COMMIT WORK ;
-- RUNSTATS ON TABLE "SYSTOOLS"."HMON_ATM_INFO" FOR SAMPLED DETAILED INDEX "SYSTOOLS"."ATM_UNIQ" ;
-- COMMIT WORK ;
-- RUNSTATS ON TABLE "SYSIBM "."SYSDATAPARTITIONS" FOR SAMPLED DETAILED INDEX "SYSIBM "."INDDATAPARTITIONS03" ;
-- COMMIT WORK ;
-- RUNSTATS ON TABLE "SYSIBM "."SYSTABLES" FOR SAMPLED DETAILED INDEX "SYSIBM "."INDTABLES01" ;
-- COMMIT WORK ;
-- RUNSTATS ON TABLE "SYSIBM "."SYSTABLESPACES" FOR SAMPLED DETAILED INDEX "SYSIBM "."INDTABLESPACES04" ;
-- COMMIT WORK ;
-- RUNSTATS ON TABLE "SYSIBM "."SYSCOLUMNS" FOR SAMPLED DETAILED INDEX "SYSIBM "."INDCOLUMNS01" ;
-- COMMIT WORK ;
-- RUNSTATS ON TABLE "SYSIBM "."SYSINDEXES" FOR SAMPLED DETAILED INDEX "SYSIBM "."INDINDEXES02" ;
-- COMMIT WORK ;
-- RUNSTATS ON TABLE "SYSIBM "."SYSTRIGGERS" FOR SAMPLED DETAILED INDEX "SYSIBM "."INDTRIGGERS02" ;
-- COMMIT WORK ;
--
--
-- UNUSED EXISTING INDEXES
-- ============================
-- DROP INDEX "ASRISK "."PKGCACHE_EVENT_IND1";
-- ===========================
--
-- ====ADVISOR DETAILED XML OUTPUT=============
-- ==(Benefits do not include clustering recommendations)==
⋮참고 : 디자인 어드바이저의 출력 결과는 표시를 위해 일부가 잘려 있습니다.