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

cdr remaster

The cdr remaster command changes the SELECT clause or the server from which to base the master replicate definition of an existing master replicate. You can also use this command to convert a classic (non-master) replicate to a master replicate.

Syntax

Read syntax diagramSkip visual syntax diagram>>-cdr remaster--+-------------------------+-------------------->
                 |                    (1)  |
                 '-| Connect Option |------'
 
>-- --master=server--replicate--+----------+-------------------><
                                '-modifier-'
 
Notes:
  1. See page Connect Option.
Element Purpose Restrictions Syntax
modifier Specifies the rows and columns to replicate Participant Modifier
replicate Name of the replicate to be mastered The replicate must exist. Long Identifiers
server Name of the database server from which to base the master replicate definition The name must be the database server group name. Long Identifiers

The following table describes the option to cdr remaster.

Long Form Short Form Meaning
--master= -M Specifies that the replicate being created is a master replicate.

Usage

Use the cdr remaster command to perform one of the following tasks:

To use the cdr remaster command, the master replicate definition must have been created with name verification turned on (--name option of the cdr define replicate command set to y).

As part of its processing, the cdr remaster command creates a shadow replicate. The shadow replicate is named as follows:

Shadow_4_basereplicatename_GMTtime_GIDlocalCDRID_PIDpid

Examples

The following example shows the original definition of the master replicate before the alter operation:

cdr define repl --master=delhi -C timestamp\
newrepl "test@delhi.tab" "select col1, col2 from tab"\

This example shows the cdr remaster command adding a new column, col3, in the newrepl participant:

cdr remaster --master=delhi newrepl\
"select col1, col2, col3 from tab"
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]