refreshdbmeta
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: []
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 |
Example - Using the -v flag
$ mzsh <username>/<password> refreshdbmeta -v
Output:
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. |