dbmaint(1)

NAME
dbmaint - Named Database maintenance utility

SYNOPSIS
dbmaint a[dd] -n<DBName> -l<Dictpath> [-d<Datapath> ... ] [-b] [-c=<codepage>] [-i] [-e] [-s<Security Mode>]
dbmaint d[elete] -n<DBName>
dbmaint l[ist] [-n<DBName>] [-a]
dbmaint m[odify] -n<DBName> -s<Security Mode>

DESCRIPTION
The dbmaint utility allows you to manage named databases. You can add, remove, modify, and display the current named databases in either a short or extended list.

OPTIONS

Command options:

a[dd]
    Add named database

d[elete]
    Delete named database

l[ist]
    List named databases

m[odify]
    Modifies named databases. You can only modify the security policy for a given named database.

Mode options:

-n<DBName>
    specify database name

-l<Dictpath>
    specify path to the directory containing dictionary files

-d<Datapath>
    specify path to the directory containing data files, can be used repeatedly

-b  create bound database

-c=<codepage>
    set the database code page. Zero specifies the server default (-c=0).

-i  create database with referential integrity (RI) enforced

-e  do not create dictionary files for database

-s<Security Mode>
    specify Btrieve security policy for database. Valid choices are: Classic, Mixed, Database. Use the m command to change security policies.

-a  show extended information about database

EXAMPLES

To add a new database name called 'MyNewDatabase':

dbmaint a -nNyNewDatabase

To modify the security policy for DefaultDB to 'Database':

dbmaint m -nDefaultDB -sDatabase

To create a database named “mydbase” with a database code page of CP932:

dbmaint a -nmydbase -c=CP932

For the same database, to set the code page to the default operating system code page:

dbmaint m -nmydbase -c=0

To see a list of valid code pages (specify an invalid code page and dbmaint returns a list of valid ones):

dbmaint m -nmydbase -c=xzy

Dbmaint returns something similar to the following:

Bad code page "xyz" should be: ASCII, ISO8859_1, CP437, CP1252, UTF-8, CP1250, CP1251, CP1253, CP1254, CP1255, CP1256, CP1257, CP1258, CP737, CP775, CP850, CP852, CP855, CP857, CP858, CP862, CP866, CP932, or EUCJP

SEE ALSO
Advanced Operations Guide for more information about database names, bound databases, referential integrity, and Btrieve security policies.

dsnadd(1)