System tables that manage storage  The sysusages table

Chapter 6: Overview of Disk Resource Issues

The sysdevices table

The sysdevices table in the master database contains one row for each database device and may contain a row for each dump device (tape, disk, or operating system file) available to Adaptive Server.

The disk init command adds entries for database devices to master..sysdevices. Dump devices, added using sp_addumpdevice, are discussed in Chapter 11, “Developing a Backup and Recovery Plan.”

sysdevices stores two names for each device:

Place a database or transaction log on one or more devices by specifying the logical name of the device in the create database or alter database statement. The log on clause to create database places a database’s transaction log on a separate device to ensure full recoverability. The log device must also have an entry in sysdevices before you can use log on.

A database can reside on one or more devices, and a device can store one or more databases. See Chapter 6, “Creating and Managing User Databases,” for information about creating databases on specific database devices.





Copyright © 2005. Sybase Inc. All rights reserved. The sysusages table

View this book as PDF