6.2.1 Explanation of the specification format and options
- Organization of this subsection
(1) Specification format
adbchgchunkstatus -u authorization-identifier [-p password] [-w chunk-ID-of-chunk-to-be-changed-to-wait-status[,chunk-ID-of-chunk-to-be-changed-to-wait-status]...] [-n chunk-ID-of-chunk-to-be-changed-to-normal-status[,chunk-ID-of-chunk-to-be-changed-to-normal-status]...] table-to-be-processed
- Important
-
-
Make sure that you specify at least one of the -w and -n options. You can also specify both options.
-
You must specify the table to be processed as the last option that is specified.
-
(2) Explanation of options
- • -u authorization-identifier
-
~<character string>((1 to 100 bytes))
Specifies the authorization identifier of the HADB user who executes the adbchgchunkstatus command. To execute the adbchgchunkstatus command, the user must have the following two privileges:
-
CONNECT privilege
-
CHANGE CHUNK STATUS privilege for the table to be processed
For this option, specify an authorization identifier in the range from 1 to 100 bytes. Note that the byte count (1 to 100 bytes) does not include the double quotation marks used to enclose the authorization identifier.
- Important
-
If the character string used as the authorization identifier includes any lowercase letter or a backslash (\), make sure that you check the rules for specifying authorization identifiers. For the rules for specifying authorization identifiers, see 1.4.2 Rules for specifying authorization identifiers and passwords.
-
- • -p password
-
~<character string>((1 to 255 bytes))
Specifies the password for the authorization identifier that is specified in the -u option.
- Important
-
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 (|), make sure that you check the rules for specifying passwords. For the rules for specifying passwords, see 1.4.2 Rules for specifying authorization identifiers and passwords.
If the adbchgchunkstatus command is executed with this option omitted, a message prompting the user to enter a password is displayed. In an environment in which a password cannot be entered from the standard input, such as when the command is executed in the background, make sure that you do not omit this option.
- • -w chunk-ID-of-chunk-to-be-changed-to-wait-status[,chunk-ID-of-chunk-to-be-changed-to-wait-status]...
-
~<integer>((1 to 9,223,372,036,854,775,807))
Specifies the chunk IDs of the chunks whose status is to be changed to wait status. Separate multiple chunk IDs with the comma (,), or use the hyphen (-) to separate a range of chunk IDs.
-
Example 1: Placing chunks with chunk IDs 1, 3, and 5 in wait status:
-w 1,3,5
-
Example 2: Placing chunks with chunk IDs 1 through 5 in wait status:
-w 1-5
-
Example 3: Placing chunks with chunk IDs 1, 3, 5 through 10, and 15 in wait status:
-w 1,3,5-10,15
If a specified chunk ID does not exist in the table to be processed or belongs to a chunk that is not in normal status, that chunk ID is ignored (only chunks whose status can be changed are processed). If there is no chunk whose status can be changed, the command results in an error.
-
- • -n chunk-ID-of-chunk-to-be-changed-to-normal-status[,chunk-ID-of-chunk-to-be-changed-to-normal-status]...
-
~<integer>((1 to 9,223,372,036,854,775,807))
Specifies the chunk IDs of the chunks whose status is to be changed to normal status. Separate multiple chunk IDs with the comma (,) or use the hyphen (-) to separate a range of chunk IDs.
-
Example 1: Placing chunks with chunk IDs 1, 3, and 5 in normal status:
-n 1,3,5
-
Example 2: Placing chunks with chunk IDs 1 through 5 in normal status:
-n 1-5
-
Example 3: Placing chunks with chunk IDs 1, 3, 5 through 10, and 15 in normal status:
-n 1,3,5-10,15
If a specified chunk ID does not exist in the table to be processed or belongs to a chunk that is not in wait status, that chunk ID is ignored (only chunks whose status can be changed are processed). If there is no chunk whose status can be changed, the command results in an error.
-
- • table-to-be-processed
-
Specifies the name of the table for which chunk status is to be changed. Specify a multi-chunk table.
The following rules apply to specifying this information:
-
Specify in the format schema-name.table-identifier.
If the user owns this table, the schema name can be omitted. If another HADB user owns this table, the schema name must be specified.
-
For details about the specification rules that apply when a schema name or table identifier includes any lowercase letter or backslash (\), see 1.4.3 Table name specification rules.
-
The user can specify any table for which the user has the CHANGE CHUNK STATUS privilege.
-
A single-chunk table cannot be specified.
-
A viewed table cannot be specified.
-
(3) Rules for specifying the -w and -n options
-
When you specify multiple chunk IDs, do not specify any spaces before or after a comma or a hyphen.
-
When a hyphen is used to specify a range of chunk IDs, values cannot be specified in descending order (such as 3-1). Also, a specification such as 3-3 is not allowed.
-
A maximum of 29,999 chunk IDs can be specified.
Furthermore, if you specify a range of chunk IDs by using a hyphen, all chunk IDs in the range are counted. Note that every chunk ID is counted, including duplicates.
Examples:
-
When -w 1,3,5 is specified
The command assumes that three chunk IDs are specified.
-
When -w 1-10 is specified
The command assumes that ten chunk IDs are specified.
-
When -n 1,3-5,5 is specified
The command assumes that five chunk IDs are specified.
-
-
The permitted maximum length of the value that can be specified for the -w or -n option is 32 kilobytes. Therefore, if the length of the value specified for the -w or -n option exceeds 32 kilobytes, use range specifications or execute the adbchgchunkstatus command more than once.
-
The following table shows examples of invalid -w and -n option specifications.
Table 6‒1: Examples of invalid -w and -n option specifications Error message displayed when the adbchgchunkstatus command is executed
Cause of the error
KFAA50225-E
The format of a range specification using a hyphen is invalid.
-
Example of invalid specifications
-w 3-3,4
-n 10-3
-
Example of corrected specifications
-w 3,4
-n 3-10
More than 29,999 chunk IDs are specified:
-
Example of invalid specification
-w 1-30000
-
Example of corrected specification
-w 1-29999
KFAA50235-E
-
Neither the -w option nor the -n option is specified. Specify either the -w or the -n option or specify both options.
-
There are no chunks whose status can be changed. Check if chunks with the specified chunk IDs exist. Or, check the statuses of the specified chunks.
KFAA50294-E
A specified chunk ID is outside the range of chunk IDs in the table to be processed. Check the chunk IDs in the table to be processed.
-
KFAA90002-E
-
KFAA96820-I
A space is specified before or after a comma or a hyphen.
-
Example of invalid specifications
-w 1,Δ3
-n 1Δ-10
-
Example of corrected specifications
-w 1,3
-n 1-10
KFAA90003-E
The length of the -w or -n option value exceeds 32 kilobytes. Use range specifications for the -w or -n option to shorten the length of the option value.
- Legend:
-
Δ: Space
-