Nonstop Database, HiRDB Version 9 System Operation Guide

[Contents][Index][Back][Next]

1.2.3 Example (HiRDB normal termination)

In this example, a server in a HiRDB single server configuration that is currently running is terminated normally.

Organization of this subsection
(1) Enter the pdls command to check HiRDB's operational status:
(2) The results of executing the pdls command are displayed:
(3) Enter the pdls command to check whether there are any users connected to HiRDB:
(4) The results of executing the pdls command are displayed:
(5) Enter the pdstop command to terminate HiRDB normally:
(6) The results of executing the pdstop command are displayed:

(1) Enter the pdls command to check HiRDB's operational status:

 
pdls
 

(2) The results of executing the pdls command are displayed:

 
HOSTNAME(140814)    UNITID  SVID      STATUS   STARTTIME
k95x620             unt1    ********  ACTIVE   140812
k95x620             unt1    sds01     ACTIVE   140812
 

Explanation
ACTIVE in the STATUS column indicates that HiRDB is running.

(3) Enter the pdls command to check whether there are any users connected to HiRDB:

 
pdls -d prc
 

(4) The results of executing the pdls command are displayed:

 
HOSTNAME : k95x620(141028)
STATUS   PID   UID   GID   SVID   TIME      PROGRAM    C-PID
 
  L      205   0     0     sds01  999999
  L      201   0     0     sds01  999999
  L      194   0     0     sds01  999999
  L      206   0     0     sds01  999999
  L      198   0     0     sds01  999999
  L      142   0     0     sds01  999999
  L      209   0     0     sds01  999999
  L      212   0     0     sds01  999999
 

Explanation
  • If a user is connected to HiRDB, a UAP identifier is shown in the PROGRAM column. In this example, there are no users currently connected to HiRDB. HiRDB cannot be terminated if any user is still connected.
  • For example, if HiRDB SQL Executer remains in use (in other words, if HiRDB is still connected), HiRDB cannot be terminated. To terminate HiRDB, you must first terminate HiRDB SQL Executer.
  • The identifier that is displayed in the PROGRAM column is the UAP identification name specified in the PDCLTAPNAME operand of the client environment definition. If the PDCLTAPNAME operand was omitted, Unknown is displayed.

(5) Enter the pdstop command to terminate HiRDB normally:

 
pdstop
 

(6) The results of executing the pdstop command are displayed:

 
129 14:15:20 unt1 _rdm     KFPS01841-I HiRDB unit unt1 terminated.
 mode = NORMAL
129 14:15:20 unt1 _rdm     KFPS01850-I HiRDB system terminated.
 mode = NORMAL