Scripts
Cancel 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 MoreOracle Data Guard Standby Database Startup Commands
Oct 23, 2025 / · 6 min read · Oracle Data Guard Standby Database Database Recovery High Availability Backup DBA SQL Commands v$archive_dest_status v$database ·Oracle Data Guard Standby Database Startup Commands Oracle Data Guard standby database startup commands enable database administrators to initialize and maintain physical standby databases that provide disaster recovery and high availability for production systems. These three essential commands work together to bring …
Read MoreOracle ASH Report: Generate with ashrpt.sql
Oct 3, 2025 / · 6 min read · Oracle Database Performance Tuning ASH Reports Database Monitoring SQL Scripts Diagnostics AWR Session Analysis V$ACTIVE_SESSION_HISTORY ·Generate Active Session History ASH Report in Oracle Database The Active Session History (ASH) report is a powerful diagnostic tool that helps database administrators analyze performance issues by capturing detailed snapshots of active database sessions every second. This report provides granular insights into what …
Read MoreOracle Time Model Queries: v$sys_time_model Monitoring
Oracle Time Model Queries: System and Session Performance Monitoring Purpose Oracle time model queries provide database administrators with powerful tools to measure and analyze where time is spent within the database system. These queries use two essential dynamic performance views that track accumulated time for …
Read MoreOracle: Enable or Disable GATHER_STATS_JOB
Oct 1, 2025 / · 4 min read · oracle database dbms scheduler statistics gathering performance tuning database administration pl/sql optimizer statistics maintenance tasks dbms_scheduler ·Enable or Disable Oracle GATHER_STATS_JOB for Automatic Statistics Collection The GATHER_STATS_JOB is a critical Oracle Database scheduled job that automatically collects optimizer statistics to ensure the database query optimizer generates efficient execution plans. This job is enabled by default when creating a new …
Read MoreHow to Remove an Oracle AWR Baseline Using DROP_BASELINE
Sep 30, 2025 / · 4 min read · Oracle AWR Database Performance DBA PL/SQL Performance Tuning Baseline Management Workload Repository dba_hist_baseline dba_hist_snapshot ·How to Remove an Oracle AWR Baseline Using DROP_BASELINE Purpose The DROP_BASELINE procedure removes a previously-defined AWR (Automatic Workload Repository) baseline from an Oracle database. This command is essential for database administrators who need to conserve storage space by deleting unused or outdated …
Read MoreOracle AWR Baseline with DBMS_WORKLOAD_REPOSITORY
Sep 29, 2025 / · 6 min read · Oracle Database AWR Performance Tuning Database Monitoring PL/SQL DBA Scripts Baseline Management Performance Analysis DBMS_WORKLOAD_REPOSITORY dba_hist_baseline ·Oracle AWR Create Baseline for Performance Monitoring DBMS_WORKLOAD_REPOSITORY.CREATE_BASELINE What is Oracle AWR Create Baseline The DBMS_WORKLOAD_REPOSITORY.CREATE_BASELINE procedure creates a baseline by preserving a specific range of AWR snapshots for future performance comparisons. A baseline protects performance …
Read MoreList All Oracle AWR Baselines Using DBA_HIST_BASELINE
Sep 28, 2025 / · 5 min read · Oracle AWR Performance Tuning Database Administration SQL Scripts Baseline Management Performance Monitoring DBA DBA_HIST_BASELINE ·List All Oracle AWR Baselines Using DBA_HIST_BASELINE This SQL script retrieves all AWR baselines stored in an Oracle Database, displaying critical information about each baseline including its identifier, name, and associated snapshot range. AWR baselines preserve specific periods of database performance statistics …
Read MoreOracle AWR Manual Snapshot: DBMS_WORKLOAD_REPOSITORY
Sep 27, 2025 / · 5 min read · Oracle Database AWR Performance Tuning Database Administration PL/SQL Monitoring Troubleshooting Database Optimization dbms_workload_repository dba_hist_snapshot ·How to Manually Take an AWR Snapshot in Oracle Database with dbms_workload_repository.create_snapshot What is Oracle AWR Snapshot Creation? Creating a manual AWR snapshot in Oracle Database allows database administrators to capture performance statistics at specific points in time, providing precise data for …
Read More