SAND CDBMS Administration Guide
The SAND Enterprise Service Scripting Language

 

Previous Topic:
Working with Instances
Chapter Index
Next Topic:
Octopus Operations

 

Working with Databases


Creating a Database

MKDB

The MKDB command creates a SAND database file (database-name.n00) at a specified location If the database is to be run in Persistent (Time Travel) mode, include the -timetravel option flag in the command.

Syntax:

mkdb [-timetravel] database-name "database-path"


Removing a Database from the SAND Enterprise Service Registry

RMDB

The RMDB command removes the specified database name from the SAND Enterprise Service registry. This command does not affect the core database.

Syntax:

rmdb [-force] database-name

Options:

-force Suppresses prompts


Displaying Information About the Databases Registered with the SAND Enterprise Service

LSDB

The LSDB command lists the name(s) of and information about one database or all databases currently registered with the SAND Enterprise Service.

Syntax:

lsdb [-short] [-all] [-noheader] [-path] [-size] [-state] [-timetravel] [database-name]


Options:

-short

Show only database name and path

-all (default) Show all information (see descriptions below)
-noheader Show information without descriptive headers
-path Show path to the database primary (.n00) file
-size Show total size of the database
-state Show state of the database (mounted or dismounted)
-timetravel Indicate whether the database is configured for Time Travel operation
database-name Show information only about the specified database

 

Displaying Information About Database Drives

LSDRV

The LSDRV command lists information about the file drives for a specified database, or about all drives registered with the SAND Enterprise Service. For complete information about database drives, consult the SAND CDBMS Tools Reference Guide, chapter 1.

Syntax:

lsdrv [-short] [-all] [-noheader] [-files] [-maxsize] [-path] [-size] [database-name] [drive-number]


Options:

-short Show only the database name, drive number and path
-all (default) Show all information (see descriptions below)
-files Show number of files on the drive
-maxsize Show file size limit for the drive
-noheader Show information without descriptive headers
-path Show location path of the drive
-size Show total size of files on the the drive
database-name Show information only about drives of the specified database
drive-number Show information only about the specified drive number (note: database-name must also be specified)
 
Previous Topic:
Working with Instances
Chapter Index
Next Topic:
Octopus Operations