add file

Adds the contents of a file to the catalog which can be used by subsequent GDSCTL commands.

Syntax

add file -file file_name 
         -source local_filename

Options

Table 2-7 GDSCTL add file Options

Option Description
-file file_name

Specify the name of the file object to add.

-source local_filename

Specify an operating system file name specifying a file local to the machine running GDSCTL.

Usage Notes

This command creates a named file object in the catalog and associates the contents of an operating system file with that object by opening the file and storing its contents in the catalog. If the contents of the operating system file change, the MODIFY FILE command can be used to reload the contents into the catalog.

If the specified file object already exists, the command returns an error.

Examples

Add a file named east_region_db_params from the local source file /tmp/dbca_params.txt

GDSCTL> add file -file east_region_db_params -source /tmp/dbca_params.txt