Beruflich Dokumente
Kultur Dokumente
Unit 3
Copyright IBM Corporation 2008 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
5.1
Objectives
Identify the principal IMS access methods, their similarities and their differences Discuss the application requirements which dictate the choice of an access method
Specialized: z/OS-compatible
SHSAM: SHISAM: GSAM:
Fast Path:
DEDB:
Physical Storage (1 of 2)
HIERARCHIC SEQUENTIAL (HS): HSAM
INDEX
VSAM QSAM VSAM KSDS VSAM ESDS
HISAM
DATA
DATA
DATA
HIDAM / PHIDAM
INDEX
VSAM KSDS VSAM ESDS OR OSAM
DATA KEY
DATA
SEQUENTIAL: GSAM
VSAM ESDS OR BSAM
DATA
Copyright IBM Corporation 2008
Physical Storage (2 of 2)
Sequential - Segments are related by physical adjacency
A 1 A 2 B 11 B 1 B 12 C 21 C 11 C 22 C 12 D 21 C 31 D 22 D 11 D 21 D 12 D 22 D 13 D 23
A 3
B 31
C 31
C 32
C 33
C 34
C 35
C 36
C 37
A B C D
Copyright IBM Corporation 2008
HD Pointers
HDAM/ PHDAM
HIDAM/PHIDAM
DATA
COURSE C 1
COURSE C 2
CLASS L 11
CLASS L 21
L 22
INSTRUCT I 11 12 13
STUDENT S 11 12 13 14 15 16 17
INSTRUCT I 21 22
STUDENT S 21 22 23
24
25 26 27 28 29 30
C 1
L 11
I 11
I 12
I 13
S 11
S 12
S 13
S 14
S 15
S 16
S 17
C 2
L I I 21 21 22
S 21
S 22
S 23
S S S 24 25 26
S 27
S S 28 29
S L 30 22
...
C n
L n
I n
S n
S n
KSD S
ESDS
C 1
L 11
I 11
I 12
I 13
S 11
0 12
S 13
S 14
S 15
S 16
S 17
C 2
L 21
I 21
I 22
S 21
S 22
S 23
S 24
S 25
S 26
S 27
S 28
S 29
C n
L n
I n
S n
S n
S 30
L 22
HISAM Summary
Direct access to a database record is via a root key index built and maintained by VSAM
INDEX
C 1
L 11
I 11
I 12
I 13
S 11
C 1
L 11
I 11
I 12
I 13
S 11
C 1
L 11
I 11
I S 13 11
C 1
L 11
I 10
I 11
I 12
I 13
S 14
S 15
S 16
S 17
BIT MAP
RANDOMIZER
C 7 L I S S S 71 71 71 72 73
C 2
L I I S S S 21 21 22 21 22 23
S 24
S 25
HDAM/PHDAM Summary
Access to a database record is through a root segment via a randomizing module
ROOT KEY RANDOMIZER C 1
...
...
L 11
I 12
S 11
Uses: Primarily direct application processing requiring fast access to the root
C 1
L 11
I 12
S 11
Control Interval
BIT MAP
C1 KEY
C2 KEY
C 1
L I I I S S 11 11 12 13 11 12
S S 13 14
C 2
L I I S 21 21 22 21
S S S S 22 23 24 25
HIDAM/PHIDAM Summary
Direct access to a database record is via:
a root key index built and maintained by VSAM a direct pointer maintained by IMS
ROOT KEY INDEX C 1 ...
C 1
L 11
I 12
S 11
C A D
E
B
DS1
DS2
ILDS
Part 1
ILDS A B ILDS
Part 2
Copyright IBM Corporation 2008
Part 3
Self-Healing pointers
PHIDAM
3 minimum/ 12 maximum - 1 for data, 1 for indirect data set, 1 for primary index data set
Copyright IBM Corporation 2008
HALDB Characteristics
New Indirect Pointer Scheme
Indirect List Data Set (ILDS) Indirect List Entry (ILE)
Partition Selection
During DL/I call processing via a user defined High Key for each partition Via a user defined Partition Selection Exit and String Value
Migration Considerations
All logically related databases must be migrated concurrently Logical child segments cannot be initially loaded Secondary indexes must also be migrated Secondary index for partitioned database is created during initial load Partitioned database data sets are dynamically allocated without DFSMDA members Prefix Resolution and Prefix Update utility processing are not applicable Virtual pairing logical relationship is not supported Updates in the ILDS are not logged DBRC registration is required
Hierarchic Summary
Which IMS access method ? Identify the type of processing for each database
Direct Sequential Both
The "volatility" of the data The "variability" of the database record length
GSAM
COURSE C n
ESDS / BSAM
CLASS C n
RECORD 1
RECORD 2
INSTRUCT I n
STUDENT S n n n
RECORD 2 CONT
REC 3
REC
ORD 4
...
IMS Buffer Pool Analyzer HALDB Conversion and Maintenance Aid IMS Database Repair Facility IMS DEDB Fast Recovery IMS Database Recovery Facility
follow-on product to ORS
IMS Database Control Suite High Performance Unload High Performance Load IMS Index Builder IMS High Performance Prefix Resolution IMS Parallel Reorganization IMS Image Copy Extensions IMS High Performance Change Accumulation High Performance Pointer Checker
HD Pointer Checker HD Tuning Aid DB Segment Restructure Space Monitor DB Historical Data Analyzer DBD/PSB/ACB Compare DBD/PSB/ACB Mapper DBD/PSB/ACB Reversal Advanced ACB Generator
Unit Summary
The similarities and differences in the principal types of IMS access methods were identified. The general application requirements which dictate the choice of access methods were learned.
Sequential Direct or Mixed Non-Hierarchic - HSAM and HISAM - HDAM/PHDAM and HIDAM/PHIDAM - GSAM