Use the commands that apply to your environment to create a service to start and stop the SQL Anywhere databases.
Note: The command line syntax in this procedure contains the variables that are defined in Command Line Syntax Variables. Replace these variables (in italics) with the values that are appropriate for your environment.
Follow these steps:
SQLANYWHERE_DIR\dbsvc.exe -t Network -s Automatic -as -i -sn SQLANYWHERE_SERVER -y -w SQLANYWHERE_SERVER SQLANYWHERE_DIR\dbsrv12.exe -n SQLANYWHERE_SERVER -x tcpip(PORT=SQLANYWHERE_PORT) DATABASE_DIR\DATABASE_NAME.db DATABASE_DIR\AUDIT_DATABASE_NAME.db
$SQLANYWHERE_DIR/dbspawn $SQLANYWHERE_DIR/dbsrv12 -n "$SQLANYWHERE_SERVER" -x \""tcpip(port=$SQLANYWHERE_PORT)"\" "$DATABASE_DIR/$DATABASE_NAME.db" "$DATABASE_DIR/$AUDIT_DATABASE_NAME.db"
SQLANYWHERE_DIR\dbsvc.exe -u SQLANYWHERE_SERVER
|
Copyright © 2012 CA.
All rights reserved.
|
|