A brief introduction to the Sybase Database engine operation method

Source: Internet
Author: User
Tags command line dba sybase sybase database win32

1. Log on to Windows NT as an administrator.

You need Administrator privileges to create, start, and stop services.

2. Open the command prompt.

3. Use the Dbsvc utility to create a service with the following restrictions:

You must use the-a switch to specify the Sybase account and use the-p switch to specify its password.

You cannot use the-as or-i switch.

For a personal database server, the name of the executable file should be:

C:\Program Files\sybase\sql Anywhere 9\win32\dbeng9.exe

For the database server, it is:

C:\Program Files\sybase\sql Anywhere 9\win32\dbsrv9.exe

You must use the following engine parameters:

-N Engine Name

-sc

-GD DBA

-gk DBA

-GL DBA

-gu DBA

-X namedpipes (Tds=no)

4. Enter the full path to any database files that you want to run.

The path should take the database folder \ filename. db format, where the database folder is the C2 database folder, which includes all other related parameters.

For example, the following command line can create a manually initiated service named ASA_SVC and reference a network server. It runs under the Sybase account with a password of Sybase_password. It executes the following command:

C:\Program Files\Sybase\SQL Anywhere 9\win32\dbsrv9.exe -n asa_c2 -sc -gd DBA -gk DBA
-gl DBA -gu DBA -x namedpipes(TDS=NO)
database-folder\c2test.db
dbsvc -a sybase -p sybase_password -s manual
-t network -w asa_svc C:\Program Files\Sybase\
SQL Anywhere 9\win32\dbsrv9.exe -n asa_c2 -sc
-gd DBA -gk DBA -gl DBA -gu DBA
-x namedpipes(TDS=NO) database-folder\c2test.db

5. To start and stop the service, run Windows NT Service Manager from Control Panel. From the Start menu, select settings → control Panel, and then double-click Services.

The service you just created appears under adaptive Server anywhere-svc, where Svc is the name of the service that you specified on the dbsvc command line.

6. Use the "Start" and "Stop" buttons to start and stop the service.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.