DB2-Utilities und Tools - SK Consulting Services GmbH

Transcription

DB2-Utilities und Tools - SK Consulting Services GmbH
Tools, Utilities und Hilfen für den
Umgang mit DB2
DB2 Utilities,
der Katalog und
Tools
Ausgabe 8 2008 V 8.1
DB2 Utilities und Tools
ls
Inhaltsverzeichnis
1
TOOLS UND WERKZEUGE ZU DB2.................................................................................................4
1.1 IBM TOOLS IN DER ÜBERSICHT ...........................................................................................................4
1.1.1
Application management.....................................................................................................4
1.1.2
Product functions and DB2 support .....................................................................................8
1.1.3
Backup and recovery ..........................................................................................................10
1.1.4
Business intelligence and dynamic warehousing ...............................................................10
1.1.5
Data governance................................................................................................................11
1.1.6
Resources ...........................................................................................................................11
1.1.7
Performance management ................................................................................................11
1.1.8
Utilities management.........................................................................................................11
1.1.9
Version upgrade acceleration ............................................................................................11
1.1.10
Using the information center .........................................................................................11
1.2 DIE WICHTIGSTENTOOLS FÜR DB2 IN DER ÜBERSICHT ...........................................................................12
2
MÖGLICHKEITEN DURCH DB2-TOOLS .........................................................................................25
2.1 IBM’S EIGENE TOOLS......................................................................................................................25
2.1.1
IBM’s DB2 Tool Kategorien ................................................................................................25
2.1.2
Command Line Tools ..........................................................................................................25
2.1.3
Development Tools.............................................................................................................25
2.1.4
General Administration Tools.............................................................................................26
2.1.5
Information Tools...............................................................................................................26
2.1.6
Monitoring Tools................................................................................................................26
2.1.7
Setup Tools.........................................................................................................................27
2.1.8
Other Tools.........................................................................................................................27
2.2 IBM: RELATIONAL TOOLS ................................................................................................................28
2.2.1
Move-for-DB2: DB2-Testdatenbanken erstellen und verwalten ........................................28
2.2.2
Access-for-DB2: Relationale Daten überprüfen und editieren ...........................................28
2.2.3
Compare-for-DB2: Relationale Strukturen vergleichen......................................................29
2.3 QUEST - DB2 TOOLS ......................................................................................................................30
2.3.1
Quest Central® for DB2 ......................................................................................................30
2.3.2
Toad™ for IBM DB2® ..........................................................................................................30
2.3.3
Spotlight® on DB2 ..............................................................................................................30
2.3.4
Knowledge Xpert™ for DB2 ................................................................................................30
2.3.5
DataFactory® .....................................................................................................................30
2.3.6
Foglight® Cartridge for DB2/UDB.......................................................................................30
2.3.7
Toad Data Modeler ............................................................................................................30
2.3.8
End User Management ......................................................................................................31
2.3.9
Benchmark Factory® for Databases ...................................................................................31
2.4 DB2 MANAGEMENT LÖSUNGEN VON CA ...........................................................................................32
2.4.1
Eine solide Grundlage für Database Management ............................................................32
2.4.2
Markante Features und Funktionalitäten ..........................................................................32
3
KATALOGVERWALTUNG UND –NUTZUNG, DB2 STRUKTUREN ...................................................35
3.1
3.2
3.3
3.4
3.5
3.6
3.7
DER DB2 KATALOG ........................................................................................................................35
DAS DB2 DIRECTORY......................................................................................................................36
“ACTIVE” UND “ ARCHIVE LOGS” .......................................................................................................37
BOOTSTRAP DATA SET (BSDS)..........................................................................................................37
BUFFERPOOLS ...............................................................................................................................37
“DATA DEFINITION CONTROL SUPPORT” DATENBANK ............................................................................38
“RESOURCE LIMIT FACILITY” DATENBANK ............................................................................................38
© S.K. Consulting Services
++49 8106 994390
www.sk-consulting.de
Seite 2 von 13
DB2-Utilities und Tools
3.8 “WORK FILE DATABASE”..................................................................................................................38
3.9 “TEMP DATABASE” .......................................................................................................................38
3.10
DIE KATALOGSTRUKTUR VON DB2 .................................................................................................39
3.11
DIE METASTRUKTUR DES KATALOGS ...............................................................................................40
3.11.1
Das DB-Basismodell........................................................................................................40
3.11.2
Die Systemtabellen von DB2...........................................................................................40
3.11.3
Die wichtigsten Systemtabelleninformationen...............................................................43
4
UTILITIES ....................................................................................................................................45
4.1 DAS CHECK - UTILITY.....................................................................................................................48
4.2 DAS LOAD - “UTILITY” ...................................................................................................................48
4.3 DAS UNLOAD - “UTILITY” ..............................................................................................................48
4.4 DAS QUIESCE - “UTILITY” ..............................................................................................................48
4.4.1
Ablauf QUIESCE ..................................................................................................................49
4.4.2
Empfehlungen zum QUIESCE Utility ...................................................................................49
4.5 DAS UTILITY RUNSTATS ................................................................................................................50
4.5.1
Warum RUNSTATS? ...........................................................................................................50
4.5.2
Wann wird RUNSTATS erforderlich? ..................................................................................50
4.5.3
RUNSTATS in der DB2 Version 8 .........................................................................................51
4.5.4
Neue/Geänderte Datenstatistiken in V8 ............................................................................61
4.5.5
Beispiele für RUNSTATS......................................................................................................63
4.5.6
Entleeren des “dynamic statement cache” ........................................................................67
4.5.7
FAQ’s – “Commonly asked questions” ...............................................................................67
4.5.8
Zusammenfassung RUNSTATS ...........................................................................................68
4.5.9
DB2 V9 for z/OS Changes to RUNSTATS .............................................................................68
4.6 PENDING STATUS ........................................................................................................................69
4.7 PERFORMANCEVERBESSERUNGEN AN UTILITIES ....................................................................................70
4.7.1
PREFORMAT .......................................................................................................................70
4.7.2
SORTKEYS ...........................................................................................................................71
4.7.3
COPYDDN und RECOVERDDN.............................................................................................73
5
DIE STEUERUNG DER UTILITIES ÜBER RTS.................................................................................104
5.1 DIE STRUKTUR DER RTS ................................................................................................................105
5.2 RICHTLINIEN FÜR RTS-OBJEKTE ......................................................................................................107
5.3 ENABLE/DISABLE RTS...................................................................................................................107
5.4 DIE STRUKTUR DER RTS-TABELLEN ..................................................................................................108
5.4.1
SYSIBM.TABLESPACESTATS ..............................................................................................108
5.5 WARUM REORG EINES TS? ..........................................................................................................109
5.5.1
Identifizieren der Objekte für REORG ...............................................................................109
6
ANHANG ..................................................................................................................................110
© S.K. Consulting Services München
% 08106 / 29977
Seite - 3 -
DB2 Utilities und Tools
1 Tools und Werkzeuge zu DB2
Da DB2 Werkzeuge zur Verwaltung der Datenbanken, Entwicklung von Datenbankan
Datenbankanwendungen und oberflächengestützten Benutzerabfragen vermissen läßt, haben sich in
diese Nische eine Reihe von Toolanbietern eingenistet und bieten nützliche und
effiziente Tools zu den verschiedensten Aufgaben an. Die wichtigsten Anbieter
seien hier genannt:
IBM
Performance-Monitor
PLATINUM
DBA-Tools,
Tools, Tools zur Katalogverwaltung, Tools zur
physischen Datenverwaltung ( Komprimierung,
Encryption usw. )
BMC
DBA-Tools,
Tools, Tools zur Katalogverwaltung, Tools zur
physischen Datenverwaltung ( Komprimierung,
Encryption usw. )
Candle
Performance-Monitor
QUEST
Tools zum DB-Monitoring und zur
Entwicklungsunterstützung
IBM
Tools zur Datenverwaltung und Testdatener
Testdatenerstellung mit
"Relational Tools" von Princeton Softech Inc.
1.1 IBM Tools in der Übersicht
1.1.1 Application management
Die Liste und eine Kurzbeschreibung der Tool-Suiten:
Tool
 IBM DataQuant
 DB2 Administration Tool
 DB2 Bind Manager
 DB2 Data Archive Expert
 DB2 Grouper
 DB2 High Performance Unload
 DB2 Optimization Expert
 DB2 Path Checker
 DB2 Query Monitor
 DB2 SQL Performance Analyzer
 DB2 Test Database Generator
©S.K. Consulting Services GmbH
+49 5305 90190477
www.sk-consulting.de
Seite 4 von 13
DB2 Utilities und Tools
1.1.1.1 DB2 Optimization Expert
©S.K. Consulting Services GmbH
+49 5305 90190477
www.sk-consulting.de
Seite 5 von 13
Kapitel IX: DB2-Utilities, der Katalog und Tools
© S.K. Consulting Services München
% 08106 / 29977
Seite - 6 -
Kapitel IX: DB2-Utilities, der Katalog und Tools
© S.K. Consulting Services München
% 08106 / 29977
Seite - 7 -
Kapitel IX: DB2-Utilities, der Katalog und Tools
2 Anhang
© S.K. Consulting Services München
% 08106 / 29977
Seite - 8 -
Kapitel IX: DB2-Utilities, der Katalog und Tools
Index
A
ABEND 23
Access-for-DB2 8
ACCESSPATH 30
B
BUILD 40
BUILD2 43
C
CDB 9
CHANGELIMIT 27
CHECK PENDING 20
Claim Readers 42, 43
cleanup 41
cluster key 38
clustering index 23
COLCARD 31
COPY 27
COPY PENDING 20
copy pending 24
COPYDDN 40, 45
correlated key columns 35
COUNT 35
CPU-Zeit 26
CR 42, 43
D
DA 41, 42, 43
DASD 41
DB2 manged
Objects 39
DB2Katalog 9
DB2Systemtabellen 9
DBD01 18
DEADLINE 45
DELAY 45
directory 9
Drain All 41, 42, 43
Drain Writers 41, 42, 43
DSN1COPY 24
DSN1PRNT 24
DSNDB01 19
DSNDB06 19
DUMMY 27
DW 41, 42, 43
© S.K. Consulting Services München
% 08106 / 29977
Seite - 9 -
Kapitel IX: DB2-Utilities, der Katalog und Tools
E
elapsed time 23, 26, 41
F
FIRSTKEYCARDF 35
FREQVAL 36
full IC 28
full image copy 24, 25, 27
FULLKEYCARDF 35
H
HIGH2KEY 31
I
IBM 5
ICTYPE 25
IDCAMS 41
IIC 28
Image copies 25
image copy 25, 27
Incremental IC 21
incremental IC 28
incremental image copy 27
INLCOPY 24
inline copy 24, 25, 40, 41, 45
INLKEY 25
INSERT 21
J
join 32, 34
K
Katalog 9 keys
23
L
large tables 31
large TS 32
LINEAR VSAM 39
LOAD 21
LOAD REPLACE 25
LOG 24, 41
LONGLOG DRAIN 45
LOW2KEY 31
LRSN 38
lustering 40
© S.K. Consulting Services München
% 08106 / 29977
Seite - 10 -
Kapitel IX: DB2-Utilities, der Katalog und Tools
M
mapping table 44, 45
mass delete 43
matching index scans 34
MAXRO 45
Metastruktur 9
Move-for-DB2 8
N
non-indexed 30
non-indexed columns 30, 31
non-partitioning Index 39, 40, 41, 43
NOSYSREC 40, 42
NUMCOLS 35, 36
O
Online REORG 21, 44, 45, 46
P
Page 21, 27
partitioning Index 38, 39
PIECESIZE 41
PREFORMAT 21
PTS 41
Q
QUIESCE 18, 19
R
RBA 21
read-only 41
"read-write"-REORG 44
RECOVER 21, 25
RECOVER INDEX 30
RECOVER TABLESPACE
30 RECOVERDDN 45
RECOVERY PENDING 20
recovery pending 27, 42
Relational Tools 8
RELOAD 40
REORG 21, 30
REORG TABLESPACE 44, 45
Reorganisation 38
Report 27
REPORTONLY 27
RID 38, 39, 43,
© S.K. Consulting Services München
% 08106 / 29977
Seite - 11 -
Kapitel IX: DB2-Utilities, der Katalog und Tools
44 rows 30
RUNSTATS 21, 35, 36
S
SAMPLE 31
sampling 31, 32, 34
segmented tablespace 44
shadow copy 38, 41, 44
shadow dataset 39
SHRLEVEL 25, 38, 40
SHRLEVEL CHANGE 40, 45
SHRLEVEL NONE 40
SHRLEVEL REFERENCE
40 SORTDATA 40
SORTKEYS 22, 23, 40, 42
SORTOUT 40, 42
space map page 27, 28, 43
STOGROUP 39
switch 41, 42, 45
SYSCOPY 18
SYSIBM .SYSCOLDIST 35, 37
SYSIBM.SYSCOLDISTSTATS
35, 37
SYSIBM .SYSCOLSTATS 31
SYSIBM .SYSCOLUM NS 31
SYSIBM .SYSINDEXES 35
SYSIBM .SYSINDEXSTATS 35
SYSREC 42
SYSSTATS 36
SYSUT1 22, 42
T
TS 21
TS scan 34
Type 2 Indizes 41
U
UNLOAD 40
unused pages 21
UTILINIT 40
UTILTERM 39
V
VARCHAR 32
W
writer class 45
© S.K. Consulting Services München
% 08106 / 29977
Seite - 12 -
Kapitel IX: DB2-Utilities, der Katalog und Tools
Ende
© S.K. Consulting Services München
% 08106 / 29977
Seite - 13 -