Nonstop Database, HiRDB Version 9 System Operation Guide
An index information file is created for each RDAREA that stores the plug-in index. Therefore, the number of index information files created equals the number of RDAREAs that store the plug-in index updated by the UAP.
The names to be assigned to index information files are determined by the index identifiers and RDAREA names (according to the rules shown below). These index information file names are specified in the control statements file of the database reorganization utility (pdrorg command).
Condition | Index information file name |
---|---|
When all the following conditions are satisfied:
|
index-identifier.RDAREA-name |
When all the following conditions are satisfied:
|
index-ID.RDAREA-ID.leading-portion-of-index-identifier# |
The index identifier and RDAREA name consist of character strings other than as explained in the note below. | index-ID.RDAREA-ID |
Condition | Index information file name |
---|---|
The name of the directory containing the index information file is specified in the pd_plugin_ixmk_dir operand. | index-identifier.original-RDAREA-name.RDAREA-generation-number |
Both of the following conditions are satisfied:
|
|
The following condition is satisfied:
|
index-ID.RDAREA-ID.leading-portion-of-index-identifier#.RDAREA-generation-number |
The index identifier or the RDAREA name consists of a character string other than that explained in the note below. | index-ID.RDAREA-ID.RDAREA-generation-number |
The size of an index information file will be large. The size of one file can be determined from the following formula (note that if you specify a HiRDB file system area name in the pd_plugin_ixmk_dir operand, the size of the file must be rounded up to a multiple of 1,024 bytes):
(12 + E) (A + B + C D) + 1,024 (bytes)
A: Number of row data items added (number of data items updated by INSERT statement)
B: Number of row data items updated (number of data items updated by UPDATE statement)
C: Number of UAPs specifying delayed batch creation of plug-in index
D: Number of COMMIT statements issued in the UAP
E: Depends on the type of plug-in; for the HiRDB Text Search Plug-in, the value is 27.
Index information files are deleted automatically by HiRDB when they are no longer needed. The files are deleted at the following times:
The files are deleted automatically only when this processing is executed; otherwise, such files must be deleted manually by the user.
Once the UAP executes, conformity is lost between the table's data and the plug-in index's data until batch creation of plug-in index is completed. Thus, a backup of the data should not be made during this time.
If more than one UAP specifying delayed batch creation of plug-in index is executed on the same row-partitioned table, deadlock might occur on the index information files.
Delayed batch creation of plug-in index is not supported for stored procedures and stored functions created under HiRDB Version 5.0 05-02 or earlier. If an attempt is made in such a case to execute delayed batch creation of plug-in index by specifying PDPLGIXMK=YES, the KFPA11537-E message will be output and an error will result. When this happens, take one of the following actions.
All Rights Reserved. Copyright (C) 2011, 2015, Hitachi, Ltd.