Previous Topic: dbmgr -dump Function—Display Database InformationNext Topic: dbmgr -migrate Function—Copy Data to a Flat File


dbmgr -export Function—Create Script that Defines a Database

The dbmgr -export function replicates a database on other stations. It generates a script that consists of the selang commands required to define an existing database.

Note: You cannot copy database files from one architecture to another when using native commands (such as cp or tar on UNIX or copy on Windows), if the files do not use the same byte order. For example, you cannot copy a database from a Sparc-based machine to an Intel based machine, because each uses a different byte order.

Important! Review the script before you execute it.

This command has the following format:

dbmgr {-export|‑e} {-l|-r} [-c className] [-f fileName]
-export|-e

Executes the database export function of the dbmgr utility.

‑h

Displays the help for this function.

‑l

Exports the database in the current directory.

Note: This option assumes the CA ControlMinder daemons are not running. If the daemons are running, then it assumes you are operating on a different database from the one being used by the daemons.

‑r

Exports the database currently being used by CA ControlMinder. You must have the ADMIN or SERVER attribute, and the CA ControlMinder daemons must be running.

‑c className

Defines a space-separated list of classes which you want to export from the database.

‑f fileName

Directs output to the specified file, instead of the standard output device. You can then create a new database from the file, by instructing selang to read the commands from the file.