Sybase Replication

Perform the following tasks to check if the Sybase Replication component is successfully installed.

Replication Server

To verify that the Replication Server is installed successfully:

  1. Create and start the sample Replication Server.

    1. Go to the $SYBASE directory and enter:

      source SYBASE.csh
      
    2. Go to the $SYBASE/REP-15_0/install directory and enter:

      ./rs_init -r ../samp_repserver/SAMPLE_RS.res
      

    The sample Replication Server starts.

  2. Log in to Replication Server from the command prompt using isql commands with the sa user name. If the installation is successful, you can connect to the Replication Server using isql.

    isql -Usa -P -SSAMPLE_RS
    
    1>admin who
    
    2>go
    

    Noteadmin who displays the newly created connection.

    Logging in to Replication Server is an easy way to find out if Replication Server is running. If you can successfully log in to Replication Server and find it running, then the installation is successful.

Replication Agent

To verify that Replication Agent is installed successfully:

  1. Go to the $SYBASE directory and check if the following directories and files exist:

  2. Go to the $SYBASE directory and set the environment variables by sourcing SYBASE.csh.

  3. Go to the $SYBASE/RAX-15_0/bin directory and enter:

    ra.sh -v
    

Replication Agent is successfully installed, if executing the ra.sh script displays the version number and the Sybase copyright information, and all the above listed directories and files exist.

DirectConnect

To verify that DirectConnect is installed successfully:

  1. Create a DirectConnect server.

    1. To set the environment variables, go to the $SYBASE/DC-15_0 directory and enter:

      source DC_SYBASE.csh
      
    2. Go to the $SYBASE/DC-15_0/bin directory and enter:

      AddServer server_name port_number
      

      where server_name is the name of the new DirectConnect server and port_number is the port on which the server listens. The AddServer utility creates the necessary entries in the interfaces file before starting the DirectConnect server.

      The command line displays that the new server has been started and is ready for connections.

  2. Verify that the server is set up properly.

    1. Set the environment variables. Go to the $SYBASE/DC-15_0 directory and enter:

      source DC_SYBASE.csh
      
    2. Using isql, enter:

      isql -Sserver_name -Usa -P
      
      1>exec adm_version
      
      2>go
      

    If DirectConnect is successfully installed, this command displays the product name, version, platform, and release date, along with other information.

StepsTo verify that DirectConnect for Oracle (DCO) is installed successfully

To check for a valid installation of DCO, create and configure a DirectConnect instance. Before you do that, make sure:

To create and configure a DirectConnect instance:

  1. Start the Create Server wizard.

    Navigate to the $SYBASE/DCO-15_0/DCWizard directory and execute DCWizard.sh script.

    The Welcome Create Server Wizard window appears. Click Next.

  2. Select the ECDA Option for Oracle option. Click Next.

  3. Enter the server name for the new DirectConnect server and the port number that you want the server to listen on. Click Next.

  4. Enter a valid Admin Account name. Click Next.

  5. Enter the Oracle connection string as previously defined in the tnsnames.ora file, and the path (including the file name) to the previously defined temporary location of the tnsnames.ora file. Click Next.

  6. Verify the ECDA Server information. If correct, select Create Server otherwise, click Back to return to the previous window and provide the correct information.

  7. Verify if the ECDA configuration is successful. If yes, click Next otherwise, click Back to return to the previous window, provide the correct information, and recreate the server.

  8. In the Start DirectConnect Server window, click Start ecda_servername to start the newly configured ECDA server.

  9. Verify if the ECDA server startup is successful and click Finish.

  10. Verify if the ECDA Option for Oracle server is properly configured to Oracle.

    1. Set the environment variables. Go to the $SYBASE/DCO-15_0 directory and enter:

      source DCO_SYBASE.csh
      
    2. Using isql enter:

      isql -Sserver_name -U<valid_oracle_userid> -P
      1>select @@oracle_version	
      2>go
      

      If the DCO server is installed and configured properly, this command displays the version of the target Oracle database.