Before you can invoke a Mirror Replication Agent utility, you must first:
Log in to the operating system on the Mirror Replication Agent host machine, with a user login that has execute permission in the Mirror Replication Agent installation directory and all subdirectories (for example, the “sybase” user)
Use the SYBASE environment script to make sure that the Sybase environment variables are set
The SYBASE environment script is supplied as a batch file for Microsoft Windows platforms (SYBASE.bat) and a shell script for UNIX platforms (SYBASE.sh).
To set the SYBASE environment
Log in to the operating system on the Mirror Replication Agent host machine, with a user login that has the appropriate permissions.
Open an operating system command window.
At the operating system prompt, navigate to the Mirror Replication Agent installation directory.
On Microsoft Windows platforms, enter:
cd c:\sybase
where c:\sybase is the path to the Mirror Replication Agent installation directory.
On UNIX platforms, enter:
cd /opt/sybase
where /opt/sybase is the path to the Mirror Replication Agent installation directory.
In the Mirror Replication Agent installation directory, invoke the SYBASE environment script.
On Microsoft Windows platforms, enter:
SYBASE
On UNIX platforms, enter:
source SYBASE.sh
On UNIX platforms, you can insert the source
SYBASE.sh command in the .login file
for the Mirror Replication Agent administrator (or “sybase” user),
so that the SYBASE environment is set automatically when you log
in to the Mirror Replication Agent host machine.