Nonstop Database, HiRDB Version 9 Command Reference
pdpgbfon is used to improve the buffer hit rate, even immediately after startup of online jobs. It does this by reading the applicable pages of resources (tables or indexes) into global buffers. Once an applicable page has been placed in a global buffer, page read operations are not needed.
To execute pdpgbfon, there must be more global buffer sectors than the number of pages used to store the target resource (before execution of pdpgbfon, enough global buffer space to store all the data for the target resource must have been allocated).
Because pdpgbfon pre-reads data in the order that the pages are stored, the prefetch facility is enabled. When you define the global buffer, you can reduce execution time by specifying the prefetch count.
If there are not enough global buffer sectors, the LRU management method removes the oldest page information from the global buffer (the page in the global buffer that was accessed least recently according to the pd_dbbuff_lru_option operand value in the system definition). Therefore, executing pdpgbfon serves no purposes when there are not enough global buffer sectors. You can use the pdbufls command to check the number of global buffer sectors and the database condition analysis utility (pddbst) to check the number of pages being used to store the target resource.
To determine whether or not pdpgbfon read all pages of the target resource into the global buffer, you check the pdpgbfon return code or a processing result output to the standard output (reference buffer flush count). Note that the pdpgbfon processing result contains only information about the resource processed by pdpgbfon. To obtain all the global buffer processing results and global buffer status details, use the pdbufls command.
The figure below shows an example of the pdpgbfon operating method.
Figure 12-2 Example of pdpgbfon operating method
All Rights Reserved. Copyright (C) 2011, 2015, Hitachi, Ltd.