The pddbchg command changes the replica status of replica RDAREAs (from sub-RDAREA to current RDAREA).
You can use the pddbchg command when HiRDB Staticizer Option has been installed.
- -q generation-number
<unsigned integer> ((0-10))
Specifies the generation number of RDAREAs that are to be current RDAREAs.
- -r {RDAREA-name[,RDAREA-name]...|ALL}
- RDAREA-name
<identifier> ((1-30)) - Specifies the original name of an RDAREA that is to be a current RDAREA. You can specify user RDAREAs and user LOB RDAREAs. 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.
- ALL
- Specifies that all replica RDAREAs with the generation number specified in the -q option are to be switched to current RDAREAs.
- Rules
- If the same RDAREA name is specified more than once, the duplicate RDAREA name is ignored.
- You can specify a maximum of 128 RDAREA names. If more than 128 RDAREA names are specified, the excess names are ignored.
- If an RDAREA name is enclosed in double quotation marks ("), the system treats it as being case sensitive; otherwise, the system treats it as all uppercase letters. If an RDAREA name contains a space, enclose the entire name in double quotation marks ("). If you are using sh (Bourne shell), csh (C shell), and ksh (Korn shell), you must enclose the entire set of RDAREA names in single quotation marks (').
Specifies that if a specified RDAREA is locked, the command is to wait until the RDAREA is unlocked or until the value specified in the pd_lck_wait_timeout operand of the system definition operand is reached.
If you omit this option and a specified RDAREA is locked by another transaction, the command terminates with an error.