Home > Dataroom > News Letter
 
Download
News Letter
Site Link
XpertMon ???? 17?
2007/03/22 10:21 9506


?????. DB2 ? XpertMon ??? ???!
? ????????? DB ??????.
??? ??????? Range Clustered Table ? ??? ??? ???.
Range Clustered Table (RCT) ? V8.1.4?? ?? ?????, V8.2.2??? ????
????? ??? ? ?? ??? percent-free ??? ???????.
RCT ? ?? ???? ?? ??? ??? XpertMon? ?? -Report,Explain,Catalog- ?
???? ???? ???????.


Range Clustered Table
RCT ? ??
Range Clustered Table ? primary key? ???? ???? ??? ???? ??????,
??? ?? ???? ?? ??? ??? ? ??? ?? ??????.
??? primary key ? sequential ? ?? ?? ?? ?? ?????,
sequential ? ?? ?? ?? ??? ???? multi ????? ???.
?? OLTP ????? sequential ? ??? primary key? ?? ???? ???,
?? ?? RCT ??? ???? ???? ????.

RCT ? ??
RCT ? ???? ?? ????? I/O ? ?? ? ??, ??? ?? ???? ??
?? ? ???, ???? B+tree ???? ???? code path ? ???? ???
?? ??? ??? ? ????.
?? key value ? ??? ???? ??? ??(dense), ???? range???? ?? ??????.
V8.2 ??? pctfree ??? ?? ????? ????? ??? %? ??? ? ????.

RCT ??

?? ?? ???? ?????.
Syntax ? ????,
  1. ORGANIZE BY KEY SEQUENCE ( ??? STARTING FROM ? ENDING AT ?)
    • KEY ??? ??? ???? ????.
    • ?? ??? ???? ????.
      ????? 1? 1000000 ? ????, EMP_ID ? 1? 1000000 ??? ?? ???? ????.
      ??? ??? ??? ???? ??? ? ?? ??? ???? ???.
    • ??? ??? ???? RCT ? ????? ???? ? ????.
  2. ALLOW OVERFLOW
    • ??? ?? ?? ??? ?? ???? ?? ??? ? ?????.
      ALLOW? ?? ??, ?? ??? ?? Overflow Area ? ?????.
      Overflow Area ? ???? ???? ???, ??? ???? row? Access ???
      ?? ??? ???? ???, ??? ??? ?? ?? ?????.

?? ? Catalog ? ??? ?????.
RCT ? ???? ??? ? ?? ??? ?????.
? 1,000,000 * row? ?? ??? ??? ?????? ????.
  • CARD Unique ? Row ? ??? 0 ? ???? ??? ?????.
  • NPAGES ? ??? Row? ???? ???? ????.
    0 ??? Row? ???? ???? ??? ?????.
  • FPAGES ? ???? ??? ???? ????.
    23,814 ????? ???? ?????, ?? ???? ???? ???? ????.

??? ??? ? ?????.
INDEXTYPE? RCT ? Unique ???? ?????? ? ? ????.
Cluster ratio ? 100%???.

RCT ? ?? ???? ?? ?? ??
?? ???? ?? ??? ? ?? ???? ?? ?? ??? ??? ????? ?????.
??? ?? Report ??? ???? ????? ?????.

Report ???? SQL Report ? ???? OK ? ??? SQL ? ?? ??? ?????.

??? ?? ??? ???????.
  1. RCT ??? ??
    $ select first_name,last_name from xpertmon.emp
    where emp_id between 500000 and 600000
  2. ?? ??? ??
    $ select first_name,last_name from xpertmon.emp_normal
    where emp_id between 500000 and 600000

SQL ??? ?? SQL ? ?? ?? ???? ?? ??, View ?? SQL ????? ????
OK ? ????.

CPU ? ?? ??? ???? ??? ??????.
???? ???? ??? ???? 2??? RCT ?????.
???? ???? CPU ? ? ?? ?????, ?? Row? ?? ????.
?? Row? ?? ??? ??? ???? ?? ??? ???? Row ????.
???? ???? ?? ??? Row( Written Rows ) ?? ?? ?????,
???? ????? ???? List Prefetch? ???? Sort? ???? ?????.

RCT ? ?? ???? Explain ??
  • ?? ??? ?? ??
    Index ? Scan ?? I/O ??? ?? Sort? ???? list prefetch? ???? ? ? ????.
  • RCT ?? ??
    RCTMAP ? rct index? ????? ???? ?????.
    ???? ???? ?? ??????? ???? ? ? ????.


    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

¡ã XpertMon ???? 18? iteg 2007-03-22 10844
- XpertMon ???? 17? iteg 2007-03-22 9506
¡å XpertMon ???? 16? iteg 2007-03-22 10185
List Write Modify