dbTalk Databases Forums  

Auto start Sybase ASE on UNIX reboot

comp.databases.sybase comp.databases.sybase


Discuss Auto start Sybase ASE on UNIX reboot in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Masroor
 
Posts: n/a

Default Auto start Sybase ASE on UNIX reboot - 04-07-2004 , 05:08 AM






Hi Folks

Could someone advise me how to setup ASE 12 to auto start upon a SUN
Solaris (UNIX BOX) server reboot.

We don't reboot the UNIX box often, but when it is done I want the
sybase ASE server to start up automatically instead some running the
startserver cmds.


Many thanks, and Happy Easter.


Mas :-)

Reply With Quote
  #2  
Old   
Tom McCready
 
Posts: n/a

Default Re: Auto start Sybase ASE on UNIX reboot - 04-07-2004 , 10:09 AM








Masroor wrote:

Quote:
Hi Folks

Could someone advise me how to setup ASE 12 to auto start upon a SUN
Solaris (UNIX BOX) server reboot.

We don't reboot the UNIX box often, but when it is done I want the
sybase ASE server to start up automatically instead some running the
startserver cmds.

Massor,

On an IBM Unix computer (AIX), in /local/etc/rc.local:

Quote:
su - sybase -c "/sybase/ASE-12_5/install/startserver -f
/sybase/ASE-12_5/install
/RUN_SYBASE_REMEDY -f /sybase/ASE-12_5/install/RUN_SYBASE_BACKUP" &

su - sybase -c "/sybase/ASE-12_5/install/startserver -f
/sybase/ASE-12_5/install
/RUN_REMDEV -f /sybase/ASE-12_5/install/RUN_REMTST" &

but the actual location of the lines, above, will vary on your computer
according to the way your Unix administrator has set it up. Just be
sure that your computer's networking starts before Sybase is started.

Tom




Reply With Quote
  #3  
Old   
Frank
 
Posts: n/a

Default Re: Auto start Sybase ASE on UNIX reboot - 04-17-2004 , 03:46 PM



Masroor wrote:
Quote:
Hi Folks

Could someone advise me how to setup ASE 12 to auto start upon a SUN
Solaris (UNIX BOX) server reboot.

We don't reboot the UNIX box often, but when it is done I want the
sybase ASE server to start up automatically instead some running the
startserver cmds.


Many thanks, and Happy Easter.


Mas :-)
This is what the documentation says:

1 Create a start-up script file with contents like the following:

$SYBASE/$SYBASE_ASE/install/startserver -f \
$SYBASE/$SYBASE_ASE/install/RUN_servername

where $SYBASE/$SYBASE_ASE/install/startserver is the full path name of
the startserver utility, and $SYBASE/$SYBASE_ASE/install/RUN_servername
is the full path name of the RUN_server_name file for the server.

2 Copy the script to the /etc/init.d directory, using syntax like the
following: cp script_name /etc/init.d/script_name

3 Review the contents of the /etc/inittab file to determine the default
run level for your operating system. The initdefault entry specifies the
default run level, which is usually 2 or 3 for Sun Solaris and 5 for Linux

4 Use the ln command to create a hard link from the RUN_server_name file
to the appropriate run control (rc) directory, rc#, where # is the
default run level obtained in step 2. Use syntax like the following for
Sun Solaris:

ln /etc/init.d/script_name /etc/rc#.d/S##script_name

----

Most likely is runlevel 3 the default runlevel on your solaris system.

Good luck,

Frank


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.