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.
capamsc141
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.
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.
Review the script before you execute it.
This command has the following format:
dbmgr {-export|-e} {-l|-r} [-c className] [-f fileName]
- -export|-eExecutes the database export function of the dbmgr utility.
- -hDisplays the help for this function.
- -lExports the database in the current directory.This option assumes thePAM Server Controldaemons 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.
- -rExports the database currently being used byPAM Server Control. You must have the ADMIN or SERVER attribute, and thePAM Server Controldaemons must be running.
- -cclassNameDefines a space-separated list of classes which you want to export from the database.
- -ffileNameDirects 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.