Oracle Scripts
How to Check Oracle Database Role Using V$DATABASE View
Jan 1, 2026 / · 3 min read · Oracle Data Guard DBA SQL Query Database Administration V$DATABASE Standby Database Primary Database ·How to Check Oracle Database Role Using V$DATABASE View Purpose The SQL query SELECT database_role FROM v$database is a fundamental Oracle Database command used to determine the current operational role of a database instance. This query is essential for Database Administrators (DBAs) working with Oracle Data Guard …
Read MoreOracle Data Guard Standby Redo Log Query: Groups and Members
Jan 1, 2026 / · 10 min read · Oracle Database Data Guard Standby Logs SQL Scripts Database Administration Redo Logs Oracle Views DBA Tools v$standby_log v$logfile ·List All Standby Redo Logs in Oracle Data Guard Purpose A switchover attempted on a busy Friday afternoon reveals the gap: the standby has been synchronized for months, but no standby redo log group was sized to match the primary's 500 MB online redo logs. The configuration worked fine for the archived-log transport …
Read MoreOracle Data Guard: Stop Broker with ALTER SYSTEM
Nov 29, 2025 / · 5 min read · Oracle Database Data Guard Database Administration Oracle Broker SQL Commands Database Management Oracle DBA Backup and Recovery ·How to Stop Oracle Data Guard Broker Using ALTER SYSTEM Command Purpose The command ALTER SYSTEM SET dg_broker_start=false stops the Oracle Data Guard broker by shutting down the Data Guard monitor (DMON) background process. This command is essential when you need to disable broker management temporarily for …
Read MoreOracle Enable FAL Tracing on Primary Database
Nov 28, 2025 / · 4 min read · Oracle Database Data Guard Backup and Recovery Database Administration Troubleshooting Archive Logs FAL Redo Transport ·Oracle Enable FAL Tracing on Primary Database Purpose Enabling FAL (Fetch Archive Log) tracing on the primary database helps database administrators monitor and troubleshoot archive log gap resolution between primary and standby databases in Oracle Data Guard environments. This command activates detailed trace logging …
Read MoreHow to Disable and Enable Oracle Archive Log Destinations
Nov 27, 2025 / · 8 min read · Oracle Database Data Guard Archive Log DBA Commands Database Administration Standby Database Oracle Backup Database Maintenance ·How to Disable and Enable Oracle Archive Log Destinations Purpose Coordinating redo shipping around a standby maintenance window is an operational task every Data Guard DBA runs into: the standby is about to go down for patching, storage work, or a network change, and the primary database needs to keep generating and …
Read MoreCheck Missing Archive Logs in Oracle Data Guard
Nov 26, 2025 / · 3 min read · Oracle Data Guard Database Administration Standby Database Archive Logs Replication Troubleshooting SQL Query v$archive_gap v$archived_log v$managed_standby ·Check Missing Archive Logs in Oracle Data Guard Standby Database Purpose This SQL query helps database administrators identify missing archive logs on an Oracle Data Guard standby database. When archive logs fail to transfer from the primary to the standby database, it creates gaps that prevent proper synchronization. …
Read MoreTroubleshooting Oracle Data Guard FAL and Physical Logfile Registration Issues Oracle Data Guard environments sometimes encounter issues when the Fetch Archive Log (FAL) process fails to automatically transfer missing archive logs to standby databases. When FAL reports that a log is already registered or cannot …
Read MoreRegister Missing Log File in Oracle Data Guard Database
Oct 26, 2025 / · 6 min read · Oracle Database Data Guard Archive Logs Physical Standby Database Recovery DBA Scripts Gap Resolution Log Management V$ARCHIVED_LOG v$managed_standby ·Register Missing Log File in Oracle Database The ALTER DATABASE REGISTER PHYSICAL LOGFILE command is used to manually register archived redo log files in an Oracle Data Guard environment, specifically for physical standby databases. This command becomes essential when automatic log registration fails or when gaps occur …
Read MoreCancel Oracle Data Guard Managed Recovery
Oct 25, 2025 / · 5 min read · oracle data guard database recovery standby database mrp sql commands database administration backup recovery V$MANAGED_STANDBY ·How to Cancel Oracle Data Guard Managed Recovery Overview The ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL command stops the Managed Recovery Process (MRP) on an Oracle Data Guard physical standby database. This command is essential when you need to perform maintenance operations, open the database in …
Read MoreRemoving Standby Database Apply Delay in Oracle Data Guard
Oct 24, 2025 / · 3 min read · Oracle Data Guard Database Administration Standby Database High Availability Disaster Recovery SQL Commands Database Recovery v$dataguard_stats v$managed_standby ·Removing Standby Database Apply Delay in Oracle Data Guard Purpose This script removes the apply delay from an Oracle Data Guard physical standby database. Apply delays are safety features that create a time lag between when redo data arrives at the standby database and when it is applied, protecting against corrupted …
Read More