Export a Database Definition (dbdefExport)
The dbdefExport
command exports an existing database definition object from the model, typically to a specified file.
ttGridAdmin dbdefExport name [filepath]
Options
The dbdefExport
command has the options:
Option | Description |
---|---|
|
Name of the database definition to export. |
|
Path and name of the database definition file to create, typically a Important: If you specify an existing file, it will be overwritten. |
Examples
This example exports the database definition created in the dbdefCreate
example above to the file database1.dbdef
.
% ttGridAdmin dbdefExport database1 /sw/tten/grid/dbdefs/database1.dbdef
Resulting contents of database1.dbdef
:
# DbDef GUID BCC6AB97-FDC2-4453-AEBC-5BFCAA57EA52 Exported 2017-12-06 19:05:03 [database1] DataStore=/disk/databases/database1 DatabaseCharacterSet=AL32UTF8 LogDir=/disk2/logs PermSize=256 TempSize=128 connections=100 durability=0
Notes
-
The database definition is exported in
odbc.ini
format, as shown in the example, withattribute
=
value
on each line. -
A typical use case is if you want to modify a database definition, but the original database definition file is no longer available.