HiRDB cannot terminate if there is a UAP or utility that has not terminated (i.e., if a user is still connected). If an attempt is made to terminate HiRDB while a user is still connected, HiRDB outputs the KFPS05120-W message, together with the connected user data file and connected user details file. In this case, the HiRDB administrator must follow the procedure described below to disconnect the user and terminate HiRDB.
pdls -d prc |
For details about the output contents of the connected user data file, see 18.13.2 Connected user data file and connected user details file.
UNIT ID : UNT1(173420) |
Either execute the pdls -d trn command or use the results in the connected user details file of executing the pdls -d trn command to check for transactions that are still executing.
For details about the output contents of the connected user details file, see 18.13.2 Connected user data file and connected user details file.
Based on the execution results of the pdls -d trn command or the information in the connected user details file, determine whether there are any transactions in READY(p,?) or FORGETTING(?,w) status.
Complete the uncompleted transactions; for details, see 18.14 Actions when there is an undetermined transaction.
Based on the execution results of the pdls -d trn command or the information in the connected user details file, determine whether there are any transactions in READY(p,?) or FORGETTING(?,w) status.
If there are transactions in READY(p,?) or FORGETTING(?,w) status, decide whether to terminate them forcibly or to wait for them to complete their processing. If the processing time of a transaction that is executing is short, wait for it to terminate; if the processing time is long, terminate it forcibly.
Use the pdcancel command to terminate the transaction forcibly.
HiRDB/Single Server
pdcancel -u UAP00 -i 22118 |
HiRDB/Parallel Server (execution example 1)
pdcancel -x k95x620 -u UAP00 -i 22118 |
HiRDB/Parallel Server (execution example 2)
pdcancel -X UNT1 -u UAP00 -i 22118 |
After executing the pdcancel command, wait for the transaction to be completed by itself.
If you do not terminate the transaction forcibly, wait for it to terminate.
If there is no transaction for a user who is still connected, use the pdcancel command to disconnect the user.
HiRDB/Single Server
pdcancel -i 22118 -d |
HiRDB/Parallel Server (execution example 1)
pdcancel -x k95x620 -i 22118 -d |
HiRDB/Parallel Server (execution example 2)
pdcancel -X UNT1 -i 22118 -d |
After executing the pdcancel command, wait for the user to be disconnected and HiRDB termination processing to be resumed.
If the KFPS05047-E message is output, the pdstop command has timed out.
If the pdstop command has timed out, execute it again.
If the KFPS01840-I message is output, HiRDB termination processing has started.