Sybase Technical Library - Product Manuals Home
[Search Forms] [Previous Section with Hits] [Next Section with Hits] [Clear Search] Expand Search

Chapter 1:  Running the Database Server [Table of Contents] Starting the server

ASA User's Guide

[-] Part 1 Working with Databases
[-] Chapter 1: Running the Database Server
[-] Introduction

Introduction

Adaptive Server Anywhere provides two versions of the database server:

Server differences

The request-processing engine is identical in the two servers. Each supports exactly the same SQL, and exactly the same database features. The main differences include:

First steps

You can start a personal server running on a single database very simply. For example, on most operating systems you can start a personal server and load the sample database by running the following command in the Adaptive Server Anywhere installation directory:

dbeng6 asademo

The personal server is the executable dbeng6.exe, and the sample database is the file asademo.db.

Where to enter commands

You can enter commands in several ways, depending on your operating system. For example, you can:

There are slight variations in the basic command from platform to platform, described in the following section.

You can also start a personal server using a database file name in a connection string. For more information, see Connecting to an embedded database .

Platform-specific instructions

The way you start the database server varies slightly depending on the operating system you use. This section describes how to enter command lines for the simple case of running a single database with default settings, on each supported operating system.

Notes

To start the database server using default options (Windows NT):

Use a Program Manager icon to hold a command line, or enter the following command at the command prompt:

start dbeng6 path\database-file

If you omit the database file, a window is displayed allowing you to locate a database file from a Browse button.

To start the database server using default options (Windows 95/98):

Use a Program Manager icon to hold a command line, or enter the following command at the command prompt:

start dbeng6 path\database-file

If you omit the database file, a window is displayed allowing you to locate a database file from a Browse button.

To start the database server using default options (Windows 3.x):

Use a Program Manager icon to hold a command line, or enter the following command line in the Run dialog box:

dbeng6w path\database-file

You can run only one Windows 3.x server on a given computer at one time. There is no network server for Windows 3.x.

To start the database server using default options (UNIX):

Start the database server with the following command:

dbeng6 path/database-file

There is no personal server for Novell NetWare, just a network server.

The database server for NetWare is a NetWare Loadable Module (dbsrv6.nlm). An NLM is a program that you can run on your NetWare server.

To start the database server using default options (NetWare):

Load a database server on your NetWare server as follows:

load dbsrv6.nlm path\database-file

The database file must be on a NetWare volume. A typical filename is of the form DB:\database\sales.db.

You can load the server from a client machine using the Novell remote console utility. See your Novell documentation for details.

You can put the command line into your Novell autoexec.ncf file so Adaptive Server Anywhere loads automatically each time you start the NetWare server.

Starting the server for a Java-enabled database

If you are running a server with a Java-enabled database, and you wish to carry out Java operations, you must allow additional cache memory for the Java VM. You can do this by setting a cache size of 8 M for development work:

dbeng6 -c 8M path\database-file

On Unix platforms, you need a minimum cache size of 16M:

dbeng6 -c 16M path\database-file

For more information on cache size, see Controlling performance and memory from the command line .

For information on memory management for Java, see Configuring memory for Java .

What else is there to it?

Although you can start a personal server in the simple way described above, there are many other aspects to running a database server in a production environment. For example:

The remainder of this chapter describes these options in more detail.


Chapter 1:  Running the Database Server [Table of Contents] Starting the server