Adaptive Server Enterprise

 

Installing ASE 12.5.2 or ASE 15 on Linux (and other Unix platforms)

Applicable to both Express and Licensed editions

From the CD or Directory containing ASE run the following command:

setup -is:javahome JVM

(This will help avoid the installation error "JVM not found")

----

Setting Server name for ASE clients

Set environment variable DSQUERY to your servername (as given in the interfaces file) by placing the following line in your .profile or
.bash_profile


export DSQUERY = <Your Server Name>

Example: export DSQUERY=PAYROLL

Once you set this then you need not specify it everytime you run isql or any other client utility.

----

Automatically starting ASE on Server boot on Linux (and other Unix flavours)

 

Create the following script in the /etc/init.d directory and name it as sybase (or any other desirable name). Create a symbolic link for it in /etc/rc3.d.

 

#!/bin/sh
#
# sybase: Starts the available Servers
#
# chkconfig: 345 85 15
#
# Source function library.
. /etc/rc.d/init.d/functions
#
# SYBASE should point to the system administrated server area
# CHANGE "SYBASE" to point to your install area
export SYBASE=/opt/sybase


if [ -n "${SYBASE}" -a -d "${SYBASE}" ]; then

SYBASE_ASE=ASE-15_0
SYBASE_OCS=OCS-15_0

PATH="${SYBASE}/${SYBASE_ASE}/bin:${SYBASE}/${SYBASE_OCS}:${SYBASE}/${SYBASE_ASE}/install:${PATH}"
export SYBASE SYBASE_ASE SYBASE_OCS PATH
# See how we were called.
case "$1" in
start)
echo -n "Starting Sybase ASE ... "
( cd ${SYBASE}/${SYBASE_ASE}/install ; \
unset LANG ; unset LC_ALL ; \

for run_server in RUN_* ; do \
su -c "startserver -f ${run_server}" sybase > /dev/null 2>&1 ; \
echo -n "${run_server} " ; \
done )
echo
touch /var/lock/subsys/sybase
;;
stop)
echo -n "Shuting down Sybase ASE configured servers:"

----