Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Usage

Code Block
usage: refreshdbmeta [options]

This command is used to refresh the metadata for existing Database profiles.

  Options:
    -p, --profile   		State a specific profile to be refreshed. 
							The name should be entered in the following format: 
							Folder.ProfileName 
							If no profile is set, all existing profiles will be refreshed. 
                            Default: []
    -v, --verbose           More detailed output from the refreshdbmeta command.
                            Default: []

This command is used to refresh the metadata for existing Database profiles.

Options

Option

Description

[-p, --profile]

This option can be used if you want to state a specific profile to be refreshed. If this option is not used, all profiles will be refreshed.

[ -v --verbose ]

Use this flag for detailed output from the refreshdbmeta command.

Info

...

Example - Using the -v flag

Code Block
$ mzsh <username>/<password> refreshdbmeta -v

Output:

Code Block
Database profile <db_profile> metadata has been refreshed
 Added table: mzadmin.table1
 Added procedure: mzadmin.procedure1
 Removed table: mzadmin.table2
 Removed procedure: mzadmin.procedure2
Execution has been completed

Return codes

Listed below are the different return codes for the refreshdbmeta command:

Code

Description

0

Will be returned if the metadata was successfully refreshed.

1

Will be returned if the stated profile is not valid or could not be found.