Research and Application to the Reorg Utility in DB2 for Z/os
- Author
- GaoZuo
- Advisor
- LuoYuan , YanHePing
- School
- Shanghai Jiaotong University
- Major
- Computer technology
- Classification
- TP311.13 Database theory and systems
- Degree
- Master's thesis
- Year
- 2011
- Downloads
- 18
- Citations
- 0
Abstract
The re-organization technology (also called REORG technology in DB2) is the most particular technique in mainframe databases. Its function is to make the record sorted by the main index through several steps. And with the method of prefetch, DB2 ensures the effectiveness of running application programs.By considerable researches on this technology, this paper uses different setup of REORG parameters to obtain the most suitable usage in corresponding business system. Then, we provide a way on how to use the REORG technology instead of some DDL operations to modify the tables, which can reduce the affection on the successive business system.Furthermore, by studies on the DB2 Catalog tables, this paper shows the reason why the SQL execution plan sometimes gets worse and worse. Then based on these researches, a new method that can avoid the hidden troubles of the business system is presented by using the REORG technology. Finally, by making use of the mainframe programming language REXX, an auto-REORG tool is created to solve these problems, by which the data records are re-organized and the probability of getting worse and worse in the SQL executiong plan is reduced. Through these researches, this paper obtains the final object that the REORG technology is sufficiently realized in all kinds of corresponding systems. Furthermore, this technology on DB2 resolves the hidden problem as well as guarantees the continuity of running systems.
Table of contents
Summary 3-4
ABSTRACT 4-9
Chapter 1 Introduction made ??9-13
1.1 Background and problem 9 -10
1.1.1 background made ??9-10
1.1.2 problems 1.2 Status domestic and foreign research 10
10-11 <br / > 1.3 Research objectives and main content organizational structure and arrangement of chapters 11-12
1.4 article research data recombinant techniques 12-13
Chapter II 13-29
2.1 DB2 UTILITY concept 13-14
2.2 REORG UTILITY research 14-23
2.2.1 REORG UTILITY introduction 14-15
2.2.2 REORG UTILITY data processing 15-17
study the role of various parameters in 2.2.3 for REORG UTILITY 17-23
2.3 different types of business data applicable to restructuring 23-28
nbsp 2.3.1 advantages and disadvantages of different methods of reorganization ; 23-27
2.3.2 each the applicability of the data summarized ways reorganization 27
2.3.3 without the need for data reorganization table type 27-28
2.4 summary 28-29 <br / > practical application of Chapter III data recombinant technology online difficulties 29-46
3.1 Restructuring the banking system of customer information analysis and processing of data tables program 29-34
3.1. difficulties an online banking system restructuring of customer information data sheet analysis 29-30
rule 3.1.2 using recombinant technology in temporary files 30-31
3.1.3 banking System handling customer information online reorganization plan data table offline reorganization difficulty 31-34
3.2 Bank current account statement analysis and processing programs 34-38
3.2.1 Bank demand offline table reorganization difficulty account analysis 34-35
necessity nbsp 3.2.2 Restructuring bank current account statement ; off 35-36
3.2.3 bank current account statement machine reorganization treatment program 36-38
3.3 Restructuring operations abnormal termination processing program 38-42
3.3.1 online defragmentation abnormal termination processing program 38 -40
3.3.2 offline defragmentation abnormal termination processing program 40-42
3.4 actual business systems recombinant technology Magical 42-45
3.4 .1 using parameters DEADLINE terminated by online reorganization 43-44
3.4.2 instead of the clever use of the new data table index reorganization operation 44-45
3.5 Summary 45-46
Chapter IV recombinant technology and SQL execution plan 46-65
SQL execution plans 4.1 DB2 for 46-49
4.1.1 DB2 SQL generate execution plans 46-47
4.1.2 DB2 features static implementation plan 47-48
factors that affect DB2 4.1.3 Implementation Plan 48 - Research 49
4.2 DB2 CATALOG system table Category 49-57
4.2.1 DB2 CATALOG system table 49-51
4.2.2 DB2 CATALOG system tables associated with the DB2 SQL execution plans 51-53
4.2.3 can cause execution plans to change the DB2 CATALOG system table information 53-55
4.2.4 REORG UTILITY and DB2 association CATALOG system table 55-57
4.3 data associated with the SQL implementation of the restructuring plan 57-62
4.3.1 PLAN_TABLE research 57-59 < br /> 4.3.2 CLUSTERRATIOF impact on the implementation of the plan actual impact 59-61
4.3.3 data on the implementation of the restructuring plan 61-62
4.4 using recombinant technology to prevent abnormal changes in SQL execution plan 62-64
4.4.1 SQL execution plan caused the root causes abnormal changes 62-63
4.4.2 the best way to eliminate the risks presented ( using data recombinant technology ) 63-64
4.5 Summary 64-65
development and use of recombinant Chapter automated tools 65-96 <br / > Research 5.1 programming language REXX host of introduce 65-70
5.1.1 programming language REXX host of using 65-66
5.1.2 REXX language considerations 66-67
5.1.3 REXX common use 67-70
nbsp 5.2 design automation tool body reorganization operations ; 70-84
5.2. desired target an automated Defragmenter 70-71
5.2.2 automated Defragmenter job design and analysis 71-84
5.3 REXX automation Defragmenter program designed 84-95
5.3.1 automatic Defragmenter each REXX program features design and analysis 84-85
5.3.2 automatic Defragmenter each REXX is 85-93
5.3.3 automatic Defragmenter operating results and the role of business systems 93-95
5.4 summary 95-96
nbsp Chapter VI summary and Outlook ; 96-98
6.1 herein review 96-97
6.2 results and significance 97
6.3 problems and further work 97-98
References 98-99
Appendix 1 99-100
Thanks 100-101
during graduate study published author papers 101-103