1.4.2 Rules for specifying authorization identifiers and passwords
This section explains the rules for specifying authorization identifiers by using a command's -u option, and for specifying passwords by using a command's -p option.
- Organization of this subsection
(1) Rules for specifying authorization identifiers
-
If the character string of an authorization identifier specified in the -u option includes a lowercase letter, enclose the authorization identifier in backslashes followed by double quotation marks (\"). Alternatively, enclose the entire authorization identifier between double quotation marks (") and then between single quotation marks (').
Example 1: -u \"ADBuser01\"
Example 2: -u '"ADBuser01"'
If an authorization identifier is not specified as shown above, the character string used as the authorization identifier is treated as being in all uppercase letters. For example, -u ADBuser01 is treated as -u ADBUSER01.
-
If the character string of the authorization identifier specified in the -u option includes a backslash (\), specify the escape character (\) immediately before the backslash (\). Alternatively, enclose the entire authorization identifier in single quotation marks (').
Example 1: -u ADBUSER\\01
Example 2: -u 'ADBUSER\01'
In this example, ADBUSER\01 is specified as the authorization identifier.
For details about the rules for specifying authorization identifiers, see Authorization identifier specification rules in the HADB Setup and Operation Guide.
(2) Rules for specifying passwords
-
Unlike the authorization identifier specified in the -u option, the password specified in the -p option is case sensitive.
-
If the password includes a character that has a special meaning in the OS or shell, such as a double quotation mark (") or vertical bar (|), specify the escape character (\) immediately before that character. Alternatively, enclose the entire password in single quotation marks (').
Example 1: -p Password\|01
Example 2: -p 'Password|01'
In this example, Password|01 is specified as the password.
For details about the rules for specifying passwords, see Password specification rules in the HADB Setup and Operation Guide.
(3) Examples of specifying authorization identifiers and passwords
Character strings that include lowercase letters are specified differently between the -u and -p options. Example specifications (using the adbarchivechunk command) are as follows:
- Example 1:
-
Specifying ADBUSER01 as the authorization identifier and PASSWORD01 as the password
adbarchivechunk -u ADBUSER01 -p PASSWORD01
- Example 2:
-
Specifying ADBuser01 as the authorization identifier and Password01 as the password
adbarchivechunk -u \"ADBuser01\" -p Password01
- Example 3:
-
Specifying ADBuser\01 as the authorization identifier and Password\01 as the password
adbarchivechunk -u \"ADBuser\\01\" -p Password\\01