pddbls (Display status of RDAREAs)

Function

The pddbls command displays the status of RDAREAs.

Executor

HiRDB administrator

Format

HiRDB/Single Server

pddbls {{-r RDAREA-name [, RDAREA-name]... | -r ALL}
         [-{l | a}] [-{b|o}][-x[-y]]
       |{-q generation-number|-C} [-{l | a}][-x[-y]]}

HiRDB/Parallel Server

pddbls {{-r RDAREA-name [, RDAREA-name]... | -r ALL
         | -s server-name [, server-name]...}
         [-{l | a}] [-{b|o}][-m][-x[-y]]
       |{-q generation-number|-C} [-{l | a}][-m][-x[-y]}

Options

Specifies the name of an RDAREA whose status is to be displayed. You can also use batch specification of RDAREA names. For details about batch specification of RDAREA names, see 1.5.2 Batch specification of RDAREA names in operation commands.

The same RDAREA name should not be specified more than once; if specified, a duplicate RDAREA name is ignored. A maximum of 128 RDAREA names can be specified. If more than 128 RDAREA names are specified, the excess names are ignored.

If an RDAREA name is enclosed in double quotation marks ("), it is treated as being case sensitive; otherwise, it is treated as all uppercase letters. If an RDAREA name contains a blank, the entire name must be enclosed in double quotation marks (").

If the Bourne shell (sh), C shell (csh), or Korn shell (ksh) is used, it is also necessary to enclose the RDAREA name in single quotation marks (').

Specifies that information about all RDAREAs is to be displayed.

Specifies the name of a server when the status of all of that server's RDAREAs is to be displayed. The command displays information about all RDAREAs for the specified server.

A maximum of 128 server names can be specified. If more than 128 server names are specified, the excess names are ignored.

-l
Specifies that only the RDAREA status is to be displayed.
-a
Specifies that all information about RDAREAs other than shared RDAREAs is to be displayed.
When the -m option is specified, the command displays shared RDAREA information for all servers. Note that the segment usage information in a shared RDAREA is displayed only for an updatable back-end server.

Specifies that information is to be displayed only for RDAREAs in shutdown status. When a server name is specified, the command displays information about the RDAREAs in shutdown status for the specified server only. When this option is omitted, the command displays information about all specified RDAREAs.

Specifies that the status of all RDAREAs with the same original RDAREA as the specified RDAREA is to be displayed.

The -o and -b options are mutually exclusive. If you specify -r ALL or -s server-name, the command displays the same information whether or not this option is specified.

Specifies that the information is to be displayed in DAT format.

When the -x option is specified, specifies that a header is to be displayed.

Specifies that shared RDAREA information is to be displayed.

When a shared RDAREA is specified in the -r option and the -m option is also specified, the command displays the applicable RDAREA and shared RDAREA information for all back-end servers.

Specifies that the status of all RDAREAs with the specified generation number is to be displayed. Specify this option to display information about RDAREAs for which replica RDAREAs have been defined in an environment where the inner replica facility is used.

The -q, -b, and -o options are mutually exclusive.

Specifies that the status of all current RDAREAs is to be displayed. Specify this option to display information about RDAREAs for which replica RDAREAs have been defined in an environment where the inner replica facility is used.

The -c, -b, and -o options are mutually exclusive.

Rules

  1. The pddbls command can be executed only while HiRDB is active.
  2. The pddbls command must be executed at the server machine containing the single server or the server machine where the system manager is located.
  3. When a user RDAREA or a user LOB RDAREA is specified, the corresponding data dictionary RDAREA must be in one of the following statuses:
    • Open and shutdown release status
    • Open and shutdown status placed by the pdhold command

Notes

  1. The following shows the pddbls command's return codes:
    0: Normal termination
    4: Warning termination
    8: Abnormal termination
    12: Abnormal termination (an event occurred that prevented output of an error message)
    If the error code is 12, check the error message in syslogfile at the host where the single server or dictionary server is located, eliminate the cause of the error, and then re-execute the command. If no error message has been output to syslogfile, contact the customer engineer.

Output format

STATE OF RDAREA
RDAREA ID     STATUS  [SERVER] TYPE [ORIGINAL-RDAREA] [ORIGINAL-ID]    [GENERATION-NUMBER]
              OPNMODE [SHARED]                        [REPLICA-STATUS] [REPLICA-COUNTER]
aa...a bb...b cc...c  dd...d  eeee  kk...k            ll...l           mm
              jj...j  ppp                             n                oo
 [SEGMENT   ff...f/gg...g]
 [UNABLE TO DISPLAY CODE=hh]
    :    :   :
 [NOT FOUND ii...i=aa...a]
 [RDAREA NOT FOUND]
 [NO REPLICA DEFINED ii...i=aa...a]
 [NO SPECIFIED GENERATION]

Note
kk...k, ll...l, mm, n, oo, [NO REPLICA DEFINED ii...i=aa...a], and [NO SPECIFIED GENERATION] are displayed only in an environment in which the inner replica facility is used. In any other environment, this information is not displayed.
Explanation
aa...a
RDAREA name (up to 30 characters).
bb...b
RDAREA number (11 decimal digits).
cc...c
Status of RDAREA (up to 17 characters). The following statuses are displayed for RDAREAs:
RDAREA statusExplanationSegment information
CLOSEClosedDS
CLOSE HOLDClosed, error shutdown[Figure]
CLOSE HOLD (RIS E)Closed, error shutdown (log application-disabled status due to a failure)[Figure]
CLOSE HOLD (RIS L)Closed, error shutdown (UAP in no-log mode, log application-disabled status due to utility execution)[Figure]
CLOSE HOLD (RIS M)Closed, error shutdown (log application-disabled status due to pdmod)[Figure]
CLOSE HOLD (INQ)Closed, reference-possible command shutdown[Figure]
CLOSE HOLD (CMD)Closed, command shutdown[Figure]
CLOSE HOLD (BU)Closed, updatable backup-holdD
CLOSE HOLD (BU I)Closed, reference-possible backup-holdD
CLOSE HOLD (BU W)Closed, updatable backup-hold (WAIT mode)D
CLOSE HOLD (BU IW)Closed, reference-possible backup-hold (update WAIT mode)D
CLOSE HOLD(SYNC)Closed, synchronization shutdown[Figure]
CLOSE HOLD(ORG)Closed, online reorganization hold[Figure]
CLOSE ACCEPT-HOLDClosed, pdhold command-accepted[Figure]
HOLDError shutdown[Figure]
HOLD(INQ)Reference-possible command shutdownD1
HOLD(CMD)Command shutdownD1
HOLD (BU)Updatable backup-holdD
HOLD (BU I)Reference-possible backup-holdD
HOLD (BU W)Updatable backup-hold (WAIT mode)D
HOLD (BU IW)Reference-possible backup-hold (update WAIT mode)D
HOLD(SYNC)Synchronization shutdown[Figure]
HOLD(ORG)Online reorganization holdD
HOLD (RIS E)Error shutdown (log application-disabled status due to a failure)[Figure]
HOLD (RIS L)Error shutdown (UAP in no-log mode, log application-disabled status due to utility execution)[Figure]
HOLD (RIS M)Error shutdown (log application-disabled status due to pdmod)[Figure]
ACCEPT-HOLDpdhold command-acceptedD1
OPENOpenD

D: Displayed

DS: Displayed when RDAREA open timing is set to DEFER or SCHEDULE.

[Figure]: Not displayed.

1 Segment information is not displayed during close processing.

dd...d
Server name for HiRDB/Parallel Server (up to 8 characters).
eeee
Type of RDAREA:
MAST
Master directory RDAREA
DDIR
Data directory RDAREA
DDIC
Data dictionary RDAREA
DLOB
Data dictionary LOB RDAREA
USER
User RDAREA
ULOB
User LOB RDAREA
LIST
List RDAREA
RGST
Registry RDAREA
RLOB
Registry LOB RDAREA
ff...f
Number of unused segments in RDAREA (11 decimal digits).
For a LOB RDAREA, the next segment is included in the number of unused segments, but it cannot be reused until the synchronization point is reached. Once the synchronization point is reached, it can be reused.
  • Segments that stored data of the BLOB type that has been deleted by a DELETE statement.
  • For BLOB-type data updated by the UPDATE statement, the segments that stored the data before the updating was performed.
  • Segments that stored BLOB-type dictionary data deleted by a change procedure, such as DROP PROCEDURE or DROP SCHEMA.
gg...g
Total number of segments in RDAREA (11 decimal digits).
hh
Return code. The following return codes are displayed:
Return codeExplanationRequired action
01RDAREA is in a status such that no information can be displayed (see cc...c for the RDAREA status).Not applicable.
02Information on an RDAREA cannot be displayed because the RDAREA is being accessed in the lock mode by another transaction.Re-execute the command after the transaction that is accessing the RDAREA in the lock mode has terminated.
03No global buffer was allocated to the RDAREA.Allocate a global buffer, then re-execute the command.
04HiRDB file access error occurred.Take action appropriate to the corresponding error message.
05Lock error occurred.
101Invalid RDAREA type was specified.Check for a specification error; if there was no error, contact maintenance personnel.
ii...i
For an RDAREA, RDAREA is displayed; for a server, SERVER is displayed (six characters).
jj...j
User-specified open timing for the HiRDB file system area. This is the HiRDB file system area's open timing specification (INITIAL, DEFER, or SCHEDULE) that was specified in the system common definition or with the database initialization utility or database structure modification utility.
kk...k
Name of the original RDAREA (maximum of 30 characters).
ll...l
Number of the original RDAREA (8 decimal digits).
mm
Generation number (0-10).
n
Replica status (C: current, S: sub).
oo
Replica counter (1-10).
This information is displayed for an original RDAREA.
ppp
Shared RDAREA information (applicable when the -m option is specified):
SUP: Shared RDAREA (updatable back-end server)
SRD: Shared RDAREA (reference-only back-end server)
NON: Non-shared RDAREA
When the -m option is omitted or for a HiRDB/Single Server, neither a header nor shared RDAREA information is displayed.
Notes
  • If a specified RDAREA is not found, the message NOT FOUND RDAREA= is displayed.
  • If a specified server is not found, the message NOT FOUND SERVER= is displayed.
  • When the -b option is specified but there is no RDAREA in shutdown status, or when there are no RDAREAs for a server specified in the -s option, the message RDAREA NOT FOUND is displayed.
  • When the -a option is specified but the information cannot be displayed, the message UNABLE TO DISPLAY CODE=hh is displayed.
  • If the -q or -C option is specified but no replica RDAREA has been defined, or if the -o option is specified but a normal RDAREA (for which no replica RDAREA has been defined) is specified, the command displays [NO REPLICA DEFINED ii...i=aa...a]. If the -o option is specified, the command also displays the RDAREA name.
  • If there is no such replica RDAREA whose generation number is specified in the -q option, the command displays [NO SPECIFIED GENERATION].
Note
[CR] indicates a linefeed.
Rules for output in DAT format
  1. The elements are separated by the comma (,), and information about one RDAREA is displayed on each line.
  2. A character element is enclosed in double quotation marks (").
  3. If information cannot be acquired for a reason regarding, for example, the options that are specified, the inner replica facility usage specification, or the server type, the command displays only a blank or "".
  4. If the -a option was specified but segment information cannot be acquired due to its status, the command displays -1 as the number of unused segments in the RDAREA and the return code for the total number of segments in the RDAREA.
  5. When information is displayed in DAT format, the following error messages are not output:
    [NOT FOUND ii...i=aa...a]
    [RDAREA NOT FOUND]
    [NO REPLICA DEFINED ii...i=aa...a]
    [NO SPECIFIED GENERATION]