DBA Scripts
Oracle DBMS_FLASHBACK.ENABLE_AT_TIME: Session Flashback
Mar 12, 2026 / · 5 min read · Oracle Flashback DBMS_FLASHBACK Undo Management PL/SQL DBA Scripts Point-in-Time Recovery Database Administration ·Oracle DBMS_FLASHBACK Enable At Time: Session Flashback Guide Oracle's DBMS_FLASHBACK.ENABLE_AT_TIME is a powerful procedure that lets you travel back in time within your database session — letting you query data exactly as it existed at a specific past moment, without needing a full database restore. What This Code …
Read MoreOracle exp: Export Database with FLASHBACK_TIME
Mar 9, 2026 / · 5 min read · oracle flashback exp utility database backup point in time recovery parfile dba scripts oracle export ·Export an Oracle Database from a Point in Time Using FLASHBACK_TIME The Oracle exp utility supports a FLASHBACK_TIME parameter that lets a database administrator export a full database with all data consistent to a single point in time. This is critical for large, active databases where export duration may span minutes …
Read MoreOracle RMAN REPORT SCHEMA Command: Display Database Files
Feb 14, 2026 / · 5 min read · Oracle Database RMAN Database Administration Backup and Recovery Oracle Commands DBA Scripts Database Files Oracle RMAN Reporting dba_data_files dba_temp_files ·Oracle RMAN REPORT SCHEMA Command: Display Database Files Purpose The REPORT SCHEMA command is an essential Oracle RMAN (Recovery Manager) tool that displays comprehensive information about all database files in your Oracle database. This command provides database administrators with a quick view of the current …
Read MoreOracle RMAN Delete Obsolete - Remove Unneeded Backups
Feb 12, 2026 / · 6 min read · Oracle RMAN Database Backup Backup Management Database Administration Retention Policy Storage Management DBA Scripts ·Oracle RMAN Delete Obsolete - Remove Unneeded Backups The DELETE OBSOLETE command in Oracle RMAN (Recovery Manager) is a powerful maintenance tool that automatically removes backup files that are no longer needed for database recovery. This command helps database administrators manage storage space by deleting backups …
Read MoreOracle Data Guard Log Destinations Monitoring Script
Jan 4, 2026 / · 5 min read · Oracle Data Guard Database Monitoring SQL Scripts High Availability Backup Recovery DBA Scripts Oracle Views v$archive_dest_status v$archive_dest ·Oracle Database Log Destinations Monitoring Script for Data Guard Purpose This Oracle SQL script monitors all log destinations in a Data Guard configuration from the primary database. The query provides real-time information about archive log destinations, their status, operational modes, and standby redo log activity. …
Read MoreCheck Oracle Data Guard Standby Synchronization Status
Jan 3, 2026 / · 5 min read · v$log v$archive_dest_status Oracle Data Guard Standby Database Database Monitoring Oracle Views DBA Scripts Sequence Numbers Replication v$archived_log v$dataguard_stats ·How to Check Physical Standby Database Synchronization Physical standby databases in Oracle Data Guard need regular monitoring to ensure they stay synchronized with the primary database. The most effective way to check synchronization status is by comparing the current sequence number on the primary database with the …
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 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 MoreOracle Statspack: Automate Snapshots with spauto.sql
Sep 7, 2025 / · 3 min read · oracle database statspack performance monitoring automation dba scripts database tuning oracle administration job scheduling dba_jobs ·Oracle Statspack Automation: Scheduling Hourly Database Performance Snapshots Oracle Statspack automation provides database administrators with continuous performance monitoring capabilities through scheduled snapshot collection. The spauto.sql script enables automated hourly snapshots that capture essential database …
Read MoreOracle Statspack sppurge: Snapshot Purge Script Guide
Sep 2, 2025 / · 4 min read · oracle-database statspack performance monitoring database administration snapshot management storage optimization dba scripts oracle tuning ·Oracle Database Statspack Snapshot Purge Script: Complete Guide to sppurge Administration The Oracle Database @?/rdbms/admin/sppurge; command is a critical administrative script used to delete old Statspack snapshots and manage storage space in the PERFSTAT schema. This comprehensive guide explores the purpose, …
Read More