This example adds a user RDAREA named RDAREA1.
pdfmkfs -n 100 -l 10 -k DB -i /rdarea/area01 |
A control statements file (/pdmod/create01) that contains the pdmod command's create rdarea statement is created. The following are the contents of the control statements file:
create rdarea RDAREA1 1 |
pdmod -a /pdmod/create01 |
pdcopy -m /rdarea/mast/mast01 -M r -a -b /pdcopy/backup01 -p /pdcopy/list01 |
This step adds a new global buffer (gbuf01) and allocates it to RDAREA1.
pdbufmod -k add -a gbuf01 -r RDAREA1 -n 1000 |
Note, however, to use the pdbufmod command, both of the following conditions must be satisfied:
The global buffer allocated in this procedure becomes invalid if HiRDB is terminated normally or through a planned termination. Therefore, change the pdbuffer operand specification while HiRDB is stopped. An example of the pdbuffer operand specification follows:
: |
Note that you can use the system reconfiguration command (pdchgconf command) to change the pdbuffer operand specification while HiRDB is running. However, to use the system reconfiguration command, you must have HiRDB Advanced High Availability. For details about changing HiRDB system definitions using the system reconfiguration command, see 9.2 Modifying HiRDB system definitions while HiRDB is running (system reconfiguration command).
It is recommended that after the command has executed you check whether or not the execution results are correct. For details on how to check command execution results, see the manual HiRDB Version 8 Command Reference.