Nonstop Database, HiRDB Version 9 System Operation Guide
When a HiRDB file inside the HiRDB file system area is deleted, the area that was allocated to the HiRDB file becomes a used area. Unless the disk allocation to this used area of the DP pool is canceled, a real volume of the DP pool remains unused. This subsection explains how to release disk allocation to used areas, and lists the operations for which release is recommended.
To release disk allocation to a used area, follow the procedure described below.
user area capacity 262129[kB] remain user area capacity 262129[kB] peak capacity 131072[kB] ...1 available file size 262129[kB] available file count 20 current file count 0 remain file count 20 free area count 0 available expand count 20 current expand count 0 ...........2 initialize area kind WORK initialize user id hirman initialize time Wed Nov 11 15:41:26 2009 area auto expand NOUSE |
When a job temporarily uses a large HiRDB file system area, releasing the disk space allocated to used areas is effective because it allows efficient use of storage. For successful release of disk space allocated to used areas, the following conditions must be satisfied.
The following table shows the operations for which releasing the disk space allocated to used areas are recommended.
Table 10-4 Operations for which releasing the disk space allocated to used areas is recommended
Value specified for the -k option of pdfmkfs | Type of HiRDB file system area targeted for operation | Operation | Referencing destination |
---|---|---|---|
DB and SDB | RDAREAs and shared RDAREAs | RDAREA deletion | (a) |
RDAREA re-initialization | (b) | ||
Deletion of all rows from a table | (c) | ||
Table and index deletion | (d) | ||
Table reorganization | (e) | ||
SYS | System files | System log file deletion | (f) |
WORK | Work table files | Batch processing accompanied by, for example, combine processing that uses a large work table | (g) |
List RDAREAs | RDAREA deletion | (a) | |
RDAREA re-initialization | (b) |
The following figure shows the procedure for releasing the disk space allocated to used areas when deleting an RDAREA.
Figure 10-3 Procedure for releasing the disk space allocated to used areas (when deleting an RDAREA)
The following figure shows the procedure for releasing the disk space allocated to used areas when re-initializing an RDAREA.
Figure 10-4 Procedure for releasing the disk space allocated to used areas (when re-initializing an RDAREA)
To release the disk space allocated to used areas when deleting all rows from a table, delete all rows from the table (using the PURGE TABLE statement), and then take the steps described in (b) Releasing the disk space allocated to used areas when re-initializing an RDAREA.
The following is the procedure for releasing the disk space allocated to used areas when deleting a table or index.
The following figure shows the procedure for releasing the disk space allocated to used areas when reorganizing a table.
Figure 10-5 Procedure for releasing the disk space allocated to used areas (when reorganizing a table)
The following figure shows the procedure for releasing the disk space allocated to used areas when deleting a system log file.
Figure 10-6 Procedure for releasing the disk space allocated to used areas (when deleting a system log file)
The following figure shows the procedure for releasing the disk space allocated to used areas after the execution of an SQL statement or a utility that creates a work table file.
Figure 10-7 Procedure for releasing the disk space allocated to used areas (after the execution of an SQL statement or a utility that creates a work table file)
All Rights Reserved. Copyright (C) 2011, 2015, Hitachi, Ltd.