Starting and Stopping Sybase ASE

The default installations of Sybase don't do anything about including entries in the start script directories so you need to start the servers yourself.

One way of running servers is to log in as the sybase user and just start the servers from the /opt/sybase/ASE-12_5/install directory. In this directory, you'll find the following scripts...

RUN_LOCALHOST
RUN_LOCALHOST_BS
RUN_LOCALHOST_MS

There's also a script called 'showserver' which shows which instances of the server are up (it's effectively a front end to 'ps').

To make things easier, you'll probably want to add some stuff to your path. On Linux, you may wish to add the following to your .bashrc file for the 'sybase' user...

export SYBASE=/opt/sybase
export PATH=$PATH:$SYBASE/ASE-12_5/install:$SYBASE/ASE-12.5/install


...then you can just start each server in the background with...

nohup RUN_LOCALHOST &
nohup RUN_LOCALHOST_BS &
nohup RUN_LOCALHOST_MS &

After running each server up, use 'showserver' to check it.

Stopping the servers really involves brute force - on Linux, issue a 'kill' command for each server shown by 'showserver'.  You'll probably have to run 'showserver' after each 'kill' to check what's been left behind, if anything.




Find out more by searching Google here...


Google