import catalog
Restores the catalog configuration from the specified file, created using export catalog command.
Syntax
import catalog [-database catalog_db_name]
[-catpwd gsmcatusrpwd]
[-user gsmadminname[/password]]
sourceOptions
Table 2-51 GDSCTL import catalog Options
| Syntax | Description |
|---|---|
-catpwd gsmcatusrpwd |
GSMCATUSER password. |
—database catalog_db_name |
The connect identifier for the database in which to create catalog. |
source |
Name of a file on the same computer where the command is being executed. The configuration will be restored from this file. If the file is not readable, you will get an error. |
-user gsmadminname[/password] |
Credentials of the user that has the GDS administrator privileges on the catalog database. |
Usage Notes
If -database is not specified, the GDS catalog that the current global service manager is associated with will be used. The -catpwd option should be specified in case you need to perform cleanup of databases in the existing catalog that are not found in imported file.
When restoring to a new catalog database, catalog must be created first, using the create gdscatalog command.
You must connect to the catalog database as a user with GDS Administrator privileges before running this command.
The import procedure can be considered finished only when there are no pending requests after import. Use the config command to get the list of pending requests.
Example
Load the catalog backup from your home directory.
GDSCTL> import catalog /home/user/cat-201307.backup