Nonstop Database, HiRDB Version 9 System Operation Guide
This subsection describes the operational flow for predicting the reorganization timing. For prediction level 1, see (1); for prediction level 2, see (1) and (2).
The following figure shows the operational flow for predicting table reorganization time.
Figure 13-8 Operational flow for predicting table reorganization time
Execute the command shown below to collect data for predicting reorganization time and to store the data in the database state analyzed table. You should execute this command on a daily basis to accumulate data for predicting reorganization time.
pddbst -k logi -r ALL -e 1 |
Execute the command shown below to check for RDAREAs that are close to their scheduled database maintenance date. You should execute this command on a daily basis.
pddbst -k pred -r ALL -e 1 |
A listing is produced of RDAREAs that are close to their scheduled database maintenance dates. An example follows.
Output example
pddbst 07-02 ***** Rdarea resource forecast ***** 2005/05/15 11:07:10 No Date RdareaName ResKind ---------- ----------- -------------------------------- ---------- 1 2005/05/31 "RDUSER01" Segment 2 2005/06/01 "RDUSER02" Segment ---------- ----------- -------------------------------- ---------- |
If the results of step (b) identify RDAREAs that are close to their scheduled database maintenance dates, execute the command shown below to check for the tables, indexes, and RDAREAs that require maintenance:
pddbst -k pred -r ALL -e 1 -m |
Tables, indexes, and RDAREAs that need to be maintained are listed, together with the appropriate maintenance method for each RDAREA. An output example follows.
Output example
pddbst 07-02 ***** Rdarea resource forecast ***** 2005/05/15 11:07:10 No Date RdareaName ResKind ---------- ----------- -------------------------------- ---------- 1 2005/05/31 "RDUSER01" Segment 2 2005/06/01 "RDUSER02" Segment ---------- ----------- -------------------------------- ---------- pddbst 07-02 ***** Maintenance Information ***** 2005/05/15 11:07:10 No : 1 Rdarea Name : "RDUSER01" Method : ...[1] Segment : 42560 -------------------------------------------------------------------------------------- Reclaim Reorganize Type Name Date ------------- ------------ ---- ------------------------------------------- ---------- 28089 * 9363 T "k1234567"."table01" ...[2] 2005/05/31 0 12342 * T "k1234567"."table02" ...[3] 2005/05/31 851 7235 * I "k1234567"."index01" ...[4] 2005/05/31 3 -10 T "k1234567"."table10" ...[5] 2005/05/31 ====================================================================================== No : 2 Rdarea Name : "RDUSER02" Method : Expand ...[6] Segment : 1523 -------------------------------------------------------------------------------------- Reclaim Reorganize Type Name Date ------------- ------------ ---- ------------------------------------------- ---------- 228 1035 T "k1234567"."table01" 2005/06/03 0 121 T "k1234567"."table03" 2005/06/03 30 60 I "k1234567"."index07" 2005/06/03 ====================================================================================== |
Pursuant to instructions issued by HiRDB, you should take one of the following actions, as appropriate:
For the collection of reorganization time prediction data under prediction level 1, the facility collects information for the RDAREAs only; therefore, only the directory pages are subject to analysis. Under prediction level 2, on the other hand, the facility also collects information for each table and each index, so the data and index pages also require analysis. This means that the execution time required for pddbst to collect prediction data is longer under prediction level 2 than under prediction level 1.
If reorganization time prediction data is collected under prediction level 2 while an online job is executing, there might be adverse effects on the application. To minimize the effects on the online job application, you can choose one (or both) of the following execution methods:
For details about interval analysis and merge analysis, see the manual HiRDB Version 9 Command Reference.
All Rights Reserved. Copyright (C) 2011, 2015, Hitachi, Ltd.