dbTalk Databases Forums  

Stopping Sybase on system reboot

comp.databases.sybase comp.databases.sybase


Discuss Stopping Sybase on system reboot in the comp.databases.sybase forum.



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

Default Stopping Sybase on system reboot - 04-17-2004 , 04:01 PM






Hello,

as a Sybase newby, I have the following question:

Can anyone give me advise on the best way to stop Sybase Adaptive Server
at system reboots? The unix configuration guide tells me that the
preferred method of stopping AS is via the Transact-SQL shutdown
command, and as a last resort one can use the kill command. This is not
helping me very much, because of course I don't want to issue kill
commands on the server processes, but also don't want to log in to the
database manually for issueing a shutdown command. The unix admin who
restarts the system should not be bothered by manually stopping the AS,
so a stop script should be created.

Perhaps it is possible to create an isql command that logins to the
database and shuts it down. If this is the case how can this be achieved
and in such a way that no passwords are needed in the script?

Regards,

Frank

Reply With Quote
  #2  
Old   
Martin Hanna
 
Posts: n/a

Default Re: Stopping Sybase on system reboot - 04-17-2004 , 05:15 PM






"Frank" <no (AT) spam (DOT) org> wrote

Quote:
Can anyone give me advise on the best way to stop Sybase Adaptive Server
at system reboots?
I've a simple script that kills off processes before a db load. However,
this is only for a test server. Can you be sure important processes wont be
running on your server before attempting to shut it down?

Martin




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

Default Re: Stopping Sybase on system reboot - 04-17-2004 , 06:58 PM



If you dont' want/can't have the SA password in the script or 'sourced'
from somewhere else then you don't have much choice. AFAIK, 'kill -15'
is well received by the dataserver process and is somewhat equivalent to
doing a 'shutdown' from the isql prompt. Somebody please slap me if I'm
wrong... OK, just slap me anyway.

Frank wrote:
Quote:
Hello,

as a Sybase newby, I have the following question:

Can anyone give me advise on the best way to stop Sybase Adaptive Server
at system reboots? The unix configuration guide tells me that the
preferred method of stopping AS is via the Transact-SQL shutdown
command, and as a last resort one can use the kill command. This is not
helping me very much, because of course I don't want to issue kill
commands on the server processes, but also don't want to log in to the
database manually for issueing a shutdown command. The unix admin who
restarts the system should not be bothered by manually stopping the AS,
so a stop script should be created.

Perhaps it is possible to create an isql command that logins to the
database and shuts it down. If this is the case how can this be achieved
and in such a way that no passwords are needed in the script?

Regards,

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.