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

Adaptive Server specifications [Table of Contents] Chapter 3 Sybase Software
Asset Management (SySAM)

Installation Guide Adaptive Server Enterprise for IBM RISC System/6000 AIX

[-] Chapter 2 Installation Requirements
[-] Adaptive Server devices and system databases

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.

master device

The master device contains the following databases:

sybsystemdb device and database

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

The sybsystemdb database is required to support distributed transaction management (DTM) features. Before installation, make sure you have enough space available on the default segment to support sybsystemdb.

See Chapter 8, "Upgrading Sybase Servers " for instructions on how to create the sybsystemdb device and sybsystemdb database.

For recovery purposes, Sybase recommends that you do not create other system or user databases or user objects on the master device.

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 following devices and databases are needed only if you configure Adaptive Server for optional functionality, like auditing or two-phase commit transactions.

sybsecurity device and database

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.

Install auditing using the auditinit utility. The sybsecurity device is created as part of the auditing installation process.

See Configuring Adaptive Server Enterprise for instructions on how to configure Adaptive Server for auditing.

The auditing system is discussed in more detail in the System Administration Guide.

Sample databases

The pubs2 and pubs3 databases are sample databases provided as a learning tool for Adaptive Server. The pubs2 sample database is used for most of the examples in the Adaptive Server documentation; other examples use the pubs3 database. Both are available in U.S. English versions of Adaptive Server.

The interpubs database contain French and German data. jpubs contains Japanese data.

For information about installing the sample databases, see "Installing sample databases ".

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

sybsyntax database

The syntax database, sybsyntax, contains syntax help for Transact-SQL commands, Sybase system procedures, Adaptive Server utilities, and Open Client routines. You can retrieve this information using the system procedure sp_syntax.

For example, to see the syntax of the Transact-SQL select command, enter:

sp_syntax "select"

Adaptive Server includes a script for creating the sybsyntax database.

For instructions on how to install sybsyntax, see "Installing online help for Transact-SQL syntax ".

For more information about sp_syntax, see the Reference Manual.

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 dbccdb see Chapter 25 of the System Administration Guide, "Checking Database Consistency."

dsync option on by default for database device files

The dsync option is used with the disk init and disk reinit commands. By default, Adaptive Server enables dsync for database device files. This option ensures that Adaptive Server can recover data from devices on file systems. However, dsync can cause a degradation in performance for device files that experience high write activity.

When you install a new 12.x Adaptive Server, by default dsync is set on for all devices.

When you upgrade a UNIX server that stores databases on UNIX file system devices, by default dsync is set:

See also, sp_deviceattr, and sp_helpdevice in the Reference Manual.

Determining the location, type, and size of a database device

Adaptive Server requires several database devices. Table 2-13 below shows baseline values for each of the devices. See the release bulletin for any last-minute changes to these values.

Adaptive Server database devices

Device

Purpose

Minimum size

Minimum recommended size

master

Stores system databases

14MB for 2K pages 27MB for 4K pages 50MB for 8K pages 105MB for 16K pages

30MB 60MB 120MB 240MB

sysprocsdev (also called the sybsystemprocs device)

Stores the sybsystemprocs database

100MB

100MB (plus any space for holding stored procedures that you have created)

sybsystemdb

Transaction processing

4MB

5 - 20MB

sybsecurity (optional)

Required for auditing

5MB

7MB; more for specialized auditing

For all databases you can use either a raw partition or a file.

Sybase Adaptive Server supports the database devices on NFS- and CIFS-mounted devices with Network Appliance Filers for storing data. Network appliance filers provide the same performance and data integrity as raw devices. There are no changes needed to the operating system or to Sybase Adaptive Server to use network appliance filers.

NFS mounted devices have been tested on Solaris, HP/UX, IBM AIX, Windows NT, Linux, and SGI.

Previous versions of Adaptive Server performed buffered writes to file devices, which does not ensure recoverability. Starting in version 12.0, the default for writes to file systems is unbuffered, so files are now acceptable as database devices.

You may need to repartition the disk you choose. Contact your operating system administrator for assistance.

When preparing a raw partition device, follow these guidelines:

To determine whether a device is a block device or a character device, run this command on the /dev directory:

ls -l

"b" (block) or "c" (character) appears in the left-most column.

Choosing a raw partition
  1. Determine which raw partitions are available.

  2. Determine the sizes of the raw partitions.

  3. From the list of available raw partitions, select a raw partition for each device, based on the size recommendations in Table 2-13.

  4. Verify that the device is a character device.

  5. Verify with the operating System Administrator that the partition you have chosen is available.

  6. Make sure the "sybase" user has read and write privileges to the raw partition.

    For more information on choosing a raw partition, see your operating system documentation.


Adaptive Server specifications [Table of Contents] Chapter 3 Sybase Software
Asset Management (SySAM)