Table of Contents

Search

  1. Preface
  2. Overview of the Server Manager Command Line Interface
  3. Usage Scenario: Using Server Manager CLI Commands to Run Replications
  4. Command Reference

Command Line Interface for the Server Manager

Command Line Interface for the Server Manager

add target

add target

Adds a secondary target to the replication configuration.

Syntax

add target
configuration_name
Server_Manager_name
connection_name
[recovery=
recovery_table_name
]
The following short form is acceptable:
atgt
configuration_name
Server_Manager_name
connection_name
[recovery=
recovery_table_name
]

Parameters

The following table describes the command parameters:
Parameter
Description
configuration_name
The name of the configuration for which to add a secondary target.
Server_Manager_name
The name of the Server Manager instance to use for the secondary target. You can specify either the Main server or a subserver.
connection_name
The name of a database connection that you previously defined in the Data Replication Console. The target uses the specified connection to connect to the target database. You must specify a connection for the secondary target that is different from the connection of the primary target.
recovery_table_name
A fully qualified name for the recovery table that the Server Manager CLI generates on the secondary target. If you do not specify a recovery table name, the Server Manager CLI does not generate the recovery table on the secondary target. In this case, the Applier looks for the recovery table with the name you specified in the configuration for the primary target. The Applier might end with an error if a table with this name does not exist on the secondary target.

Examples

The following command adds a secondary target to the Ora2Ora_config configuration. The target uses the ora_tgt connection to connect to the target database and uses the Main server to run replication tasks. The Server Manager CLI generates the recovery table named DEMO_TGT.IDR_RECOVERY for the secondary target.
add target Ora2Ora_config Main ora_tgt recovery=DEMO_TGT.IDR_RECOVERY

0 COMMENTS

We’d like to hear from you!