Sets the permissions required to start or stop a database.
{ dbsrv11 | dbeng11 } -gd { DBA | all | none } ...
All operating systems and database servers.
This is the permission required for a user to cause a new database file to be loaded by the server, or to stop a database on a running database server. The level can be one of the following:
DBA Only users with DBA authority can start or stop databases.
all All users can start or stop databases.
none Starting and stopping databases isn't allowed apart from when the database server itself is started and stopped.
The default setting is all for the personal database server, and DBA for the network database server. Both uppercase and lowercase syntax is acceptable.
Note that when this option is set to DBA, the client application must already have a connection to the server to start or stop a database. Providing a DBA user ID and password on a new connection is not enough.
You can obtain the setting of the -gd option using the StartDBPermission server property:
SELECT PROPERTY ( 'StartDBPermission' ); |
The following steps illustrates how to use the -gd option for the network database server.
Start the network database server:
dbsrv11 -x tcpip -su mypwd -n myserver -gd DBA |
Connect to the utility database from Interactive SQL:
dbisql -c "UID=DBA;PWD=mypwd;ENG=myserver;DBN=utility_db" |
Start a database:
START DATABASE demo ON myserver; |
Connect to the database you have started:
CONNECT TO myserver DATABASE demo USER DBA IDENTIFIED BY sql; |
Discuss this page in DocCommentXchange. Send feedback about this page using email. |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |