DB2 Administration
DB2 Administration
DB2 Administration
Solution Pack for z/OS
Streamlining DB2 for z/OS Database Administration
Paolo Bruni
Tom Crocker
Elaine Morelli
Richard Schaufuss
[Link]/redbooks
International Technical Support Organization
August 2013
SG24-8148-00
Note: Before using this information and the product it supports, read the information in “Notices” on
page xvii.
This edition applies to Version 1.1 of IBM DB2 Administration Solution Pack for z/OS (program number
5697-DAM).
Figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii
Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii
Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv
Notices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvii
Trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xviii
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xix
Authors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xix
Now you can become a published author, too! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xx
Comments welcome. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xx
Stay connected to IBM Redbooks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxi
Chapter 10. The environment for the change management scenario . . . . . . . . . . . . 161
10.1 Database environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
Chapter 11. Using DB2 Administration Tool and DB2 Object Comparison Tool. . . . 169
11.1 Sample change request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
11.2 Change scenario 1: Alter BC_PROJ Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
11.2.1 Alter (AL or ALT) the BC_PROJ table. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
11.2.2 Propagate the change. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
11.3 Change scenario 2: ALT Tables and change propagation delta change . . . . . . . . . 179
11.3.1 Alter (ALT) the BC_EMPLOYEE and BC_DEPARTMENT tables. . . . . . . . . . . 179
11.3.2 Propagate the change by generating or importing a delta change file . . . . . . . 198
11.4 Change Scenario 3: Recover a change . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231
iv DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Chapter 12. Using Optim Configuration Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
12.1 Usage cases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240
12.2 Defining location alias . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240
12.3 Server configuration changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
12.3.1 Making changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
12.3.2 Identifying changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 245
12.4 Client configuration information and changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249
12.4.1 Displaying client information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249
12.4.2 Identifying client changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253
12.4.3 Automatically scheduling client comparisons . . . . . . . . . . . . . . . . . . . . . . . . . . 256
12.4.4 Managed Clients and WebSphere Application Server . . . . . . . . . . . . . . . . . . . 261
12.5 Managing applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263
12.5.1 Configuring Application Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263
12.5.2 Configuring Driver Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266
12.5.3 Configuring WebSphere connection pool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267
12.5.4 Redirecting Managed Clients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268
12.5.5 Activating the rule set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269
12.6 Monitoring changes from the DB2 Administration Tool and the DB2 Object
Comparison Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281
Contents v
vi DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Figures
viii DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
6-1 DB2 Launchpad with DB2 Table Editor added . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
6-2 Example of the EDIT line command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
6-3 DB2 Table Editor column selection panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
7-1 Optim Configuration Manager overview of features . . . . . . . . . . . . . . . . . . . . . . . . . . 110
7-2 Understanding your environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
7-3 Optim Configuration Manager architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
7-4 Defining Optim Configuration Manager jobs: Collection Definition . . . . . . . . . . . . . . . 113
7-5 Defining Optim Configuration Manager jobs: Including and Excluding Objects . . . . . 113
7-6 Defining Optim Configuration Manager jobs: Schedule definition. . . . . . . . . . . . . . . . 114
7-7 Defining Optim Configuration Manager jobs: Chaining . . . . . . . . . . . . . . . . . . . . . . . . 114
7-8 Defining Optim Configuration Manager jobs: Job Notification. . . . . . . . . . . . . . . . . . . 115
7-9 DSNZPARMs comparison report summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
7-10 DSNZPARMs comparison detail report. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
7-11 DB2 Object Columns change reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
7-12 Optim Configuration Manager integration with DB2 tools . . . . . . . . . . . . . . . . . . . . . 120
7-13 Optim Configuration Manager client comparison: Same client . . . . . . . . . . . . . . . . . 121
7-14 Optim Configuration Manager client comparison: Different clients . . . . . . . . . . . . . . 122
7-15 Comparing source to target . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
7-16 Building Client Inventory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
7-17 Redirecting applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
7-18 Isolating errant applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
7-19 Enforcing WLM service class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
7-20 Setting special registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
7-21 Throttling connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
8-1 CM - Manage ID Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
8-2 EDIT line command: Editing DB2 tables from DB2 Administration Tool . . . . . . . . . . . 136
8-3 Optim Configuration Manager DB2 Administration Tool Explorer. . . . . . . . . . . . . . . . 138
9-1 Alter Objects Panel (ADB27CA): Accumulation of changes . . . . . . . . . . . . . . . . . . . . 145
9-2 Build Analyze and Apply Job panel (ADBPALT): Non-managed changes . . . . . . . . . 146
9-3 Change Management Prompt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
9-4 CM Batch GOCCM2 Parameters: Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
9-5 CM Batch GOCCM2 ADBTEP2 parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
9-6 ADBTEP2 parameters on the Batch Job Utility Parameters panel (ADB2UPA) . . . . . 151
9-7 CM Batch Base GOCCM2 Base Version options . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
9-8 CM Batch GOCCM2: Additional parameter options . . . . . . . . . . . . . . . . . . . . . . . . . . 152
9-9 CM Batch GOCCM2 - Ignore, Job Card, and Masking options. . . . . . . . . . . . . . . . . . 153
9-10 CM Batch GOCCM2: New names, PDS for JCL / WSL, Recover Change. . . . . . . . 154
9-11 CM Batch GOCCM2: Report options, Run utility options.... . . . . . . . . . . . . . . . . . . . 155
9-12 CM Batch GOCCM2: Utility Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
10-1 Environment schematic for change management scenario . . . . . . . . . . . . . . . . . . . 162
10-2 Databases panel (ADB210) list of DB2 databases used for change management
scenario . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
10-3 Database structures panel (ADB21DS) output: DS Display Structure line command
(Part 1 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
10-4 Database structures panel (ADB21DS) output: DS Display Structure line command
(Part 2 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
10-5 Tables, Views, and Aliases panel (ADB31T): Tables list in BCD076DA database . . 165
10-6 Tables, Views, and Aliases panel (ADB21T): Tables list in BCD076DA. . . . . . . . . . 166
10-7 Details for objects panel (ADBPD): Output of the DET command . . . . . . . . . . . . . . 167
10-8 Details for objects panel (ADBPD): Collapsed output of the DET command . . . . . . 168
11-1 Databases panel (ADB21D): List of databases for sample scenario environment . . 171
11-2 Tables, Views, and Aliases panel (ADB21T): List of tables for sample scenario . . . 171
11-3 Tables, Views, and Aliases panel (ADB21T) with AL line command . . . . . . . . . . . . 172
Figures ix
11-4 Alter Table panel (ADB21TA): Specify an S to select column . . . . . . . . . . . . . . . . . 173
11-5 Alter Table panel (ADB21TAB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174
11-6 CM Register Change panel (ADB2CMRG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175
11-7 Register Change panel (ADB2CMRG): Change BCCHG01-DA BC_PROJ . . . . . . . 175
11-8 Completed Change: Alter Table panel (ADB21TAB) . . . . . . . . . . . . . . . . . . . . . . . . 176
11-9 Alter Table panel (ADB21TAB): CMM command . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
11-10 Change Management panel (ADB2C) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
11-11 CM Manage Changes panel (ADB2C1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178
11-12 Registered Changes panel (ADB2C11): FAST change . . . . . . . . . . . . . . . . . . . . . 178
11-13 ALTER Table panel (ADB27C): Changes to BC_EMPLOYEE . . . . . . . . . . . . . . . . 180
11-14 Alter Objects panel (ADB27CA) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
11-15 ALTER Choose Related Objects panel (ADBP7OBJ). . . . . . . . . . . . . . . . . . . . . . . 182
11-16 Alter Objects panel (ADB27CA): Issue the REL command. . . . . . . . . . . . . . . . . . . 182
11-17 ALT Related Objects Panel (ADBP7REL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183
11-18 ALT Related Objects panel (ADBP7REL) with objects added message. . . . . . . . . 184
11-19 Alter Objects panel (ADB27CA) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185
11-20 Alter Objects panel (ADB27CA): Using the ADD Command. . . . . . . . . . . . . . . . . . 186
11-21 ALTER Add Options panel (ADBP7AD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
11-22 ALTER Table panel ADB27C: DEPT_NAME from 22 bytes to 30 bytes . . . . . . . . 187
11-23 Alter Objects panel (ADB27CA) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188
11-24 CM Register Options panel (ADB2CR0): BCCHG02-DA Register Change . . . . . . 189
11-25 Tables, Views, and Aliases panel (ADB21T): Register Successful. . . . . . . . . . . . . 189
11-26 CM - Changes panel (ADB2C11): AN - Analyze a registered change . . . . . . . . . . 190
11-27 Generate Analyze Job: Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193
11-28 CM Changes panel (ADB2C11): Status = ANALYZED. . . . . . . . . . . . . . . . . . . . . . 194
11-29 CM Changes panel (ADB2C11): Running a change. . . . . . . . . . . . . . . . . . . . . . . . 196
11-30 CM Run a Change panel (ADB2CEX1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196
11-31 CM - Specify Base Version Options panel (ADB2CEX3) . . . . . . . . . . . . . . . . . . . . 197
11-32 CM Changes panel ADB2C11: Completed change . . . . . . . . . . . . . . . . . . . . . . . . 197
11-33 CM - Version Scopes panel (ADB2C42): (CMM;4;2) . . . . . . . . . . . . . . . . . . . . . . . 200
11-34 CM Batch Base Version commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200
11-35 CM - Manage Versions panel (ADB2C4): Import a version file. . . . . . . . . . . . . . . . 201
11-36 CM - Versions panel (ADB2C41): Base Versions . . . . . . . . . . . . . . . . . . . . . . . . . . 202
11-37 CM - Versions panel (ADB2C41): PR promote command . . . . . . . . . . . . . . . . . . . 202
11-38 CM - Promote panel ADB2CPS: Lookup Starting Version . . . . . . . . . . . . . . . . . . . 203
11-39 CM - Versions panel (ADB2C41): Use a ‘+’ to select the source base version . . . 203
11-40 CM Promote panel (ADB2CPS): Fill in data set names for PROMOTE . . . . . . . . . 204
11-41 CM - Register Options panel (ADB2CR0): Name the PROMOTE Change . . . . . . 205
11-42 Promote JCL: Submit to generate the delta change file . . . . . . . . . . . . . . . . . . . . . 206
11-43 PROMOTE: Delta change file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207
11-44 DB2 Administration Menu panel (ADB2): C - Object Compare. . . . . . . . . . . . . . . . 208
11-45 DB2 Object Comparison Tool Menu panel (GOCMENU) . . . . . . . . . . . . . . . . . . . . 209
11-46 Specify DB2 Source Catalog Extract panel GOC12 . . . . . . . . . . . . . . . . . . . . . . . . 210
11-47 Specify Source DB2 Databases panel (GOC1D) . . . . . . . . . . . . . . . . . . . . . . . . . . 210
11-48 Compare Add Databases panel (GOC1DA) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211
11-49 Compare Add Databases panel (GOC1DD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211
11-50 DB2 Object Comparison Tool Menu panel (GOCMENU) . . . . . . . . . . . . . . . . . . . . 212
11-51 Specify Compare Masks panel (GOC3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212
11-52 CM - Mask Lines panel (ADB2C2L): DATA mask. . . . . . . . . . . . . . . . . . . . . . . . . . 213
11-53 DB2 Object Comparison Tool Menu panel (GOCMENU): Generate Compare job. 213
11-54 Generate Compare Jobs panel (GOC5) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214
11-55 Delta Change File: generated by Compare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215
11-56 Delta Change File generated by Compare (cont). . . . . . . . . . . . . . . . . . . . . . . . . . 216
x DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
11-57 CM Changes panel (ADB2C11): Export (EX) change. . . . . . . . . . . . . . . . . . . . . . . 218
11-58 CM Export Changes panel (ADBPC15) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
11-59 CM - Export Changes panel (ADBPC15): Using the ADD command . . . . . . . . . . . 219
11-60 CM - Add a Change panel (ADBPC15A) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219
11-61 CM - Changes panel (ADB2C11) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219
11-62 CM - Add a Change panel (ADBPC15A) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220
11-63 CM - Export Changes panel (ADBPC15): Multiple changes to be exported . . . . . . 220
11-64 Specify Data Set / Member Information panel (ADBPVERD) . . . . . . . . . . . . . . . . . 221
11-65 Promote - Replace Delta Change Confirmation panel (ADB2CONF) . . . . . . . . . . . 221
11-66 PDS Entries for Exported Changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
11-67 Contents of the delta change file created by EX (export) . . . . . . . . . . . . . . . . . . . . 222
11-68 CM - Manage Changes panel (ADB2C1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
11-69 CM - Import Changes panel (ADB2C14) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224
11-70 CM Import changes - Select process modes panel (ADB2C14M) . . . . . . . . . . . . . 224
11-71 Mask Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225
11-72 CM - Register Options panel (ADB2CR0): Name the Imported Change . . . . . . . . 225
11-73 CM - Import Changes panel (ADB2C14) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226
11-74 CM - Changes: List of all changes including the imported change . . . . . . . . . . . . . 226
11-75 CM Change Statements for BCCHG03-TA2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227
11-76 Import a Change using CM Batch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228
11-77 CM - Changes panel (ADB2C11) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
11-78 Cancel change BCCHG03_TA2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
11-79 CM - Change Statements panel (ADB2C1S) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230
11-80 Generate Analyze Job panel (ADB2C11A): Recover Change . . . . . . . . . . . . . . . . 231
11-81 CM - Register Options panel (ADB2CR0): Recover Change . . . . . . . . . . . . . . . . . 232
11-82 CM - Changes panel (ADB2C11): Imported change is now ANALYZED with a
RECOVER change also in an ANALYZE status. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232
11-83 CM - Changes (ADB2C11): Using the RE line command . . . . . . . . . . . . . . . . . . . . 233
11-84 CM - Changes panel (ADB2C11): Results of the RE command . . . . . . . . . . . . . . . 233
11-85 CM Changes panel (ADB2C11): OR line command to locate original change . . . . 234
11-86 CM - Changes panel (ADB2C11): OR results. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 234
11-87 CM - Changes panel (ADB2C11): RC line command to run a recover change . . . 235
11-88 Recover Change job stream . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236
12-1 Optim Configuration Manager home page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240
12-2 List of defined location aliases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241
12-3 Defining location detail screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241
12-4 Validated Alias Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242
12-5 Job List: Auto job definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
12-6 Objects collected. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
12-7 Display ZPARMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244
12-8 Changing DSNZPARM values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244
12-9 Configuration summary of changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 245
12-10 Configuration detailed summary report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246
12-11 Configuration detailed table changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247
12-12 Configuration detailed package changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247
12-13 Buffer pool Changes Detail report. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248
12-14 DSNZPARM changes detail report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248
12-15 PTF detail report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249
12-16 Recorded Clients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250
12-17 Recorded Client Detail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250
12-18 Managed Clients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
12-19 Managed Client Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
12-20 Managed Client Driver Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252
Figures xi
12-21 Managed Clients Data Source Descriptor Report . . . . . . . . . . . . . . . . . . . . . . . . . . 252
12-22 Comparing Same Managed Clients select target . . . . . . . . . . . . . . . . . . . . . . . . . . 253
12-23 Same Managed Client comparison results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253
12-24 Comparing different clients select source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254
12-25 comparing different clients select target . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254
12-26 Comparing different clients results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255
12-27 Comparing different clients, showing only differences . . . . . . . . . . . . . . . . . . . . . . 255
12-28 Add Compare Job . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256
12-29 Creating basic properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256
12-30 Source client properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257
12-31 Target clients properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257
12-32 Compare job options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258
12-33 Compare job schedule options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258
12-34 Saving compare job . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259
12-35 Job History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259
12-36 Compare Job Summary report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260
12-37 Managed Client comparison report summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260
12-38 Managed Client comparison detail report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261
12-39 Managed Client WebSphere Application Server Statistics . . . . . . . . . . . . . . . . . . . 262
12-40 Managed Client WebSphere Application Server Data Point . . . . . . . . . . . . . . . . . . 262
12-41 Configuring Application Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263
12-42 Configure Application Properties Add Rule. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264
12-43 Configure application properties conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264
12-44 Configure Application Properties actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265
12-45 Configure Application Properties: Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265
12-46 Configure Driver Properties Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266
12-47 Configure Driver Properties: Actions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267
12-48 Configure WebSphere Application Server connection pool properties . . . . . . . . . . 267
12-49 Configure Was Connection Pool Properties: Actions . . . . . . . . . . . . . . . . . . . . . . . 268
12-50 Redirect Managed Clients: Action. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268
12-51 Rule Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269
12-52 Activating the Rule Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269
12-53 Activating the Rule Set: Confirmation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270
12-54 DB2 Administration Tool Explorer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 271
12-55 DB2 Administration Tool Explorer change ID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 271
12-56 DB2 Administration Tool Explorer Change ID Details. . . . . . . . . . . . . . . . . . . . . . . 272
12-57 Optim Configuration Manager Configuration Manager Link . . . . . . . . . . . . . . . . . . 272
12-58 DB2 Administration Tool Explorer automatic filter. . . . . . . . . . . . . . . . . . . . . . . . . . 273
12-59 DB2 Administration Tool Explorer automatic detail filter . . . . . . . . . . . . . . . . . . . . . 273
12-60 Configuration Manger Automatic Detail Filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 274
xii DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Tables
This information was developed for products and services offered in the U.S.A.
IBM may not offer the products, services, or features discussed in this document in other countries. Consult
your local IBM representative for information on the products and services currently available in your area. Any
reference to an IBM product, program, or service is not intended to state or imply that only that IBM product,
program, or service may be used. Any functionally equivalent product, program, or service that does not
infringe any IBM intellectual property right may be used instead. However, it is the user's responsibility to
evaluate and verify the operation of any non-IBM product, program, or service.
IBM may have patents or pending patent applications covering subject matter described in this document. The
furnishing of this document does not grant you any license to these patents. You can send license inquiries, in
writing, to:
IBM Director of Licensing, IBM Corporation, North Castle Drive, Armonk, NY 10504-1785 U.S.A.
The following paragraph does not apply to the United Kingdom or any other country where such
provisions are inconsistent with local law: INTERNATIONAL BUSINESS MACHINES CORPORATION
PROVIDES THIS PUBLICATION "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR
IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF NON-INFRINGEMENT,
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer of
express or implied warranties in certain transactions, therefore, this statement may not apply to you.
This information could include technical inaccuracies or typographical errors. Changes are periodically made
to the information herein; these changes will be incorporated in new editions of the publication. IBM may make
improvements and/or changes in the product(s) and/or the program(s) described in this publication at any time
without notice.
Any references in this information to non-IBM websites are provided for convenience only and do not in any
manner serve as an endorsement of those websites. The materials at those websites are not part of the
materials for this IBM product and use of those websites is at your own risk.
IBM may use or distribute any of the information you supply in any way it believes appropriate without incurring
any obligation to you.
Any performance data contained herein was determined in a controlled environment. Therefore, the results
obtained in other operating environments may vary significantly. Some measurements may have been made
on development-level systems and there is no guarantee that these measurements will be the same on
generally available systems. Furthermore, some measurements may have been estimated through
extrapolation. Actual results may vary. Users of this document should verify the applicable data for their
specific environment.
Information concerning non-IBM products was obtained from the suppliers of those products, their published
announcements or other publicly available sources. IBM has not tested those products and cannot confirm the
accuracy of performance, compatibility or any other claims related to non-IBM products. Questions on the
capabilities of non-IBM products should be addressed to the suppliers of those products.
This information contains examples of data and reports used in daily business operations. To illustrate them
as completely as possible, the examples include the names of individuals, companies, brands, and products.
All of these names are fictitious and any similarity to the names and addresses used by an actual business
enterprise is entirely coincidental.
COPYRIGHT LICENSE:
This information contains sample application programs in source language, which illustrate programming
techniques on various operating platforms. You may copy, modify, and distribute these sample programs in
any form without payment to IBM, for the purposes of developing, using, marketing or distributing application
programs conforming to the application programming interface for the operating platform for which the sample
programs are written. These examples have not been thoroughly tested under all conditions. IBM, therefore,
cannot guarantee or imply reliability, serviceability, or function of these programs.
The following terms are trademarks of the International Business Machines Corporation in the United States,
other countries, or both:
AIX® Informix® Redbooks (logo) ®
DB2® InfoSphere® System z®
DS8000® OMEGAMON® Tivoli®
FlashCopy® Optim™ WebSphere®
IBM® OS/390® z/OS®
IMS™ Redbooks®
Evolution, and Kenexa device are trademarks or registered trademarks of Kenexa, an IBM Company.
Linux is a trademark of Linus Torvalds in the United States, other countries, or both.
Microsoft, Windows, and the Windows logo are trademarks of Microsoft Corporation in the United States,
other countries, or both.
Java, and all Java-based trademarks and logos are trademarks or registered trademarks of Oracle and/or its
affiliates.
Other company, product, or service names may be trademarks or service marks of others.
xviii DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Preface
IBM® DB2® tools for z/OS® support and exploit the most current versions of DB2 for z/OS.
These tools are integral for the administration of the DB2 for z/OS environment and
optimization of data performance.
DB2 Administration Solution Pack for z/OS V1.1 (5697-DAM) offers features, functions, and
processes that database administrators (DBAs) can use to more effectively and efficiently
manage DB2 environments.
DB2 Administration Solution Pack for z/OS is composed of the following tools:
IBM DB2 Administration Tool for z/OS
IBM DB2 Object Comparison Tool for z/OS
IBM InfoSphere® Optim™ Configuration Manager for DB2 for z/OS
IBM DB2 Table Editor for z/OS
This IBM Redbooks® publication shows how the delivered capabilities can help DBAs to
more easily complete tasks associated with object management, change management,
application management, and configuration management.
Authors
This book was produced by a team of specialists from around the world working at the
International Technical Support Organization, San Jose Center.
Paolo Bruni is a DB2 Information Management Project Leader at the International Technical
Support Organization, based at the Silicon Valley Lab. He has authored several IBM
Redbooks publications about DB2 for z/OS and related tools and has conducted workshops
and seminars worldwide. During Paolo’s many years with IBM, in development and in the
field, his work has been mostly related to database systems.
Tom Crocker is a Senior IT Specialist working in the United Kingdom as a Client Technical
Advisor specializing in DB2 Tools and DB2 Engine. Tom has over 20 years experience in data
management and has worked for IBM for the last 10 years, first as a DB2 DBA supporting
SAP on IBM OS/390® and for the last eight years in Technical Pre-Sales. Before joining IBM,
he worked as an independent consultant and has experience in the insurance, banking, and
retail industries. He is also an author of another IBM Redbooks publication about DB2 utilities.
Elaine Morelli is an Executive IT Specialist with the North America IBM System z® Database
Tools Team. Elaine’s expertise is in the DB2 database tools arena with a specialization in DB2
administration. Elaine has over 25 years in IT experience, 11 of which have been at IBM in a
Technical Sales Specialist role. In the past, she has been an Application Developer, a
DOS/VSE Systems Programmer, a DBA for DB2, IDMS, IBM Informix®, and Oracle. Elaine
has presented at various local user groups and technical conferences across the United
States. She is the IBM sponsor for the Tampa Bay Relational User Group.
Emma Jacobs
Bob Haimowitz
International Technical Support Organization
Duncan Cowell
John Dembinski
Somil Kulkarni
Michael Pauser
Joe Reynolds
Haakon Roberts
Marichu Scanlon
Patrick Titzler
IBM Silicon Valley Laboratory
Find out more about the residency program, browse the residency index, and apply online at:
[Link]/redbooks/[Link]
Comments welcome
Your comments are important to us!
We want our books to be as helpful as possible. Send us your comments about this book or
other IBM Redbooks publications in one of the following ways:
Use the online Contact us review Redbooks form found at:
[Link]/redbooks
Send your comments in an email to:
redbooks@[Link]
Mail your comments to:
IBM Corporation, International Technical Support Organization
Dept. HYTD Mail Station P099
2455 South Road
Poughkeepsie, NY 12601-5400
xx DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Stay connected to IBM Redbooks
Find us on Facebook:
[Link]
Follow us on Twitter:
[Link]
Look for us on LinkedIn:
[Link]
Explore new Redbooks publications, residencies, and workshops with the IBM Redbooks
weekly newsletter:
[Link]
Stay current on recent Redbooks publications with RSS Feeds:
[Link]
Preface xxi
xxii DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Part 1
For DB2 environments, DB2 tools and tools solution packs have the following main objectives:
Reducing costs
Increasing responsiveness
Maximizing IT staff productivity
Tools are getting functional improvements, more integration, and incorporating autonomic
solutions and best practices.
Solution packs address the areas of common activities that the database administrators
(DBAs) deal with regularly:
Managing the database
Managing the data
Managing the performance
Solution packs offer a complete solution for all needs in the area rather than you having to
purchase multiple products with simplified installation and maintenance. They have built-in
intelligence regarding when and how actions are performed, optimizing the performance and
resource utilization that is associated with DBA activities.
IBM currently offers the following four DB2 Tools Solution Packs (the program number in each
pack is a product that combines several IBM components into a consolidated solution to help
you manage your DB2 for z/OS environment):
IBM DB2 Administration Solution Pack (program number: 5697-DAM); see Figure 1-1.
IBM DB2 Administration Solution Pack for z/OS includes the following components:
– DB2 Administration Tool for z/OS Version 10.2
– DB2 Object Comparison Tool for z/OS Version 10.2
– DB2 Table Editor for z/OS Version 4.4
– InfoSphere Optim Configuration Manager for DB2 for z/OS Version 2.2
The focus of this publication is on the use of the DB2 Administration Solution Pack. The
book explores scenarios for the execution of DB2 database administration functions.
4 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
IBM DB2 Utilities Solution Pack (program number 5697-DUM) Version 1.1; see Figure 1-2.
IBM DB2 Utilities Solution Pack for z/OS is a product that combines several IBM
components into a consolidated solution that enables enterprises to efficiently and
intelligently run utilities, while optimizing the performance of daily utilities management
activities. It combines the following components into a single offering:
– IBM DB2 Automation Tool for z/OS Version 4.1
– IBM DB2 High Performance Unload for z/OS Version 4.2
– IBM DB2 Sort for z/OS Version 1.3
– IBM DB2 Utilities Enhancement Tool for z/OS Version 2.2
IBM DB2 Fast Copy Solution Pack (program number: 5697-DFM) extends the DB2 Utilities
Solution Pack by integrating the technology available with IBM DS8000® FlashCopy®.
Typically FlashCopy disk-storage-related tools do not address needs of the database
administrator. IBM DB2 Fast Copy Solution Pack for z/OS, Version 1 Release 1 combines
several IBM components into a consolidated solution that uses fast replication technology
to optimize availability, performance, and resource utilization when you back up, recover,
and clone DB2 subsystems or DB2 objects. It contains the following components:
– IBM DB2 Cloning Tool for z/OS Version 3.1
– IBM DB2 Recovery Expert for z/OS Version 3.1
IBM DB2 Performance Solution Pack for z/OS, V1.1 delivers integrated performance
management capabilities for DB2 for z/OS by combining the functionality from the
following components:
– IBM Tivoli® OMEGAMON® XE for IBM DB2 Performance Expert on z/OS, V5.1.1
– IBM DB2 Query Monitor for z/OS, V3.1
– IBM DB2 SQL Performance Analyzer for z/OS, V4.1
– IBM InfoSphere Optim Query Workload Tuner for DB2 for z/OS, V3.2
The IBM Tools Customizer (TCz in Figure 1-4 on page 7) helps with post-SMP/E
customization of z/OS tool products. The goal is to provide a more consistent, usable, and
simple solution for the customization of multiple z/OS products. See Figure 1-4 on page 7.
The Tools Customizer is a common customization utility for all DB2 and IBM IMS™ Tool
products and provides the following benefits:
Fast consumability: faster time to tools usage
Because of automatic discovery of previous release customization parameters, less
manual entry is necessary. Product templates are customized by Tools Customizer. It
provides job execution sequence.
Easy customization of multiple tools
In a step-by-step fashion, with help text and ISPF panel-driven dialogs that have a similar
“look and feel” to each other, you can specify customization of multiple products.
6 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Faster propagation of customization across multiple logical partitions (LPARs)
Resulting product customized jobs can be saved on shared DASD, or the user can
transmit to other systems for usage on other LPARs.
Easier upgrades
Parameters from previous customization are saved for future new product releases and
DB2 or IMS upgrades.
Discover dataset
Parameter values from previously
customized version of the product
TCz
TCz Output
1. Define product Specify the product's metadata
TCz Input library
2. Extract Discover previously customized Customization library
version of product for first time product definition
TCz 3. Define environment User creates/associates Customized Jobs
Metadata DB2s available
and 4. Specify values Edit/Enter Product/LPAR/DB2
parameters on dynamically generated ISPF
for post
Product
panels processing and
Metadata
5. Generate jobs Issue commands against DB2s transmit to
to generate jobs remote systems
Next, the installation process is the same for each component or product. It adheres to the
order in the following list of tasks:
1. Select the component to customize.
2. Associate DB2 entries to the component.
3. Customize the component parameters.
4. Customize the LPAR parameters.
5. Customize the DB2 entry parameters.
6. Generate the job streams.
7. Submit the jobs.
After completion of these tasks, the components are ready for the optional tasks and then
ready to use. If you make an error, you can always change a parameter and regenerate
the job stream. Some jobs are foolproof in that they can be rerun without change; others
might require you to delete a file, database, and so on, before rerunning. In some cases,
one or more of the steps are not necessary to do, depending on the component that is
being customized. For example, DB2 Object Comparison Tool requires DB2 entries to be
associated but there are no DB2 parameters needed for any of these entries.
An approach to running the job streams is to review all the jobs first before running the first
one. Understand what each job does and determine any dependencies on previous jobs, or
associations with other products (that is, does it refer to DB2 Automation for example, or does
it use other services such as DB2 Administration Scheduler). Begin your installation only
when you are sure that you thoroughly understand the implications of running the job stream.
8 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
The components of the DB2 Administration Solution Pack are listed in Table 1-1.
The components of DB2 Utilities Solution Pack are listed in Table 1-2.
The components of DB2 Fast Copy Utilities Solution Pack are listed in Table 1-3.
To install solution packs, you also need the IBM Tools Customizer product 5655-V93, which
consists of the components listed in Table 1-5.
HAHN130 IBM Tool Base for z/OS DBTLSP Default HLQ GLX
/* REXX */
ADDRESS ISPEXEC "SELECT PANEL(DB2TOOLS)";
EXIT
Figure 1-6 DB2TOOLS initial CLIST
10 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
This CLIST invokes the panel member of Figure 1-7 which displays our local DB2TOOLS
panel. From here, you can invoke the Tools Customizer startup CLIST from the installed
CCQ1.
L LP - DB2 Launchpad
Z TCZ - Toolkit Customization
X EXIT - Exit
Figure 1-7 DB2 Tools initial panel
The Tools Customizer option calls the default Tools Customizer initial CLIST (CCQTCZ) from
the [Link] library. This displays the Tools Customizer primary menu. See Figure 1-8.
We then set up our default options according to the instructions in IBM DB2 Administration
Solution Pack for z/OS Version 1 Release 1 Overview and Customization, SC19-3785.
Select an option.
X. Exit
1 CCQ is the three-character identifier of the TCz product (all module names start with CCQ).
Enter the settings for customizing a product or press End to save and exit.
Metadata library Tools Customizer metadata We use the IBM supplied library:
library for DB2 and LPAR [Link]
parameters
Discovery output data set Used by the DISCOVER EXEC We are not using the DISCOVER
for the discovery of information EXEC (although required, this
from previous installations. does not apply to our installation).
Data store data set Tools Customizer stores We specified this value:
information and LPAR, DB2 and [Link]
parameter values
a. The example shows GBP pound sign and ssid. They are the national currency symbol
(country-dependent) and the LPAR name. For example, users in the USA will see $lpar$, as
[Link].$SY4A$.ADB1020.
After saving these options, you can continue with the installation of the solution packs.
12 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
2
The steps that are used in the TCz component are as follows:
Component selection
Installation discovery
DB2 entries and association
Component customization
Generation of customization jobs
You can select one or multiple tools to customize. If selecting multiple, the tools are
customized in the order of the selection list.
1
After a product or a pack is SMP/E installed, the default name of the metadata library is [Link], where hlq is
the high-level qualifier for the product or the pack, and xxx is the three-character prefix for the product or the pack.
14 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
2.2 Installation discovery
After selecting a product to install, the screen in Figure 2-2 is displayed. It provides
information about DISCOVER EXEC, which can be invoked to “discover” customized detail
from a previous installation of the administration tools component, assuming it was installed
with Tools Customizer, either singly or as a solution pack, and the metadata written to the
previous STORDATA and DISCOVER files. The DB2 Administration Tool for z/OS can
discover from a previously installed Version 10 product. See Figure 2-2.
Use the Generate jobs line command to select the DB2 entries on which to
customize the component, and press Enter to generate the customization jobs.
EsssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssN
e TCUSTMZR Run Discover EXEC e
e e
e If DB2 Administration Tool for z/OS e
e has been customized before, you can run the Discover EXEC to retrieve e
e information from that customized version. Otherwise, if you are either e
e customizing this component for the first time or you have not customized e
e the component yet, continue the customization process because information e
e to be discovered does not exist. e
e e
e To go to the Discover Customized Component Information panel and run the e
e Discover EXEC, press Enter. To return to the Customizer Workplace panel e
e without running the Discover EXEC, press End. e
e e
e e
e e
DsssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssM
Figure 2-2 Initial customization panel with the DISCOVER EXEC option
Use the Generate jobs line command to select the DB2 entries on which to
customize the component, and press Enter to generate the customization jobs.
After you enter the ASSOCIATE command, the DB2 entry association panel is displayed
(Figure 2-4). In this sample, there are no DB2 entries that are yet associated with the product.
To create a new DB2 entry, issue the CREATE command on this panel.
Select any of the following DB2 entries to add them to the Customizer
Workplace panel. You use the Customizer Workplace panel to choose the DB2
subsystems, data sharing members, and group attach names on which to
customize the component.
16 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
In the panel that opens, create a new DB2 entry, as shown in Figure 2-5.
Select any of the following DB2 entries to add them to the Customizer
Workplace panel. You use the Customizer Workplace panel to choose the DB2
s EsssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssN
c e TCUSTMZR Create a DB2 Entry e
e Command ===> e
C e e
e Specify a DB2 subsystem ID, a DB2 group attach name, or both for the e
e new DB2 entry. Press Enter to continue or End to cancel. e
P e e
e New DB2 Entry Information e
e DB2 subsystem ID . . . . . DB0A e
e DB2 group attach name . . e
L e e
e e
C e e
e e
DsssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssM
------------------------------ End of DB2 entries -----------------------------
Figure 2-5 Creating a new DB2 entry
Next, enter the subsystem (or member name, if data sharing) and the group attach name, if
data sharing, and then press Enter to save the entry. Keep in mind that the DB2 entry must be
created only once for each product (if installing products individually) or once per solution
pack. Each DB2 entry must be associated for each product, however. After you press Enter,
you are returned to the DB2 entry association panel. You can see that three entries are
already created using the CREATE command as presented in the example in Figure 2-6 on
page 18. These are the DB2 subsystems in our environment.
Select any of the following DB2 entries to add them to the Customizer
Workplace panel. You use the Customizer Workplace panel to choose the DB2
subsystems, data sharing members, and group attach names on which to
customize the component.
18 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
2.4 Component customization
After one or more DB2 entries are associated with a component, customization of a
component can begin. The parameter status field provides information about two areas of
customization: component and LPAR. These parameters must be provided (incomplete) or
checked and edited before continuing with the component customization. See Figure 2-7.
Use the Generate jobs line command to select the DB2 entries on which to
customize the component, and press Enter to generate the customization jobs.
Complete the component customization by entering the E (for Edit) line command for the
component parameters option. A panel with the related component parameters is displayed.
The parameters must be customized for your installation. For details about the parameters,
consult the related component installation and customization guide, which is available at the
the following link:
[Link]
Complete the following tasks to customize the components. The required tasks
and steps are preselected. Ensure that all parameters are specified for each
selected step within a task. Press End to save and exit.
IMPORTANT:
(1) Values specified here apply to every DB2 SSID unless you specify
values for parameters with the same names on the DB2 Parameters panel. In
this case, the values on the DB2 Parameters panel override the values on
the Product Parameters panel. (2) To enable the "Change Management" task,
first edit the product parameters for the DB2 subsystem and specify a
value for the "Change Management database objects owner" parameter. Then,
return to this panel to select the "Change Management" task.
Required parameters
DB2 Admin product load library . . . . . . [Link] > Add...
DB2 Admin product REXX library . . . . . . [Link] > Add...
Customized parameters table library . . . [Link] >
DB2 Admin tool high-level qualifier . . . DBTLSP >
(Global) System identification method . . JESID
(Global) Type of DB2 security exit . . . . STD List...
(Global) JOB class for DB2 utilities . . . A
(Global) Installation name . . . . . . . . >
(Global) JES node name . . . . . . . . . .
(Global) Utility data set prefix . . . . .
(Global) SYSAFF for DB2 utilities . . . .
DB2 Admin APF library . . . . . . . . . . [Link] >
JES3 system . . . . . . . . . . . . . . . NO (NO, YES)
(Global) Remote DB2 subsystem name . . . .
(Global) Remote location name . . . . . .
(Global) Authorization switching . . . . . NO (NO, YES)
Figure 2-8 Example of DB2 Administration Tool component parameters
20 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
After the component and LPAR parameters are updated and saved, the component is ready
to have the individual DB2 entries customized. Select an E for each DB2 entry on the
customizer workplace panel. The DB2 parameter panel for that DB2 entry is displayed. Make
sure that you add SDSNLOAD to the RUN execution libraries if this library is not in your
LINKLIST. This parameter entry is in the DB2 Parameters panel. See Figure 2-9.
Enter values for all of the DB2 parameters. Press End to save and exit.
More: +
DB2 Libraries
Load Library . . . . . . . . . . . . . . . [Link] > Add...
Run Library . . . . . . . . . . . . . . . [Link] > Add...
Exit Library . . . . . . . . . . . . . . . [Link] > Add...
Message Library . . . . . . . . . . . . . [Link] > Add...
Panel Library . . . . . . . . . . . . . . [Link] > Add...
Skeleton Library . . . . . . . . . . . . . [Link] > Add...
Table Library . . . . . . . . . . . . . . [Link] > Add...
REXX EXEC library . . . . . . . . . . . . > Add...
CLIST library . . . . . . . . . . . . . . [Link] > Add...
DB2 Utilities
JOB class name for DB2 utilities . . . . .
SYSAFF for DB2 utilities . . . . . . . . . SC63
Plan name for the DSNTEP2 utility . . . . DSNTEP10
When you look at the component parameters and the parameters that are associated with a
specific DB2 entry, you might see an overlap of parameters. This is to allow users to tailor
some of these items by subsystem.
Submit the members in the order in which they apply to all DB2 entries. To
submit the job, browse the member and issue the TSO SUBMIT command, or browse
the customized library and submit the jobs from there.
22 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Note that the jobs generated vary based on the number of options selected and the number of
DB2 entries associated with the chosen component. The jobs can now be submitted to
customize the component. To run a generated job, enter the E (edit) line command for the
generated job you want, and submit the job.
Check each job carefully before submitting it. If you must change the JCL, do not change it.
Instead, first go back to the component, LPAR, or DB2 entry parameters and try to locate
the parameter that relates to the change you want to make. Correct that parameter and
GENERATE the jobs again. This way saves you from having to abort the installation later
when you find that subsequent jobs fail because of a related parameter you modified
manually in the generated JCL.
By using the DB2 Administration Solution Pack, you can simplify the management of your
DB2 database environments.
This example begins at the TCz main menu. See Figure 1-8 on page 11 to review this
example. Every component installed through Tools Customizer requires a metadata library.
The metadata library for the solution pack that we want to review is in the
[Link] library.
28 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
To begin the installation process, specify option 1 on the Tools Customizer primary menu. The
Specify the Metadata Library panel opens (Figure 3-1). Enter the name of the metadata
library and press Enter.
Type the name of the metadata library for the pack or the product in the
Metadata library field, or select the library name in the list of previous
libraries and press Enter to populate the field. Press Enter to continue.
The default name of the metadata library after the pack or the product has been
SMP/E installed is <hlq>.SxxxDENU, where <hlq> is the high-level qualifier for
the pack or the product, and xxx is the three-character prefix for the pack or
the product.
=>
=>
=>
=>
=>
=>
=>
Figure 3-1 Specifying the metadata library for the DB2 Administration Solution Pack
30 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Because this is the first time customizing this product in your environment, a message
indicates you can run DISCOVER EXEC to work with a prior installation (Figure 3-3).
Use the Generate jobs line command to select the DB2 entries on which to
customize the component, and press Enter to generate the customization jobs.
EsssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssN
e TCUSTMZR Run Discover EXEC e
e e
e If DB2 Administration Tool for z/OS e
e has been customized before, you can run the Discover EXEC to retrieve e
e information from that customized version. Otherwise, if you are either e
e customizing this component for the first time or you have not customized e
e the component yet, continue the customization process because information e
e to be discovered does not exist. e
e e
e To go to the Discover Customized Component Information panel and run the e
e Discover EXEC, press Enter. To return to the Customizer Workplace panel e
e without running the Discover EXEC, press End. e
e e
e e
e e
DsssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssM
Figure 3-3 DISCOVER EXEC prompt for first install of DB2 Administration Tool
In general, the DB2 Administration Tool customization settings from a previous installation,
using the previous non-TCz customization process, can be discovered and used to initialize
the DB2 Administration Tool customization in TCz. The options are listed in Table 3-1.
No N/A N/A
Yes No Yes
Because you are not working with a prior installation of DB2 Administration Tool, press the PF
key that is associated with End, which in this example is PF3. If you have a different PF key
that is assigned to End, use that PF key instead.
Use the Generate jobs line command to select the DB2 entries on which to
customize the component, and press Enter to generate the customization jobs.
Again, because this is a new installation, the parameter configurations indicate Incomplete
and the DB2 entries list no DB2 subsystems or members. Although starting to customize the
component parameters first is possible, for this example you add your DB2 entries first and
therefore use the ASSOCIATE command by typing it on the Command line and pressing Enter.
An alternative way is to move the cursor to the ASSOCIATE command and press Enter. The
Associate DB2 Entry for Component panel is displayed (Figure 3-5).
Select any of the following DB2 entries to add them to the Customizer
Workplace panel. You use the Customizer Workplace panel to choose the DB2
subsystems, data sharing members, and group attach names on which to
customize the component.
32 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
To associate a particular DB2 subsystem or member to a product, first create a DB2 entry if
one does not exist. A DB2 entry must be created only once (that is, you do not have to create
a DB2 entry again if you install more products such as DB2 Object Comparison Tool for z/OS,
for example). However, you must associate a DB2 entry to each product. This example guides
you through creating one DB2 entry through explicit samples. When you are in the Associate
DB2 Entry for Component panel, either enter the CREATE command on the command line or
move the cursor to the CREATE command and press Enter.
Select any of the following DB2 entries to add them to the Customizer
Workplace panel. You use the Customizer Workplace panel to choose the DB2
s EsssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssN
c e TCUSTMZR Create a DB2 Entry e
e Command ===> e
C e e
e Specify a DB2 subsystem ID, a DB2 group attach name, or both for the e
e new DB2 entry. Press Enter to continue or End to cancel. e
P e e
e New DB2 Entry Information e
e DB2 subsystem ID . . . . . DB0A e
e DB2 group attach name . . e
L e e
e e
C e e
e e
DsssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssM
------------------------------ End of DB2 entries -----------------------------
Figure 3-6 Create a DB2 entry
On this panel, you enter the DB2 SSID, or member name for data sharing, and a group
attach ID for data sharing only (that is, for non-data-sharing environments. keep the group
attach field blank). These DB2 entries do not have to actually exist on the local LPAR.
After you enter the information, press Enter. This new entry is now available for association to
a product. To continue this example, create DB2 entries for subsystems DB0A, DB0C and
DB0D (only the DB0A example is shown in the figures). All are stand-alone subsystems with
no data sharing. For a data sharing environment, create DB2 entries for each member and
use the appropriate group attach name.
Select any of the following DB2 entries to add them to the Customizer
Workplace panel. You use the Customizer Workplace panel to choose the DB2
subsystems, data sharing members, and group attach names on which to
customize the component.
Now you are ready to associate two of these subsystems to your customization of DB2
Administration Tool. Select which DB2 entries to associate by entering an A in the Cmd column
of one or more DB2 entries that are being associated with the product. Press Enter.
34 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
The next panel is displayed (Figure 3-8). Notice that the available DB2 entries (all of the DB2
entries associated with the product) now show DB0A and DB0C.
Use the Generate jobs line command to select the DB2 entries on which to
customize the component, and press Enter to generate the customization jobs.
The next step in the example customization is to edit the general component parameters. Any
parameters that we edit apply to the entire product, independent of DB2 subsystem or group.
We choose this for the example but there is nothing to prevent you from customizing these
items in any order you want (that is, component parameters, LPAR parameters, and
parameters that are associated with the DB2 entries). However, until these items are
complete. you are not able to generate the jobs to perform the customization. If you try to
generate the jobs too early in the process, you are likely directed to enter missing parameters.
To edit the general component parameters, enter an E before the Component parameters field
on the panel and press Enter.
For detailed information about each parameter, see “Chapter 25, Customization reference:
DB2 Administration Tool” in the DB2 Administration Tool User’s Guide and Reference,
SC19-3774.
Complete the following tasks to customize the components. The required tasks
and steps are preselected. Ensure that all parameters are specified for each
selected step within a task. Press End to save and exit.
IMPORTANT:
(1) Values specified here apply to every DB2 SSID unless you specify
values for parameters with the same names on the DB2 Parameters panel. In
this case, the values on the DB2 Parameters panel override the values on
the Product Parameters panel. (2) To enable the "Change Management" task,
first edit the product parameters for the DB2 subsystem and specify a
value for the "Change Management database objects owner" parameter. Then,
return to this panel to select the "Change Management" task.
Required parameters
DB2 Admin product load library . . . . . . [Link] > Add...
DB2 Admin product REXX library . . . . . . [Link] > Add...
Customized parameters table library . . . [Link] >
DB2 Admin tool high-level qualifier . . . DBTLSP >
(Global) System identification method . . JESID
(Global) Type of DB2 security exit . . . . STD List...
(Global) JOB class for DB2 utilities . . . A
(Global) Installation name . . . . . . . . >
(Global) JES node name . . . . . . . . . .
(Global) Utility data set prefix . . . . .
(Global) SYSAFF for DB2 utilities . . . .
DB2 Admin APF library . . . . . . . . . . [Link] >
JES3 system . . . . . . . . . . . . . . . NO (NO, YES)
(Global) Remote DB2 subsystem name . . . .
(Global) Remote location name . . . . . .
(Global) Authorization switching . . . . . NO (NO, YES)
Figure 3-9 First panel of the DB2 Administration Tool component parameters
36 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
After you specify the general component parameters, save them by typing SAVE and
pressing Enter or by pressing the PF key associated with End (in our case, PF3). After
returning to the Customizer Workplace panel, edit the LPAR parameters by entering an E next
to the LPAR parameters value, as shown in Figure 3-10, and press Enter.
Use the Generate jobs line command to select the DB2 entries on which to
customize the component, and press Enter to generate the customization jobs.
Enter values for all of the LPAR parameters. Press End to save and exit.
ISPF Libraries
Message library . . . . . . . . . . . . . [Link] > Add...
Panel library . . . . . . . . . . . . . . [Link] > Add...
Skeleton library . . . . . . . . . . . . . [Link] > Add...
ISPF table input library . . . . . . . . . [Link] > Add...
Link list library . . . . . . . . . . . . > Add...
ISPF Llib1 . . . . . . . . . . . . . . . . [Link] >
ISPF Llib2 . . . . . . . . . . . . . . . . >
Other Parameters
Unit name for TSO work data sets . . . . . SYSDA
Unit name for batch work data sets . . . . SYSDA
Unicode translation technique . . . . . . UTF-8
Figure 3-11 LPAR Parameters panel
These parameters are also of a general nature and apply once to the entire product. In the
case of DB2 Administration Tool, they consist of the general ISPF libraries, work data set
designations, and Unicode translation technique. In general, they are parameters that
indicate specific details about the environment that the tool needs to “know.”
After you enter these parameters, save them and press the PF key that is associated with End.
38 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
You are then returned to the Customizer Workplace panel (Figure 3-12).
Use the Generate jobs line command to select the DB2 entries on which to
customize the component, and press Enter to generate the customization jobs.
Now you are ready to enter the DB2 parameters for each subsystem that is associated with
the product. To do this, enter E next to a DB2 SSID and press Enter.
Enter values for all of the DB2 parameters. Press End to save and exit.
More: +
DB2 Libraries
Load Library . . . . . . . . . . . . . . . [Link] > Add...
Run Library . . . . . . . . . . . . . . . [Link] > Add...
Exit Library . . . . . . . . . . . . . . . [Link] > Add...
Message Library . . . . . . . . . . . . . [Link] > Add...
Panel Library . . . . . . . . . . . . . . [Link] > Add...
Skeleton Library . . . . . . . . . . . . . [Link] > Add...
Table Library . . . . . . . . . . . . . . [Link] > Add...
REXX EXEC library . . . . . . . . . . . . > Add...
CLIST library . . . . . . . . . . . . . . [Link] > Add...
DB2 Utilities
JOB class name for DB2 utilities . . . . . A
SYSAFF for DB2 utilities . . . . . . . . . SC63
Plan name for the DSNTEP2 utility . . . . DSNTEP10
Plan name for the DSNTIAD utility . . . . DSNTIAD
For the DB2 Administration Tool, many parameters exist. As stated previously, overlap exists
between the DB2 parameters for a certain SSID and the general parameters. This
overlapping allows the installer to tailor certain items by subsystem, providing greater control.
40 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
After you enter these parameters, save them and press the PF key associated with End. You
are then returned to the Customizer Workplace panel (Figure 3-14).
Use the Generate jobs line command to select the DB2 entries on which to
customize the component, and press Enter to generate the customization jobs.
Now you can generate the jobs to install the product. Use the GENERATEALL command to
generate the jobs.
Submit the members in the order in which they apply to all DB2 entries. To
submit the job, browse the member and issue the TSO SUBMIT command, or browse
the customized library and submit the jobs from there.
42 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
The number of jobs generated depends on the number of DB2 subsystems and the
customization options chosen. The job names have the following format (where xx is a
two-byte identifier used to identify the sequence in which the job should be run, and yy is an
optional extra identifier to separate equivalent jobs on multiple subsystems):
xx<descriptor>yy
Table 3-2 Table of generated job names for DB2 Administration Tool for z/OS
Job name Job description
After running all generated jobs, installation of DB2 Administration Tool is completed.
Press Enter in the Finish Component Customization panel (shown in Figure 3-15 on
page 42). The Select the Components to Customize panel is displayed (Figure 3-16). It
shows the components that can be installed as part of the DB2 Administration Solution Pack.
To continue our example, we select the DB2 Object Comparison Tool by indicating that
product with a forward slash (/) and pressing Enter.
For more information about specifying values for parameters, see the IBM DB2 Object
Comparison Tool for z/OS Version 10 Release 2 User’s Guide, SC19-3778.
44 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Because this is the first time customizing this product in your environment, a message
indicates that you can run the DISCOVER EXEC to work with a prior installation
(Figure 3-17).
Use the Generate jobs line command to select the DB2 entries on which to
customize the component, and press Enter to generate the customization jobs.
EsssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssN
e TCUSTMZR Run Discover EXEC e
e e
e If DB2 Object Comparison Tool for z/OS e
e has been customized before, you can run the Discover EXEC to retrieve e
e information from that customized version. Otherwise, if you are either e
e customizing this component for the first time or you have not customized e
e the component yet, continue the customization process because information e
e to be discovered does not exist. e
e e
e To go to the Discover Customized Component Information panel and run the e
e Discover EXEC, press Enter. To return to the Customizer Workplace panel e
e without running the Discover EXEC, press End. e
e e
e e
e e
DsssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssM
Figure 3-17 DISCOVER EXEC prompt for first install of DB2 Object Comparison Tool
Because you are not working with a prior installation of DB2 Object Comparison Tool, press
the PF key associated with End, which in this example is PF3.
Use the Generate jobs line command to select the DB2 entries on which to
customize the component, and press Enter to generate the customization jobs.
Again, because this is a new installation, the component parameters indicate Incomplete and
the DB2 entries do not list DB2 subsystems or members. Although customizing the
component parameters first is possible, this example adds DB2 entries first. To do this, use
the ASSOCIATE command (either by typing it on the Command line and pressing Enter, or by
moving the cursor to the ASSOCIATE command and pressing Enter).
46 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
The Associate DB2 Entry for Component panel is displayed (Figure 3-19). Notice that
creating DB2 entries again is unnecessary. You associate only the existing DB2 entries
with each product.
Select any of the following DB2 entries to add them to the Customizer
Workplace panel. You use the Customizer Workplace panel to choose the DB2
subsystems, data sharing members, and group attach names on which to
customize the component.
Now, you can associate two of these subsystems to your customization of DB2 Object
Comparison Tool. Select the DB2 entries you want to associate by typing the letter A in the
Cmd column of the DB2 entry or entries being associated with the product. This process is
similar to that of the DB2 Administration Tool installation. Press Enter.
Use the Generate jobs line command to select the DB2 entries on which to
customize the component, and press Enter to generate the customization jobs.
48 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
The Component Parameters panel for the product you are customizing is displayed
(Figure 3-21). As stated previously, each product has a different set of component
parameters; if you are customizing a product other than DB2 Object Comparison Tool,
your panel looks different from the example shown.
Complete the following tasks to customize the components. The required tasks
and steps are preselected. Ensure that all parameters are specified for each
selected step within a task. Press End to save and exit.
After you specify the general component parameter, save them by typing SAVE and pressing
Enter, or by pressing the PF key associated with End (in this case, PF3).
Use the Generate jobs line command to select the DB2 entries on which to
customize the component, and press Enter to generate the customization jobs.
Because no LPAR parameters are applicable to the DB2 Object Comparison Tool installation,
edit the DB2 entry parameters by entering the letter E next to a DB2 SSID and then pressing
Enter.
The DB2 Parameters panel for the SSID is displayed (Figure 3-23).
Enter values for all of the DB2 parameters. Press End to save and exit.
50 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
For DB2 Object Comparison Tool, there are not as many parameters as there are for the DB2
Administration Tool.
After you enter these parameters, save them and press the PF key that is associated with End.
The Customizer Workplace panel is displayed (Figure 3-24).
Use the Generate jobs line command to select the DB2 entries on which to
customize the component, and press Enter to generate the customization jobs.
After entering all the necessary parameters, you can generate the jobs to install the product.
Use the GENERATEALL command to generate the jobs. If any information is missing, you are
informed and the issue is corrected automatically.
Submit the members in the order in which they apply to all DB2 entries. To
submit the job, browse the member and issue the TSO SUBMIT command, or browse
the customized library and submit the jobs from there.
The number of jobs generated depends on the customization options you selected. The job
names have the following format (xx is a two-byte identifier used to identify the sequence in
which the job should be run; yy is an option additional identifier to separate equivalent jobs on
multiple subsystems):
xx<descriptor>yy
Table 3-3 Table of generated job names for DB2 Object Comparison Tool for z/OS
Job name Job description
After running all of the generated jobs, the installation of DB2 Object Comparison Tool is
complete.
52 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
3.4 DB2 Table Editor for z/OS component customization
Next is the DB2 Table Editor component of the solution pack. The process is the same as for
DB2 Administration Tool and DB2 Object Comparison Tool. You associate the DB2
subsystems to the component, ensure that the component and LPAR parameters are correct,
and then generate, verify, and submit the jobs.
Press Enter in the Finish Component Customization panel (shown in Figure 3-25 on
page 52).
The next panel is displayed (Figure 3-26). It shows which components can be installed as
part of the DB2 Administration Solution Pack.
Select DB2 Table Editor by indicating that product with a forward slash (/) and pressing Enter.
As with the other components, customize the DB2 Table Editor product by following the same
procedure. First, allocate the DB2 entries, then customize the component parameters. Again,
there are no LPAR parameters for this product. After the customization is completed, use the
GENERATEALL command to generate all the jobs. The job list for the DB2 Table Editor
implementation is shown in Figure 3-37 on page 63.
Use the Generate jobs line command to select the DB2 entries on which to
customize the component, and press Enter to generate the customization jobs.
EsssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssN
e TCUSTMZR Run Discover EXEC e
e e
e If DB2 Table Editor for z/OS e
e has been customized before, you can run the Discover EXEC to retrieve e
e information from that customized version. Otherwise, if you are either e
e customizing this component for the first time or you have not customized e
e the component yet, continue the customization process because information e
e to be discovered does not exist. e
e e
e To go to the Discover Customized Component Information panel and run the e
e Discover EXEC, press Enter. To return to the Customizer Workplace panel e
e without running the Discover EXEC, press End. e
e e
e e
e e
DsssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssM
Figure 3-27 DISCOVER EXEC prompt for first installation of DB2 Table Editor
Because you are not working with a prior installation of DB2 Table Editor, press the PF key
associated with End, which in this example is PF3.
54 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
The Customizer Workplace panel is displayed (Figure 3-28).
Use the Generate jobs line command to select the DB2 entries on which to
customize the component, and press Enter to generate the customization jobs.
Again, because this is a new installation, the parameter configurations indicate Incomplete
and the DB2 entries list no DB2 subsystems or members. Although you may start customizing
the Component Parameters first, for this example you add DB2 entries first, so you use the
ASSOCIATE command. Either type the ASSOCATE command on the Command line and press
Enter, or move the cursor to the ASSOCIATE command and press Enter.
Select any of the following DB2 entries to add them to the Customizer
Workplace panel. You use the Customizer Workplace panel to choose the DB2
subsystems, data sharing members, and group attach names on which to
customize the component.
You are ready to associate two of these subsystems to your customization of DB2 Table
Editor. Select the DB2 entries you want to associate by entering the letter A in the Cmd column
of the DB2 entry or entries being associated with the product. Notice that this process flow is
similar to that of the DB2 Administration Tool installation. Press Enter.
56 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
The Customizer Workplace panel is displayed (Figure 3-30). Notice that the available DB2
entries (all of the DB2 entries associated with the product) now show DB0A and DB0C.
Use the Generate jobs line command to select the DB2 entries on which to
customize the component, and press Enter to generate the customization jobs.
Complete the following tasks to customize the components. The required tasks
and steps are preselected. Ensure that all parameters are specified for each
selected step within a task. Press End to save and exit.
Required parameters
Startup CLIST library . . . . . . . . . . [Link] >
DB2 Table Editor V4.4 HLQ . . . . . . . . DBTLSP >
DB2 Table Editor V4.4 control file . . . . [Link] >
/ Configure EXECs
After you enter the general component parameters, save them either by typing SAVE and
pressing Enter, or by pressing the PF key associated with End (in this case, PF3).
58 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
The Customizer Workplace panel is displayed (Figure 3-32). Edit the LPAR parameters by
entering the letter E next to the LPAR parameters value as shown. Press Enter.
Use the Generate jobs line command to select the DB2 entries on which to
customize the component, and press Enter to generate the customization jobs.
The LPAR parameters panel for the product is displayed (Figure 3-33). Again, the LPAR
parameters for the DB2 Table Editor product do not look the same for other products.
Enter values for all of the LPAR parameters. Press End to save and exit.
After you enter these parameters, save them and press the PF key associated with End. The
Customizer Workplace panel is displayed again (Figure 3-34).
Use the Generate jobs line command to select the DB2 entries on which to
customize the component, and press Enter to generate the customization jobs.
Now you must enter the DB2 parameters for each subsystem associated with the product.
To do this, type the letter E next to a DB2 SSID and press Enter.
60 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
The DB2 Parameters panel is displayed (Figure 3-35).
Enter values for all of the DB2 parameters. Press End to save and exit.
DB2 Libraries
Load Library . . . . . . . . . . . . . . . [Link] > Add...
For DB2 Table Editor, there are not as many parameters as there are for DB2 Administration
Tool. Parameters vary by product.
After specifying these parameters, save them and press the PF key associated with End.
Use the Generate jobs line command to select the DB2 entries on which to
customize the component, and press Enter to generate the customization jobs.
After you enter all the necessary parameters, you are now ready to generate the jobs to install
the product. Use the GENERATEALL command to generate the jobs. So now if anything is
missing, you are informed and the issue corrected automatically.
62 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Otherwise, the jobs are generated and the Finish Component Customization panel is
displayed (Figure 3-37).
Submit the members in the order in which they apply to all DB2 entries. To
submit the job, browse the member and issue the TSO SUBMIT command, or browse
the customized library and submit the jobs from there.
The number of jobs generated depends on the customization options chosen. The job names
have the following format (xx is a two-byte identifier used to identify the sequence in which the
job should be run; yy is an option additional identifier to separate equivalent jobs on multiple
subsystems):
xx<descriptor>yy
Table 3-4 Table of generated job names for DB2 Table Editor for z/OS
Job name Job description
xxADBI Generate EXEC to add DB2 Table Editor to the DB2 Administration Tool launchpad.
xxADBI2 Run EXEC to add DB2 Table Editor to the DB2 Administration Tool launchpad.
After running all of the generated jobs, installation of DB2 Table Editor is complete.
The installation of Optim Configuration Manager primarily consists of two parts in sequence:
1. Installing the Optim Configuration Manager server, and if you want, custom object names
2. Creating the Optim Configuration Manager repository
For this continuing example, the Optim Configuration Manager server is installed on a
Linux server, and the Optim Configuration Manager repository is built on a DB2 for z/OS
subsystem (DB0A).
64 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
The first step after you extract the installer file is to run the executable file on the Linux
console (Figure 3-39).
Launching installer...
===============================================================================
Choose Locale...
----------------
1- Deutsch
->2- English
3- Español
4- Français
5- Italiano
6- Português (Brasil)
Use the following command (the installation is self-guided, as shown in the figures):
./[Link]-on-linux-x86_64.bin -i console
This command runs the 64-bit server on a Linux x86 type server (consult the installation guide
for the file you need to run for your installation); this process is running in interactive console
mode.
The first item of installation information to be requested is the language of the installation or
the locale. In this example, it is English, so select 2 and press Enter.
The console describes how to navigate the installation process by describing how to proceed
to the next step, how to go back to make changes, and how to quit. It also has a URL address
to the IBM Information Center for further documentation. Press Enter when you finish reading
this console information.
-------------------------------------------------------------------------------
===============================================================================
Welcome
-------
Respond to each prompt to proceed to the next step in the installation. If you
want to change something on a previous step, type "back".
You can cancel this installation at any time by typing "quit".
Optional: [Link]
[Link]/[Link]
PRESS <ENTER> TO CONTINUE:
===============================================================================
Figure 3-40 Preparatory information to continue the install
The next portion of the Optim Configuration Manager server installation is displayed
(Figure 3-41). Specify the directory where your license file or files are located and then press
Enter. The available licenses are listed. Press Enter again.
===============================================================================
Figure 3-41 Optim Configuration Manager License information
66 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
The license agreement is displayed (Figure 3-42).
1. Definitions
=========================================
Figure 3-42 Optim Configuration Manager license agreement
The first panel of the license agreement is shown in this example. Be sure to read the
agreement, and if you agree, enter 1 and then press Enter.
Installation Directory
------------------------------
Specify the directory in which IBM InfoSphere Optim Configuration Manager will
be installed, or upgrade an existing copy. Only one copy is permitted.
===============================================================================
Figure 3-43 Installation Directory
Because this is a new installation of Optim Configuration Manager enter the number 1 and
press Enter. Accept the default installation directory (or specify a target installation directory)
and then press Enter. If the information you specified is correct, enter the letter Y (for yes).
68 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
The Repository Database Panel is displayed (Figure 3-44).
=========================================
Repository Database Panel
------------------------------
Specify the database to host the repository for IBM InfoSphere Optim
Configuration Manager. The connection to the database that you specify will be
tested, but the necessary tables and data will not be created in the database
until you run the product.
->1- Use an existing database to host the repository. The local or remote
database that you select must meet the requirements that are stated in the IBM
InfoSphere Optim Configuration Manager system requirements. The user account
you provided must have DBADM authority for the specified database.
Database type: 2
Host (DEFAULT: localhost): [Link]
Port number (DEFAULT: 50000): 38360
Location: DB0A
User name (DEFAULT: db2inst1): admr8
Password:
=========================================
Figure 3-44 Optim Configuration Manager Repository Database panel
Specify the type and location of the repository database. Because this example creates a
new repository on DB2 for z/OS, indicate 2 for the database type and provide the relevant
information that allows the Optim Configuration Manager server to reach that DB2
environment, including a user ID that has DBADM authority on the target database and DB2
environment. Press Enter.
------------------------------
The following ports enable web console users and managed clients to communicate
with the configuration manager server.
These ports must be opened in the firewall.
Specify the control port for the web console. This port is used only locally
and does not require firewall configuration.
Web server administration port number: (DEFAULT: 12208):
===============================================================================
Figure 3-45 Web information section
Preinstallation Summary
-----------------------
Product Name:
IBM InfoSphere Optim Configuration Manager
Install Folder:
/home/redbook/IOCM
===============================================================================
70 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
The confirmation (Ready To Install) panel is displayed (Figure 3-47). Press Enter to install the
InfoSphere Optim Configuration Manager.
Ready To Install
----------------
/home/redbook/IOCM
===============================================================================
Figure 3-47 Install Anywhere confirmation panel
Customize Repository
--------------------
When the server is started for the first time the necessary tables and objects
will be created in the repository. Review the script below. If you determine
that additional customization is needed, choose No below.
===============================================================================
Figure 3-48 Customization options
Choose option 2 (do not start the server) so that you can do further customization to the
object names. This is described more later. Note the name and location of the repository DDL
that is shown because you will need it later. (In practice, if you were satisfied with the provided
object names, you could have selected option 1 and pressed Enter.)
You chose not to start IBM InfoSphere Optim Configuration Manager. You will
need to start the product manually before you can start the web console.
You can open the web console for IBM InfoSphere Optim Configuration Manager
from any workstation by entering the following web address in a web browser.
You can add it as a bookmark for future use or forward it to other users of the
web console.
Please note OCM server hostname localhost and port 38361 for future reference
as you will need this information for client-side install.
[Link]
[Link]
Because you chose not to start the Optim Configuration Manager server, some final
information regarding how to launch the web console is given.
The next step is to modify the repository SQL, which, in this example, is in the following
location:
/home/redbook/IOCM/samples/repository/db2z/[Link]
After modifying this, run it on the z/OS subsystem by using IBM Data Studio rather than
SPUFI1, because this file is formatted with long-line format (over 80 characters per line) and
does not translate well into a flat file or PDS member.
After the DDL is run to conclusion, you can start the Optim Configuration Manager server by
using the following command:
/home/redbook/IOCM/bin/[Link]
When the Optim Configuration Manager server is ready, you can access the web console
from any web browser.
72 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
4
More: +
Object options: DB2 System: DB0A
AO - Authorization options DB2 SQL ID: ADMR8
G - Storage groups P - Plans
D - Databases L - Collections
S - Table spaces K - Packages
T - Tables, views, and aliases
V - Views H - Schemas
A - Aliases E - User defined data types
Y - Synonyms F - Functions
X - Indexes O - Stored procedures
C - Columns J - Triggers
N - Constraints Q - Sequences
DS - Database structures DSP - DS with plans and packages
PDC - DB2 pending definition changes
74 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
DB2 Administration Tool for z/OS integrates with DB2 utilities to simplify the creation of DB2
utility jobs. JCL can be generated for DB2 utilities and can be executed. The use of LISTDEFs
and TEMPLATEs is also supported. See Figure 4-2.
SM - Standard Maintenance C O R
BP - Change batch job parameters
TU - Specify Template Usage
76 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
DB2 Administration Tool for z/OS allows reverse engineering of DB2 objects. Reverse
engineering can be done by object, by using the DDL line command, or can be done for a
hierarchical series of objects, using the GEN command as a primary command (for multiple
objects) or a line command (for a single object). See Figure 4-4.
DB2 Admin -------------- DB0A Generate SQL from DB2 catalog ------------- 08:22
Option ===>
New names/values for generated SQL: (leave blank to use current values)
Object schema . . . . . MFSMFX3 > Run SQLID . . . . . . . . ADMR8
Object grantor . . . . . >
Alloc TS size as . . . . DEFINED (DEFINED, USED, or ALLOC)
Database name . . . . . MFMFXAB3
Storage group for TS . . > Storage group for IX . . . >
Target DB2 version . . . (Current DB2 version: 1015)
Use Masking . . . . . . NO (Yes/No)
Use Exclude Spec . . . . NO (Yes/No)
Generate catalog stats . NO (Yes/No/Only)
Target cat qualifier . > (Default is SYSIBM)
Statistics tables . . ALL (All or Select. Default is All)
Include DB2 pending chgs NO (Yes/No/Alter/Only)
Figure 4-4 Generating SQL from catalog definitions using a GEN command
DB2 Admin ------ DB0A Display/Update Resource Limit Tables --- Row 1 to 2 of 2
Command ===> Scroll ===> PAGE
Line commands:
S - Display/update STA - Start RLIMIT with ID I - Insert row
DB2 Administration Tool for z/OS enables you to alter the definition of a DB2 table. Table
alterations can either be simple where you do something that can be handled by DB2 ALTER
statements through the AL line command or can accomplish more invasive alterations,
including those requiring a DROP AND CREATE. See Figure 4-6. In addition to supporting
changes to objects that can be done only by a DROP AND CREATE, the ALT function can
also be used to alter other objects during the same change.
COL10 1 SMALLINT 2 0 N Y 1
COL20 2 INTEGER 4 0 N Y 2
COL30 3 CHAR 10 0 N Y 3
******************************* END OF DB2 DATA *******************************
Figure 4-6 ALTER Table panel through the ALT line command
78 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
DB2 Administration Tool for z/OS enables you to request the Prompt function, which prompts
you before a statement is executed. Prompting can be turned on or off for different statements
types and can be done dynamically through the PROMPT primary command. See Figure 4-7.
The Copy Privileges function is also available. One way to access this function is by using the
CP line command next to an object. This will open the Copy Privileges panel.
DB2 Administration Tool for z/OS displays the list of secondary authorization IDs and
manages SQL IDs. See Figure 4-10. DB2 Administration Tool does not introduce any new
security layer into your environment. All authorities already in place are used. For example, if
a user cannot browse the DB2 catalog, the user is not able to do so within the product.
Enter: Current:
New DB2 SQL ID ===> DB2 SQL ID: ADMR8
Secondary
S SQL ID
*
- --------
ADMR8
TESTUSER
XXUSE1
******************************* END OF DB2 DATA *******************************
Figure 4-10 Example of available secondary authorization IDs for a user
80 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
4.1.3 Performance management
DB2 Administration Tool for z/OS allows complex performance and space queries. There are
several queries that can be selected and, in some cases, the parameters of queries can be
changed from the DB2 Performance Query panel. See Figure 4-11.
More: +
WHERE database LIKE . . . DB2 System: DB0A
AND obj has more than . . 32 pages DB2 SQL ID: ADMR
DB2 Administration Tool for z/OS includes a set of performance health check catalog queries.
After these queries are run, you can then act on the objects that fail the health check. See
Figure 4-13.
DB2 Admin ------- DB0A Table Spaces with Relocated Rows > 10 P Row 1 to 1 of 1
Command ===> Scroll ===> PAGE
The following table spaces have more than 10 percent relocated rows,
that is, rows not located in their original page. Consider reorganizing the
table spaces or redesigning the programs that update the rows.
82 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
DB2 Administration Tool for z/OS enables you to perform space-related functions, such as
resizing page sets, lets you move page sets to and from STOGROUP- and VCAT-defined
space, and helps you estimate space allocations for new table spaces and indexes. This is
done by using the DB2 Administration Tool space management facility. You can also estimate
future sizes by entering dynamic, simulated changes to the objects, such as row length and
number of rows. See Figure 4-14.
DB2 Administration Tool for z/OS enables you to create and manage work statement lists
(WSLs) and run them in batch. WSLs are a series of commands that can contain DDL, utility
syntax, DB2 commands, and more. WSLs are fully restartable. Some functions within the
product force the use of WSLs such as change management operations. See Figure 4-15.
Commands: OPTIONS
Line commands:
S - Show R - Run (batch) D - Delete C - Copy A - Append Q - Clone
I - Interpret V - Validate E - Edit B - Checkpoint
DB2 Admin --------- DB0A System Parameters - System Parameters ---------- 08:58
Command ===>
84 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
4.1.4 Change management
DB2 Administration Tool for z/OS allows you to manage and track changes to DB2 objects
through the change management facility. The DB2 Object Comparison Tool is required to
enable the use of the change management function. From here you can browse, update,
analyze, run, recover changes, and more. See Figure 4-17.
Line commands:
U - Update AN - Analyze RN - Run VE - Versions ST - Statements
PQ - Prerequisites IG - Ignores MA - Masks S - Show WSL B - Checkpoint
? - Show all line commands
Owner Name
Change . . . . . . . . . : ADMR8 : D25030B
Mask . . . . . . . . . . : ? : ?
Ignore . . . . . . . . . : ? : ?
Version scope . . . . . . : ? : ?
Base version before run . : ? : ?
Base version after run . : ? : ?
Source version . . . . . : ? : ?
Target version . . . . . : ? : ?
Delta version . . . . . . : ADMR8 : D25030B
Figure 4-18 Detailed interpretation of a change
86 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
DB2 Administration Tool for z/OS allows you to recover changes that have been made, and
restore database objects to their previous state. The recover job is generated and available
for review before the change is completed. See Figure 4-19.
DB2 Admin -------------- Edit Generated JCL -------------- Columns 00001 00072
Command ===> Scroll ===> PAGE
The change management function also has a batch interface for the main processes of
change management.
Note: Before running a command on this panel, make sure you have sufficient
privilege to execute the related DB2 command.
88 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
4.1.6 Application management
DB2 Administration Tool for z/OS builds and executes dynamic SQL statements without
requiring you to know the exact SQL syntax. This is accomplished with the DB2 SQL
prototyping facility as shown in Figure 4-21.
DB2 Admin --------- DB0A Build SQL SELECT Prototype ---------- Row 1 to 5 of 5
Command ===> Scroll ===> PAGE
SELECT ?
FROM ADMR8.TEST_TAB4
FOR ?
WHERE ?
ORDER BY ?
GROUP BY ?
Commands: EDIT RESET * QUOTE INS UPD DEL COUNT COUNT_BIG
Line commands: S - Show SA - Show ASC SD - Show DESC
AVG, COUNT, COUNT_BIG, MAX, MIN, STDDEV, SUM, VARIANCE - Aggregate functions
<oper><expr>, OR <pred>, IN list, BETWEEN <expr>,<expr> - WHERE predicates
? - Show all line commands
Select Column Name Col Type Length
* * *
---------------------------------> ------------------ -------- -----------
TRANS_DATE DATE 10
CUSTNO DECIMAL 7
COL10 SMALLINT 2
COL20 SMALLINT 2
REMARKS VARCHAR 254
******************************* END OF DB2 DATA *******************************
Figure 4-21 SQL prototyping facility
DB2 Administration Tool for z/OS allows you to work with a copy of the DB2 catalog to avoid
contention and other performance problems on the actual catalog. Multiple copies can be
used as shown in Figure 4-22.
DB2 Admin -------------- DB0A Select Copy of DB2 Catalog ----- Row 1 to 5 of 5
Command ===> Scroll ===> PAGE
90 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
4.2 New features in DB2 Administration Tool for z/OS
This section highlights some of the newer features of DB2 Administration Tool 10.2 that were
introduced since the previous publication, Managing IBM DB2 10 for z/OS Using the IBM DB2
Administration Tool for z/OS Version 10, SG24-7916. The list changes as new features are
constantly added to the product.
For example, to retrieve a list of table spaces for an existing list of tables, use the ALL S
primary command, as shown in Figure 4-24.
92 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
DB2 Admin ----------------- DB0A Details for object(s) ---------------- 13:09
Command ===> Scroll ===> PAGE
Table information
Table schema . . . : ADMR8 Table name . . . . : RLSSEG_TB1
Created by . . . . : ADMR8 Created . : 2013-03-26-13.28.44.233635
Table space name . : RLSTSSG Database name . . : RLSDBZ
Object ID for table: 46 DB ID for database : 339
Maximum row length : 14 Primary key OBID . : N/A
Number of columns : 2 Primary key columns: N/A
Validate procedure : N/A EDIT procedure name: N/A
Parent relations . : 0 Child relations . : 0
Auditing . . . . . : AUDIT NONE Status . . : No primary key
Data capture . . . : NO Altered . : 2013-03-26-13.28.44.233635
Restrict on DROP . : NO Check constraints : None
Encoding scheme . : E - EBCDIC Col. in part. key : 0
Check flag . . . : No VOLATILE table . . : No
Created in DB2 Ver : O - DB2 V10 Dependent MQTS . . : 0
Data version . . . : 0
Table owner . . . : ADMR8
Owner type . . . . : Auth ID Append specified . : No
Clone table schema : Clone table name . :
Access control . . : ' ' - Not enforced
Number of hash cols: 0
Versioning Schema. : Versioning Table . :
Associated remarks :
Column Name Col No Col Type Length Scale Null Def FP Col card
------------------ ------ -------- ------ ------ ---- --- -- -----------
COL10 1 SMALLINT 2 0 N Y N -1
COL20 2 INTEGER 4 0 N Y N -1
Index C C C C
Index Name Schema U Cols G D L M First Key Full Key
------------------ -------- - ------ - - - - ----------- -----------
RLSSEG_IX1 ADMR8 D 1 N N Y N -1 -1
More: +
1 One-to-one - Copy from one object to another
2 One-to-many - Copy from one object to many others
3 Many-to-many - Copy from many objects to many objects
Options:
Run SQLID . . . . . . . .
Figure 4-27 Copy Privileges panel
94 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
4.2.5 Enhancements to UTIL
Standard maintenance is now available with a new command on the utility panel. With this
command, you to chain together several utilities for an object or objects. See Figure 4-28. You
specify utilities you want on the panel and when the SM primary command is used, a series of
utilities are generated for the objects. If the series of utilities are standard, they are saved until
you change them.
SM - Standard Maintenance C O R
BP - Change batch job parameters
TU - Specify Template Usage
You can also use DB2 Object Comparison Tool for the following tasks:
Build a compare operation by using the walk-through option, which provides an
end-to-end framework for specifying job options.
Generate target changes to a work statement list (WSL) for propagation to remote sites.
Report differences by using a variety of reports.
Account for intentional differences and naming discrepancies between two sets of objects.
Source
The source is the object or objects you want to use as a model to apply to your target
environments. For example, perhaps you have a change in a development DB2 subsystem
that you want to move to a production DB2 subsystem. The development DB2 subsystem
will be the source. The source information can be DDL, the DB2 catalog, or a version file
(Figure 5-1).
VS - Source is from the DB2 catalog and the objects are selected from
a version scope
Exclude Specifications:
Owner . . . . . . . . > (Optional, default is ADMR8, ? to lookup)
Name . . . . . . . . > (Required, ? to lookup)
Edit Objects . . . . NO (Yes/No)
98 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Target
The target is the destination of any propagated changes. To extrapolate the example, the
production DB2 subsystem is the target. The target information can be DDL, the DB2 catalog,
or a version file (see Figure 5-2).
Exclude Specifications:
Owner . . . . . . . . > (Optional, default is ADMR8, ? to lookup)
Name . . . . . . . . > (Required, ? to lookup)
Edit Objects . . . . NO (Yes/No)
Version File
The version file is the repository of the source or target information. It is a proprietary format
file that can be put into a flat file, a PDS or into the DB2 Administration Tool database. The
compare process works only with version files, which means that if DDL or objects in a DB2
catalog are specified for the source, target, or source and target, they must be converted or
extracted to a version file. This is done normally as part of the DB2 Object Comparison Tool
process flow. See 5.1.2, “DB2 Object Comparison Tool process flow” on page 101.
Mask
The mask is optional and basically functions for two purposes. One is to establish object
equality when object qualifiers are different. For example, comparing a table named
SCHEMA1.TABLE1 to SCHEMA2.TABLE2 requires a mask to indicate that SCHEMA1 is
congruous with SCHEMA2. This allows the compare process to “know” these two objects are
equivalent. If no equivalent object is found on the target, the mask is used to appropriately
name objects.
Ignore
An ignore designation (also optional) indicates to the compare process that an inequality in a
DB2 catalog value is expected so do not generate a change for the said value An example of
this might be space parameters when comparing a development environment to a production
environment where the space values likely differ. Ignore files can be provided through flat
files, partitioned data sets, or the DB2 Administration Tool databases. See Figure 5-4.
More: +
100 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
5.1.2 DB2 Object Comparison Tool process flow
The general flow of the compare process is relatively simple. After the user specifies all of the
information to do the comparison, the steps are as follows:
1. If the source is DDL or objects from the DB2 catalog, the source is extracted to a
version file.
2. If the target is DDL or objects from the DB2 catalog, the source is extracted to another
version file.
3. The comparison is run using the source version, the target version, the designated mask
(if any). and the designated ignore (if any). A report and a changes file are produced.
4. If jobs to propagate changes are requested (called apply jobs), the changes file is used as
input and the apply jobs are generated.
Reviewing the result of the compare report to see that everything looks correct is important.
New users to DB2 Object Comparison Tool might forget items such as masks. If you must
change the masks, do so and rerun the process. No changes are made to the target
environment until you manually submit the generated apply jobs or run the generated work
statement list.
You can customize the DB2 Administration Tool (DB2 Admin) product to add DB2 Object
Compare to the main menu, as shown in Figure 5-5. This is done as part of the install process
for DB2 Administration Tool and can be done after the fact.
Figure 5-5 Example of main menu with option to launch DB2 Object Comparison Tool
102 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
6
104 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Developer is an individual component of a form. Controls allow users to view and edit data.
Examples of controls include edit boxes, list boxes, and buttons.
This section has a general discussion of each DB2 Table Editor component, the purpose it
serves, and the benefits garnered by using it.
Console
The DB2 Table Editor Console is used to set up and manage server definition files (SDFs).
SDFs contain the technical information that DB2 Table Editor requires to connect users to
database servers. There are four basic tasks that you perform with DB2 Table Editor Console:
Define and configure the database servers that are accessed by DB2 Table Editor Java
player and DB2 Table Editor User components.
Create database tables, bind database packages, and grant authority on user packages.
Set up governing.
Create sample database tables.
Developer
DB2 Table Editor Developer is a development environment in which you can build table
editing applications. Using theDB2 Table Editor Developer drag-and-drop interface, you can
build forms that provide a simple, graphical interface to IBM DB2 database, without
programming. The forms you design with DB2 Table Editor Developer allow your users to
access, search and edit data. Before working with DB2 Table Editor Developer, you must
define and configure the database servers to which you want to connect using DB2 Table
Editor Console.
ISPF
Three client versions of DB2 Table Editor for z/OS are available to access z/OS or OS/390
servers: a Windows version, a Java version, and an ISPF version. The ISPF client is intended
for database administrators and developers who want to use DB2 Table Editor to edit tables
and modify data in an ISPF environment. DB2 Table Editor for ISPF allows you to work with
DB2 tables in an ISPF environment using a quick and easy interface. You can access, edit,
and search data that is stored on databases that are linked to DB2 Table Editor. You can also
perform insert, update, and delete operations without writing SQL.
DB2 Launchpad
DB2 Launchpad is a facility, provided with DB2 Administration Tool, to help you create a
single panel where you can launch tools across the portfolio. The DB2 Table Editor installation
process includes jobs, if you choose to generate them, that add an entry for DB2 Table Editor
to the DB2 Launchpad. The DB2 Launchpad is invoked through the following TSO command:
EX ‘<DB2 Admin Library High Level>.SADBCLST(ADBL)’ ‘DMT’
If you omit the ‘DMT’ parameter, the DB2 Administration Tool main menu is displayed;
otherwise, the DB2 Launchpad is displayed. See Figure 6-1
Specify DB2 SSID (opt) ===> DB0A (Enter '?' for a list of active SSIDs)
Select the DB2 tool you wish to launch or enter its code in the command line.
Note: APAR PM93870 adds edit-line-command support for DB2 File Manager in addition
to DB2 Table Editor.
106 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
In the Tables, Views and Aliases panel, you can use the EDIT line command, as shown in
Figure 6-2.
DB2 Admin --------------- DB0A Tables, Views, and Aliases ---- Row 1 to 2 of 2
Command ===> Scroll ===> PAGE
If you press Enter, the column selection panel in DB2 Table Editor is displayed (Figure 6-3).
Notice how the table information is already completed.
Valid Commands: Edit, Browse, SQL, Count, CANcel, SAve, Load, END/PF3
From here you can do all of the functions available through the ISPF interface such as edit
and browse.
The chapter, which has the following topics, examines the capabilities to identify and track
changes to both the server and client environments, to implement best practices, and to
manage application performance:
Optim Configuration Manager overview
Optim Configuration Manager architecture
Features and functions of Optim Configuration Manager
See the IBM InfoSphere Optim Configuration Manager for DB2 for z/OS website:
[Link]
With Optim Configuration Manager, you can gain control of clients that are accessing your
data in a way that you have never been able to until now. For example, you can control driver
and data source properties, the number of connections for an application and set special
registers, among other properties, without changing the applications. This allows you to set a
central policy and enforce it at the server rather than at the desktop, giving you greater control
of how clients access DB2 data and the information to present upon connection.
Figure 7-1 shows a high-level representation of the features of Optim Configuration Manager
that can be used in a z/OS environment.
Control Clients (JCC, CLI, .NET) Centrally Manage Entire DB2 z/OS
Environment
Isolate/Throttle “rogue” Apps to limit
impact on the SYSPLEX Deploy Location Aliases or
Enforce best practices configuration – Application Profiles with DB2 for z/OS
WLM, WLB, WAS Pool v10
Redirect client connections for high Define zParms with DB2 for z/OS v9
availability or staged rol l-out or DB2 for z/OS v10
Note: With OCM client install Show changes made via z Admin Tool
and z Admin OC Tool
110 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Some of the more detailed questions that can be easily answered by Optim Configuration
Manager are shown in Figure 7-2. These features are discussed in detail later in this chapter
Can I find clients that are non- What WAS versions are
compliant? i.e. not setting client DB2 for z/OS currently in use?
accounting string? OCM
Repository
What data source
What driver properties are
set for a particular driver? properties are set for a
particular data source?
Optim Configuration Manager can be used to control a DB2 for Linux, UNIX, and Windows
environment also, although not all of the features mentioned in this book are available on the
DB2 for Linux, UNIX, and Windows platform. Additional features are available only for the
Linux, UNIX, and Windows platform. These additional features and the licensing necessary to
run Optim Configuration Manager are not discussed in this book.
As shown in Figure 7-3 on page 112, several components constitute Optim Configuration
Manager:
Optim Configuration Manager server
Optim Configuration Manager web interface
Optim Configuration Manager clients
Optim Configuration Managed Servers
Optim Configuration Manager DB2 repository
Job Manager
-Configuration Mgmt Querying Service
-Configuration Compare
Recording Service
DB2
DB2 Explore and
DB2 Track DB2 for z/OS
DB2
OCM
DB2 for z/OS Repository
Managed Servers
112 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
The Optim Configuration Manager server provides the mechanism for configuring, capturing,
and executing the Optim Configuration Manager jobs. These jobs, which are not to be
confused with z/OS jobs, provide the ability to run comparisons, and manage the
configurations. To set up an Optim Configuration Manager job, first select ADD Job from the
Job Manager window; you are next prompted to select the details you want to collect, as
shown in Figure 7-4.
In addition, you can decide to include or exclude objects in this panel (Figure 7-5).
.
Figure 7-5 Defining Optim Configuration Manager jobs: Including and Excluding Objects
After the schedule is set, you may set what actions to take after successful completion or on
failure of the jobs; this is called chaining. See Figure 7-7. These jobs must be defined within
the Optim Configuration Manager Job Manager. To indicate which databases to run this job
against, click the Databases tab from the Schedules view.
.
114 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Define notifications that can be sent out when the job completes (Figure 7-8). You can
configure the email service from the setup view.
.
By using the notification criteria, you can be notified of only successes, only failures, or both.
The Optim Configuration Manager server is the interface for the Managed Clients to the
repository and is the engine that provides the ability to change properties of clients. It
provides the mechanism for recording and querying the Optim Configuration Manager
repository through the Optim Configuration Manager user interface. For Recorded Clients, the
server collects the information from the managed server (in this case theDB2 subsystem) and
records it in the repository.
You can maintain business continuity by deploying the Optim Configuration Manager server in
a highly available and load balanced environment and configuring a back-up server for
failover. The configuration management tool supports Active/Active architecture, so that an
application client can switch to another server by using a redundant communications network
and ensuring the application remains available.
The configuration management server uses existing technology to manage the data in its
repository, and each server in an active/active deployment should have access to its
repository data. This can be achieved by using one of the following methods:
Maintaining a single shared repository with disk mirroring for redundancy
Maintaining two copies of the repository that are kept in step using replication technology
After you create rules to set application properties, the rules remain enforced and survive and
outages to the server.
Two types of clients, from an Optim Configuration Manager perspective, must be understood:
Managed Clients
Recorded Client
Managed Clients
Managed Clients are clients that have had the Optim Configuration Manager client deployed
onto it. Deploying the Optim Configuration Manager client allows Optim Configuration
Manager to do the following tasks:
Isolate or throttle poorly behaving applications with a DB2 for z/OS data sharing group.
Redirect application clients between DB2 for z/OS systems for high availability or in a
migration scenario.
Enforce application client and driver properties.
Enforce Workload Manager (WLM) policies.
Identify a greater range of changes to client properties.
Note: Controlling application clients requires JCC driver level 3.63.81, 4.13.86 or later.
Recorded Clients
Recorded Clients are clients that have not had the Optim Configuration Manager client
deployed. Information for these clients is captured using the -DISPLAY THREAD command and
therefore less information is collected and stored about these clients. As with the DISPLAY
THREAD command, if the client connection is terminated, the client information no longer
shows in “Recorded Clients.”
The repository is populated by the Recording service of the Optim Configuration Manager
service and by the DB2 Administration Tool Change Management process, both batch and
online. These changes are recorded in the repository at commit time as the change is being
executed, and show the DDL being run.
116 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
7.3 Features and functions of Optim Configuration Manager
As shown previously (Figure 7-1 on page 110), Optim Configuration Manager can be used in
four main areas: understand, solve, control, and manage environments and clients. To track
the client changes and to override client property changes you must be running Managed
Clients (see “Managed Clients” on page 116).
Optim Configuration Manager allows you to override client configurations without having to
push changes down to the individual client hardware. This function can potentially reduce the
cost of making changes to the client software and enables the enforcement of best practices.
One example is ensuring that client information is correct in the client properties. Examples of
Optim Configuration Manager overriding parameters are shown in 7.3.3, “Application
controls” on page 125.
The source and target of the comparison can be the same subsystems, subsystems within
the same data sharing group (for ZPARMS comparison), or completely separate subsystems
(such as a test subsystem and production).
Figure 7-10 shows the details after you drill down from the report summary.
118 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Database, tables, views, packages and other objects
The comparison report shows a high-level compare of the DB2 objects captured at the
time the information was gathered. This report highlights any difference in the number of
objects and in the definitions of DB2 objects. By drilling down from the initial report you
can identify objects that have been created, dropped, or have other differences, such as
column definition errors. Figure 7-11 show a report with differences between two tables.
By using the information collected about changes to servers, you can quickly identify changes
that might have contributed to application performance degradation or even a application
outages. Changes might be the dropping of indexes or incorrect column definitions.
Another potential use of the server comparison is to ensure that, after migrating to a new
version of DB2, the ZPARMS are the values that you expected and that all your changes have
been made to all members of a data sharing group.
DB2 object and authorization changes that are made using DB2 Administration Tool and DB2
Object Comparison Tool can be tracked within Optim Configuration Manager. Change
Management writes details of the changes directly in real time into the Optim Configuration
Manager DB2 Repository from which Optim Configuration Manager can display the changes.
Data for Recorded Clients is collected at the same time as the server information is collected;
the client information is collected through the -DISPLAY THREAD(*) command.
The Managed Client information is initially collected at the next statistics interval for each
client after the client is upgraded to the required driver and Optim Configuration Manager
levels. The delta is automatically gathered when the client reports to Optim Configuration
Manager at configurable statistics collection intervals as set in the Control section of the
Optim Configuration Manager Preferences; the default is 15 minutes.
Tip: Consider reducing the polling default for clients from 15 minutes to allow the more
frequent collection of client statistics, and earlier identification of changes.
120 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
The following client information is captured:
Managed Client
– IP address, UUID, client information fields
– JDBC/JNDI information, IBM WebSphere® Application Server information, client driver
information
– Target IP, port, DB name
Recorded Client
– Authentication ID, where hosted
– Subsystem name, client
Note: UUID is a globally unique identifier that is created when you install a Data Tools
Runtime Client. The client automatically sends this identifying information to the Optim
Configuration Manager server.
After the capture, you can compare the captured data to identify any changes that were
made. Figure 7-13 shows output of a comparison of different captures from the same client.
The client changes that can be compared (for Managed Clients) are properties pertaining to
the following items:
Drivers
Data sources
After identifying the source, you can select a category to use for comparison:
Connection name
Connection set name
Data server type
Data server version
Host name
User ID
The category identifies the targets for the comparison. If any new servers are added to your
environment, they are automatically added to the configuration if they meet the selection
criteria specified for the target name.
122 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
You have now defined the source and target environments and you can now refine the
comparison between the source and targets to allow for expected changes between the
configurations. See Figure 7-15.
For example you might want to refine based on the following criteria:
Differences in schema names
Differences in table names, columns names etc
Exclude schemas
The comparison reports can be automated and run on a regular basis. Any differences that
are found can be notified immediately through email showing a summary of the changes,
which can be investigated further by detailed reports viewed from within the repository.
Client inventory
One key concern when migrating DB2 versions is the level of client that is connecting to DB2.
At each release of DB2, there is a minimum and a recommended level of client software to
either tolerate the new features or to exploit the new features.
With Optim Configuration Manager, you can build an inventory of client locations, what
versions of drivers are available, and what properties are set for those drivers (Figure 7-16).
Having this inventory can help you understand the amount of effort that is required to upgrade
the drivers, and you can identify any properties that might need addressing before any
planned upgrade. In addition, you can track changes throughout the project to ensure that the
landscape is not changing.
When migrating DB2 you can use Optim Configuration Manager to redirect clients from the
current version to the new version of DB2 in a controlled manner. This allows you to stage the
migration in an orderly manner and ensure that everything is working correctly before
completing the migration. See Figure 7-17 on page 125. If the performance, for example, was
not acceptable, then you are able to switch the application back to the original version without
incurring an outage or any changes to the application.
124 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Redirect Apps for Migration / High Availability
Apps A Apps B
OCM
OCM allows you to stage the migration (pick Apps B first), observe performance, and
even rollback the app if it does not perform w/o requiring any changes to the app!
OCM also allows you to route selective apps for High Availability or Load Balancing
across two subsystems!
To set this up, configure and enable a task to redirect database connections. The application
is then redirected to the new DB2 environment upon a recycle. One exception is for
WebSphere Application Server (APARs [Link], [Link] and [Link]), which has a
new feature that redirects connections without requiring a recycle operation. WebSphere
Application Server waits for its connection pool to reach zero before redirecting the
connections.
You can use the same methodology to configure tasks to route selective applications to
a different DB2 for high availability or for load-balancing reasons. This again is without
application changes.
There are no changes required on the DB2 environment to implement assuming all DB2
environments are already set up.
Optim Configuration Manager can be used to manage the DB2 10 location alias feature, you
can view and report status of each alias, and also start, stop, edit or cancel a location alias.
Additionally a history of changes is kept for audit purposes showing the changes to location
aliases.
With this feature, you can define location aliases with the Optim Configuration Manager tool to
implement application controls, described in “Controlling errant applications” on page 126,
ensuring that the control can be implemented efficiently without leaving the Optim
Configuration Manager tool, allowing timely intervention.
This is achieved by defining a location alias (known as penalty box) for a member or members
within the data sharing group. When the defined rule is breached, the application is moved
into the location alias at the next transaction boundary.
See Figure 7-18 on page 127. Application B starts consuming excessive resources, which
are picked up by OMPE. While this is being investigated, the “Isolate application transaction”
rule is breached so the next time that application transaction is established, it is routed to the
penalty box, in this case M3.
Member M3 normally has restricted resources, which allows Application A to get the
resources that it requires. This protects service-level agreements (SLAs) of any other
application in this data sharing group and allows time for a solution to be found for
Application B.
After the problem is solved, Application B can be routed back to the other members and
allowed to run on M1 and M2.
126 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Isolate Errant Applications
Apps B
Apps B Apps A
Apps A
Slow
OCM
M1 M2 M3 M1 M2 M3
The benefit of this feature is that you can quickly and automatically identify and move any
transactions that are exceeding their defined resource consumption before they can affect
other transactions and their SLAs, giving support personnel time to rectify the problems.
An outage is not required for this change, or for the rerouting of the application to M3 and
back again, because changes are made at transaction boundaries.
You must have a Penalty Box data sharing member that is set up and a location alias that you
created that points to this member or members.
See Figure 7-19. This is all done without any application outages.
In this example, Application A is a high priority application, Application B has had the same
clientUser coded but should be running as a lower priority. This has not been coded at the
client so the application is running as a high-priority application.
Using the “Map workload management service classes” rule, you can set the rule to identify
Application B and automatically set the WLM service class to a more appropriate class (in this
case SILVER). This takes effect when the rule is enabled.
You must have set up the WLM service classes in advance and the change of WLM class
does not require an outage.
128 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Setting special registers
To take advantage of some features of DB2 it is advantageous to set special registers within
the application rather than to set it at a ZPARMS level. This allows you to control the
granularity of the feature or to test the feature before making it available to all applications.
By using Optim Configuration Manager you can set special registers without needing to make
any application change. For example, Figure 7-20 shows how you can confirm whether an
individual application can benefit from using the IBM DB2 Analytics Accelerator appliance,
using Optim Configuration Manager to set the special register QUERY_ACCELERATION
dynamically without amending the programs. This change does not affect any other
application executing and the programs use the DB2 tables and not the appliance.
A p ps B
A pps A Ap ps B A pps A
OCM
Figure 7-21 shows how you can use Optim Configuration Manager to reign in applications
that are making too many connections and affecting performance of other applications by
taking the lion share of the resources available on the system.
This example shows that Application B opens too many connections to the DB2 data sharing
group, which in turn affects the high priority workload being driven through Application A. By
using Optim Configuration Manager, you can change the data source and driver properties, in
this case maxTransportObjects, to scale back the number of connections allowed by
Application B.
To achieve this, you must define and enable a “Throttle database connections” rule. The new
properties take effect immediately. No application outages or changes are required.
130 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Enabling DB2 application profiles
Starting with DB2 10 for z/OS, you can monitor an application using application profiles.
A profile is a set of criteria that identifies a particular context on a DB2 subsystem, such as
threads, connections, or SQL statements that have particular attributes. You can create
profiles to define filtering scopes for processes within DB2 and specify actions for DB2 to take
when a process, such as a SQL statement, thread, or connection, meets the criteria of the
profile.
How you define a profile depends on the context that you want to define and the actions that
you want DB2 to perform. A valid row in SYSIBM.DSN_PROFILE_TABLE always contains
null values in some columns. Which of the following columns that you define depends on the
purpose of the profile:
AUTHID
COLLID
LOCATION
PKGNAME
PLANNAME
PRDID
ROLE
CLIENT_APPLNAME
CLIENT_USERID
CLIENT_WRKSTNNAME
For more information about DB2 Application Profiles see Chapter 44 (“Planning for
performance monitoring”) in DB2 10 for z/OS Managing Performance, SC19-2978.
Optim Configuration Manager can assist you in setting up and enabling the application
profile rules.
With the DB2 Object Comparison Tool, you can compare a source environment to a target
environment in order to identify the differences between the two. You can also optionally
generate APPLY jobs, which when submitted, cause the target to look like the source. The
tool requires the DB2 Administration Tool to be installed and customized.
Together the DB2 Administration Tool and the DB2 Object Comparison Tool provide the ability
to manage changes. A managed change is one where the change is registered in the Change
Management Repository through the change management processes of import or register.
The repository consists of a set of DB2 tables that are created by the Tools Customizer (TCz)
when customizing the DB2 Administration Tool. The change management process has three
possible settings:
NONE: This is the default. Even if the Change Management Repository tables have been
created, the changes are not stored in the repository.
OPTIONAL: The user has a choice of using or not using the change management process
(import or register) to store the change definition in the Change Management Repository.
REQUIRED: All changes are either imported or registered in the Change Management
Repository.
To use the change management process you must first update the Change Management ID
table (ADBCID) and change the default level setting for the system from NONE to OPTIONAL
or REQUIRED, or insert individual user IDs and set the levels for each ID to OPTIONAL,
REQUIRED, or NONE.
134 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
For example, in Figure 8-1 all of the users are set to OPTIONAL, but DBA104 is REQUIRED
to use the change management process.
Issue the CMM command on the top line of the DB2 Administration Tool panels and select
option 5 to display the contents of the CM Management ID table.
Commands: CANCEL
Line commands: I - Insert D - Delete
The method for defining a change is the same whether the change is managed or
non-managed. However, additional benefits are associated with using managed changes:
Virtual change: User is notified if another change has been defined for the same object.
The user can elect to either apply the change, which means that the new change is
merged with the previously defined change, or supersede (bypass) the previously defined
change. This capability minimizes the amount of confusion and duplicated efforts on the
part of the database administrator (DBA).
Audit capabilities: Provides a set of reports on completed changes or uncompleted
changes for the local subsystem.
After editing the data values, press F3 to return to the DB2 Administration Tool Tables, Views,
and Aliases panel (ADB21T). This is the time that the edited data values are committed. The
benefit of this integration is that the user does not have to leave the DB2 Administration Tool
to edit or browse data values.
Note: The DB2 Administration Tool has a BR (browse) line command. The DB2 Table Editor
also has a BROWSE option, which is more robust than the browse option of the DB2
Administration Tool. The DB2 Table Editor panels can be customized to “freeze” specified
columns so that when you scroll right and left, the key information can remain in view.
136 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
8.3 Integration between DB2 Administration Tool, DB2 Object
Comparison Tool, and Optim Configuration Manager
With Optim Configuration Manager, you can audit or capture committed changes for all
subsystems in one central location. Its integration point in the DB2 Administration Solution
Pack is at the reporting level.
As indicated previously, the DB2 Administration Tool Change Management Process can
report on completed and non-completed changes. Optim Configuration Manager can also
report on completed changes. Although you might think that both products are providing the
same information, they are not. Table 8-1 contains a synopsis of the differences between the
two products.
Table 8-1 DB2 Administration Tool reporting versus Optim Configuration Manager reporting
DB2 Administration Tool Change Optim Configuration Manager with Optim Configuration Manager with
Management no integration with Admin Tool integration with Admin Tool
Reports on intended changes; if The report of actual changes is limited Reports on the actual change
someone goes outside the products to showing before and after values of regardless of the origin of the change.
change management realm (for a DB2 catalog table row. The intended changes shown by DB2
example they use SPUFI) and makes Administration Tool are the intended
a change to an object, that change is SQL statements.
not reported by the DB2
Administration Tool change
management reports.
Does not report on the SQL Captures and reports on the actual
statements actually executed, but DDL and DCL executed for each
rather reports on the statements that change. This data originates from
were intended to be executed. a DB2 Administration Tool.
Reports on the changes in the local Reports on changes for the entire
system.b enterprise.
Important: Because the Optim Configuration Manager reports on the actual changes, this
information can be used to help quickly identify the source for problems.
138 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Part 3
The IBM DB2 Administration Tool Pack’s DB2 Administration Tool and DB2 Object
Comparison Tool can provide assistance for accomplishing the necessary tasks needed to
import, define, analyze, run, and propagate changes. Optim Configuration Manager can be
used to monitor or view all changes that have been completed through the use of its
Configuration Changes and Administration Tool Explorer options. See Chapter 7, “InfoSphere
Optim Configuration Manager” on page 109.
This chapter provides background information for change management actions using the
functions of the DB2 Administration Tool Pack’s DB2 Administration Tool and DB2 Object
Comparison Tool.
142 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
The process is supported by ISPF and batch interfaces. Using the change management
process offers several benefits:
– The recording and tracking of changes
– A virtual change capability, whereby the user is notified when other changes against
the same object have been previously defined but not completed
– Ability to propagate changes utilizing a delta change file
– Attain the best usage of the Optim Configuration Manager capabilities
Change Management Batch (CM Batch)
This is the batch interface for making changes to DB2 objects. Provides access to the
main processes of change management (import, register, analyze, run, and recover) in
batch without having to launch the DB2 Administration Tool product and navigate through
the panels. It allows the user to create, customize, and reuse batch jobs when managing
and propagating their changes using DB2 Administration Tool change management
process.
EXCLUDE SPECIFICATIONS
This allows the user to exclude objects and authorizations from a compare process.
Fast change (immediate)
This is a type of change that is immediately executed through an ALTER command and is
registered in the Change Management repository with a status of COMPLETE. If the
change management process is activated and the AL line command is issued, you are
prompted to either run the change as an immediate change or register the change as a
normal change (which means that the ANALYZE and RUN steps must be issued before
the change is completed).
IGNORE CHANGES SPECIFICATION
This allows the user to specify changes that are not to be considered as part of the
compare. Currently, only table changes are supported. The scope of allowable changes
will be extended in the future.
RECOVER Change
This is a named change that can be generated at the time of analyzing when using the
change management process. The change is registered in the Change Management
Repository with an ANALYZED status and is ready to run if a change must be backed out.
RUN
The RUN job is the job that makes the physical change. To run a change, issue the ISPF
RN line command next to the name of a change that is in ANALYZED status. To build a run
job, the RN line command can be used or you can use CM Batch with the
action_build_run_job parameter. If the change was analyzed using CM Batch, the run
job is built by default.
Submit the run job to run a change. Using the DB2 Administration Tool panels, the run
job can be accessed by issuing the ER line command next to a change, regardless if the
change was analyzed using CM Batch or using DB2 Administration Tool panels. If the
change was analyzed using CM Batch, the location of the run job is displayed in the job
output of the analyze job.
SUPERSEDE
This is an alternative to the APPLY option when a pending change to the same object
exists in the Change Management Repository. If SUPERSEDE is selected, the status of
the other changes reverts to DEFINED and has to be reanalyzed. The reason for this
In DB2 many object changes can be accomplished by executing a DDL statement such as
ALTER and DROP. The list of changes that can be made in this fashion grows with each new
release of DB2 through a facility known as online schema evolution. There are times when
these types of changes will place an object in advisory pending status and require a REORG
to fully materialize the change. This type of change is considered to be non-intrusive because
it does not impact the availability of the application at the time the change is specified. The
DB2 tools support online schema evolution, where applicable, and provide the option to
automate the REORG utility to remove the advisory pending status if you want.
Other changes might be intrusive because additional actions are required to complete the
change, thereby impacting the availability of the application. For example, if a column is
added to the middle of a table, it is necessary to unload the data, drop the object, re-create
the object, and reload the data to complete the change.
Two ISPF line commands for defining an alter process in the DB2 Administration Tool
are AL and ALT:
AL line command: See 11.2, “Change scenario 1: Alter BC_PROJ Table” on page 170 for
an example of a fast change. Consider the following information:
– Can be used only for making non-intrusive changes.
– Works against one object at a time.
– When used in the Change Management Process, the AL line command can execute or
run a change immediately (fast change) or be registered as a normal change requiring
an analyze and run process or function of the tool to complete the change.
– Can be issued against databases, table spaces, tables, aliases, materialized query
tables, indexes, functions, stored procedures, sequences, XML DOCID, stogroups,
triggers, masks, and permissions.
144 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
ALT line command: See 11.3, “Change scenario 2: ALT Tables and change propagation
delta change” on page 179 for an example of a normal change. Consider the following
information:
– Can be used for both non-intrusive and intrusive types of changes.
For example, if a change can be completed using just an ALTER DDL statement, the
DB2 Administration Tool ALT option generates just an ALTER process. If the change
requires additional functions, ALT generates all of the necessary steps needed to
complete the change.
– Can make changes to one or more objects within one change session by using ADD
objects to the change.
– When used in the Change Management Process, ALT requires changes to go through
the ANALYZE and RUN processes to complete the change.
– Can be issued against databases, tables spaces, indexes, views, and other objects
such as procedures.
The Alter Objects panel (ADB27CA) in Figure 9-1 lists seven objects included in the change
specification defined by the ALT line command.
Object Object RI RI FK
Sel Qual Name Ty Info 1 Info 2 Rels Add Add Operation
* * * * * * * * *
--- -------> -----------------> -- -------> -------> ------ --- --- ----------
BCD076DA BC_VSTAFAC2 VW BCD076DA BCTSEPA NA NA MODIFY
BCD076DA BC_VPROJRE1 VW BCD076DA BCTSPROJ NA NA MODIFY
BCD076DA BC_VPHONE VW BCD076DA BCTSEMP NA NA MODIFY
BCD076DA BC_VEMPDPT1 VW BCD076DA BCTSDEPT NA NA MODIFY
BCD076DA BC_VEMP VW BCD076DA BCTSEMP NA NA MODIFY
BCD076DA BC_VDEPMG1 VW BCD076DA BCTSDEPT NA NA MODIFY
*EL BCD076DA BC_EMPLOYEE TB BCD076DA BCTSEMP 0 NA NA MODIFY
******************************* END OF DB2 DATA ******************************
Related objects
The DB2 Administration Tool has several restrictions when adding or renaming columns in a
table, as in the following examples:
New columns are not automatically included in views or indexes.
If a column has been renamed, the new name is not automatically reflected in the view, if
the view accesses more than one table.
In these instances, it is necessary to include related objects in the change specification using
the DB2 Administration Tool REL line command. REL is available only when using the ALT line
command.
An example of using the REL and ADD commands is in 11.3, “Change scenario 2: ALT Tables
and change propagation delta change” on page 179.
Worklist information:
Worklist name . . . . . . . (also used as middle qualifier in DSNs)
Prefix for data sets . . .
Options:
Generate online . . . . . . NO (Yes/No)
Generate one job . . . . . YES (Yes/No)
Member name or prefix . . APPLY
As work statement list . . YES (Yes/No)
Content of apply job(s) . . ALL (All, DDL)
Unload method . . . . . . . U (Unload, Parallel unload, HPU)
Optional processes:
Run CHECK DATA . . . . . NO (Yes/No)
Run COPY . . . . . . . . N (after: Reload/Alter/Both/None)
Run REORG/REBUILD . . . . N (Mandatory, All relevant, None)
Run RUNSTATS . . . . . . N (after: Reload/Alter/Both/None)
Run REBIND . . . . . . . NO (Yes/No)
Figure 9-2 Build Analyze and Apply Job panel (ADBPALT): Non-managed changes
146 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
After this panel is completed, either a native JCL Analyze and Apply job is stored in a PDS
or the change control cards are stored as a work statement list member in a work
statement list library. A work statement list member may be run online or in batch to
complete the change. Automatic restarting is supported.
Managed changes
This is referred to in the documentation as the Change Management Process and
provides a higher degree of control over the management of changes. Several
requirements must be met to use this process:
– Both DB2 Administration Tool and DB2 Object Comparison Tool must be licensed.
Given that both tools are included in the DB2 Administration Solution Pack, this feature
is available for all licensees of the pack.
– The Tools Customizer (TCz) parameter (Enable Change Management) must be
set to Yes.
– The Change Management (CM) ID table must be updated to reflect one of the following
three levels.
• NONE: The Change Management Process is not used (default setting).
• OPTIONAL: The user can elect to use the Change Management Process or not.
• REQUIRED: All changes are using the Change Management Process.
If set to OPTIONAL, the user must choose whether to use Change Management for the
change. An example of this panel is in Figure 9-3.
Managing changes by using the Change Management Process offers several benefits:
– An audit capability whereby completed and incomplete changes can be reported
– Batch interface for propagating changes
– Enablement of change propagation to multiple target environments using a delta
change file
– Conflict resolution to notify regarding pending changes - option to APPLY the change
to an existing change or to supersede or bypass the existing change
– Integration with InfoSphere Optim Configuration Manager to track changes at the
enterprise level
Note: Optim Configuration Manager users see the most benefit with the implementation of
the change management process or managed changes.
148 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Change Management Batch
The Change Management Process also has a batch interface referred to as CM Batch. This
interface is customized using TCz and it is created in a JCL procedure library as specified by
the person who customizes DB2 Administration Tool using TCz. The GOCCM2 member
remains in the SAMP member. The GOCCM2 member is a sample job used to invoke the CM
Batch JCL procedure (GOCCM). GOCCM2 includes a list of all of the CM Batch parameters
and can be used as a template by specifying only those parameter values that are needed.
There are default values for every parameter, except for SSID.
Note: The CM Batch facility supports all of the required Change Management Processes
plus many of the optional items. This facility continues to be enhanced. Watch this space.
Figure 9-4 displays some available actions when using the CM Batch interface. The values for
each of the actions can be set to Y or N, and must be enclosed in single quotation marks,
except for the following items:
action_generate_base_version = (AUTO, USER, NO)
action_genearete_ddl_from_base_version = (BEFORE_RUN, AFTER_RUN, SOURCE,
TARGET, USER, or NO)
Table 9-1 CM Batch actions that are mapped to the equivalent ISPF interface commands
Action CM Batch action ISPF interface command
Build JCL to run a change action_build_run_job Used by the AN line command: Build JCL to Run WSL
= Yes on the Generate Analyze Job panel
(ADB2C11A) and the RN line command. See
Figure 11-27 on page 193.
Generate a base version action_generate_base_version GV line command next to an existing base version on
the Version Scope panel (ADB2C42).
Extract DDL from a base action_generate_ddl_from_bas DDL line command next to an existing base version on
version e_version the CM Versions panel (ADB2C41).
Compare to generate a action_compare DB2 Object Comparison Tool compare, use “Changes
delta change file file data set name” on the Generate Compare Job
panel (GOC5). See Figure 11-54 on page 214.
150 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Figure 9-5 is a list of CM Batch parameters available in GOCCM2 for the management of the
batch restart program ADBTEP2.
sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
EDIT [Link](GOCCMJ) - 01.02 Columns 00001 00072
Command ===> Scroll ===> CSR
000082 adbtep2_ac = ''
000083 adbtep2_advisoryautorebuild = ''
000084 adbtep2_advisoryautoreorg = ''
000085 adbtep2_autorebuild = ''
000086 adbtep2_autoreorg = ''
000087 adbtep2_binderror = ''
000088 adbtep2_pendingchangescheck = ''
000089 adbtep2_restart = ''
Figure 9-5 CM Batch GOCCM2 ADBTEP2 parameters
In the ISPF interface, the ADBTEP2 parameters are on the Batch Job Utility Parameters
panel (ADB2UPA), as shown in Figure 9-6.
More: - +
ADBTEP2:
Restart . . . . . . . YES (Yes/No)
Maxerrors . . . . . . 0 (-1 to 99)
BindError . . . . . . MAXE (MAXE, Save or Ignore)
Log DIAG . . . . . . . NO (Yes/No)
AutoCheck . . . . . . NO (Yes/No)
LOAD Summary Report . YES (Yes/No)
Auto Rebuild . . . . . YES (Yes/No)
Auto Reorg . . . . . . YES (Yes/No)
Advisory Auto Rebuild. YES (Yes/No)
Advisory Auto Reorg . YES (Yes/No)
LOB/XML IC Unload . . U (Error, Use base data)
Missing IC Unload . . U (Error, Use base data)
DB2 Pending Changes options:
Check at DROP . . . YES (Yes/No)
Figure 9-6 ADBTEP2 parameters on the Batch Job Utility Parameters panel (ADB2UPA)
sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
EDIT [Link](GOCCMJ) - 01.02 Columns 00001 00072
Command ===> Scroll ===> CSR
000094 base_version_name = ''
000095 base_version_name_after_run = ''
000096 base_version_name_before_run = ''
000097 base_version_owner = ''
000098 base_version_owner_after_run = ''
000099 base_version_owner_before_run = ''
000100 base_version_scope_name = ''
000101 base_version_scope_name_after_run = ''
000102 base_version_scope_name_before_run = ''
000103 base_version_scope_owner = ''
000104 base_version_scope_owner_after_run = ''
000105 base_version_scope_owner_before_run = ''
Figure 9-7 CM Batch Base GOCCM2 Base Version options
Additional CM Batch parameters are shown in Figure 9-8; change_name and change_owner
are two of the more interesting parameters in this display. Use of these two parameters is in
11.3, “Change scenario 2: ALT Tables and change propagation delta change” on page 179.
sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
EDIT [Link](GOCCMJ) - 01.02 Columns 00001 00072
Command ===> Scroll ===> CSR
000106 change_comment = ''
000107 change_name = ''
000108 change_owner = ''
000109 content_of_apply_jobs = ''
000110 data_to_recover = ''
000111 default_space_priqty = ''
000112 default_space_secqty = ''
000113 existing_base_version_action = ''
000114 generate_base_version_after_run = ''
000115 generate_base_version_before_run = ''
000116 generate_job_class = ''
000117 generate_recover_change = ''
000118 generate_templates = ''
000119 identity_start_value = ''
Figure 9-8 CM Batch GOCCM2: Additional parameter options
152 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
The next group of CM Batch parameters in GOCCM2 pertain to the ignore parameters, the
job card, and masking. See Figure 9-9.
154 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Figure 9-11 includes a variety of report options, followed by options for sequence numbers
and identity columns. The run options for utilities match those found on the bottom of the
Analyze parameter panel, where post-change utilities can be specified (as Figure 11-27 on
page 193 shows).
sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
EDIT [Link](GOCCMJ) - 01.02 Columns 00001 00072
Command ===> Scroll ===> CSR
000161 report_expected_conversion_problems = ''
000162 report_object_count = ''
000163 report_only_changed_objects = ''
000164 report_summary = ''
000165 report_system_generated_ignore_fields = ''
000166 report_translation_masks = ''
000167 report_user_specified_ignore_fields = ''
000168 retain_generated_always_for_row_change_ts = ''
000169 retain_generated_always_for_rowid = ''
000170 run_check_data = ''
000171 run_rebind = ''
000172 run_reorg_rebuild = ''
000173 run_runstats = ''
000174 run_sqlid = ''
000175 save_source_base_version = ''
000176 save_target_base_version = ''
000177 space_tape_unit = ''
000178 space_unit = ''
000179 space_unit_name = ''
000180 ssid = ''
000181 stop_on_conversion_error = ''
Figure 9-11 CM Batch GOCCM2: Report options, Run utility options...
sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
EDIT [Link](GOCCMJ) - 01.02 Columns 00001 00072
Command ===> Scroll ===> CSR
000182 take_an_image_copy = ''
000183 unload_method = ''
000184 use_defer_yes = ''
000185 use_ignore_for_import_change = ''
000186 use_mask_for_import_change = ''
000187 use_permanent_data_set_for_run_job_input = ''
000188 use_utility_options = ''
000189 util_check_auxerror = ''
000190 util_check_drain_wait = ''
000191 util_check_exceptions = ''
000192 util_check_include_xml_tablespaces = ''
000193 util_check_retry = ''
000194 util_check_retry_delay = ''
000195 util_check_scope = ''
000196 util_check_sortdevt = ''
000197 util_check_sortnum = ''
000198 util_check_xmlschema = ''
000199 util_clone_template_copyddn1_name = ''
000200 util_clone_template_copyddn1_use = ''
000201 util_clone_template_copyddn2_name = ''
000202 util_clone_template_copyddn2_use = ''
000203 util_clone_template_discarddn_name = ''
000204 util_clone_template_discarddn_use = ''
000205 util_clone_template_errddn_name = ''
000206 util_clone_template_errddn_use = ''
000207 util_clone_template_fccopyddn_name = ''
000208 util_clone_template_fccopyddn_use = ''
000209 util_clone_template_filterddn_name = ''
000210 util_clone_template_filterddn_use = ''
000211 util_clone_template_lobcol_name = ''
000212 util_clone_template_lobcol_use = ''
000213 util_clone_template_recoveryddn1_name = ''
000214 util_clone_template_recoveryddn1_use = ''
000215 util_clone_template_recoveryddn2_name = ''
000216 util_clone_template_recoveryddn2_use = ''
000217 util_clone_template_workddn1_name = ''
000218 util_clone_template_workddn1_use = ''
000219 util_clone_template_workddn2_name = ''
Figure 9-12 CM Batch GOCCM2: Utility Options
CM Batch can be used to run DB2 Object Comparison Tool to create a managed change or
only to get the compare report and delta change file without registering the change. More
documentation is in the recent Chapter 8, “Creating a Change Management batch job to run
compare” of the DB2 Object Comparison Tool for z/OS Version 10 Release 2 User’s Guide,
SC19-3778-04.
156 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Several CM Batch parameters for running DB2 Object Comparison Tool are as follows:
action_compare = ''
source_type = ''
target_type = ''
compare_mask_owner = ''
compare_mask_name = ''
compare_mask_dsn = ''
compare_ignore_fields_owner = ''
compare_ignore_fields_name = ''
compare_ignore_fields_dsn = ''
suppress_drop_of_objects = ''
suppress_drop_of_columns = ''
suppress_adding_columns = ''
The CM Batch parameters listed so far is not a complete list. However, the complete list is in
the following resources:
The DB2 Administration Tool for z/OS, V10.2 User's Guide, SC19-3744 contains a
complete list of the CM Batch parameters and indicates which actions can be paired with
which parameter.
The GOCCM2 JCL member in the [Link] library has a list.
Note: Not everything that is available in the ISPF interface is in the CM Batch facility at this
time, but CM Batch continues to be enhanced. Watch this space.
John Dembinski, an Advisory Software Engineer at IBM, wrote an article about CM Batch:
DB2 Tools Corner: Introducing the IBM supported batch interface for change management in
DB2 Administration Tool and DB2 Object Comparison Tool. It is at the following location:
[Link]
Table 9-2 on page 158 lists potential options for propagating changes to one or more target
environments using the IBM DB2 database tools.
2 Compare source Use DB2 Object If the goal is to Might not be feasible for
to target and Comparison Tool to synchronize the large environments
generate an compare environments this is the having many targets or
APPLY job. a environments. preferred method for time constraints.
ensuring that each
Execute the environment looks
APPLY job. exactly alike.
Full control of compare
options (for example,
exclude specifications,
include specifications).
Available for
non-managed and
managed changes.
Step 1: Generate Method 1: Use the Control over the scope; Must have two base
a delta change PROMOTE function can compare small versions to do the
file. of the change groups of changes. comparison.
management Must accept all
process: compare differences; no ignore or
two base versions to exclude options are
generate the delta available.
change file.c
Method 2: Use DB2 Full control of compare Use with the ISPF
Object Comparison options (for example, interface requires the
Tool to compare a exclude specifications, specification of compare
source to a target to include specifications) options to produce the
generate the delta Can use DDL as the change file .
change file. source.
Supported in ISPF. All
compare options in the
panels have equivalent
CM Batch parameters
that the user can control.
Each CM Batch
parameter for compare
does have a product
default value.
158 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Option Action Description Advantages Disadvantages
ENVIRONMENT
DEV BCD076DA
Development
Test
TA TB TC
Production
PROD BCD076ZA
162 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
DB2 Administration Tool assists with the navigation of the DB2 catalog. We used the tool to
display the list of databases in our scenario as shown in Figure 10-2.
Chapter 10. The environment for the change management scenario 163
Figure 10-3 and Figure 10-4 on page 165 are the result set from the issuance of the
DB2 Administration Tool DS (Database Structure) line command next to the name of the
BCD076DA database. When you select the DS option, the Database Structures panel
displays a structured list of objects in the database that you have selected but does not
display plans and packages. This command enables the DBA to easily see all of the
objects and how they are related.
164 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
ADB21DS n --------------- DB0A Database Structures -------- Row 36 to 51 of 51
Command ===> Scroll ===> PAGE
To return to the list of databases, press F3. To get a list of the tables in the database, enter the
letter T next to the name of the database, which in this case is BCD076D, and press Enter.
Figure 10-5 shows the output.
Chapter 10. The environment for the change management scenario 165
The DB2 Administration Tool has a new DET (Detail) command. DET can be used as a line
command next to the name of a table or a package, or as a primary command against a list of
tables or a list of packages. The types of tables supported by DET include Clone, Global
Temporary, History, Implicit tables for XML columns, and Auxiliary tables. When issued
against a table, the DET command displays detail information about the table (or tables) and its
related objects, including table details, column information, index information, partitioning
information, key information, and alias information. When issued against a package, DET
displays detailed information about the package and the SQL statements included in the
package.
Figure 10-6 shows the DET command being used as a primary command on the Tables,
Views, and Aliases panel (ADB21T).
166 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
The results of the DET command are shown in Figure 10-7.
_ Table information
Table schema . . . : BCD076DA Table name . . . . : BC_ACTIVITY
Created by . . . . : ADMR7 Created . : 2013-04-12-14.39.46.848339
Table space name . : BCTSACT Database name . . : BCD076DA
Object ID for table: 3 DB ID for database : 399
Maximum row length : 40 Primary key OBID . : 4
Number of columns : 3 Primary key columns: 1
Validate procedure : N/A EDIT procedure name: N/A
Parent relations . : 0 Child relations . : 0
Auditing . . . . . : AUDIT NONE Status . . : X - Unique constraint
Data capture . . . : NO Altered . : 2013-04-12-14.39.46.848339
Restrict on DROP . : NO Check constraints : None
Encoding scheme . : E - EBCDIC Col. in part. key : 0
Check flag . . . : No VOLATILE table . . : No
Created in DB2 Ver : O - DB2 V10 Dependent MQTS . . : 0
Data version . . . : 0
Table owner . . . : ADMR7
Owner type . . . . : Auth ID Append specified . : No
Clone table schema : Clone table name . :
Access control . . : ' ' - Not enforced
Number of hash cols: 0
Versioning Schema. : Versioning Table . :
Associated remarks :
Column Name Col No Col Type Length Scale Null Def FP Col card
------------------ ------ -------- ------ ------ ---- --- -- -----------
ACT_NO 1 INTEGER 4 0 N J N -1
ACTKWD 2 CHAR 6 0 N N N -1
ACTDESC 3 VARCHAR 20 0 N N N -1
F7 and F8 can be used to scroll backward and forward to review the information.
A single section may be collapsed by entering a hyphen (-) over the underscore (_) located
next to the keyword of the section. Figure 10-8 on page 168 illustrates the display with the
table information collapsed. To expand a previously collapsed section click the plus sign (+)
over the underscore (_) next to the section name.
Chapter 10. The environment for the change management scenario 167
ADBPD min ----------------- DB0A Details for object(s) ---------------- 18:47
Command ===> Scroll ===> PAGE
_ Table information
_ Column information for table : BCD076DA.BC_ACTIVITY
Column Name Col No Col Type Length Scale Null Def FP Col card
------------------ ------ -------- ------ ------ ---- --- -- -----------
ACT_NO 1 INTEGER 4 0 N J N -1
ACTKWD 2 CHAR 6 0 N N N -1
ACTDESC 3 VARCHAR 20 0 N N N -1
Index C C C C
Index Name Schema U Cols G D L M First Key Full Key
------------------ -------- - ------ - - - - ----------- -----------
BC_IXACT1 BCD076DA P 1 Y Y Y N -1 -1
Table information
Table schema . . . : BCD076DA Table name . . . . : BC_DEPARTMENT
Created by . . . . : ADMR7 Created . : 2013-04-12-14.39.47.178455
Table space name . : BCTSDEPT Database name . . : BCD076DA
Object ID for table: 8 DB ID for database : 399
Maximum row length : 109 Primary key OBID . : 9
Number of columns : 10 Primary key columns: 1
Validate procedure : N/A EDIT procedure name: N/A
Parent relations . : 0 Child relations . : 0
Auditing . . . . . : AUDIT NONE Status . . : X - Unique constraint
Data capture . . . : NO Altered . : 2013-04-17-02.21.56.148240
Restrict on DROP . : NO Check constraints : None
Encoding scheme . : E - EBCDIC Col. in part. key : 0
Figure 10-8 Details for objects panel (ADBPD): Collapsed output of the DET command
To expand or collapse all of the sections, click the ZOOM keyword or enter ZOOM on the
Command line. DB2 Administration Tool also provides a SAVE primary command that can be
used to store the detail information that is displayed by the DET command in a data set. The
information is stored in the same way that it is displayed on the panel at the time the SAVE
command is issued. So, if a section is collapsed, it is not expanded at the time of saving.
168 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
11
This chapter begins with a sample change request followed by three sample scenarios:
Change Scenario 1: Use the AL command to add a column to the end of the table.
– Generate FAST change.
– Review change propagation options.
Change Scenario 2: Use the ALT command to specify changes.
– Register the change.
– Propagate the change using a Delta Change File approach.
Change Scenario 3: Recover a change
All changes are initially defined in the development database BCD076DA and then
propagated to BCD076TA.
Note: A good approach is to issue the PANELID command on the Command line to follow
the flow of the following scenarios.
170 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
To begin, use the DB2 Administration Tool to display a list of existing tables in the BCD076DA
database by entering the letter T next to the name of the database (Figure 11-1).
As a result, the list of tables included in the database is displayed on the Tables, Views, and
Alias panel (ADB21T), as is shown in Figure 11-2.
Chapter 11. Using DB2 Administration Tool and DB2 Object Comparison Tool 171
Adding a column to the end of a table can be accomplished through a DB2 ALTER SQL
statement. Regardless of which DB2 Administration Tool line command is used, AL or ALT,
an ALTER SQL statement is generated when defining the change to the table. This scenario
uses the AL command (Figure 11-3).
172 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
The Alter Table panel (ADB21TA) is displayed (Figure 11-4). To add a column, enter the
letter S next to the ADD column keyword.
ALTER TABLE with any of the above changes OR select one of the options below
Chapter 11. Using DB2 Administration Tool and DB2 Object Comparison Tool 173
Enter the column name and its attributes on the Alter Table panel (ADB21TA), as shown in
Figure 11-5.
ALTER TABLE
Table schema . . BCD076DA >
Table name . . . BC_PROJ >
ADD
Column name . . PROJ_MANAGER > (? to look up)
Column type . . integer (Built-in only)
Data length . . (Built-in only)
Inline length . (0-32680 BLOB or CLOB, 0-16340 DBCLOB)
Precision . . . (used only w/FLOAT and DECIMAL)
Scale . . . . . (used only w/DECIMAL and TIMESTAMP)
Type schema . . > (User-defined only)
Type name . . . > (User-defined only)
WITH TIME ZONE . (Yes/No - for TIMESTAMP only)
Hidden . . . . . (Yes/No)
Figure 11-5 Alter Table panel (ADB21TAB)
174 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
After you enter all attributes, press Enter to display the generated SQL (Figure 11-6). The
generated ALTER SQL statement is displayed at the bottom of the panel.
C - Cancel
I - Register and run as an immediate change
N - Register as a normal change
Choose one of three options at the top of the CM - Register Change panel (ADB2CMRG), as
shown in Figure 11-7:
C - Cancel the change
I - Register and run as an immediate change (FAST change)
N - Register as a normal change
To do a FAST change you would use the I (Immediate) option. In the middle of the CM
Register change panel there is a place to provide the name of the change, which is a required
field, and optionally a comment. In this instance the change name is BCCHG01-DA
BC_PROJ as seen in Figure 11-7.
I
C - Cancel
I - Register and run as an immediate change
N - Register as a normal change
Chapter 11. Using DB2 Administration Tool and DB2 Object Comparison Tool 175
Press Enter to complete the change and register it in the Change Management Repository.
The ALTER stmt executed message is displayed under the Command line on the Alter Table
panel (ADB21TAB), as shown in Figure 11-8. The new column is added to the BC_PROJ
table.
ALTER TABLE
Table schema . . BCD076DA >
Table name . . . BC_PROJ >
ADD
Column name . . PROJ_MANAGER > (? to look up)
Column type . . INTEGER (Built-in only)
Data length . . (Built-in only)
Inline length . (0-32680 BLOB or CLOB, 0-16340 DBCLOB)
Precision . . . (used only w/FLOAT and DECIMAL)
Scale . . . . . (used only w/DECIMAL and TIMESTAMP)
Type schema . . > (User-defined only)
Type name . . . > (User-defined only)
WITH TIME ZONE . (Yes/No - for TIMESTAMP only)
Hidden . . . . . (Yes/No)
Figure 11-8 Completed Change: Alter Table panel (ADB21TAB)
176 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
To view a registered change, navigate to the Change Management menu (ADB2C) by
entering CMM on the Command line of any DB2 Administration Tool panel (Figure 11-9).
ALTER TABLE
Table schema . . BCD076DA >
Table name . . . BC_PROJ >
ADD
Figure 11-9 Alter Table panel (ADB21TAB): CMM command
Continue to drill down by entering the number 1 on the Option line of the Change
Management panel (ADB2C), and press Enter.
Chapter 11. Using DB2 Administration Tool and DB2 Object Comparison Tool 177
The CM - Manage Changes panel (ADB2C1) is displayed (Figure 11-11).
Enter display selection criteria (Using a LIKE operator, criteria not saved):
Name . . . . . > Created by . . >
Owner . . . . > Altered by . . >
Type . . . . . Status . . . .
Created within Change ID . .
Altered within
Figure 11-11 CM Manage Changes panel (ADB2C1)
As shown in Figure 11-12, the BCCHG01-DA BC_PROJ change has the word FAST in the
Type column, and a status of COMPLETE.
Line commands:
U - Update AN - Analyze RN - Run VE - Versions ST - Statements
PQ - Prerequisites IG - Ignores MA - Masks S - Show WSL B - Checkpoint
? - Show all line commands
178 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
11.2.2 Propagate the change
A FAST or immediate change can be propagated to the other environments in several ways:
Repeat the same process in each environment. Issue the AL or ALT line command to
define the change, register (name) the change, and run as an immediate or FAST change.
Use DB2 Object Comparison Tool to compare the source to the target generating the
APPLY jobs to cause the target to look like the source. For example, specify BCD076DA
as the source and BCD076TA as the target.
Generate a delta change file and import it to one or more targets using either the CM ISPF
interface or batch interface:
a. Generate a change file by using one of the following options:
• Use DB2 Object Comparison Tool to generate a delta change file.
• Use the Change Management EX command to export the existing change to a delta
change file.
b. Import one or more delta change files using the ISPF or CM Batch interface.
Note: PROMOTE is not an option for this particular change because the necessary base
versions were not generated. To use PROMOTE when doing a FAST (or immediate)
change, the base version must be generated before and after the change by using the
ISPF panels or by using CM Batch (action_generate_base_version).
Chapter 11. Using DB2 Administration Tool and DB2 Object Comparison Tool 179
Figure 11-13 reflects all changes made on the Alter Table panel (ADB27C).
EMP_NO 1 INTEGER 4 0 N N 1
FIRSTNAME 2 VARCHAR 12 0 N N 2 UPDATE
MIDINIT 3 CHAR 1 0 N N 3
LASTNAME 4 VARCHAR 20 0 N N 4
WORKDEPT 5 INTEGER 4 0 Y Y 5
* PHONENO 6 CHAR 4 0 N N 6
CELLPHONE 7 CHAR 10 0 N N 0 INSERT
* HIREDATE 8 DATE 4 0 N Y 7
TERMDATE 9 DATE 4 0 N Y 0 INSERT
JOB 10 CHAR 12 0 Y Y 8
MANAGER 11 CHAR 1 0 N N 9
EDLEVEL 12 SMALLINT 2 0 N N 10
SEX 13 CHAR 1 0 Y Y 11
BIRTHDATE 14 DATE 4 0 N Y 12
SALARY 15 DECIMAL 9 2 Y Y 13
BONUS 16 DECIMAL 9 2 Y Y 14
COMM 17 DECIMAL 9 2 Y Y 15
CREATED_TS 18 TIMESTMP 10 6 N Y 16
CREATED_BY 19 CHAR 8 0 N Y 17
UPDATED_TS 20 TIMESTMP 10 6 N Y 18
UPDATED_BY 21 CHAR 8 0 N Y 19
******************************* END OF DB2 DATA *******************************
Figure 11-13 ALTER Table panel (ADB27C): Changes to BC_EMPLOYEE
180 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
After all changes are specified, enter CONTINUE on the Command line, to display the Alter
Objects panel (ADB27CA) as shown in Figure 11-14. Note that the BC_EMPLOYEE table is
flagged as being modified.
Object Object RI RI FK
Sel Qual Name Ty Info 1 Info 2 Rels Add Add Operation
* * * * * * * * *
--- -------> -----------------> -- -------> -------> ------ --- --- -----------
BCD076DA BC_EMPLOYEE TB BCD076DA BCTSEMP 0 NA NA MODIFY
******************************* END OF DB2 DATA *******************************
Figure 11-14 Alter Objects panel (ADB27CA)
Consider the following information when renaming a column with the DB2 Administration Tool:
The name change is automatically reflected in any index where the column is used.
The name change does not automatically update the column name in a view if the view
accesses more than one table.
Because the FIRSTNME column was changed to FIRSTNAME in the BC_EMPLOYEE table
and the table has views accessing multiple tables, you must alter the views with the new
column name.
At the top of the Alter Objects panel (ADB27CA) is the OPTIONS keyword. You can either click
this keyword or enter OPTIONS command on the Command line.
Chapter 11. Using DB2 Administration Tool and DB2 Object Comparison Tool 181
This displays the ALTER Choose Related Objects panel (Figure 11-15).
Commands: CONTINUE
At the bottom of this panel, choose whether to show this panel prior to each use. If this option
is set to NO, the user can always click the OPTIONS command or enter OPTIONS on the
Command line of the Alter Objects panel (ADB27CA) as shown in Figure 11-16. The purpose
of the ALTER Choose Related Objects panel is to select which object types to include in the
result set when issuing the REL (Alter related) line command next to a change listed on the
Alter Objects panel (ADB27CA).
In this scenario the BC_EMPLOYEE table has views and indexes associated with it, but only
the views are affected when a column name is changed. To bring in the related objects,
specify REL next to the name of the change on the Alter Objects panel (ADB27CA), as shown
in Figure 11-16.
Object Object RI RI FK
Sel Qual Name Ty Info 1 Info 2 Rels Add Add Operation
* * * * * * * * *
--- -------> -----------------> -- -------> -------> ------ --- --- -----------
rel BCD076DA BC_EMPLOYEE TB BCD076DA BCTSEMP 0 NA NA MODIFY
******************************* END OF DB2 DATA *******************************
Figure 11-16 Alter Objects panel (ADB27CA): Issue the REL command
182 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Enter the letter A next to each related object to be added to the list of objects to be altered.
See Figure 11-17.
Note: Be sure to press Enter before leaving the Related Objects panel ADBP7REL. If you
forget, the selected objects will not be included.
Chapter 11. Using DB2 Administration Tool and DB2 Object Comparison Tool 183
The Objects Added message is displayed below the Command line on the ALT - Related
Objects panel (ADBP7REL), as shown in Figure 11-18. As a reminder, this message is
displayed only if you press Enter.
184 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Figure 11-19 shows that all newly added objects are tagged with the words NONE, indicating
that no modifications have been made at this time. To modify the related objects enter the
letter A next to each object name.
Object Object RI RI FK
Sel Qual Name Ty Info 1 Info 2 Rels Add Add Operation
* * * * * * * * *
--- -------> -----------------> -- -------> -------> ------ --- --- -----------
BCD076DA BC_VSTAFAC2 VW BCD076DA BCTSEPA NA NA NONE
BCD076DA BC_VPROJRE1 VW BCD076DA BCTSPROJ NA NA NONE
BCD076DA BC_VPHONE VW BCD076DA BCTSEMP NA NA NONE
BCD076DA BC_VEMPDPT1 VW BCD076DA BCTSDEPT NA NA NONE
BCD076DA BC_VEMP VW BCD076DA BCTSEMP NA NA NONE
BCD076DA BC_VDEPMG1 VW BCD076DA BCTSDEPT NA NA NONE
*EL BCD076DA BC_EMPLOYEE TB BCD076DA BCTSEMP 0 NA NA MODIFY
******************************* END OF DB2 DATA *******************************
Figure 11-19 Alter Objects panel (ADB27CA)
When the text of the view is displayed, you can use the TSO command C FIRSTNME FIRSTNAME
ALL to change all occurrences of the column name in the view. As the changes are specified,
the operation field of the Alter Objects panel (ADB27CA) is updated to reflect the MODIFY
status (Figure 11-20 on page 186).
The next change specification in the sample change request (Table 11-1 on page 170) is to
increase the length of the DEPT_NAME column in the BC_DEPARTMENT table to 30 bytes.
Chapter 11. Using DB2 Administration Tool and DB2 Object Comparison Tool 185
To add the BC_DEPARTMENT table to the active change list issue the ADD command on the
Command line of the Alter Objects panel (ADB27CA). See Figure 11-20.
Object Object RI RI FK
Sel Qual Name Ty Info 1 Info 2 Rels Add Add Operation
* * * * * * * * *
--- -------> -----------------> -- -------> -------> ------ --- --- ----------
BCD076DA BC_VSTAFAC2 VW BCD076DA BCTSEPA NA NA MODIFY
BCD076DA BC_VPROJRE1 VW BCD076DA BCTSPROJ NA NA MODIFY
BCD076DA BC_VPHONE VW BCD076DA BCTSEMP NA NA MODIFY
BCD076DA BC_VEMPDPT1 VW BCD076DA BCTSDEPT NA NA MODIFY
BCD076DA BC_VEMP VW BCD076DA BCTSEMP NA NA MODIFY
BCD076DA BC_VDEPMG1 VW BCD076DA BCTSDEPT NA NA MODIFY
*EL BCD076DA BC_EMPLOYEE TB BCD076DA BCTSEMP 0 NA NA MODIFY
******************************* END OF DB2 DATA ******************************
Figure 11-20 Alter Objects panel (ADB27CA): Using the ADD Command
There are three options on the ALTER Add Options panel (ADBP7AD). Adding a table
requires the following actions:
Enter TB next to the Type keyword.
Enter the qualifier, in this case BCD076DA.
Enter the name of the object or use the DB2 Administration Tool look-up feature by
entering a prefix concatenated with a question mark (?) to display a list of objects from
which to choose. For example, enter the following text (in this case the full table name
BC_DEPARTMENT was specified):
BC_D?
Enter the number 3 on the Option line to add the object to the list.
186 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
ADBP7AD n -------------------- DB0A ALTER Add Options ------------------- 01:00
Option ===> 3
Object specification:
Type . . . . . tb (DB,TS,TB,VW,AL,SY,IX,FK,TR,SP,FU,SQ)
Qualifier . . . bcd076da >
Name . . . . . bc_department > (? to look up)
Figure 11-21 ALTER Add Options panel (ADBP7AD)
After one or more objects are selected and are added to the Alter Objects panel (ADB27CA),
use the A (alter) command to alter the newly added objects. There is no limit to the number of
objects that can be added to the change.
The instructions in the scenario’s change request is to change the length of the DEPT_NAME
field to 30 bytes. See Figure 11-22.
DEPT_NO 1 INTEGER 4 0 N Y 1
DEPT_NAME 2 CHAR 30 0 N Y 2
MGR_NO 3 INTEGER 4 0 Y Y 3
ADMR_DEPT 4 INTEGER 4 0 N Y 4
LOCATION 5 CHAR 20 0 N Y 5
EMPLOYEE_CNT 6 SMALLINT 2 0 N Y 6
CREATED_TS 7 TIMESTMP 10 6 N Y 7
CREATED_BY 8 CHAR 8 0 N Y 8
UPDATED_TS 9 TIMESTMP 10 6 N Y 9
UPDATED_BY 10 CHAR 8 0 N Y 10
******************************* END OF DB2 DATA *******************************
Figure 11-22 ALTER Table panel ADB27C: DEPT_NAME from 22 bytes to 30 bytes
Chapter 11. Using DB2 Administration Tool and DB2 Object Comparison Tool 187
When all changes have been specified, and in this case there is only one, click the ALTER
keyword or enter the ALTER command on the Command line. The Alter Objects panel
(ADB27CA) is displayed (Figure 11-23), showing that the BC_DEPARTMENT table was
added and modified.
Object Object RI RI FK
Sel Qual Name Ty Info 1 Info 2 Rels Add Add Operation
* * * * * * * * *
--- -------> -----------------> -- -------> -------> ------ --- --- -----------
* BCD076DA BC_DEPARTMENT TB BCD076DA BCTSDEPT 0 NA NA MODIFY
BCD076DA BC_VSTAFAC2 VW BCD076DA BCTSEPA NA NA MODIFY
BCD076DA BC_VPROJRE1 VW BCD076DA BCTSPROJ NA NA MODIFY
BCD076DA BC_VPHONE VW BCD076DA BCTSEMP NA NA MODIFY
BCD076DA BC_VEMPDPT1 VW BCD076DA BCTSDEPT NA NA MODIFY
BCD076DA BC_VEMP VW BCD076DA BCTSEMP NA NA MODIFY
BCD076DA BC_VDEPMG1 VW BCD076DA BCTSDEPT NA NA MODIFY
*EL BCD076DA BC_EMPLOYEE TB BCD076DA BCTSEMP 0 NA NA MODIFY
******************************* END OF DB2 DATA *******************************
Figure 11-23 Alter Objects panel (ADB27CA)
At this point, all changes in the sample change request are entered. The next step is to
click the ALTER keyword or enter ALTER on the Command line of the Alter Objects panel
(ADB27CA) to register the change. The changes can be registered under a new name or
appended to an existing change.
188 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
To append a change to an existing change, simply provide the name and owner of the existing
change to which it is to be appended. See Figure 11-24.
Note: The owner and the name of the change, which are required, cause the entry into the
Change Management Repository to be unique. The Comment field is optional.
Specify the owner and name values to use for this change (? to lookup):
Owner Name
Ignore . . . . . . . > >
Mask . . . . . . . . > >
Delta Version . . . . > >
Figure 11-24 CM Register Options panel (ADB2CR0): BCCHG02-DA Register Change
After the name of the change IS specified, enter CONTINUE on the Command line to complete
the registration. The Register Successful message is displayed below the Command line on
the Tables, Views, and Aliases panel (ADB21T), as Figure 11-25 shows.
The change is stored in the Change Management Repository and has a status of DEFINED.
Chapter 11. Using DB2 Administration Tool and DB2 Object Comparison Tool 189
Note: At this point, a change file can be generated by issuing the EX (export) line command
next to the name of the registered change. A change does not have to be completed to be
propagated.
The next step in the Change Management Process is to analyze (AN) the registered change.
The change can be analyzed using the ISPF interface or the change management batch
interface. This scenario illustrates the using the ISPF interface:
Navigate to the Change Management panels by entering CMM on the Command line of any
DB2 Administration Tool panel.
Drill down to get a list of the registered changes. A quick entry of CMM;1;1 displays the
Change Management (CM) panel (ADB2C).
To analyze a change, enter AN command next to the change name as shown in Figure 11-26.
Line commands:
U - Update AN - Analyze RN - Run VE - Versions ST - Statements
PQ - Prerequisites IG - Ignores MA - Masks S - Show WSL B - Checkpoint
? - Show all line commands
190 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
The Generate Analyze Job panel (ADB2C11A) is displayed (Figure 11-27 on page 193). This
panel has a list of several parameters that determine the job options to be used by the
analyze step. The parameters found on the Generate Analyze Job panel are listed in
Table 11-2.
Table 11-2 Analyze Options from the Generate Analyze Job panel (ADB2C11A)
Parameter Description Values Comments
Set Base Version How to create the A = Auto: Build the A base version is a
method target base version. target base version snapshot of the object
from the list of objects definition at a point in
in the change. This is time.
the preferred option in
most cases.
U = User defined:
Requires a predefined
version scope.
E = Use an existing
base version, which
must already exist.
Change Report Several reports are Yes or No Set all options to Yes
Options available from which to except for the System
choose. Ignore option, which
you can set to No.
Required data set Two data sets exist: The data set name
information PDS for the work begins with value
statement list specified in the Prefix
(created by the of data sets option,
analyze process) unless it is specified in
PDS for the quotation marks.
analyze JCL
generated by the
product
Chapter 11. Using DB2 Administration Tool and DB2 Object Comparison Tool 191
Parameter Description Values Comments
Build JCL to run the If set to No, the Yes or No If set to Yes, the user
WSL JCL can be built at can submit the run job.
run time when the The run job can be
RN command is accessed through the
issued. DB2 Administration
If set to Yes, the Tool panels by issuing
JCL will be built for the ER (edit run job) line
the changes command.
Unload method IBM Unload or DB2 IBM Unload or DB2 Must be licensed to
High Performance HPU use HPU.
Unload (HPU)
192 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
After all parameters are filled in, or modified, a JCL job is generated in the specified JCL
library, which when submitted analyzes the change. Figure 11-27 shows the panel used to
specify the analyze job parameters.
Options:
Run SQLID . . . . . . . . . (Blank, a SQLID, or <NONE>)
Validate WSL . . . . . . . YES (Yes/No)
Use utility options . . . . NO (Yes/No)
Generate templates . . . . NO (Yes/No)
Build JCL to run WSL . . . NO (Yes/No)
Generate a recover change . NO (Yes/No)
Data to recover . . . . . (Original or Existing)
Chapter 11. Using DB2 Administration Tool and DB2 Object Comparison Tool 193
When the analyze step completes, the change will be in ANALYZED status (Figure 11-28). In
addition, the analyze step generates a work statement list (WSL) member and places it in a
PDS or in the PDSE specified for the WSL file on the Generate Analyze Job panel
(ADB2C11A).
Line commands:
U - Update AN - Analyze RN - Run VE - Versions ST - Statements
PQ - Prerequisites IG - Ignores MA - Masks S - Show WSL B - Checkpoint
? - Show all line commands
As previously mentioned, the analyze step can also be run in batch. Table 11-3 helps clarify
the relationship between the two interfaces, ISPF and CM Batch. This table maps the
parameters found on the Generate Analyze Job panel (ADB2C11A), Figure 11-28, and the
parameters available for CM Batch. See the DB2 Administration Tool for z/OS, V10.2 User's
Guide, SC19-3744 for a list of the definitions for all CM batch parameters.
194 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
ISPF parameter CM Batch parameter Default value
Options
The next step in the Change Management Process is to run the change. Only those changes
that have an ANALYZED status can be run.
Chapter 11. Using DB2 Administration Tool and DB2 Object Comparison Tool 195
To generate the JCL to run the change, enter RN (run) next to the name of the ANALYZED
change as shown in Figure 11-29. If the JCL was previously built during the analyze step, use
the ER line command to open the existing RUN job JCL and submit the job from there.
Line commands:
U - Update AN - Analyze RN - Run VE - Versions ST - Statements
PQ - Prerequisites IG - Ignores MA - Masks S - Show WSL B - Checkpoint
? - Show all line commands
When running a change, the CM - Run a Change panel (ADB2CEX1) offers an option to
generate a base version before or after the change. With this option, using the PROMOTE
method for change propagation can be easier to manage. To demonstrate PROMOTE as a
propagation method, both fields are set to AUTO. (AUTO means the scope of the base
version is automatically determined by DB2 Administration Tool.) You can still specify version
names on the next panel. See Figure 11-30.
When reviewing the RUN options for the change, there is an option on the CM Run a Change
panel (ADB2CEX1) to generate a base version before or after the change. See Figure 11-30.
The name of the base version or versions can be automatically generated as a timestamp if
AUTO is specified or the name can be provided by the user.
196 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
On the CM - Specify Base Version Options (ADB2CEX3) panel, the Scope Information
keyword has the The object list will be automatically determined message
(Figure 11-31).
Commands: CONTINUE
Version Information:
Owner . . . . . . . . > (? to lookup)
Name . . . . . . . . . > (? to lookup)
Version Information:
Owner . . . . . . . . > (? to lookup)
Name . . . . . . . . . > (? to lookup)
Figure 11-31 CM - Specify Base Version Options panel (ADB2CEX3)
When the change is finished, the status indicates COMPLETE in the Change Management
Repository (Figure 11-32).
Line commands:
U - Update AN - Analyze RN - Run VE - Versions ST - Statements
PQ - Prerequisites IG - Ignores MA - Masks S - Show WSL B - Checkpoint
? - Show all line commands
Chapter 11. Using DB2 Administration Tool and DB2 Object Comparison Tool 197
If the job ends and the status is set to RUNNING, then the job has aborted and must be
corrected and restarted.
The RUN process for this change could have also been done using CM Batch interface by
specifying the action_run_change action.
Both changes, BCCHG-1DA and BCCHG-2DA, must be propagated to the test environment
BCD076TA.
Masking
Masks (translation masks) allow you to make global changes to naming conventions and to
overwrite current values of table space and index space attributes. Masks are used by the
DB2 Administration Tool and the DB2 Object Comparison Tool.
Masks can be stored in a file (PDS or sequential, or stored in a DB2 table in the Change
Management Repository. There are advantages and disadvantages with using either option.
If stored in a file, remembering the name of the file can be cumbersome. However, making
a duplicate copy of the mask is easy.
If stored in a table, the mask is easy to find, easy to share, but at this time, difficult to
create a copy or duplicate an existing mask.
When propagating changes between environments, the qualifiers or names of the objects
might be different. If they are, it will be necessary to use a mask to translate the contents of
the change file to match what is used in the target environment. The timing for specifying the
mask varies based on the method of propagation used.
198 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Masking in promote in Object Compare differs completely from masking in Import Change:
Masking in promote in Object Compare is applied to the source, and then the source (with
masking applied) is compared to the target. Masking is not applied directly to the delta
change file.
Masking in import change is applied directly to the input statements. The registered
change statements for the imported change contain the new masked values.
When using the EX (export) method of creating a delta change file, the mask can be specified
only at the time of the import.
Because all propagation options support mask translation at the time of import, it may be
beneficial to set a standard to do masking only when importing a delta change file.
To generate a base version outside of run time, you can use the GV (generate base version)
line command in the ISPF interface, or the action_generate_base_version action of the CM
Batch interface. This type of base version generation requires the existence of a populated
version scope. A version scope can be defined and populated using the ISPF interface CM
panels. CM Batch also supports generating a base version based on the objects in the
registered change statements for that change. No version scope required.
Note: CM Batch cannot be used to define or populate a version scope at this time.
Chapter 11. Using DB2 Administration Tool and DB2 Object Comparison Tool 199
Figure 11-33 shows the ISPF CM - Version Scopes panel (ADB2C42) where the SO line
command can be issued to populate or define a set of objects to include in a version scope, or
the GV line command can be issued to generate a new base version on demand. A base
version can be manually generated using the CM Batch action_generate_base_version
action command (simulates the GV line command of the ISPF interface).
Line commands:
VE - Versions SO - Version scope objects GV - Generate new base version
INS - Insert U - Update DEL - Delete I - Details on version scope
CP - Copy privileges
Note: An empty base version is valid. For example, a version scope might have the name
of a database that does not exist in the DB2 catalog. If a base version was generated using
this version scope, the base version is generated, but it will be empty. When the
comparison is done, the results might be a set of CREATE statements, if the target base
version is empty and the source base version contains the definition of the objects.
Figure 11-34 contains a list of the CM Batch parameters used to define and manage base
versions.
sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
EDIT [Link](GOCCM2) - 01.02 Columns 00001 00072
Command ===> Scroll ===> CSR
000094 base_version_name = ''
000095 base_version_name_after_run = ''
000096 base_version_name_before_run = ''
000097 base_version_owner = ''
000098 base_version_owner_after_run = ''
000099 base_version_owner_before_run = ''
000100 base_version_scope_name = ''
000101 base_version_scope_name_after_run = ''
000102 base_version_scope_name_before_run = ''
000103 base_version_scope_owner = ''
000104 base_version_scope_owner_after_run = ''
000105 base_version_scope_owner_before_run = ''
Figure 11-34 CM Batch Base Version commands
When reviewing the RUN options for the change (Figure 11-30 on page 196), note that there
is an option on the CM Run a Change panel (ADB2CEX1) to generate a base version before,
after, or before and after the change. The name of the base versions can be automatically
generated as a timestamp if AUTO is specified or the name can be provided by the user.
200 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
When the change BCCHG02-DA was run, a base version was generated before the change
and after the change using the AUTO option to automatically generate the base version
name.
Note: This example is unable to use PROMOTE for the change to the BC_PROJ table
because a FAST change does not provide an option to generate a base version either
before or after the change. To do a PROMOTE, you must generate the base version using
the GV command in the ISPF interface before the change and repeat that process after the
change or generate the base version using CM batch.
Enter display selection criteria (Using a LIKE operator, criteria not saved):
Name . . . . . > Created by . . >
Owner . . . . > Altered by . . >
Created within Version ID . .
Altered within
Figure 11-35 CM - Manage Versions panel (ADB2C4): Import a version file
Chapter 11. Using DB2 Administration Tool and DB2 Object Comparison Tool 201
3. Enter number 1 on the Option line of the CM - Manage Versions panel (ADB2C4) to
display the existing base versions on the CM - Versions panel (ADB2C41), as shown in
Figure 11-36.
Line commands:
CH - Changes PR - Promote VS - Version scope DEL - Delete U - Update
PT - Toggle protected status I - Details on version DDL -Generate DDL
The letter B under the T heading indicates that these are base versions.
4. Enter the PR (promote) line command next to the name of the base version that represents
the image that the target should look like as a result of the promotion (ending version). In
this example, the PR command is issued next to ID 30 (Figure 11-37).
Line commands:
CH - Changes PR - Promote VS - Version scope DEL - Delete U - Update
PT - Toggle protected status I - Details on version DDL -Generate DDL
202 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
5. On the CM - Promote panel (ADB2CPS), provide the name of the source or start version.
The DB2 Administration Tool lookup function can be used to get a list of the existing base
versions. This step is especially helpful if you used the AUTO option to name the base
version or versions. An example of using the lookup function is shown in Figure 11-38.
Enter the plus sign (+) next to the name of the starting (old) base version to be used
(Figure 11-39).
Chapter 11. Using DB2 Administration Tool and DB2 Object Comparison Tool 203
6. Specify the data set name where the PROMOTE Job JCL is to be stored. This batch job
compares the two base versions to create the delta change file. In addition, the name of
the delta change file is specified (Figure 11-40).
7. The type of change registered for PROMOTE only records the base versions used,
location of JCL, location of delta change file. The change cannot be analyzed or run.
When the CM - Register Options panel (ADB2CR0) is displayed, provide a change name,
because a PROMOTE is a registered change.
204 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
On this same panel there is an option to enter the name of the translation mask to be used
to convert the change statements at the time the delta change file is created. See
Figure 11-41. Masking during the PROMOTE does not convert the change statements at
the time the delta change file is created. See “Masking” on page 198 for more detail.
Specify the owner and name values to use for this change (? to lookup):
Owner Name
Ignore . . . . . . . > >
Mask . . . . . . . . ADMR7 > DATA >
Delta Version . . . . > >
Figure 11-41 CM - Register Options panel (ADB2CR0): Name the PROMOTE Change
Chapter 11. Using DB2 Administration Tool and DB2 Object Comparison Tool 205
8. A JCL job stream is generated in the Promote JOB JCL data set specified on the CM -
Promote panel (ADB2CPS). Submit the job to generate the delta change file
(Figure 11-42).
sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
EDIT [Link](CHGFILE) - 01.00 Columns 00001 00072
Command ===> Scroll ===> PAGE
****** ***************************** Top of Data *****************************
000001 //ADBMR7D JOB ,'DB2 UTILITY',
000002 //* RESTART=STEPNAME, <== FOR RESTART REMOVE * AND ENTER STEPNAME
000003 // REGION=0M,NOTIFY=SCHAUFU,
000004 // MSGCLASS=X,
000005 // CLASS=A
000006 //*
000007 /*JOBPARM SYSAFF=SY4A
000008 //*
000009
//***********************************************************ADB2CPS****
000010 //* START OF PROMOTE FOR CHANGE ID:2031
000011 //* O:ADBMR7
000012 //* N:BCCHG03-DA PROMOTE DA TO TA2
000013 //*
000014 //* USING MASK:
000015 //* O:ADBMR7
000016 //* N:DATA
000017 //*
000018 //* USING IGNORES:
000019 //* O:
000020 //* N:
000021 //*
000022 //* USING END BASE VERSION:
000023 //* O:ADBMR7
000024 //* N:AUTO:2013-04-22-11.28.45.535454
000025 //* D:
000026 //*
000027 //* USING START BASE VERSION:
000028 //* O:ADBMR7
000029 //* N:AUTO:2013-04-22-11.29.02.243377
000030 //*
000031 //* USING PROMOTE JOB JCL:
000032 //* [Link](CHGFILE)
000033 //*
000034 //* USING DELTA CHANGE:
000035 //* [Link]
000036
//**********************************************************************
000037 //*
Figure 11-42 Promote JCL: Submit to generate the delta change file
206 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Figure 11-43 shows the output delta change file created by the PROMOTE job.
. . . . . . . . . . . . . . . . . . . . . . . . . .
.
Menu Utilities Compilers Help
sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
BROWSE [Link] Line 00000000 Col 001 080
Command ===> Scroll ===> PAGE
********************************* Top of Data *********************************
DROP DROP TABLE BCD076DA.BC_DEPARTMENT ;
DROP COMMIT ;
DROP DROP TABLESPACE [Link] ;
DROP COMMIT ;
CREATE SET CURRENT SQLID='ADBMR7';
CREATE CREATE TABLESPACE BCTSEMP
CREATE IN BCD076DA
CREATE USING STOGROUP SYSDEFLT
CREATE PRIQTY 720 SECQTY 100
CREATE FREEPAGE 0 PCTFREE 5
CREATE GBPCACHE CHANGED
CREATE TRACKMOD YES
CREATE LOGGED
CREATE DSSIZE 4 G
CREATE NUMPARTS 5
CREATE SEGSIZE 32
CREATE BUFFERPOOL BP2
CREATE LOCKSIZE ANY
CREATE LOCKMAX SYSTEM
CREATE CLOSE YES
CREATE COMPRESS NO
CREATE CCSID EBCDIC
CREATE DEFINE YES
CREATE MAXROWS 255;
CREATE COMMIT ;
CREATE SET CURRENT SQLID='ADBMR7';
CREATE SET CURRENT SCHEMA='BCD076TA';
CREATE CREATE TABLE BC_DEPARTMENT
CREATE (DEPT_NO INTEGER NOT NULL WITH DEFAULT,
CREATE DEPT_NAME CHAR(35) FOR SBCS DATA NOT NULL
CREATE WITH DEFAULT,
CREATE MGR_NO INTEGER WITH DEFAULT NULL,
CREATE ADMR_DEPT INTEGER NOT NULL WITH DEFAULT,
CREATE LOCATION CHAR(20) FOR SBCS DATA NOT NULL
CREATE WITH DEFAULT,
CREATE EMPLOYEE_CNT SMALLINT NOT NULL WITH DEFAULT,
Figure 11-43 PROMOTE: Delta change file
Chapter 11. Using DB2 Administration Tool and DB2 Object Comparison Tool 207
Option 2: Use DB2 Object Comparison Tool
When using the DB2 Object Comparison Tool, comparing is done between the source (new
definition - BCD076DA) and target (environment to update BCD076TA) to create a delta
change file. There is no need to generate APPLY jobs when just creating the delta change
file.
Define the comparison by navigating to the main menu of the DB2 Administration Tool and
entering the character assigned to DB2 Object Comparison Tool at the bottom of the panel. In
this case it is the letter C (Figure 11-44).
208 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Use the following steps:
1. Specify the source parameters by enter the number 1 on the Option line of the DB2 Object
Comparison Tool Menu (GOCMENU). See Figure 11-45.
Specification Status:
1 - Specify compare source (new) Incomplete
2 - Specify compare target (old) Incomplete
3 - Specify compare masks None specified
4 - Specify ignores Using defaults
5 - Generate compare job Not generated
R - Reset all
RS - Reset Source
RT - Reset Target
S - Save dialog
M - Manage/Restore dialog
MC - MultiCompare
MR - Manage saved compare results
Figure 11-45 DB2 Object Comparison Tool Menu panel (GOCMENU)
DB2 Object Comparison Tool supports comparisons at the database, table space, and
table levels. In this example, the comparison is being done at the database level. To do
this, enter the number 1 on the Option line of the Specify Source DB2 Catalog Extract
panel (GOC12) and specify the data set name or table name of the source version. See
Figure 11-46 on page 210.
Note: DB2 Object Comparison Tool requires the source and target definitions to be
extracted and stored in a proprietary format into a set of version files or tables. The
input is version files. If a base version stored in the DB2 Admin database is specified, it
is first extracted to a file before the compare program is called.
Chapter 11. Using DB2 Administration Tool and DB2 Object Comparison Tool 209
GOC12 e -------------- Specify DB2 Source Catalog Extract --------------- 17:50
Option ===> 1
Description . .
Figure 11-46 Specify DB2 Source Catalog Extract panel GOC12
Specify the name of the source database by entering the letter I (insert) under the Select
column heading of the Specify Source DB2 Databases panel (GOC1D). See Figure 11-47.
Commands: RESET
Line commands:
D - Delete I - Insert
210 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Specify the full or partial name of the database to get a list of databases to choose from.
The full database name is supplied in Figure 11-48.
Enter the partial name of the database you want to add to the compare
operation:
After selecting the database or databases, press Enter. The word Added must be
displayed under the Action header so that the object can be included in the comparison
(Figure 11-49).
2. Repeat the same process to specify the target database. The target is the environment
that must be changed to look like the source. In this scenario BCD076TA is the target.
Chapter 11. Using DB2 Administration Tool and DB2 Object Comparison Tool 211
3. If necessary, specify the translation mask to be used by entering the number 3 on the
Option line of the DB2 Object Comparison Tool Menu as shown in Figure 11-50. If the
mask is specified at this time, the contents of the delta change file will be translated at the
time of its creation.
Specification Status:
1 - Specify compare source (new) DB2 catalog extract specified
2 - Specify compare target (old) DB2 catalog extract specified
3 - Specify compare masks None specified
4 - Specify ignores Using defaults
5 - Generate compare job Not generated
R - Reset all
RS - Reset Source
RT - Reset Target
S - Save dialog
M - Manage/Restore dialog
MC - MultiCompare
MR - Manage saved compare results
Figure 11-50 DB2 Object Comparison Tool Menu panel (GOCMENU)
Enter the name of the mask on the Specify Compare Masks panel (GOC3) as shown in
Figure 11-51.
212 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
The mask used in this scenario is stored in a table in the Change Management repository.
The contents of the mask can be seen in Figure 11-52.
The DB2 Object Comparison Tool also has an ignore capability. This enables the user to
identify parameters that should not be compared. For example, you might not want to
compare the sizes (PQTY and SQTY) between the source and target table spaces.
Ignore, as with masks, is an optional facility. The definition of the ignore facility can be
stored in a file or in a DB2 table in the Change Management Repository.
4. Generate the compare job by entering the number 5 on the Option line of the DB2 Object
Comparison Tool Menu (GOCMENU), as shown in Figure 11-53.
Specification Status:
1 - Specify compare source (new) DB2 catalog extract specified
2 - Specify compare target (old) DB2 catalog extract specified
3 - Specify compare masks Mask specified
4 - Specify ignores Using defaults
5 - Generate compare job Not generated
R - Reset all
RS - Reset Source
RT - Reset Target
S - Save dialog
M - Manage/Restore dialog
MC - MultiCompare
MR - Manage saved compare results
Figure 11-53 DB2 Object Comparison Tool Menu panel (GOCMENU): Generate Compare job
Chapter 11. Using DB2 Administration Tool and DB2 Object Comparison Tool 213
Fill in the parameters on the Generate Compare Jobs panel (GOC5). In this instance you
are trying to generate only a delta change file. To do this, you must specify the name of the
delta change file next to the Changes file data set name keyword. It is not necessary to
generate the apply jobs. See Figure 11-54.
Compare options:
Suppress DROP of objects . NO (Yes/No)
Suppress DROP of columns . NO (Yes/No)
Suppress adding columns . . NO (Yes/No)
Run SQLID . . . . . . . . . (Blank, an SQLID, or <NONE>)
Run Validate . . . . . . . N (Validate,None)
Allow implicit drop of
excluded objects . . . . NO (Yes/No)
Options:
Generate online . . . . . . YES (Yes/No)
Single compare job . . . . YES (Yes/No)
Member name . . . . . . . COMPARE (default COMPARE )
Generate apply jobs . . . . CHANGE (Yes, No, or (Delta) Change)
Generate one job . . . . (Yes, No, or (Per) Process)
Member prefix . . . . . (default APPLY )
As work statement list . (Yes/No to append to work stmt list)
Use customized util opts (Yes/No)
Content of apply job(s) . ALL (All, DDL)
Unload method . . . . . . (Unload, Parallel unload, HPU)
Generate templates. . . . NO (Yes/No)
Stop on conversion error. (Yes/No)
Use DEFER YES . . . . . . NO (Yes/No)
Allow rotate parts . . . . NO (Yes/No)
. . . . . . . . . . . . . . . . . . . . . . . . . . .
Figure 11-54 Generate Compare Jobs panel (GOC5)
214 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Submit the generate JCL job stream. Figure 11-55 and Figure 11-56 on page 216 are
displays of the delta change file generated by DB2 Object Comparison Tool. Note the schema
and database names have been modified based on the masking options.
sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
BROWSE [Link] Line 00000000 Col 001 080
Command ===> Scroll ===> PAGE
********************************* Top of Data *********************************
PTSINFO BCD076TA BCTSACT 0 DB0AD I 0
PTSINFO BCD076TA BCTSDEPT 0 DB0AD I 0
PTSINFO BCD076TA BCTSEPA 0 DB0AD I 0
PTSINFO BCD076TA BCTSPJA 0 DB0AD I 0
PTSINFO BCD076TA BCTSPROJ 0 DB0AD I 0
UTILINFO ALTER TB BCD076TA BCTSDEPT N BCD076TA
CREATE ALTER TABLE BCD076TA.BC_DEPARTMENT
CREATE ALTER DEPT_NAME SET DATA TYPE CHAR(30) ;
CREATE COMMIT ;
UNLOAD BCD076TA
DROP DROP TABLESPACE [Link] ;
DROP COMMIT ;
CREATE SET CURRENT SQLID='ADMR7';
CREATE SET CURRENT SQLID='ADMR7';
CREATE CREATE TABLESPACE BCTSEMP
CREATE IN BCD076TA
CREATE USING STOGROUP GLWG01
CREATE PRIQTY 100 SECQTY 100
CREATE FREEPAGE 0 PCTFREE 5
CREATE GBPCACHE CHANGED
CREATE TRACKMOD YES
CREATE LOGGED
CREATE DSSIZE 4 G
CREATE NUMPARTS 5
CREATE SEGSIZE 32
CREATE BUFFERPOOL BP0
CREATE LOCKSIZE ANY
CREATE LOCKMAX SYSTEM
CREATE CLOSE YES
CREATE COMPRESS NO
CREATE CCSID EBCDIC
CREATE DEFINE YES
CREATE MAXROWS 255;
PTSINFO BCD076TA BCTSEMP 5 DB0AD I 0
PTSINFO BCD076TA BCTSEMP 4 DB0AD I 0
PTSINFO BCD076TA BCTSEMP 3 DB0AD I 0
Figure 11-55 Delta Change File: generated by Compare
Chapter 11. Using DB2 Administration Tool and DB2 Object Comparison Tool 215
BROWSE [Link] Line 00000037 Col 001 080
Command ===> Scroll ===> PAGE
PTSINFO BCD076TA BCTSEMP 2 DB0AD I 0
PTSINFO BCD076TA BCTSEMP 1 DB0AD I 0
CREATE COMMIT ;
CREATE SET CURRENT SCHEMA='BCD076TA';
CREATE CREATE TABLE BC_EMPLOYEE
CREATE (EMP_NO INTEGER NOT NULL,
CREATE FIRSTNAME VARCHAR(12) FOR SBCS DATA NOT NULL,
CREATE MIDINIT CHAR(1) FOR SBCS DATA NOT NULL,
CREATE LASTNAME VARCHAR(20) FOR SBCS DATA NOT NULL,
CREATE WORKDEPT INTEGER WITH DEFAULT NULL,
CREATE PHONENO CHAR(4) FOR SBCS DATA NOT NULL,
CREATE CELLPHONE CHAR(10) FOR SBCS DATA NOT NULL,
CREATE HIREDATE DATE NOT NULL WITH DEFAULT,
CREATE TERMDATE DATE NOT NULL WITH DEFAULT,
CREATE JOB CHAR(12) FOR SBCS DATA WITH DEFAULT NULL,
CREATE MANAGER CHAR(1) FOR SBCS DATA NOT NULL,
CREATE EDLEVEL SMALLINT NOT NULL,
CREATE SEX CHAR(1) FOR SBCS DATA WITH DEFAULT NULL,
CREATE BIRTHDATE DATE NOT NULL WITH DEFAULT,
CREATE SALARY DECIMAL(9, 2) WITH DEFAULT NULL,
CREATE BONUS DECIMAL(9, 2) WITH DEFAULT NULL,
CREATE COMM DECIMAL(9, 2) WITH DEFAULT NULL,
CREATE CREATED_TS TIMESTAMP (6) WITHOUT TIME ZONE NOT NULL
CREATE WITH DEFAULT,
CREATE CREATED_BY CHAR(8) FOR SBCS DATA NOT NULL
CREATE WITH DEFAULT,
CREATE UPDATED_TS TIMESTAMP (6) WITHOUT TIME ZONE NOT NULL
CREATE WITH DEFAULT,
CREATE UPDATED_BY CHAR(8) FOR SBCS DATA NOT NULL
CREATE WITH DEFAULT,
CREATE CONSTRAINT GLWPEMP
CREATE PRIMARY KEY (EMP_NO))
CREATE IN [Link]
CREATE PARTITION BY (LASTNAME ASC,
CREATE FIRSTNAME ASC,
CREATE EMP_NO ASC)
CREATE (PARTITION 1 ENDING AT ('D'),
Figure 11-56 Delta Change File generated by Compare (cont).
After this file is created, it can be imported by using the Import feature of the ISPF interface or
through the use of CM Batch (action_import_change).
216 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Running compare to generate the delta change file can also be done by using CM Batch as
an alternative to using the panels. See Example 11-1.
CMT='**********************'
CMT='*** COMPARE SOURCE ***'
CMT='**********************'
SOURCE_TYPE = 'USER'
ADMIN_DATASET_TYPE = 'SRCVF'
ADMIN_DATASET_DSN = '[Link].VER0419';
CMT='**********************'
CMT='*** COMPARE TARGET ***'
CMT='**********************'
TARGET_TYPE = 'USER'
ADMIN_DATASET_TYPE = 'TGTVF'
ADMIN_DATASET_DSN = '[Link].VER0419';
CMT='**********************'
CMT='*** COMPARE MASK ***'
CMT='**********************'
COMPARE_MASK_OWNER = 'ADMR7'
COMPARE_MASK_NAME = 'DATA'
CMT='*****************************'
CMT='*** OTHER COMPARE OPTIONS ***'
CMT='*****************************'
PREFIX_FOR_DATA_SETS = 'ADMR7'
ADMIN_DATASET_TYPE = 'DELTA'
ADMIN_DATASET_DSN = '[Link]';
ALLOW_ROTATE_PARTS = 'Y'
/*
//*****************************
//* COMPARE SOURCE OBJECTS
//*****************************
//[Link] DD *
TYPE='DB' NAME = 'BCD076DA';
/*
//*****************************
//* COMPARE TARGET OBJECTS
//*****************************
//[Link] DD *
TYPE='DB' NAME = 'BCD076TA';
/*
Chapter 11. Using DB2 Administration Tool and DB2 Object Comparison Tool 217
Option 3: Use the EX (export) command in the ISPF interface
Export one or more registered changes to a delta change file by issuing the ISPF interface EX
(export) line command next to the registered change using the ISPF interface.
This scenario exports a completed change, but a change can be exported as soon as it is
registered.
Navigate to the CM - Changes panel ADB2C11 and enter EX next to the name of the change
to be exported. In this case, it is BCCHG-2DA (Figure 11-57)
Line commands:
U - Update AN - Analyze RN - Run VE - Versions ST - Statements
PQ - Prerequisites IG - Ignores MA - Masks S - Show WSL B - Checkpoint
? - Show all line commands
Press Enter to open the Export Changes panel (ADBPC15), as shown in Figure 11-58.
This panel displays information about a set of changes.
The BCCHG-2DA change is listed with an Operation Type of INCLUDE. Three primary
commands can be issued on the CM Export Changes panel (ADBPC15). You can either click
on a command or enter the command on the Command line.
CONTINUE: Use this command after all changes that are to be exported are listed.
COMMENT: Toggle the display of the data stored in the comments field on or off.
ADD: Add multiple changes to the export.
218 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
To propagate both changes, BCCHG01-DA and BCCHG02-DA, using the EX option, you must
add the changes to the list one at a time by doing clicking the ADD keyword or by entering ADD
on the Command line (Figure 11-59).
The CM - Add a Change panel (ADBPC15A), Figure 11-60, prompts you either to enter the
name of a change or to use the DB2 Administration Tool’s lookup feature to get a partial or a
full list of the registered changes in the Change Management repository.
A list of changes matching the selection criteria is displayed. Changes to be included in the
export can be selected by entering a plus sign (+) next to the change, as shown by the Select
by typing a ‘+’ message under the Command line of CM - Changes panel (Figure 11-61).
Chapter 11. Using DB2 Administration Tool and DB2 Object Comparison Tool 219
The selected change is displayed on the CM - Add a Change panel (Figure 11-62).
Press F3. The change will be included in the list of changes to be exported (Figure 11-63).
The line commands indicate that the changes in the list can be included (IC) or excluded (XC).
There is also an interpret (I) command that displays general information about the change
itself.
After all the changes are listed, click CONTINUE or enter CONTINUE on the Command line of the
CM Export Changes panel (ADBPC15).
220 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Specify Data Set / Member Information (ADBPVERD) panel is displayed (Figure 11-64). This
panel is where the delta change file allocation is defined. The file can be a PDS or a
sequential file.
Select a choice
1 1. Replace contents of data set.
2. Cancel
Figure 11-65 Promote - Replace Delta Change Confirmation panel (ADB2CONF)
The changes are exported automatically. There is no message indicating that anything
happened. The panel in Figure 11-66 shows that two members are in the CM Export
Changes file. The TEST member is from a previous run and is not part of this scenario.
Chapter 11. Using DB2 Administration Tool and DB2 Object Comparison Tool 221
Sample contents of a delta change file are shown in Figure 11-67
EX (export) is using the contents of the Change Management Repository to create the delta
change file. Both BCCHG01-DA and BCCHG02-DA applied changes to the BCD076DA
database as reflected in the contents of the delta change file displayed in Figure 11-67. The
EXport ISPF panels do not provide an option to specify the name of a translation mask to be
used in the export process. Therefore, when the change is imported to the target, a mask
must be defined to apply the changes to the correct database or schema.
222 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Propagate Step 2: Import changes to a target
The next step in change propagation is to import the delta change into a target as a registered
change. This can be accomplished by using the ISPF panels or through CM Batch. The delta
file used in this example is the one generated by the EX (export) command. The import option
can include one or more delta change files.
Enter display selection criteria (Using a LIKE operator, criteria not saved):
Name . . . . . > Created by . . >
Owner . . . . > Altered by . . >
Type . . . . . Status . . . .
Created within Change ID . .
Altered within
Figure 11-68 CM - Manage Changes panel (ADB2C1)
Specify the number 4 on the Option line to Import Changes. The CM - Import Changes panel
(ADB2C14) is displayed. Enter the name of the delta change file (this name will be retained
across sessions) and the member name. Press Enter.
Chapter 11. Using DB2 Administration Tool and DB2 Object Comparison Tool 223
The name of the delta change file entered is added to the body of the panel (Figure 11-69).
Line Commands :
M - Move A - After B - Browse D - Delete
1 [Link](BCCHG)
******************************* END OF DB2 DATA *******************************
Figure 11-69 CM - Import Changes panel (ADB2C14)
After all of the delta change files to be included in the import are in the list, click CONTINUE or
enter CONTINUE on the Command line. The CM Import changes - Select process modes panel
(ADB2C14M) is displayed (Figure 11-70).
Import is a two-step process. The DB2 Administration Tool does the following operations:
Determines whether any prerequisite changes are pending for objects involved in the
change.
Registers the change with a status of DEFINED.
The steps can be run in TSO, batch, or a combination of TSO and batch.
This scenario explores applying the changes to the BCD076TA environment. The change
statements, however, all point to the BCD076DA environment and must be modified to point
to the TA environment. Although contents of the delta change file can be edited using TSO,
the best way is to use DB2 Administration Tool’s mask. The mask must be predefined. It can
be edited though the panels, but there must be at least a place holder.
224 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
The mask used in this scenario is shown in Figure 11-71.
Press Enter on the CM - Import Changes - Select Process Modes panel. The CM - Register
Options panel ADB2CR0 is displayed (Figure 11-72). Provide a change name, and the name
of the mask to be used for translating the DDL to point to the correct environment. If you do
not know the name of the mask, use the lookup function to see a list of existing masks.
Specify the owner and name values to use for this change (? to lookup):
Owner Name
Ignore . . . . . . . > >
Mask . . . . . . . . ADMR7 > DATA >
Delta Version . . . . > >
Figure 11-72 CM - Register Options panel (ADB2CR0): Name the Imported Change
Chapter 11. Using DB2 Administration Tool and DB2 Object Comparison Tool 225
Click CONTINUE or enter the CONTINUE command on the Option line. The Register Successful
message is displayed under the Command line. See Figure 11-73
Line Commands :
M - Move A - After B - Browse D - Delete
1 [Link](BCCHG)
******************************* END OF DB2 DATA *******************************
Figure 11-73 CM - Import Changes panel (ADB2C14)
The change is now registered and is in a DEFINED status (Figure 11-74), and can be
analyzed and run using either the ISPF or CM batch interfaces.
Line commands:
U - Update AN - Analyze RN - Run VE - Versions ST - Statements
PQ - Prerequisites IG - Ignores MA - Masks S - Show WSL B - Checkpoint
? - Show all line commands
226 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Use the ST line command to confirm that the mask did make the necessary changes to the
contents of the change file to work against the BCD076TA environment. See Figure 11-75
Chapter 11. Using DB2 Administration Tool and DB2 Object Comparison Tool 227
Option 2: Use CM Batch to import delta change file
Specify the following actions to be taken in a copy of the CM Batch installation verification job
created by DB2 Administration Tool TCz customization. The values must be within single
quotation marks, for example 'Y' (for yes). See Figure 11-76.
action_import_change = ‘Y’ (Yes or no.)
use_mask_for_import_change = ‘Y’ (The delta file was created by export thus, the
change still refers to the original source of BCD076DA.)
mask_name = ‘DATA’ (This is the mask created as part of the change scenario.)
mask_owner = ‘ADMR7’
change_name = ‘BCCHG03_TA3’ (To be the name of the registered change.)
change_owner = ‘ADMR7’
//GOCCM.IMCHG001 DD DISP=SHR,DSN=[Link](BCCHG) (The change file to
be imported.)
228 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
The imported change is stored in the Change Management Repository as a DEFINED
change (Figure 11-77).
Line commands:
U - Update AN - Analyze RN - Run VE - Versions ST - Statements
PQ - Prerequisites IG - Ignores MA - Masks S - Show WSL B - Checkpoint
? - Show all line commands
The two changes that were just registered, BCCHG03_TA2 and BCCHG03_TA3, contain the
same set of change statements. This was done to illustrate that either the ISPF panel
interface or batch interface of change management can be used to register a change. Both
changes are not needed, so cancel change BCCHG03_TA2 using the cancel change line
command (CAN), as shown in Figure 11-78.
Line commands:
U - Update AN - Analyze RN - Run VE - Versions ST - Statements
PQ - Prerequisites IG - Ignores MA - Masks S - Show WSL B - Checkpoint
? - Show all line commands
Chapter 11. Using DB2 Administration Tool and DB2 Object Comparison Tool 229
The list of statements (Figure 11-79) were imported. These statements are displayed
by issuing the ST (statements) line command next to ID 42, BCCHG03_TA3 change.
The bottom of the list shows that the change for BC_PROJ (Scenario 1) has been included.
Also note that the schema and database names were changed, through the use of
masking, to BCD076TA, the test environment.
The change is now ready to be analyzed (AN) and then run (RN). The IMPORT process can
be repeated for the other target environments.
230 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
11.4 Change Scenario 3: Recover a change
The Change Management Process can generate a recover change at the time of the analyze
job. It is an option on the Generate Analyze Job panel (ADB2C11A), shown in Figure 11-80.
Options:
Run SQLID . . . . . . . . . (Blank, a SQLID, or <NONE>)
Validate WSL . . . . . . : NO (Yes/No)
Use utility options . . . . NO (Yes/No)
Generate templates . . . . NO (Yes/No)
Build JCL to run WSL . . . NO (Yes/No)
Generate a recover change . YES (Yes/No)
Data to recover . . . . . E (Original or Existing)
Figure 11-80 Generate Analyze Job panel (ADB2C11A): Recover Change
Chapter 11. Using DB2 Administration Tool and DB2 Object Comparison Tool 231
Recover is a named change. The comment is automatically inserted on the CM - Register
Options panel (ADB2C11). See Figure 11-81.
Specify the owner and name values to use for this change (? to lookup):
Owner Name
Ignore . . . . . . . > >
Mask . . . . . . . . > >
Delta Version . . . . > >
Figure 11-81 CM - Register Options panel (ADB2CR0): Recover Change
Analyze is a batch job. Submit the generated JCL to do the analyze job. If analyzing finishes
normally, the change itself will have a status of ANALYZED, and the recover change will also
have a status of ANALYZED and a type of RECOVER. This is shown in Figure 11-82.
Line commands:
U - Update AN - Analyze RN - Run VE - Versions ST - Statements
PQ - Prerequisites IG - Ignores MA - Masks S - Show WSL B - Checkpoint
? - Show all line commands
232 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
To view a complementary recover change, enter the RE line command next to the name of the
change, as shown in Figure 11-83.
Line commands:
U - Update AN - Analyze RN - Run VE - Versions ST - Statements
PQ - Prerequisites IG - Ignores MA - Masks S - Show WSL B - Checkpoint
? - Show all line commands
Line commands:
U - Update AN - Analyze RN - Run VE - Versions ST - Statements
PQ - Prerequisites IG - Ignores MA - Masks S - Show WSL B - Checkpoint
? - Show all line commands
Chapter 11. Using DB2 Administration Tool and DB2 Object Comparison Tool 233
Issue the OR line command next to the recover change to locate the associated original
change (Figure 11-85).
Line commands:
U - Update AN - Analyze RN - Run VE - Versions ST - Statements
PQ - Prerequisites IG - Ignores MA - Masks S - Show WSL B - Checkpoint
? - Show all line commands
Line commands:
U - Update AN - Analyze RN - Run VE - Versions ST - Statements
PQ - Prerequisites IG - Ignores MA - Masks S - Show WSL B - Checkpoint
? - Show all line commands
234 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
The recover change is ready to run because it is created with an ANALYZED status. To
recover a change, the original change must have successfully completed. To run the recover,
enter RC next to the original change (not the recover change). See Figure 11-87.
Line commands:
U - Update AN - Analyze RN - Run VE - Versions ST - Statements
PQ - Prerequisites IG - Ignores MA - Masks S - Show WSL B - Checkpoint
? - Show all line commands
Chapter 11. Using DB2 Administration Tool and DB2 Object Comparison Tool 235
Submit the generated JCL to back out the change. Notice the message at the bottom of
Figure 11-88.
236 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Non-managed versus managed summary
IBM change management solution offers two options for making changes: non-managed and
managed. Table 11-4 compares the two.
Specification of a change AL, ALT, CREATE, DROP AL, ALT, CREATE, or DROP
using IMPORT or REGISTER
changes into the Change
Management Repository
Chapter 11. Using DB2 Administration Tool and DB2 Object Comparison Tool 237
238 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
12
All cases start from the home page of Optim Configuration Manager (Figure 12-1)1. This
menu is displayed after you log on to the Optim Configuration Manager server using the
server address and port (default 12206) defined during the installation.
The first window presented is the current list of databases defined to Optim Configuration
Manager (Figure 12-2 on page 241). To edit an existing location, click the pencil icon and to
create a new icon, click the plus icon.
240 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Figure 12-2 List of defined location aliases
If any failures occur, correct the faults and rerun the validate operation until it is successful.
242 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Figure 12-5 Job List: Auto job definition
This job collects all attributes about DB2 objects, as shown in Figure 12-6. You might want to
review this list and decide what attributes to collect; you might not want to collect authority
attributes in a test system but you would in production.
For details about scheduling, see Chapter 7, “InfoSphere Optim Configuration Manager” on
page 109.
Select the parameter that you want to change and select edit (using the pencil icon). The
Edit Parameter window opens (Figure 12-8). Complete the details and click OK to make the
change.
244 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Note: To use this feature, the DB2 stored procedure ADMIN_UPDATE_SYSPARM must be
installed.
You can see the history of changes made to DSNZPARMS by selecting the parameter and
then the history icon at the left side of the window. The current and historical values for the
selected ZPARM are then displayed.
Note: To collect details on PTFs and WLM you must be on Version 3.1
To look at changes made, select OPEN Configuration Changes. The summary page
opens, which shows all locations that have had object details collected (Figure 12-9). The
100% in the Changed objects column means all locations, because of the background job
submitted when creating the connections.
This report shows that 1,208 tables were created within this subsystem in the last 30 days,
and that one was modified. Click the table row to see the details of those changes
(Figure 12-11 on page 247)2.
From this report, you can see that table ADMR6.BC_PROJ was created the latest timestamp
for the time of creation, and modifications were made to BC_EMPLOYEE. For updates, we
record the before-change and the after-change, with the changes highlighted. All fields on the
report can be used for sorting and you can filter the report to only show changes that you are
interested in.
246 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Figure 12-11 Configuration detailed table changes
A detailed report for packages is shown in Figure 12-12. The report shows that there are new
versions of several packages and one package has been deleted; all changes are highlighted.
248 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Optim Configuration Manager V3.1 delivered additional functions to track Workload Manager
(WLM) changes and the level of maintenance applied to a subsystem. An example of a report
showing the program temporary fixes (PTFs) applied to a subsystem is shown Figure 12-15.
Recorded Clients
To see Recorded Clients, select Open Clients Servers, and so on, and select the
Recorded Clients tab. See Figure 12-16 on page 250.
Next, you can select a client and get the detail for that connection, as shown in Figure 12-17.
Managed Clients
With Managed Clients you can obtain more information than that shown for Recorded Clients,
this information is collected in the Optim Configuration Manager repository and is collected
through the DTRC installed on the client. Optim Configuration Manager contains information
relating to the driver properties, the data source descriptors, and the client properties.
250 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
To access Managed Clients, select Open Managed Client; the window shown in
Figure 12-18 opens.
Select the client for which you want to see details. We selected the client named SalesApp
Test 2 0; details about that client are presented in the bottom half of the window.
Third is Data Source Descriptors. A portion of the report is shown in Figure 12-21.
You can use Optim Configuration Manager to identify changes and compare two clients to
each other. This helps to identify differences that might explain a variance in performance
between two clients.
252 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
12.4.2 Identifying client changes
You previously identified the client that you want to work with and you must set it as your
source client. Click Set as source (at the top in Figure 12-20 on page 252). This must be
done whether you are comparing the same or different clients; it sets the starting point for
either comparison. You can run them as “inline” comparisons or set up a scheduled job to run
the comparison automatically.
When you select the version you want to use as the target, Optim Configuration Manager
then compares the two versions. The window in Figure 12-23 opens.
In this example, no differences exist between the two versions of the clients. If differences do
exist, however, a set of buttons becomes available so you can filter the results to show the
following information:
All fields
Only differences
Only equal values
The full report can be exported from Optim Configuration Manager in CSV format to allow
further processing. The full list of properties compared by Optim Configuration Manager is in
Appendix A, “Optim Configuration Manager Comparison reports” on page 275.
Assume that you have selected the client, shown in Figure 12-24, as the source for your
comparison.
To select a different client, instead of selecting a value from the drop-down list, you now select
a client from the list of clients that are managed. As shown in Figure 12-25, the client with an
ID of 100 is selected as the target client.
254 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
After the comparison is completed, and the results are listed (Figure 12-26). As shown, there
are differences between the two clients. Specifically, two differences exist in the data source
descriptor and five exist within the clients properties, for example the client ID (1 and 100). All
changes are highlighted in yellow.
The buttons are now active. If you click the Show only differences button, the comparison
output is reduced to the report shown in Figure 12-27.
Assume that you want to set up the previous comparison as a regular job to be scheduled
through the Optim Configuration Manager repository. After you select source and target
clients, you can click Add Compare Job (Figure 12-28) to initiate the add conversation
windows.
By selecting the “Add Compare” button the following conversation is started to guide you
through setting up the Optim Configuration Manager batch job. The first screen to be shown is
the job properties screen as shown in Figure 12-29.
256 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
The next window shows the source that you selected (Figure 12-30) and the version of the
client that you want to use, in this case the latest. You can change this to a specific version,
allowing you to have a “best practice” version of the client to which clients are compared
against, ensuring that best options are still selected.
Next, choose the target client, or clients, that you want to compare against, as shown in
Figure 12-31. On this Target tab, you can compare your source against one or more clients by
selecting them from the list of available targets. In this case, you are comparing against only
client 100, as in the previous example. You have the option to include or exclude client
properties from the comparison (using the Include and Exclude tab), allowing you to ignore
properties that you know will differ, for example the user associated with the client.
The configuration of the client is complete. You can now set up a schedule for the job
execution. Assume that you require this job to run daily at midday. Figure 12-33 shows how to
configure this schedule. This can also be added, or changed, through the Job List within the
Job Manager pages.
With the other properties of the compare process, you can run other Optim Configuration
Manager jobs, depending on results of the comparison, and whom to notify of the results.
258 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
After you finish defining the properties, save them to the Job List (Figure 12-34) for later
processing, or you can run the job immediately.
The client comparison job results are on the History tab of the Job Manager listing, as shown
in Figure 12-35. In this case, the job succeeded with warnings. This job should run quickly
because all the data is resident in the Optim Configuration Manager DB2 Repository. To view
the results of the comparison, click View log in browser (Figure 12-35).
The summary report for the comparison opens (Figure 12-36 on page 260). It shows only the
differences, as selected. The first managed connection is the source client and within the
report details is one line for each target client selected. You can select to either view all the
differences (through the Client Application Info column), or you can specifically choose any of
the property columns to display those differences.
If all changes are selected, the report shown in Figure 12-37 is displayed, with details for the
selected target.
260 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
From here you can select any values in the Object column to view the details of the
differences found, which are shown in Figure 12-38.
This report is now produced on a regular basis as dictated by the schedule you set up.
All attributes can be represented in a graph for average, minimum, and maximum values,
either individually or separately.
Details of a particular data point on the graph are displayed when you hover the mouse over
the data points (Figure 12-40). Raw data for the server is presented below the graph.
262 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
12.5 Managing applications
With Optim Configuration Manager, application properties can be overridden without requiring
changes to the application. You can configure properties pertaining to the following areas of
the application:
Application properties, such as schema name
Driver properties, such as MaxTransportObjects
WebSphere connection pool
Redirection, such as database connection
By being able to override the properties, you can centrally and dynamically manage
application behavior without requiring any application downtime or application changes.
You can dynamically move workloads between servers to allow for maintenance or to
isolate poorly behaving workloads and preserve SLAs.
To configure these properties you use rule sets to define rules so that when an application
from a Managed Client connects to the Optim Configuration Manager Server, the properties
are checked against any active rules. If a match is found, the properties within the client are
overridden with what is specified in the rule set. Although there can be only one active rule set
for a client at any one time, there can be multiple inactive rules. When creating new rules, do
not deactivate any rule until the new one is ready for activation. Activating a new rule set for
an application automatically deactivates the active rule set. You can have multiple rules within
a rule set and all are checked when the decision is made of what properties to override.
By starting the process from the Managed Client page, Optim Configuration Manager carries
across information about the client and application that can be used to identify the application
to override.
In the Conditions tab (Figure 12-43), specify the conditions that must be met before any
properties are overwritten. The client properties are already completed with information from
the Managed Clients page, but you can add more conditions if required.
264 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Define the actions that you want done for any application that meets the criteria specified on
the Conditions tab. Figure 12-44 shows two actions: set the CURRENT SCHEMA register
and set the maxTransportObjects to 50. Save this rule.
The next page that is displayed (Figure 12-45) shows the defined rule. Note that this rule set
is not activated and therefore does not affect any clients.
To activate the rule set, select the rule set you want to activate and then click the Activate
button when it is displayed. When the rule set is activated, the next time that this client
connects, the CURRENT SCHEMA is changed to the one defined in the rule set (in this case
THOMAS) and the maxTransportObjects is set to 50; the user is unaware that this is
occurring.
Combine this rule with the rule set defined for the application properties changes you defined
previously:
1. Clone the rule set for the rule set you want to use. Without this step, you are not able to
specify the active rule in the rule set name (shown in Figure 12-42 on page 264).
2. Select Configure driver properties from the drop-down list in the Add Rule window.
The Conditions tab opens (Figure 12-46). This is where you define the conditions to trigger
the actions. As in the application properties window, the necessary fields to identify the client
are already completed if you have selected the client from the Managed Client window,
otherwise you must supply this information.
266 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Define the changes you want to make to the client that matches the specified conditions.
Select the Action tab (Figure 12-47). This is where you define the changes to make. In this
case, set the minTransportObjects and maxTransportObjects. Although there is a completed
list of the most regularly changed properties, if required you can specify other properties.
When complete, save the rule to the cloned rule set. This is not active until the rule set is
activated.
Again, start from Managed Clients to ensure that the client and server details are prefilled, as
shown in Figure 12-48.
When complete, save the rule to the cloned rule set. Remember this is not yet active until the
rule set is activated.
The process for identifying the client to affect, for redirection, is similar the other property
client identification. For example see Figure 12-48 on page 267.
After identifying the client, you identify the receiving server for the affected clients on the
Action tab. In this example, the clients are redirected to a test DB2 subsystem. See
Figure 12-50.
When activated, any client identified in the Conditions tab is automatically directed to the
DB2 subsystem (as identified in Figure 12-50). This is done without affecting the user or
the application.
268 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
12.5.5 Activating the rule set
The final rule set, covering all examples in this section, is shown in Figure 12-51.
Note: In these examples, you added all the rules to one rule set for one client, one for each
property type, which is probably not what you would normally do, but is shown here as
examples of the process.
You now must activate the rule set for all changes to take effect. To do this, highlight the rule
set you want to activate, and click Activate (Figure 12-52).
In the Optim Configuration Manager repository, changes to the following items can be
recorded:
Table spaces
Tables
Indexes
Views
The initial window shows all changes that are recorded within the Optim Configuration
Manager Repository.
270 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Figure 12-54 DB2 Administration Tool Explorer
Notes:
To configure the Optim Configuration Manager interface, see Chapter 3, “Installing the
DB2 Administration Solution Pack” on page 27.
For information about using the Change Management features of DB2 Administration
Tool and DB2 Object Comparison Tool, see Chapter 11, “Using DB2 Administration Tool
and DB2 Object Comparison Tool” on page 169.
Column one represents the change ID (see Figure 12-55) that is generated within Change
Management system. This change ID can be used to tie the change back to the changes
generated by DB2 Administration Tool and DB2 Object Comparison Tool. The SQL
statements that are executed for that change can be displayed by clicking the change ID
that you want to view.
From these details it is simple to see that the change ID added two columns to table TB01
with qualifier Optim Configuration ManagerTEST. Optim Configuration Manager does not
capture how the changes were implemented, (for example, any utilities that had to be run to
implement the changes), but does report on what changes were made to the object
definitions.
The DB2 Administration Tool Explorer cross references to the Server Configuration changes
window that is shown in Figure 12-9 on page 245. This allows you to jump between the two
dialogs by selecting the icon to the left of the change row (Figure 12-57). In this figure you can
see that the icon allows you to jump directly to DB2 Administration Tool Explorer and to
automatically filter for the DSN9 connection.
272 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
The next window that opens (Figure 12-58) shows that a filter is applied to the Location
column.
From the windows, shown in Figure 12-55 on page 271 and Figure 12-58, you can select the
link icon and jump from DB2 Administration Tool Explorer to Configuration Manger for the
specific location, to see all changes for that location.
Alternatively, you can select the change that you are interested in, see the changes that were
made, and then use the link to jump to Configuration Manager and view all changes that were
made to that specific object. See Figure 12-59. In this case, you see all changes for table
TB01 with qualifier Optim Configuration ManagerTEST at the location.
In addition, links are available within the various levels of Configuration Manager, so you can
jump directly to DB2 Administration Tool Explorer to see related changes. This feature is
indicated by the link icon, in Figure 12-60. If you select the icon next to the table spaces, the
DB2 Administration Tool Explorer window opens. It lists all changes that relate to table spaces
for the selected location.
With Optim Configuration Manager and the other components of the DB2 Administration
Solution Pack. you now have a comprehensive method of tracking changes made to your DB2
subsystems, and being able to provide an audit capability showing what was changed, when
it was changed, and by whom it was changed.
274 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
A
CR_LOCKBLOB alternateGroupPortNumber
DBANSIWARN alternateGroupServerName
DBDATE atomicMultiRowInsert
DBMAXPROC blockingReadConnectionTimeout
DBPATH charOutputSize
DBSPACETEMP cliSchema
DBTEMP clientAccountingInformation
DBUPSPACE clientApplicationInformation
DB_LOCALE clientDebugInfo
DEBUG clientProgramId
DELIMIDENT clientProgramName
DUMPCORE clientRerouteAlternatePortNumber
DUMPDIR clientRerouteAlternateServerName
DUMPMEM clientRerouteServerListJNDIName
DUMPSHMEM clientUser
GCORE clientWorkstation
IFX_DIRECTIVES concurrentAccessResolution
IFX_EXTDIRECTIVES connectNode
IFX_FLAT_UCSQ connectionCloseWithInFlightTransaction
IFX_UPDDESC currentDegree
IFX_XASTDCOMPLIANCE_XAEND currentExplainMode
INFORMIXOPCACHE currentExplainSnapshot
INFORMIXSTACKSIZE currentFunctionPath
LIGHT_SCANS currentLockTimeout
LKNOTIFY currentMaintainedTableTypesForOptimization
LOCKDOWN currentPackagePath
LOCKSSFU currentPackageSet
NODEFDAC currentQueryOptimization
NOSHMSG currentRefreshAge
NOSORTINDEX currentSQLID
OPTCOMPIND currentSchema
OPTOFC cursorSensitivity
PDQPRIORITY dataSourceName
PLOAD_LO_PATH databaseName
PSORT_DBTEMP dateFormat
PSORT_NPROCS dateTimeMutation
SLABEL decimalRoundingMode
SORTINDEX decimalSeparator
SQLSTATS decimalStringFormat
SQL_FROM_DBIMPORT defaultIsolationLevel
STMT_CACHE deferPrepares
STMT_CACHE_DEBUG description
SUBQCACHESZ downgradeHoldCursorsUnderXa
accountingInterval driverType
activateDatabase emulateParameterMetaDataForZCalls
affinityFailbackInterval enableAlternateGroupSeamlessACR
allowNextOnExhaustedResultSet enableAlternateServerListFirstConnect
allowNullResultSetForExecuteQuery enableClientAffinitiesList
allowUnassignedParameters enableConnectionConcentrator
alternateGroupDatabaseName enableExtendedIndicators
276 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Properties
enableMultirowInsertSupport readOnly
enableNamedParameterMarkers recordTemporalHistory
enableRowsetSupport reportLongTypes
enableSeamlessFailover resultSetHoldability
enableSysplexWLB resultSetHoldabilityForCatalogQueries
enableT2zosCallSPBundling retrieveMessagesFromServerOnGe
enableT2zosLBF retryIntervalForClientReroute
enableT2zosLBFSPResultSets retryWithAlternativeSecurityMechanism
encryptionAlgorithm returnAlias
extendedDiagnosticLevel securityMechanism
fetchSize sendCharInputsUTF8
floatingPointStringFormat sendDataAsIs
fullyMaterializeInputStreams serverName
fullyMaterializeInputStreamsOnBatchExecution sessionTimeZone
fullyMaterializeLobData sqljEnableClassLoaderSpecificProfiles
implicitRollbackOption ssid
interruptProcessingMode sslConnection
jdbcCollection sslTrustStoreLocation
keepAliveTimeOut sslTrustStorePassword
keepDynamic statementConcentrator
kerberosServerPrincipal streamBufferSize
loginTimeout stripTrailingZerosForDecimalNumbers
maxConnCachedParamBufferSize supportsAsynchronousXARollback
maxRetriesForClientReroute supportsRawDateTimeRetrieval
maxRowsetSize sysSchema
maxStatements timeFormat
maxTransportObjects timerLevelForQueryTimeOut
monitorCollectionInterval timestampFormat
monitorEnabled timestampOutputType
monitorLevel timestampPrecisionReporting
monitorPort traceDirectory
monitorServerName traceFile
monitoredDataSourceName traceFileAppend
optimizationProfile traceFileCount
optimizationProfileToFlush traceFileSize
password traceLevel
pdqProperties traceOption
pkList translateForBitData
planName updateCountForBatch
plugin useCachedCursor
pluginName useIdentityValLocalForAutoGeneratedKeys
portNumber useJDBC4ColumnNameAndLabelSemantics
profileName useRowsetCursor
progressiveStreaming useTransactionRedirect
queryCloseImplicit user
queryDataSize xaNetworkOptimization
queryTimeoutInterruptProcessingMode
[Link].ccsid1390Mapping [Link]
[Link].ccsid1399Mapping [Link]
[Link].ccsid930Mapping [Link]
[Link].ccsid939Mapping [Link]
[Link].ccsid943Mapping [Link]
[Link].ccsid954Mapping [Link]
[Link] [Link]
[Link] [Link]
[Link] [Link]
[Link] [Link]
[Link] [Link]
[Link] [Link]
[Link] [Link]
[Link] [Link]
[Link] [Link]
[Link] [Link]
[Link].enableT2zosCallSPBundling [Link]
[Link].enableT2zosLBF [Link]
[Link].enableT2zosLBFSPResultSets [Link].useCcsid420ShapedConverter
[Link] [Link]
[Link]
APPLICATION IPADDR
DB_NAME JDBC_DATASOURCE_NAME
DDID PORT
DRIVER_BUILD_CERT SERVER_NAME
DRIVER_BUILD_QUALIFIER USER
DRIVER_CMPNT_NAME UUID
DRIVER_FULL_VERSION WAS_APP_SERVER_NAME
DRIVER_MAJOR_VERSION WAS_APP_SERVER_VERSION
DRIVER_MICRO_VERSION WAS_JNDI_DATASOURCE_NAME
DRIVER_MINOR_VERSION WAS_POOL_SIZE
DSDID WORKSTATION
278 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Related publications
The publications listed in this section are considered particularly suitable for a more detailed
discussion of the topics covered in this book.
IBM Redbooks
The following IBM Redbooks publications provide additional information about the topic in this
document. Note that some publications referenced in this list might be available in softcopy
only.
Managing IBM DB2 10 for z/OS Using the IBM DB2 Administration Tool for z/OS
Version 10, SG24-7916
You can search for, view, download or order these documents and other Redbooks,
Redpapers, Web Docs, draft and additional materials, at the following website:
[Link]/redbooks
Other publications
These publications are also relevant as further information sources:
DB2 Administration Solution Pack for z/OS Version 1 Release 1 Overview and
Customization, SC19-3785
DB2 Administration Tool for z/OS, V10.2 User's Guide, SC19-3744
DB2 Table Editor for z/OS Version 4 Release 4 User's Guide, SC19-3781
DB2 Object Comparison Tool for z/OS Version 10 Release 2 User’s Guide, SC19-3778
InfoSphere Optim Configuration Manager for DB2 for z/OS, V2.2: Quick Start Guide,
GC19-3499
DB2 10 for z/OS Managing Performance, SC19-2978
280 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
Index
catalog authorities 242
A catalog navigation 74
ADB 9, 149, 217, 228 CCSID 207, 215
ADB2 dmin 208 Central control of properties 122
ADB21TA n 173 CHANGE 85, 143, 189
ADB27CA n 145, 181 Change Management 20, 36, 116, 134, 142, 170, 271
ADB2C2L n 213 CHANGE MANAGEMENT BATCH 143
ADB2RCPC 22, 42 Change Management Batch 149
ADBBIND 22, 42 change management database 43
ADBCATVT 22, 42 CHANGE MANAGEMENT PROCESS 142
ADBCHKPT 22, 42 changes 28, 74, 78, 98, 109–110, 134, 141, 162, 169,
ADBL 106 243
ADBTEP2 22, 42, 151, 236 CHECK constraint 173
ADD 77, 113, 145, 173 CHECK DATA 146, 193, 195
ADDFK 187 CLASS 12, 87, 206, 217
additional indexes 43 Client inventory 123
ADDRI 187 CLOSE
AL 78, 94, 142, 169–170 YES 207
command 143, 170 CM Batch 143, 149
Aliases panel 106, 136, 166, 189 CO 90
ALT 142 column name 170
command 78, 142, 169 Columns 00001 87, 151–152, 200, 206
ALTER 77, 79, 134, 142–143, 170, 172 command
command 172 ALTER 78, 172
ALTER stmt 176 CONTINUE 218
ALTER TABLE 77, 173–174 DDL 77, 150, 192
ALTER Table 78, 180 Command line 146, 168, 170
ANALYZE 142–143, 193 Compare
AND 67, 81, 87, 106, 206, 222 Masks 100, 212
AO 74 masks 101
AP 88 source 98–99, 144, 158, 199, 237, 256
application profiles 131 target 98–99, 144, 158, 199, 237, 256
APPLY 134–135, 142, 179, 192 compares 209
architecture 111 components 4, 14, 25, 27, 105, 111, 154, 274
archive log 88 Configuration Changes 245
AT 216, 236 CONTINUE 66, 70, 78, 180
Attributes 104 Controlling errant applications 126
Auth ID 93, 167 COPY 67, 146, 192
AUTHID 131 copy 22, 42, 75, 102, 193
Automation Tool 5 copy data 75, 95
COUNT 89
B CP 79, 94, 200
BASE VERSION 142 CREATE VIEW 77, 222
batch job 75, 77, 146, 156, 193, 204, 256 CURRENT SCHEMA 265
BPool 163, 171 customization 6, 15, 28, 30, 136, 228
BR 136 DB2 Administration Tool 30
BROWSE 136, 207, 215 customization library 20, 22, 36, 42
browse xx, 22, 42, 80, 85, 104, 136
buffer pool 88, 248 D
BUFFERPOOL BP0 215 DASD 7
DATA CAPTURE 173
C data conversion 192
CAN 229 data set 12, 20, 36, 38, 77, 150, 168, 191
catalog 43, 74, 98, 137, 210, 242 names 191
282 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
IBM InfoSphere Optim Query Workload Tuner for DB2 for Operation Type 218
z/OS 6 Optim Configuration Managed servers 116
IBM Tools Customizer for z/OS 11 Optim Configuration Manager 64, 111, 240
ICS See Image copy status architecture 111
IGNORE CHANGES 143 client 116
ignores 177 clients 116
Image copy 195 components 111
Image copy status 76 DB2 Repository 116
IMPORT 134, 142, 230 DB2 repository 116
Inline length 174 features and functions 117
INS 89, 200 migrations 123
IP address 121 overview 110
ISP 38 server 112
ISPF 7, 38, 104, 142–143, 162, 179 web interface 115
ISPF interface 105, 144, 190 option 1 14, 29
option 2 71, 83
option 5 135
J option line 178
job card 153 option x 74
Job panel 146, 191 option xC 74
JOBPARM 12, 87, 206, 217 Optional job 146
JOBPARM SYSAFF 228 options 10, 22, 31, 74, 98, 141, 169, 257
OR 67, 89, 173, 234
L ORDER 12, 89, 149, 217
LIKE 74, 81, 178, 223 ORIGINAL 193
LIKE operator 201 owner 20, 36, 93, 167, 189
line command 15–16, 31–32, 77, 106–107, 136, 142,
164, 172, 179 P
list 8, 14, 29, 73, 97, 103, 144, 163, 171, 240, 275 package 22, 42, 81, 166, 247
LISTDEFs 75 PARTITION 173
LOAD 21, 40, 151 PDS 72, 83, 99, 144, 146–147, 191
LOB 75, 151 PDS See prefix for data sets
location alias 240 PENDING CHANGES 87, 236
Log 259 pending changes 87, 147, 236
Log DIAG 151 Perform recovery analysis 237
logs 72, 87 performance 3, 43, 82, 109, 252
LPAR 8, 15, 31 PF key 31
PHONENO 179
M PKGNAME 131
main features 7 plans 3, 43, 74, 131
maintenance 3, 81, 102, 117, 208, 249 PR 202
masking 199 primary command 77, 79, 146, 166
masks 101, 142, 177, 194 Primary key 93, 164
Member name 146, 214 procedure name 93, 167
middle qualifier 146, 214 product
MIG 76, 91, 107, 136, 163, 165, 171 library 14, 20, 29
MODIFY 145, 181 parameter 55, 158
profile 131, 236
Program parm 174
N promote 199, 202
NAME 87, 217, 236
NFM 19, 35
NULL/Program name 173 R
RC 150, 192, 235
RE 11–12, 79, 218, 226
O Real 81
Object xix, 4, 14, 28, 74, 97, 117, 134, 141, 164, 169, 240 REBUILD 146, 193
object name 92 RECOVER 85, 142–143, 232
object type 91 recovery 75, 233
OBJECTS 217 Recovery Expert 5
Index 283
Redbooks website 279 SQLID 77, 94, 147, 191
Contact us xx SSID 16, 32, 106, 149, 217
REFRESH 173 ssid 12, 155
REGION 12, 87, 206 ST 85, 178, 190
REGISTER 134, 142–143, 237 Stop DB2 88
related object 182 Stop table space 76
remote subsystem 90 Storage group 76, 163, 171
rename 76 structures 74, 164
REORG 144, 192 subsystem 17, 33, 90, 98, 112, 135, 142, 246
Reorg 75, 151 SUPERSEDE 143
Repair norcvrpend 75 Switch Catalog Copy 74
report 75, 101, 118, 137, 155, 194, 246 SYSADM 36
requirements 8, 69, 74, 147 system catalog 74, 102
RESET 89, 210, 224
Reset Source 209
Reset Target 209 T
Reset update 78, 180 table
RESTART 87, 193 creation 71
restart 147, 198 Table name 93, 167–168, 173–174
REVOKE 79, 134 table schema 93, 167
REXX 10, 20–21, 36, 40 Table space
RI 145, 181 D 91–92, 107, 136, 165–166, 171–172
RLF 87 name 83, 167
RLIMITs 87 table space 75, 209
Row 1 8, 14, 16, 30, 32, 76, 78, 106–107, 135–136, 145, type 91
163–164, 171 target 28, 98, 117–118, 134, 141–142, 178–179, 253
RUN 21, 142–143, 195 TCz 13
Run RUNSTATS 146, 193 Throttling connections 130
Run SQLID 77, 191 TIME 11, 87, 176
RUNSTATS 43, 81, 146, 192–193 TIME ZONE 174
information 81 TIMESTAMP 176
TIMESTAMP 174
timestamp 196, 200
S Tracking client changes 120
SC 94 Tracking server changes 117
scenarios 4, 162, 169, 239 TRIGGER 77
SCHEMA 207, 265 TS 77, 107, 136, 142, 165–166, 171–172
schema 77, 112, 144, 162, 169, 263 TSO command 10, 106, 185
SDF 105 Type name 174
SDSNEXIT 21, 40 Type schema 174
SEGSIZE 207, 215
Sel Name 83
select one 14, 80, 173 U
Select prototyping 91–92, 107, 136, 165–166, 171–172 UNIQUE 173
selection panel 89–90, 107 UNIQUE constraint 173
Server Definition Files 105 Unload method 146, 192
SET 79, 207, 253 UPD TIMESTAMP 174
SET CURRENT SQLID 191, 207 User ID 16, 32
Show user ID 69, 134
command 182
option 182 V
SMP/E 6, 29 Validate 83, 93, 167–168, 191, 242
source 28, 98, 110, 117, 134, 142, 144, 179, 250, 253, validate 242
276 VE 85, 178
special registers 129 Version 4, 14, 30, 86, 99, 152, 189, 245
specifications 158, 177 version 15, 31, 77, 98, 105, 117, 144, 167, 179, 253
SPUFI 137 VERSION SCOPE 144
SQ 94, 187 Version Scope 150, 199
SQL 6, 10, 58, 72, 74, 102, 104, 131, 134–135, 142, 166, version scope 94, 98, 191
172, 271 new 200
statement 77, 131, 142, 172
284 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
version support 152
versions xix, 105, 118, 148, 177, 247
view 28, 105, 116, 136, 141, 177, 259
W
WebSphere Application Server Connection Pool 267
WLM service class 128
work data 38, 146
WORK STATEMENT LIST LIBRARY 144
Worklist information 146, 214
Worklist name 146, 214
WSL 77, 83, 98, 150, 178
X
xC 74
Z
z/OS xix, 4, 13, 28, 73, 97, 103, 109, 139, 156, 194
z/OS component 28
ZPARMS 243
Index 285
286 DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
DB2 Administration Solution Pack
for z/OS: Streamlining DB2 for z/OS
Database Administration
DB2 Administration Solution Pack for
z/OS: Streamlining DB2 for z/OS
DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database Administration
(0.5” spine)
0.475”<->0.873”
250 <-> 459 pages
DB2 Administration Solution Pack for z/OS: Streamlining DB2 for z/OS Database
DB2 Administration Solution Pack
for z/OS: Streamlining DB2 for z/OS
Database Administration
DB2 Administration Solution Pack
for z/OS: Streamlining DB2 for z/OS
Database Administration
Back cover ®
DB2 Administration
Solution Pack for z/OS
Streamlining DB2 for z/OS Database Administration
®
Understand how to IBM DB2 tools for z/OS support and exploit the most current versions of
DB2 for z/OS. These tools are integral for the administration of the DB2 INTERNATIONAL
simplify the database
for z/OS environment and optimization of data performance. TECHNICAL
administration
DB2 Administration Solution Pack for z/OS V1.1 (5697-DAM) offers
SUPPORT
functions
features, functions, and processes that database administrators (DBAs) ORGANIZATION
can use to more effectively and efficiently manage DB2 environments.
Learn to adapt your
data with the new DB2 Administration Solution Pack for z/OS is composed of the
change capabilities following tools:
IBM DB2 Administration Tool for z/OS BUILDING TECHNICAL
See how to monitor IBM DB2 Object Comparison Tool for z/OS INFORMATION BASED ON
IBM InfoSphere Optim Configuration Manager for DB2 for z/OS PRACTICAL EXPERIENCE
database
IBM DB2 Table Editor for z/OS
client/server IBM Redbooks are developed
configurations This IBM Redbooks publication shows how the delivered capabilities by the IBM International
can help DBAs to more easily complete tasks associated with object Technical Support
management, change management, application management, and Organization. Experts from
configuration management. IBM, Customers and Partners
from around the world create
timely technical information
based on realistic scenarios.
Specific recommendations
are provided to help you
implement IT solutions more
effectively in your
environment.