<< Back to previous view |
![]() |
[QA-65] ubGuard 4.0.0-4.0.1 Prerelease Commands Created: 19/Jan/22 Updated: 19/Jan/22 |
|
Status: | Closed |
Project: | Questions & Answers |
Fix Version/s: | None |
Type: | ubTools - ubGuard | Priority: | Major |
Reporter: | ubTools Support | Assignee: | ubTools Support |
Resolution: | Answered | Votes: | 0 |
Description |
This document explains ubGuard 4.0.0-4.0.1 prerelease commands. |
Comments |
Comment by ubTools Support [ 19/Jan/22 08:15 PM ] |
COMMANDS:
ubGuard executable is <UBGUARD_HOME>/bin/ubguard.sh (ubguard.bat for Windows). Prerequisite for all commands:
Setup: Prerequisites:
Usage: CMD> ubguard.sh setup Start: Prerequisites:
Usage: CMD> ubguard.sh start guard -d <ubguard_database_alias> Stop: Usage: CMD> ubguard.sh stop guard -d <ubguard_database_alias> Status: Prerequisites:
Usage: CMD> ubguard.sh status guard -d <ubguard_database_alias> Failover: Prerequisites:
Usage: CMD> ubguard.sh failover to <ubguard_database_alias> [-f] Default Failover: It is a failover without "-f" option. It applies archivelogs to standby database, activates standby database as primary database. It causes less data loss, but longer failover time. The alternative manual method by RMAN on standby: CMD> ubguard.sh stop guard -d <ubguard_database_alias> CMD> SET ORACLE_SID=<SID> CMD> rman target / RMAN> RECOVER DATABASE; RMAN> SQL 'ALTER DATABASE ACTIVATE STANDBY DATABASE'; RMAN> ALTER DATABASE OPEN; RMAN> EXIT; If the manual method is used, ubGuard setup must be run again to update ubGuard's catalog. Forced Failover: It is a failover with "-f" option. It doesn't apply archivelogs to standby database. It activates standby database as primary database. It causes more data loss, but less failover time. The alternative manual method by RMAN on standby: CMD> ubguard.sh stop guard -d <ubguard_database_alias> CMD> SET ORACLE_SID=<SID> CMD> rman target / RMAN> SQL 'ALTER DATABASE ACTIVATE STANDBY DATABASE'; RMAN> ALTER DATABASE OPEN; RMAN> EXIT; If the manual method is used, ubGuard setup must be run again to update ubGuard's catalog. Switchover: Prerequisites:
Usage: CMD> ubguard.sh switchover to <ubguard_database_alias> |