If an OS shutdown occurs during HiRDB operation, databases may be damaged depending on the shutdown's timing. This subsection describes how to terminate HiRDB when the OS is shut down. In the case of the AIX 5L version of HiRDB, an OS shutdown does not damage databases.
There are two ways to terminate HiRDB during an OS shutdown; you use the pdsetup command to specify the appropriate settings. Normally, you use the settings for explicit forced termination of HiRDB during an OS shutdown.
For explicit forcible termination of HiRDB during an OS shutdown, execute the following pdsetup command:
pdsetup -k on HiRDB-directory-name |
To terminate HiRDB normally during OS shutdown, or to terminate HiRDB during OS shutdown depending on whether or not the OS is terminated forcibly, execute the following pdsetup command:
pdsetup -k off HiRDB-directory-name |
Specific conditions must be met in order to terminate HiRDB normally. You must also create and register an rc script.
Platform | Location of registration |
---|---|
HP-UX | /sbin/init.d/xxxx /sbin/rc1.d/Kyyyxxxx (Symbolic link to sbin/init.d/xxxx) |
Solaris | /etc/init.d/xxxx /etc/rc0.d/Kyyyxxxx /etc/rc1.d/Kyyyxxxx (Symbolic link to etc/init.d/xxxx) |
Linux | /etc/init.d/xxxx /etc/rc0.d/Kyyyxxxx /etc/rc1.d/Kyyyxxxx /etc/rc6.d/Kyyyxxxx (Symbolic link to etc/init.d/xxxx) |
If HiRDB termination depends on whether or not termination of the OS was performed forcibly, databases may be damaged depending on when the shutdown occurs. For this reason, you should make sure that you perform explicit forced termination of HiRDB during an OS shutdown.