Initializing the ASE Replicator process  UNIX permissions

Chapter 2: Setting Up and Starting ASE Replicator

Running the aserep script the first time

Use aserep to start and initialize ASE Replicator. When you run this script the first time, with a unique set of parameters, it performs the following tasks:

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.

NoteASE Replicator depends on Adaptive Server Enterprise to set the $SYBASE and $SYBASE_JRE environment variables appropriately. These variables are defined in SYBASE.csh or SYBASE.sh (on UNIX platforms), or in SYBASE.bat (on Microsoft Windows platforms). If the $SYBASE or $SYBASE_JRE variable has not been set, ASE Replicator does not run and exits with a message like the following:

The env_variable environment variable is not set. 
Please execute the appropriate SYBASE.suffix script.

where env_variable is the $SYBASE or $SYBASE_JRE variable, and suffix is .sh or .csh for UNIX platforms and .bat for Microsoft Windows platforms.

Command line parameters that you provide the first time you run aserep define the configuration of the ASE Replicator process.

StepsTo run the aserep script the first time

  1. Log in to the operating system on the primary Adaptive Server host.

    NoteOn UNIX platforms, you must log in to the primary Adaptive Server host with a user ID that has authority to set execute permissions in the ASE Replicator instance subdirectory.

  2. Make sure that the $SYBASE and $SYBASE_JRE environment variables are defined.

    If it is not, set the current directory to the Sybase installation directory, and source SYBASE.csh or SYBASE.sh (on UNIX platforms), or execute SYBASE.bat (on Microsoft Windows platforms).

  3. Set the current directory to the $SYBASE/RPL-15_0/bin directory:

    cd $SYBASE/RPL-15_0/bin
    
  4. Run the aserep script and specify all of the following command line parameters:

After you run the aserep script, the ASE Replicator process starts and displays the Sybase copyright and disclosure statements in the operating system window. A configuration file called my_ASERep.cfg is created in the $SYBASE/RPL-15_0/my_ASERep directory, where my_ASERep is the ASE Replicator instance that has just started.

If the process starts successfully, the operating system prompt does not return in that window until you shut down the ASE Replicator process.

If an error message appears shortly after the copyright and disclosure statements, and the operating system prompt returns, then the ASE Replicator process failed to start successfully.

NoteIf the ASE Replicator process does not start successfully after you run the aserep script, verify that:





Copyright © 2005. Sybase Inc. All rights reserved. UNIX permissions

View this book as PDF