#!/bin/bash clear cat <<'EOF' ██████╗██╗ ██╗██╗ ██╗ █████╗ ██████╗ ██████╗ ██████╗ ██╗ ██╗██████╗ ██╔════╝╚██╗ ██╔╝██║ ██║ ██╔══██╗ ██╔════╝ ██╔══██╗██╔═══██╗██║ ██║██╔══██╗ ██║ ╚████╔╝ ██║ ██║ ███████║ ██║ ███╗██████╔╝██║ ██║██║ ██║██████╔╝ ██║ ╚██╔╝ ██║ ██║ ██╔══██║ ██║ ██║██╔══██╗██║ ██║██║ ██║██╔═══╝ ╚██████╗ ██║ ███████╗███████╗██║ ██║ ╚██████╔╝██║ ██║╚██████╔╝╚██████╔╝██║ ╚═════╝ ╚═╝ ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ DBVISIT GAP AUTO-RECOVERY TOOL Author : Leonardo Lopes Position : CEO Company : Cylla Group Website : https://cylla.group Blog : https://blog.dbahero.com Version : 1.0 Purpose: Automatic detection and recovery of Archive Log Gaps using Oracle RMAN and Dbvisit Standby. EOF echo CONFIG="cylla" ORACLE_SID="cylla" export ORACLE_HOME="/u01/app/oracle/product/19.0.0/dbhome_1" export DBVISIT_HOME=/usr/dbvisit/standbymp export PATH=$ORACLE_HOME/bin:$PATH:$DBVISIT_HOME/bin ORAENV_ASK=NO . oraenv >> /dev/null START_TIME=$(date '+%Y-%m-%d %H:%M:%S') echo "====================================================" echo "Dbvisit Gap Auto-Recovery" echo "Started at : $START_TIME" echo "Configuration : $CONFIG" echo "Oracle SID : $ORACLE_SID" echo "====================================================" DB_ROLE=$(sqlplus -s / as sysdba < "$RMAN_CMD" <