create alternate connection

Adds an alternate primary or replicate connection, or an alternate active or standby connection, and sets configuration parameters for the connection.

Syntax

create alternate connection to data_server.database
named conn_server.conn_db
[set error class [to] error_class]
[set function string class [to] function_class]
[set username [to] user]
[set password [to] passwd]
[set database_param [to] 'value' [set database_param [to] 'value']...]
[set security_param [to] 'value' [set security_param [to] 'value']...]
[with {log transfer on | primary only}]
[as {active | standby} for conn_lds.conn_ldb]

Parameters

Examples

Usage

  • set function string class, set username, and set password are existing clauses for alter connection and create connection that you can use when you create alternate connections.
    • If you omit these clauses, the alternate replicate connection inherits the values that you set with the default replicate connection.
    • If you omit these clauses when you create an alternate connection on a (current) Replication Server that is different from the (controller) Replication Server that controls the default connection, the current Replication Server returns an error.
    • The alternate replicate connection can inherit values from the default connection only if the same Replication Server controls both default and alternate connections.
    • If you do not set the maintenance user for the alternate connection, the connection inherits the default connection maintenance user. The alternate connection uses any new maintenance user that you specify for the alternate connection.
  • set database_param and set security_param are existing clauses for alter connection and create connection that you can use to specify existing optional connection parameters.
    • Any value you set for the alternate connection overrides inherited values from the default connection or the default values.
    • The alternate connection can inherit the values from the default connection only if the same Replication Server controls both alternate and default connections.
  • Execute create alternate connection at the Replication Servers that belong to the same replication domain that manages the database.
  • To create alternate logical connections for a warm standby application, use create alternate logical connection and create alternate connection.
  • Use alter connection to change the attributes of a connection. If the password of the maintenance user has been changed, use alter connection to enter the new password.
  • See Replication Server Administration Guide Volume 2 > Performance Tuning > Multi-Path Replication.

Permissions

create alternate connection requires “sa” permission.

Related reference
admin show_connections
alter connection
create connection
create connection using profile
drop connection