You can stop a database server using the dbstop utility.
Prérequis
By default, you must have the SERVER OPERATOR system privilege. The required privileges can be changed by using the -gk database server option.
Contexte et remarques
The dbstop utility is useful in batch files, or for stopping a server on another computer. It requires a connection string in its command.
At a command prompt, execute a statement similar to the following using the dbstop utility, where server-name is the name of the server you want to stop, and user-ID and password are the connection parameters:
dbstop -c "Server=server-name;UID=user-ID;PWD=password" |
Exemple
Start a database server. Run the following command from the SQL Anywhere installation directory to start a server named Ottawa using the sample database:
dbsrv16 -n Ottawa "%SQLANYSAMP16%\demo.db" |
Stop the server using dbstop:
dbstop -c "Server=Ottawa;UID=DBA;PWD=sql" |
![]() |
Discuter à propos de cette page dans DocCommentXchange.
|
Copyright © 2013, SAP AG ou société affiliée SAP - SAP Sybase SQL Anywhere 16.0 |