startserver

Description

(UNIX only) tarts an Adaptive Server or a Backup Server.

The utility is located in $SYBASE/$SYBASE_ASE/bin.

Syntax

startserver [[-f runserverfile] [-m]] ...

Parameters

-f runserverfile

specifies the relative path name of a runserver file, which is used as a reference each time you start an Adaptive Server or Backup Server. By default, the runserver file is in the current directory and is named RUN_servername. If you start a second Adaptive Server on the same machine, startserver creates a new runserver file named RUN_servername.

-m

starts Adaptive Server in single-user mode, allowing only one system administrator to log in, and turns the allow updates to system tables configuration parameter on. Use this mode to restore the master database. The system administrator can use the dbo use only parameter of sp_dboption for system administration activities that require more than one process, such as bulk copying or using the data dictionary. startserver normally starts up only one server per node.

The -m parameter creates an m_RUNSERVER file and overwrites any existing m_RUNSERVER file.

Examples

Example 1

Starts an Adaptive Server named SYBASE from the runserver file named RUN_servername in the current directory:

startserver

Example 2

Starts an Adaptive Server named MYSERVER and a Backup Server named SYB_BACKUP:

startserver -f RUN_MYSERVER -f RUN_SYB_BACKUP

Example 3

Starts only the Backup Server SYB_BACKUP:

startserver -f RUN_SYB_BACKUP

Usage


The runserver file

The runserver file, which is created by srvbuild during installation, contains the dataserver command to start Adaptive Server or the backupserver command to start Backup Server. By default, the file is in the current directory and is named RUN_servername. Edit the runserver file to correct the options and parameters for the commands. This example shows two sample runserver files.

Runserver file for server MYSERVER:

#!/bin/sh
#
# Adaptive Server Information:
#  name:                          /MYSERVER
#  master device:                 /remote/Masters/myserver_dat
#  master device size:            10752
#  errorlog:                      /remote/serverdev/install/errorlog
#  interfaces:                    /remote/serverdev/interfaces
#
#
/$SYBASE/$SYBASE_ASE/bin/dataserver -d/remote/Masters/myserver_dat \ 
-sMYSERVER -e/remote/serverdev/install/MYSERVER_errorlog \
-i/remote/serverdev &

Runserver file for backup server SYB_BACKUP:

#!/bin/sh
#
# Backup Server Information:
#  name:                          SYB_BACKUP
#  errorlog:                      /remote/serverdev/install/backup.log
#  interfaces:                    /remote/serverdev/interfaces
#  location of multibuf:          /remote/serverdev/bin/sybmultbuf
#  language:                      us_english
#  character set:                 iso_1
#  tape configuration file:       /remote/serverdev/backup_tape.cfg
#
#
/remote/serverdev/bin/backupserver -SSYB_BACKUP \
-e/remote/serverdev/install/backup.log \
-I/remote/serverdev/interfaces \
-M/remote/serverdev/bin/sybmultbuf -Lus_english -Jiso_1 \
-c/remote/serverdev/backup_tape.cfg

See also

Commands disk mirror, disk remirror, disk unmirror

Utilities backupserver, dataserver