Sybase Technical Library - Product Manuals Home
[Search Forms] [Previous Section with Hits] [Next Section with Hits] [Clear Search] Expand Search

Some common command-line switches [Table of Contents] Loading and unloading databases

ASA User's Guide

[-] Part 1 Working with Databases
[-] Chapter 1: Running the Database Server
[-] Stopping the database server

Stopping the database server

You can stop the database server by:

Examples

For information on dbstop command-line switches, see The DBSTOP command-line utility .

Who can stop the server?

When you start a server, you can use the

-gk
option to set the level of permissions required for users to stop the server with dbstop. (Interactively, of course, anybody at the machine can click Shutdown on the server window.) The default level of permissions required is dba, but you can also set the value to one of all or none.

Shutting down operating system sessions

If you close an operating system session where a database server is running, or if you use an operating system command to stop the database server, the server shuts down, but not cleanly. Next time the database loads, recovery will be required, and happens automatically (see Backup and Data Recovery ).

It is better to stop the database server explicitly before closing the operating system session. On NetWare, however, shutting down the NetWare server machine properly does stop the database server cleanly.

Examples of commands that will not stop a server cleanly include:


Some common command-line switches [Table of Contents] Loading and unloading databases