The smsap repository update command
This command updates the repository that stores database profiles and associated credentials when you upgrade SnapManager. Any time you install a new version of SnapManager, you must run the repository update command before you can use the new version. You are able to use this command only if there are no incomplete commands in the repository.
Syntax
smsap repository update -repository -dbname repo_service_name -host repo_host -login -username repo_username -port repo_port [-force] [-noprompt] [-quiet | -verbose]
Parameters
-
-repositoryThe options that follow
-repositoryspecify the details of the database for the repository. -
-dbname repo_service_nameSpecifies the name of the database that stores the repository. Use either the global name or the SID.
-
-host repo_hostSpecifies the name or IP address of the host computer the repository database runs on.
-
-loginStarts the repository login details.
-
-username repo_usernameSpecifies the user name needed to access the database that stores the repository.
-
-port repo_portSpecifies the TCP port number used to access the database that stores the repository.
-
-forceAttempts to force the update of the repository. SnapManager prompts you to make a backup of the current repository before updating.
-
-nopromptDoes not display the prompt before updating the repository database. Using the
-nopromptoption ensures the prompt does not appear, making it easier to update repositories using a script. -
-quietDisplays only error messages on the console. The default is to display error and warning messages.
-
-verboseDisplays error, warning, and informational messages on the console.
Example command
The following example updates the repository in the SALESDB database.
smsap repository update -repository -dbname SALESDB -host server1 -login -username admin -port 1521