CA IDMS r17.0 Indexing Enhancements January 22, 2009 Dick Weiland Greg Beedy
Mar 26, 2015
CA IDMS r17.0Indexing Enhancements
January 22, 2009
Dick Weiland
Greg Beedy
Abstract
> This presentation will discuss the enhancements made to the PRINT INDEX and TUNE INDEX utility statements for CA IDMS Release 17.0. The material will cover the new functionality of these utilities, how they impact index usage, and environmental considerations related to their execution.
2 January 22, 2009. Copyright © 2009 CA, Inc. All rights reserved.
Topics
> Benefits of Release 17.0 indexing enhancements
> PRINT INDEX
> TUNE INDEX
> Summary
3 January 22, 2009. Copyright © 2009 CA, Inc. All rights reserved.
Benefits of Release 17.0 Indexing Enhancements
> Ability to obtain performance related statistics on a per index basis
Provides the DBA with the information needed to proactively tune their environment
> Cleans up orphans within intermediate level SR8 records Reduces processing overhead within the index
> Non-orphan related tuning of an index can be performed while the index is online
Gives the DBA greater flexibility over when index structures are tuned
Reduces database downtime
5 January 22, 2009. Copyright © 2009 CA, Inc. All rights reserved.
PRINT INDEX
> PRINT INDEX may still be run using either the batch command facility (IDMSBCF) or the online command facility (OCF)
> The PRINT INDEX utility has been expanded to include reports describing the performance characteristics of an index structure
> The new reports are invoked using the new SUMMARY parameter of the PRINT INDEX utility statement
6
PRINT INDEX REC6-INDEX1 SEGMENT ISPDSMALUSING ISPDSUB SUMMARY;
January 22, 2009. Copyright © 2009 CA, Inc. All rights reserved.
PRINT INDEX
> The SUMMARY parameter produces a report summarizing the target index
> The summary report consists of 3 parts– Part 1 (header) provides general information on the index definition
– Part 2 (main body) provides information on index owner occurrence(s)
– Part 3 (index overview) provides global statistical information for a user-owned index only
> A summary report on a system-owned index consists of parts 1 and 2 (the ONLY/DETAILED options are ignored)
> A summary report for a user-owned index consists of parts 1 and 3 if ONLY (the default) has been specified
> Specifying DETAILED for a user-owned index causes the summary report to contain parts 1, 2, and 3
7 January 22, 2009. Copyright © 2009 CA, Inc. All rights reserved.
PRINT INDEX
> Summary report part 1 PRINT INDEX REC6-INDEX1 SEGMENT ISPDSMAL USING ISPDSUB SUMMARY;SET Name: REC6-INDEX1 IBC 10 Displacement 10 Sort option SORTED SYM DSC Key length 10 Duplicates DBKey Compression NoOWNER: SR7 AREA ISPDSMAL.INDEX-AREA2 Low Page (SUB- 310497 Page size 4276 High page AREA) 310550MEMBER: ISP-RECORD6 Set membership Mandatory Automatic Located VIA index Yes Displ‘t 0Index is Linked AREA ISPDSMAL.AREA-2 Low page 310101 Page size 4276 High page 310200
8 January 22, 2009. Copyright © 2009 CA, Inc. All rights reserved.
PRINT INDEX
> Summary report part 2
9
OWNER X'04BD0401' on page 310532 Top level SR8 on page 310532 utilization 80.0%Intermediate Level Nr of SR8s 77 37 Minimum Nr of pages with SR8s 6 3 Minimum Nr of displaced SR8s 0 0.0% Nr of entries in use 545 70.7% Nr of Orphans 23 22.5% Total size of all SR8s 21252Bottom Level Nr of SR8s 469 312 Minimum Nr of pages with SR8s 14 11 Minimum Nr of displaced SR8s 0 0.0% Nr of entries in use 3111 66.3% Nr of Orphans 540 17.3% Total size of all SR8s 50348
January 22, 2009. Copyright © 2009 CA, Inc. All rights reserved.
PRINT INDEX
> Summary report part 2 (continued)Index occurrence totals Nr of members 3111 Nr of levels 4 4 Minimum Size of largest SR8 276 Nr of SR8s 546 349 Minimum Nr of pages with SR8s 20 14 Minimum Nr of displaced 0 0.0% Nr of entries in use 3656 66.9% Nr of Orphans 663 18.1% Total size of all SR8s 71600 Nr of Buffers versus Estimated IOs for Sequential Bottom Level access------------- ------------- 1 212 2 112 3 81 4 54 5 43
10 January 22, 2009. Copyright © 2009 CA, Inc. All rights reserved.
PRINT INDEX
> Summary report part 1 (user-owned index)
11
PRINT INDEX REC1-REC3 SEGMENT ISPDSMAL USING ISPDSUB SUMMARY;SET Name: REC1-REC3 IBC 8 Displacement 0 Sort option SORTED SYM ASC Key length 14 Duplicates not allowed Compression NoOWNER: ISP-RECORD1 AREA ISPDSMAL.AREA-1 Low page 310001 Page size 4276 High page 310100MEMBER: ISP-RECORD3 Set membership Mandatory Automatic Located VIA index No Index is Linked AREA ISPDSMAL.AREA-2 Low page 310101 Page size 4276 High page 310200
January 22, 2009. Copyright © 2009 CA, Inc. All rights reserved.
PRINT INDEX
> Summary report part 3Index overview Nr of owner occurrences 250 Nr of empty owners 5 2.0% Nr of displaced top level SR8s 176 70.4% Nr of SR8s: Total 247 Average 0.9 Highest 3 Owner X'04BAF803' Min. nr of SR8s: Total 245 Average 0.9 Highest 1 Owner X'04BAF201' Nr of levels: Average 0.9 Highest 2 Owner X'04BAF803' Min. nr of levels: Average 0.9 Highest 1 Owner X'04BAF201' Nr of pages: Average 0.9 Highest 3 Owner X'04BAF803' Min. nr of pages: Average 0.9 Highest 1 Owner X'04BAF803’ Nr of occurrences with orphans 1Nr of Orphans: Total 3 0.3% Highest 3 Owner X'04BAF803' Total size of all SR8s 31232 Size of largest SR8 232
12 January 22, 2009. Copyright © 2009 CA, Inc. All rights reserved.
PRINT INDEX
> Summary report 3 (continued)Distribution of Index Levels ....+....20...+....40...+....60...+....80...+.... 3+ | 0 0.0% 2 |- 1 0.4% 1 |************************************************+ 244 97.6% 0 |* 5 2.0% Distribution of Minimum Index Levels ....+....20...+....40...+....60...+....80...+.... 2+ | 0 0.0% 1 |************************************************* 245 98.0% 0 |* 5 2.0% Distribution of Number of SR8s ....+....20...+....40...+....60...+....80...+.... 4+ | 0 0.0% 3 |- 1 0.4% 2 | 0 0.0% 1 |************************************************+ 44 97.6% 0 |* 5 2.0% Distribution of Number of Index Members ....+....20...+....40...+....60...+....80...+.... 6+ | 0 0.0% 5 |***+ 18 7.2% 4 |*****************+ 88 35.2% 3 |********************- 101 40.4% 2 |**+ 13 5.2% 1 |***** 25 10.0% 0 |* 5 2.0%
January 22, 2009. Copyright © 2009 CA, Inc. All rights reserved. 13
TUNE INDEX
> Adopts orphans at all levels of the index structure
> Moves the top level SR8 to its optimal location
> Optionally rebalances the index structure
> Optionally resequences the index structure
14 January 22, 2009. Copyright © 2009 CA, Inc. All rights reserved.
TUNE INDEX
FER
RO
SR8 C
CARR FERRO WEST
WES
T
INNIS
CA
RR
SR8 A
INN
IS
SR8 B
FER
RO
WES
T
OWNEROrphan Adoption
15 January 22, 2009. Copyright © 2009 CA, Inc. All rights reserved.
TUNE INDEX
FER
RO
SR8 C
CARR FERRO WEST
WES
T
INNIS
CA
RR
SR8 A
INN
IS
SR8 B
FER
RO
WES
T
OWNEROrphan Adoption
16 January 22, 2009. Copyright © 2009 CA, Inc. All rights reserved.
TUNE INDEX
SR8 H
STU
AR
T
INN
IS
WES
T
OWNER
SR8 A
INN
IS
FER
RO
SR8 B
CA
RR
WES
T
SR8 C
NES
LO
N
ADAMS
ADAMS
CARR DAVIS
EAST
FERRO
SR8 D SR8 E SR8 F SR8 G
STUART UPTONGREY
HALL
INNIS JONES
LONG
NELSON
STU
AR
T
UPTO
N
WE
ST
LON
G
JON
ES
NE
SLO
N
HA
LL
INN
IS
GR
EY
FER
RO
DA
VIS
EA
ST
AD
AM
S1
CA
RR
AD
AM
S1
SR8 DB-KEY
POINTERS
ACCESS VIA
SR8 PREFIX
WEST
SR8 I
OWNERTop Level SR8
Relocation
17 January 22, 2009. Copyright © 2009 CA, Inc. All rights reserved.
TUNE INDEX
SR8 H
STU
AR
T
OWNER
SR8 A
INN
IS
FER
RO
SR8 B
CA
RR
WES
T
SR8 C
NES
LO
N
CARR FERRO
SR8 D SR8 E SR8 F SR8 G
STUART UPTONGREY
HALL
INNIS JONES
LONG
NELSON
STU
AR
T
UPTO
N
WE
ST
LON
G
JON
ES
NE
SLO
N
HA
LL
INN
IS
GR
EY
FER
RO
CA
RR
SR8 DB-KEY
POINTERS
ACCESS VIA
SR8 PREFIX
WEST
SR8 I
OWNERRebalance
18 January 22, 2009. Copyright © 2009 CA, Inc. All rights reserved.
TUNE INDEX
WES
T
OWNER
SR8 A
JON
ES
SR8 B
GR
EY
SR8 C
STU
AR
T
CARR
FERRO
SR8 D SR8 E SR8 F
UPTONGREY
STU
AR
T
UPTO
N
WE
ST
LON
G
JON
ES
NE
SLO
N
HA
LL
INN
IS
GR
EY
CA
RR
SR8 DB-KEY
POINTERS
ACCESS VIA
SR8 PREFIX
WEST
OWNERRebalance
19 January 22, 2009. Copyright © 2009 CA, Inc. All rights reserved.
FER
RO
SR8 G
HALL
INNIS
JONES LONG
NELSON
STUART
TUNE INDEX
> When executing a REBALANCE run the TUNE INDEX utility provides syntax to use a reduced IBC and a PAGE RESERVE without requiring a special schema and subschema.
TUNE INDEX FOR DBNAME EMPDEMO SUBSCHEMA EMPSS1 SET (EMP-NAME-NDX) REBALANCE YES RESEQUENCE YES TEMPORARY INDEX UTILIZATION IS 8 % TEMPORARY PAGE RESERVE IS 15 ;
20 January 22, 2009. Copyright © 2009 CA, Inc. All rights reserved.
TUNE INDEX
SR8 H
STU
AR
T
OWNER
SR8 A
INN
IS
FER
RO
SR8 B
CA
RR
WES
T
SR8 C
NES
LO
N
ADAMS
ADAMS
CARR DAVIS
EAST
FERRO
SR8 D SR8 E SR8 F SR8 G
STUART UPTONGREY
HALL
INNIS JONES
LONG
NELSON
STU
AR
T
UPTO
N
WE
ST
LON
G
JON
ES
NE
SLO
N
HA
LL
INN
IS
GR
EY
FER
RO
DA
VIS
EA
ST
AD
AM
S1
CA
RR
AD
AM
S1
SR8 DB-KEY
POINTERS
ACCESS VIA
SR8 PREFIX
WEST
SR8 I
OWNERRESEQUENCE
21 January 22, 2009. Copyright © 2009 CA, Inc. All rights reserved.
TUNE INDEX
> Summary report for an index prior to a RESEQUENCE run
Nr of Buffers versus Estimated IOs for Sequential Bottom Level access------------- ------------- 1 212 2 112 3 81 4 54 5 43 6 34 7 27 8 18 9 16 10 15 11 - 20 14
22 January 22, 2009. Copyright © 2009 CA, Inc. All rights reserved.
TUNE INDEX
> Summary report for the same index following a RESEQUENCE run
Nr of Buffers versus Estimated IOs for Sequential Bottom Level access------------- ------------- 1 - 20 14
23 January 22, 2009. Copyright © 2009 CA, Inc. All rights reserved.
TUNE INDEX
> TUNE INDEX can be run as a batch local job, batch CV job, or internally to the CV (OCF)
> When tuning is run by a CV, TUNE INDEX tries to minimize its impact on other tasks as follows
For record lock conflicts, TUNE INDEX will commit any uncommitted work
For area lock conflicts, TUNE INDEX will finish its DB session and start a new session
TUNE INDEX will lower its CV dispatching priority by one from the priority that would be normally assigned so that it will have a higher probability of being the task aborted should a deadlock occur
– TUNE INDEX can recover from a deadlock by restarting the tuning process of the current index occurrence
24 January 22, 2009. Copyright © 2009 CA, Inc. All rights reserved.
SUMMARY
> Benefits provided by Release 17.0 changes to the PRINT INDEX and TUNE INDEX utilities
Index specific performance reports give the DBA the information needed to proactively tune his database
Cleanup of orphans in an index’s intermediate SR8 records reduces processing overhead
The ability to tune indexes while the database is online gives the DBA more flexibility when tuning operations are required and reduces database downtime
25 January 22, 2009. Copyright © 2009 CA, Inc. All rights reserved.
BT’s Beta Testing : Tune Index
Before CA IDMS r17
Disp Top SR8s 39,430 0
# SR8s 1,884,700 1,862,859
# Levels 5 4
# Orphans 3452 0
26 January 22, 2009. Copyright © 2009 CA, Inc. All rights reserved.
For More Information
> ca.com/support Download Center
– Product: installation files
– Documentation/manuals
CA IDMS support home page
CA IDMS roadmap, recorded webcasts, tech documents, …
> ca.com/idms CA IDMS r17 Product Brief, success stories, press releases,
analyst reports, event announcements, …
27
Upcoming Webcasts
>February 12, 2009 11 AM ET The zIIP Advantage for CA IDMS Web Services
>February 24, 2009 11 AM ET CA Endevor/DB for CA IDMS Overview
28
Questions & Answers
Thank you