Nonstop Database, HiRDB Version 9 Command Reference
1.1 Overview
A HiRDB command is input from a shell.
The command execution mode is shown in Figure 1-1 Command execution mode: HiRDB single server configuration (for a HiRDB single server configuration) and Figure 1-2 Command execution mode: HiRDB parallel server configuration (for a HiRDB parallel server configuration).
Figure 1-1 Command execution mode: HiRDB single server configuration
- Explanation
Use either of the following methods to input a command:
- Log in from a workstation or personal computer to the remote server machine where the single server is located, then enter the command
- Enter the command from the OS console by specifying the server machine where the single server is located
Figure 1-2 Command execution mode: HiRDB parallel server configuration
- Explanation
Use either of the following methods to input a command:
- Log in from a workstation or personal computer to the remote server machine where the system manager* is located, then enter the command
- Enter the command from the OS console by specifying the server machine where the system manager* is located
* Some commands are executed from a server machine other than the system manager. For details about the server machines used to execute each command, see Table 1-1 List of operation commands, Table 1-2 List of utilities, or the detailed description of each command.
The following shows the command descriptive format:
command-name options command-arguments |
(a) command-name
The command name is the file name of the command that is to be executed. Because file names are used as commands, the absolute path name of the HiRDB directory must be specified in the PDDIR environment variable of the environment for each command executor.
To execute HiRDB commands, the following environment variables must be specified in an executor's environment:
- PDDIR
- Specifies the absolute path name of the HiRDB directory
- PDCONFPATH
- Specifies the absolute path name of the directory in which the HiRDB system definition file is stored
- PATH
- Adds $PDDIR/bin to PATH
- SHLIB_PATH
- Adds $PDDIR/lib to SHLIB_PATH
An option either qualifies the command's operation or specifies the object of the operation.
In the following explanations, cmd indicates a command name.
- An option is a character string beginning with a minus sign (-) that may or may not be followed by one or more flag arguments.
The following shows the descriptive formats of options:
-option-flag or -option-flag flag-argument(s)
- option-flag
- One alphanumeric character (case sensitive).
- flag-argument
- Argument of the option flag (multiple flag arguments can be specified by separating them with a comma (,)).
- Multiple option flags without flag arguments can be specified consecutively, preceded by a single minus sign.
- Example
- The following two specifications are treated as being the same:
- cmd -a -b -c
- cmd -abc
- If an option requires a flag argument, the flag argument cannot be omitted.
- When a command that is entered from a shell includes an option flag argument that contains a space, the entire flag argument must be enclosed in double quotation marks (").
- Example
- An option with argument "1 2" must be specified as follows:
- cmd -f "1 2"
- If the same option flag is specified more than once, the last specification is effective.
- Example
- If the following is specified, -a 2 is effective:
- cmd -a 1 -a 2
- All options must be specified before any command arguments.
- Example
- If option flag a does not take a flag argument, file and -b in the following specification are assumed to be command arguments:
- cmd -a file -b
- Two consecutive minus signs (--) indicate the end of the options.
- Example
- In the following specification, -b is assumed to be a command argument:
- cmd -a -- -b
- An option consisting of a minus sign only cannot be entered.
- Example
- In the following specification, - is assumed to be a command argument:
- cmd -
A command argument specifies the direct object of a command's operation. If the object is to be qualified, options are used to specify the object.
A control statements file that is specified in a command argument is a regular file unless otherwise noted.
If an operating system command or command in another program has the same name as a HiRDB command, the HiRDB command may fail to execute. If this happens, solve the problem as follows:
- In environmental variable settings, assign a higher priority to the HiRDB command.
- Execute the command by specifying its absolute path.
In situations when these two methods cannot be used, HiRDB commands can still be executed by assigning arbitrary names to them. For details about how to create a shell script for executing commands by using aliases, see the HiRDB Version 9 Installation and Design Guide.
All Rights Reserved. Copyright (C) 2011, 2015, Hitachi, Ltd.