Dbvisit Standby MP 11.4 provides the repository repair utility for dbvagentmanger and dbvcontrol. There are three reset levels by which you can reset the repositories.
Mirror copies of the repository under ($DBVISIT_BASE/standbymp/db/mirrors)
Tasks and events from the specific server
Factory reset. Removes all repos
Before removing any repo files, all the current db files are backed up to <DBVISIT_BASE>/reset-backup directory.
Dbvagentmanager
[oracle@dbvel71 bin]$ ./dbvagentmanager reset-repo -h reset local repositories Usage: dbvagentmanager reset-repo [flags] Flags: -h, --help help for reset-repo --level string Reset levels: mirrors, tasks-events, factory-setting
Reset from agentmanager:
Choose the option to reset
[oracle@dbvel71 bin]$ ./dbvagentmanager reset-repo ? Are you sure you want to reset local repositories? Yes ? Reset level: [Use arrows to move, type to filter] > mirrors tasks and events factory settings [oracle@dbvel71 bin]$ ./dbvagentmanager reset-repo ? Are you sure you want to reset local repositories? Yes ? Reset level: mirrors Backing up current repositories to /usr/dbvisit/standbymp/reset_backup [oracle@dbvel71 bin]$
Restart Dbvagentnager services to load the process with new repo
./dbvagentmanger service stop ./dbvagentmanger service start
You can use the below commands for non-interactive mode
dbvagentmanager reset-repo --level mirrors dbvagentmanager reset-repo --level tasks-events dbvagentmanager reset-repo --level factory-settings
2. Dbvcontrol
dbvcontrol reset-repo ? Are you sure you want to reset local repositories? Yes ? Reset level: [Use arrows to move, type to filter] > mirrors tasks and events factory settings
factory reset of dbvcontrol requires the reimport of DDC file
You can use the below commands for non-interactive mode
dbvcontrol reset-repo --level mirrors dbvcontrol reset-repo --level tasks-events dbvcontrol reset-repo --level factory-settings