<-- ?? //-->
?????. DB2 ? XpertMon ??? ???!
? ????????? DB ??????.
?? XpertMon for DB2 UDB V2.0 ? ??????????(TTA) ??? 2005.07.28?
GS(Good Software) ??? ???????.
GS(Good Software) ????? ?? ????? ??????(????? ?? ?2000-81,
2000.10.31 ??) ? ???? ?? ???, ????????????? ?10? ?3??
??? ?? ????? ???? ?? ???? ?????.
?? GS ????? ??? ???? XpertMon ??? ?? ??? ???????.
??? ???? ?? ???? ???? ??? ??? ??? ? ?? ????
?????? ????? ???????. ???? ??? ?? ??????.
??? ????? V8?? ??? ??? Informational Constraint ? ??? ????? ?????.
Informational Constraints
DB2 ? V2 ??? constraint(????)? ?????, V6??? optimizer ??
constraint? ??? ??? ???? ?? ????? ??? rewrite ? ? ??? ?????.
??? ??? ???????, constraint ? ??? ??, INSERT/UPDATE/DELETE ???
constraint ??? ?????, overhead ? ?????.
??? V8??? ??? ??? constraint ??? ???????.
informational constraints ?? ?? INSERT/UPDATE/DELETE ?? ??? constraint?
???? ???? overhead ? ??, optimizer ??? constraint ? ????? ????,
??? query ? ????? rewrite ?? ?? ??? ?? ? ?? ?????.
?? ????? ? ? ?? ???, ENFORCED ? QUERY OPTIMIZATION ??? ????
constraint ? optimizer ? ??? ??? ? ???, ALTER ??? ?????.
| ENFORCED | NOT ENFORCED |
ENABLE QUERY OPTIMIZATION | V6, V7? ?? | V8?? ?? |
DISABLE QUERY OPTIMIZATION | V6 ??? ?? | V8?? ?? |
Informational Constraints ??? ?
- NOT ENFORCED : ?? ??(ex) Sex, salary) ? ??? ??? ???? ????.
- ENABLE QUERY OPTIMIZATION : DB2 optimizer ? SQL ? ???? ? informational constraints ? ?????.
INSERT ??
NOT ENFORCED ??? ?????, (5,’Q’,34444) ? SEXOK ?? constraint ???
?????, (6,’K’,132333) ? SALARYOK ?? constraint ??? ??????,
???? ????? ?????.
SELECT ??
?? ??? ??? ???? ???? ???? ???? ?? ?????.
???? DB2 optimizer ? ??? SEX ??? ‘M’?? ‘F’ ??? ??? ????
?? ?? ???, ENABLE QUERY OPTIMIZATION ? informational constraint? ????
??? rewrite ??? ?????.
?? Rewrite ?? ??
XpertMon ? Explain ??? ???? Rewrite ? ??? ??? ? ????.
?? ?? ?? ??? ???? ?? ??? Rewrite ?? ? ? ????.
DISABLE QUERY OPTIMIZATION ??
?? ?? informational constraint ? optimizer ?? ???? ??? ??? ?
??? ???? ??? ?? ?????.
??
?? ?? ??? Informational Constraints ? ???? ?? ?????
?? ?? ????? Application? ???? ??? ? ?? ????.
? Application?INSERT??? UPDATE?? ???? constraint ??? ??? ??? ?
???, DB2 ? ???? ??? ?? ????, optimizer? ?? ???? ? ? ????,
? ? ?? ???? ??? ??? ? ????.
?? ????? ??? ????? ??? ? ????.
?? ???? ??? ?? ???? ??? STAR Schema? ?????.
Start Schema ? ??? ?? ??? ????.
- Dimension ???? ??? ???? ??? ?? ??? Fact ??? ??
- Fact ???? ?? ???? ??????? ?? ??? ??? ??
- Dimension ???? primary key? Fact ???? Foreign key? ??
Fact ???? Dimension ???? RI ? ???? ????, ???? ??? ?,
RI? ???? ?? ??? ?? ???? ???.
??, INSERT ?? ?? ????? ?? ? ?? ???, RI ??? ?? ?????,
Optimizer? ?? ???? ??? ? ?? ??? SELECT? ????? ??? ? ?? ???.
XpertMon for DB2 UDB V2
DB ???
Tel : 02-2108-1458
Fax : 02-2108-1459
Mobile : 011-896-6545
E-mail :
hjlee@iteg.co.kr
URL :
http://iteg.co.kr