alter route

Description

Changes the attributes of a route from the current Replication Server to a remote Replication Server.

Syntax

alter route to dest_replication_server {
	set next site [to] thru_replication_server |
	set username [to] 'user' set password [to] 'passwd' |
	set password [to] 'passwd' |
	set route_param [to] 'value' |
	set security_param [to] 'value' |
	set security_services [to] 'default'} 

Parameters

dest_replication_server

The name of the destination Replication Server whose route you are altering.

thru_replication_server

The name of an intermediate Replication Server through which messages for the destination Replication Server will be passed.

user

The login name to use for the route.

passwd

The password to use with the login name.

route_param

A parameter that affects routes. Refer to Table 3-17 for a list of parameters and values.

value

A setting for route_param. It is a character string.

Table 3-17: Configuration parameters affecting routes

route_param

value

disk_affinity

Specifies an allocation hint for assigning the next partition. Enter the logical name of the partition to which the next segment should be allocated when the current partition is full.

Default: off

rsi_batch_size

The number of bytes sent to another Replication Server before a truncation point is requested. The range is 1024 to 262,144.

Default: 262,144 bytes

rsi_fadeout_time

The number of seconds of idle time before Replication Server closes a connection with a destination Replication Server.

Default: -1 (specifies that Replication Server will not close the connection)

rsi_packet_size

Packet size, in bytes, for communications with other Replication Servers. The range is 1024 to 8192.

Default: 2048 bytes

rsi_sync_interval

The number of seconds between RSI synchronization inquiry messages. The Replication Server uses these messages to synchronize the RSI outbound queue with destination Replication Servers. Values must be greater than 0.

Default: 60 seconds

rsi_xact_with_large_msg

Specifies route behavior if a large message is encountered. This parameter is applicable only to direct routes where the site version at the replicate site is 12.1 or earlier. Values are “skip” and “shutdown.”

Default: shutdown

save_interval

The number of minutes that the Replication Server saves messages after they have been successfully passed to the destination Replication Server. See “Save Interval for Recovery” on page 16-2 of the Replication Server Administration Guide for details.

Default: 0 minutes

security_param

specifies the name of a security parameter. For a list and description of security parameters that can be set with alter route, refer to Table 3-26.

set security_services [to] 'default'

resets all network-based security features for the connection to match the global settings of your Replication Server.

Examples

Example 1

In examples 1 and 2, direct routes exist from the Tokyo Replication Server (TOKYO_RS) to the San Francisco Replication Server (SF_RS) and to the Sydney Replication Server (SYDNEY_RS). The following commands change one direct route into an indirect route, so that TOKYO_RS passes messages destined for SYDNEY_RS through SF_RS.

Entered at SF_RS, this command creates a direct route to SYDNEY_RS that will be used by the new indirect route.

create route to SYDNEY_RS
    set username SYDNEY_rsi_user
    set password SYDNEY_rsi_passwd

Example 2

Entered at TOKYO_RS, this command changes the direct route from TOKYO_RS to SYDNEY_RS to an indirect route, specifying SF_RS as an intermediate Replication Server.

alter route to SYDNEY_RS
 set next site SF_RS

Figure 3-1 shows the routes before and after changing the routing scheme.

Figure 3-1: Before and after altering routing in examples 1 and 2

Examples 3 and 4 change the routing so that TOKYO_RS sends messages directly to SYDNEY_RS again, instead of passing them through SF_RS.

Example 3

Entered at TOKYO_RS, this command changes the route from TOKYO_RS to SYDNEY_RS from an indirect route to a direct route.

alter route to SYDNEY_RS
 set username SYDNEY_rsi
 set password SYDNEY_rsi_passwd

Example 4

Entered at SF_RS, this command removes the direct route from SF_RS to SYDNEY_RS.

drop route to SYDNEY_RS

Together, the commands in examples 3 and 4 cancel the effects of examples 1 and 2. Figure 3-2 shows the routes after the second set of commands is entered.

Figure 3-2: After altering routing

In example 5, direct routes exist from TOKYO_RS to SYDNEY_RS and from SYDNEY_RS to SF_RS, and an indirect route exists from TOKYO_RS to SF_RS, through SYDNEY_RS. This example changes this routing scheme so that TOKYO_RS passes messages destined for SF_RS through a different Replication Server, LA_RS in Los Angeles.

Example 5

Entered at TOKYO_RS, this command changes the intermediate Replication Server for the indirect route to LA_RS instead of SYDNEY_RS.

alter route to SF_RS
 set next site LA_RS

Before the route can be altered, direct routes must have been created from TOKYO_RS to LA_RS and from LA_RS to SF_RS.

Figure 3-3 shows the routes before and after the necessary commands have been entered. (Direct routes to and from SYDNEY_DS are not shown because you may have dropped them.)

Figure 3-3: Before and after necessary commands

Example 6

Entered at TOKYO_RS, this command changes the password for the direct route from TOKYO_RS to LA_RS. The new password is “LApass.”

alter route to LA_RS
 set password LApass

Before you change the password for the direct route, you must suspend the route using suspend route.

Example 7

Sets the security service to DCE for the route to LA_RS.

suspend route to LA_RS
 
 alter route to LA_RS
 set security_mechanism to 'dce'
 
 resume route to LA_RS

Usage


set password and set username


Route parameters


Network-based security parameters


Procedure to alter a route

NoteIf you are changing a configuration parameter, you only need to suspend the route before executing alter route.

  1. Quiesce the replication system. For more detailed information, refer to the Replication Server Troubleshooting Guide.

  2. Suspend log transfer with suspend log transfer at each Replication Server that manages a database with a RepAgent (or LTM).

  3. Execute the alter route command at the source Replication Server. You may alter as many routes as necessary.

  4. Resume RepAgent (or LTM) connections to each RSSD and user database using resume log transfer.

    See “Changing Routes” in Chapter 5, “Managing Routes,” in the Replication Server Administration Guide for complete procedures for altering routes.

Permissions

alter route requires “sa” permission.

See also

admin quiesce_check, admin quiesce_force_rsi, alter connection, alter logical connection, alter queue, configure connection, create logical connection, create replication definition, configure replication server, drop logical connection, create connection, create route, drop connection, drop route, resume log transfer, set proxy, suspend log transfer, suspend route