Versions Compared

Key

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

A new option exists to reset the repositories in standby MultiPlatform from version Dbvisit Standby MP 11.4 . These commands will provide options to resetprovides 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. This option would completely remove all data and events, and the control center would be clean. You have to start by adding the configurations by importing them again.

...

  • Removes all repos

Before removing any repo files, all the current db files are backed up to <DBVISIT_BASE>/reset-backup directory.

  1. Dbvagentmanager

Code Block
[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

...

Code Block
[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

Code Block
./dbvagentmanger service stop
./dbvagentmanger service start

You can use the below commands for non-interactive mode

Code Block
dbvagentmanager reset-repo --level mirrors
dbvagentmanager reset-repo --level tasks-events
dbvagentmanager reset-repo --level factory-settings

2. Dbvcontrol

Code Block
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
Note

factory reset of dbvcontrol requires the reimport of DDC file

You can use the below commands for non-interactive mode

Code Block
dbvcontrol reset-repo --level mirrors
dbvcontrol reset-repo --level tasks-events
dbvcontrol reset-repo --level factory-settings