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

rename schema

rename schema

Overrides the name of the schema that includes the mapped target tables for a secondary target. Use this command if you want to use a schema name for a secondary target that is different from the schema name of the primary target.
For Microsoft SQL Server targets, the schema name is equivalent to the SQL Server database name.
For example, if you map tables in the schema
Schema1
on a primary target and map similar tables in the schema
Schema2
on a secondary target, you can override
Schema1
with
Schema2
for the secondary target.

Syntax

rename schema
configuration_name
connection_name
name_on_primary_target
name_on_secondary_target
The following short form is acceptable:
rs
configuration_name
connection_name
name_on_primary_target
name_on_secondary_target

Parameters

The following table describes the command parameters:
Parameter
Description
configuration_name
The name of the configuration that includes the secondary target for which you want to override the schema or database name.
connection_name
The name of the database connection for the secondary target.
name_on_primary_target
The schema name on the primary target that you want to override on the secondary target.
name_on_secondary_target
The schema name that replaces the
name_on_primary_target
value on the secondary target.
For databases that use case-sensitive database object names, enter the schema name in the same case that the database uses. For Oracle unquoted identifiers, use uppercase.

Example

The following command overrides the schema name
Schema1
that is defined on the primary target with the schema name
Schema2
that is defined on the secondary target. The secondary target is defined in the Ora2Ora_config configuration and uses the ora_tgt connection.
rename schema Ora2Ora_config ora_tgt Schema1 Schema2

0 COMMENTS

We’d like to hear from you!