Home | Previous Page | Next Page   Appendix A. Command-Line Utility Reference >

cdr swap shadow

The cdr swap shadow command switches a replicate with its shadow replicate during manual remastering.

Syntax

Read syntax diagramSkip visual syntax diagram>>-cdr swap shadow--+-------------------------+----------------->
                    |                    (1)  |
                    '-| Connect Option |------'
 
>-- --primaryname=repl_name-- --primaryid=repl_ID--------------->
 
>-- --shadowname=shadow_name-- --shadowid=shadow_ID------------><
 
Notes:
  1. See page Connect Option.
Element Purpose Restrictions Syntax
repl_name Name of the primary replicate The primary replicate participant attributes state, type (P or R), and table owner (O or I) must match the shadow replicate participant attributes. See Participant for information about the P, R, O and I options. Long Identifiers
repl_ID Internal Enterprise Replication identification code for the primary replicate
shadow_name Name of the shadow replicate The shadow replicate state must match the primary replicate state.
Shadow replicate participants must match the primary replicate participants.
Long Identifiers
shadow_ID Internal Enterprise Replication identification code for the shadow replicate

The following table describes the cdr swap shadow options.

Long Form Short Form Meaning
--primaryname -p Specifies the name of the primary replicate
--primaryid -P Specifies the ID of the primary replicate
--shadowname -s Specifies the name of the shadow replicate
--shadowid -S Specifies the ID of the shadow replicate

Usage

Use the cdr swap shadow command to switch a replicate with its shadow replicate as the last step in manually remastering a replicate that was created with the --name=n option. You create a shadow replicate using the cdr define replicate command with the --mirrors option. For more information on manual remastering, see Remastering a Replicate.

Use the onstat -g cat repls command to obtain the repl_ID and shadow_ID. Alternatively, you can query the syscdrrepl view in the sysmaster database.

See Also

Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]