Creating a Replication Agent instance

You can create a new Replication Agent instance at any time after the Replication Agent software is installed by invoking the ra_admin command with the -c option.

The complete syntax of the ra_admin command with the -c option is:

ra_admin -c new_inst -p port {-t database|-f old_inst} -s

where new_inst is the name of the new Replication Agent instance you are creating, port is the client socket port number for the administration port of the new Replication Agent instance, database is the type of database server that contains the primary database, and old_inst is the name of an existing Replication Agent instance whose configuration you want to duplicate for the new Replication Agent instance.

You must specify either the -t option to identify the type of the database server or the -f option to copy an existing configuration. If you do not specify the -f option, the new Replication Agent instance is created with a default configuration.

When a Replication Agent instance is created, the configuration file for that instance is created automatically. The configuration file is named inst_name.cfg, where inst_name is the name of the Replication Agent instance. The configuration file resides in the %SYBASE%\rax-12_5\inst_name directory, where %SYBASE% is the Replication Agent installation directory.

Use the following procedure to create a new Replication Agent instance.

NoteSee the Sybase Replication Agent Installation Guide for information on how to create a Replication Agent instance as part of the installation process.

StepsTo create a Replication Agent instance

  1. Open a window with an operating system prompt.

  2. Use the following command to make the Replication Agent bin directory the current directory:

    cd \%SYBASE%\rax-12_5\bin
    

    where %SYBASE% is the Replication Agent installation directory.

  3. At the operating system prompt, invoke the ra_admin utility to create a new Replication Agent instance.

    After you invoke the ra_admin utility, the operating system prompt returns when the new Replication Agent instance is created.

  4. Verify that the new Replication Agent instance was created properly using one of the following methods:

After you create a new Replication Agent instance, you can use the ra utility or the Administrator GUI to start the instance so it can be administered and configured.