Using the aserep script

When you run aserep and specify a new instance name, it sets up and initializes the ASE Replicator process, as described in “Running the aserep script the first time”.

The aserep script is provided as a shell script (.sh) for UNIX operating systems and a batch file (.bat) for Windows NT and Windows 2000 operating systems.

Syntax

aserep -m host -a ase_port -d ddb_name -u rep_user -p pwd -r rep_port
	[ -c char_set ] [ -s server ] [ -admin ] [ -trace ] [-v] [-h]

Parameters

-m host The name of the host machine on which the primary Adaptive Server resides.

-a ase_port The Adaptive Server client socket port number to which ASE Replicator will connect.

-d ddb_name The name of the Distribution Database.

-u rep_user User login name of the ASE Replicator system user.

-p pwd Password for the ASE Replicator system user login name.

-r rep_port The ASE Replicator client socket port number.

-c char_set The character set to use when ASE Replicator connects to the Adaptive Server. This parameter is optional. If not specified, ASE Replicator uses the Adaptive Server’s default character set.

-s server The server (instance) name of the ASE Replicator process. This parameter is optional. If not specified, the default instance name aserep is used. If an existing instance has a name other than the default, you must specify the instance name when you invoke aserep to start that ASE Replicator instance.

NoteIf you specify a new instance name, aserep creates a new ASE Replicator instance with the name you specify, and configures it as you specify with the other parameters.

-admin Starts the ASE Replicator instance with all database connections and subscriptions suspended. This parameter is optional.

-trace Starts ASE Replicator with most trace flags enabled. This parameter is optional.

-v Returns ASE Replicator software version information. This parameter is optional.

-h Returns a command usage message. This parameter is optional.

Example

aserep -m boulder -a 4100 -d DDB_boulder -u Bob
-p p3g5s -r 10001

This command starts up the ASE Replicator on the host machine named boulder, with Adaptive Server client socket port number 4100, with the Distribution Database named DDB_boulder, with ASE Replicator system user name Bob, with password p3g5s, with ASE Replicator client socket port number 10001, and with the default character set and the default ASE Replicator instance name.

Usage