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

About This Book [Table of Contents] Chapter 2 Starting

and Stopping Servers

Configuring Adaptive Server for UNIX Platforms

[-] Chapter 1 Introduction

Chapter 1

Introduction

This chapter provides an overview of Adaptive Server configuration and the steps you need to take to customize it for your use.

About Adaptive Server

Adaptive Server performs data management and transaction functions, independent of client applications and user interface functions. It also:

Adaptive Server uses these auxiliary programs to perform dedicated tasks:

The instructions in this book assume that Adaptive Server is installed and running unless noted otherwise.

System-specific issues

Adaptive Server runs on a variety of hardware and operating system platforms. System-specific issues do not affect the basic functionality of Adaptive Server, but there are differences among platform implementations. These differences may include:

For more information about system-specific issues, see the installation documentation and release bulletin for your platform.

Definition of terms

The following terms are used in this book:

User roles

The Adaptive Server installation and setup process defines various user roles. Different user roles have different responsibilities and privileges. These user roles clarify the way Adaptive Server is to be integrated into your system:

Environment variables

It is crucial to the operation of Sybase products that the system environment variables be set correctly.

Environment variables are set in the user's environment either interactively or by including them in the user's .login and .cshrc files (for C shell) or .profile file (for Bourne shell). The installation instructions in this guide explain when to set these variables:

Sybase installation directory

The Sybase installation directory structure is created by the installation process. Adaptive Server is placed in the directory you indicate when you run the Studio Installer. Table 1-1 illustrates part of the Adaptive Server installation directory structure.

The Adaptive Server installation directory contains executable files and administrative tools, which are added as each product is installed.

Installation directory for $SYBASE

Component directory

Subdirectory

Subdirectory

/ASE-12_0

/bin

/debugger

/init

/auditinit

/bsrv

/logs

/sqlsrv

/install

/spr

/sample

/esp

/JavaSql

/server

/scripts

/upgrade

/charsets

/collate

/unicode

/config

/FTS-12_0

/installed

/Installer

/bin

/lib

/jConnect_docs

/docs

/jConnect-4_2

/classes

/com /gateway /sample

/devclasses

/com

/docs

/en

/gateway

/sample

/sp

/tools

/devclasses

/jConnect-5_2

/classes

/gateway2 /sample2

/devclasses

/docs

/en

/gateway2

/sample2

/sp

/tools

/jre-1_1-NT386

/bin

(This directory in installed on Digital UNIX, HP-UX and Sun Solaris platforms only.)

/lib

/security

/jutils-2_0

/cascade

/uk

/jisql

/doc /HelpFiles

/ribo

/doc

/locales

/english

/message

/unicode

/OCS-12_0

/bin

/config

/include

/lib

/locales

/sample

/scripts

/SQLRemote

/bin

/\scripts

/SYSAM-1_0

/bin

/licenses

Adaptive Server devices and system databases

Devices are files or portions of a disk that are used to store databases and database objects. You can initialize devices, using raw disk partitions (for production systems) or operating system files (for nonproduction uses).

Adaptive Server requires the following devices:

The master and sysprocsdev devices are created when you create a new Adaptive Server.

The master device

The master device contains the following databases:

The sybsystemdb device

The sybsystemdb device stores the sybsystemdb database, which stores information about transactions in progress, and which is also used during recovery.

For instructions about creating the sybsystemdb device and database for Data Transfer Management (two-phase commit), see Chapter 9, "Upgrading Sybase Servers" in the Adaptive Server installation documentation for your platform.

The sysprocsdev device

The sybprocsdev devices stores the sybsystemprocs database, which contains most of the Sybase-supplied system procedures. System procedures are a collection of SQL statements and flow-of-control statements that perform system tasks, for example, sp_configure.

The system procedures that are needed during recovery situations are stored in the master database.

sysprocsdev is the default system name for this device. However, it is frequently referred to as the sybsystemprocs device, since it stores the sybsystemprocs database.

Optional devices and databases

The devices and databases described in the following sections are optional.

The sample databases

The sample databases are:

For information about installing the sample databases, see Chapter 7, "Adding Optional Functionality to Adaptive Server" .

For information about the contents of the sample databases, see the Transact-SQL User's Guide.

The sybsecurity device and database

The sybsecurity device is created as part of the auditing installation process. The sybsecurity device stores the sybsecurity database and the auditing system procedures with which you can configure auditing for your system.

The auditing system records system security information in an Adaptive Server audit trail. You can use this audit trail to monitor the use of Adaptive Server or system resources.

For instructions on configuring Adaptive Server for auditing, see Chapter 7, "Adding Optional Functionality to Adaptive Server" . For information about installing and using the auditing system, see Chapter 8, "Auditing," in the System Administration Guide.

dbccdb database

The database consistency checker (dbcc) provides commands for checking the logical and physical consistency of a database. The dbccdb database stores the results of dbcc when dbcc checkstorage or dbcc check verifying are used.

dbcc checkstorage records configuration information for the target database, operation activity, and the results of the operation in the dbccdb database. Stored in the database are dbcc stored procedures for creating and maintaining dbccdb and for generating reports on the results of dbcc checkstorage operations.

For information on installing and using dbccdb, see Chapter 25, "Checking Database Consistency," in the System Administration Guide.

Client/server communication (the interfaces file)

Adaptive Server communicates with other Adaptive Servers, Open Server(TM) applications (such as Backup Server), and client software on your network. Clients can talk to one or more servers, and servers can communicate with other servers by remote procedure calls.

For Sybase products to interact with one another, each product needs to know where the others reside on the network. This information is stored in an interfaces file, named interfaces on UNIX platforms, located in the $SYBASE installation directory. After your Adaptive Server or client software is installed, it can connect with any server on the network that is listed in the interfaces file.

The interfaces file is like an address book. It lists the name and address of every known server. When you are using a client program, and you want to connect with a particular server, the client program looks up the server name in the interfaces file and connects to that server, as shown in Figure 1-1 . You can supply the name of the server by using the DSQUERY environment variable.

On TCP/IP networks, the port number gives clients a way to identify the Adaptive Server to which they want to connect. It also tells Adaptive Server where to listen for incoming connection attempts from clients. Adaptive Server uses a single port for these two services (referred to as query service and listener service).

On SPX networks, the socket number gives clients and servers a way to identify each other.

Figure 1-1: Communicating with a serverraster

During installation, you use the srvbuild utility to create a new server. The srvbuild process adds entries to the interfaces file for your new Adaptive Server, Backup Server, Monitor Server, and XP Server.

For instructions on using dsedit or dscp to modify interfaces file entries or to create new interfaces file entries for existing servers, see Chapter 3, "Configuring the Operating System for Adaptive Server."

Changing Adaptive Server configuration

On UNIX platforms, you use sp_configure to change the configuration of Adaptive Server. To change the configuration of several servers, enter the sp_configure information in a script. For details on using sp_configure, see the System Administration Guide and the Adaptive Server Reference Manual.

For information about configuring languages, character sets, and sort orders, see Chapter 5, "Customizing Localization for Adaptive Server."

For information about configuring Adaptive Server to use high availability features, see Using Sybase Failover in a High Availability Environment.

For information about configuring Adaptive Server for distributed transaction management (two-phase commit), see the Distributed Transaction Management User's Guide.


About This Book [Table of Contents] Chapter 2 Starting

and Stopping Servers