Oracle Scripts
Audit RMAN Backup Job History with V$RMAN_BACKUP_JOB_DETAILS
Sep 22, 2026 / · 11 min read · Oracle DBA RMAN Backup Job Monitoring RMAN Backup History Backup Auditing Oracle Administration RMAN Reporting V$ Dynamic Views v$rman_backup_job_details v$rman_output ·Audit RMAN Backup Job History with V$RMAN_BACKUP_JOB_DETAILS Purpose V$RMAN_BACKUP_JOB_DETAILS is the one dynamic view built specifically at the job level rather than the piece or file level. Where other RMAN views report on individual datafile backups or individual backup set pieces, this view collapses an entire …
Read MoreWatch Long-Running SQL in Real Time with V$SQL_MONITOR
Watch Long-Running SQL in Real Time with V$SQL_MONITOR Purpose An AWR report describes what happened over the last hour. A SQL trace file describes what happened after the statement has already finished writing it. V$SQL_MONITOR answers a different question: what is running right now, and how far along is it. …
Read MoreRedefine a Table Online with DBMS_REDEFINITION, No DML Blocking
Redefine a Table Online with DBMS_REDEFINITION, No DML Blocking Purpose A DBA moving a table to a new tablespace, adding compression, or rebuilding a badly fragmented segment has one hard requirement: users can't lose access to that table while the change is happening. For decades the available tools — CREATE TABLE AS …
Read MoreGet the Actual Execution Plan with DBMS_XPLAN.DISPLAY_CURSOR
Sep 13, 2026 / · 10 min read · Oracle DBA DBMS_XPLAN DISPLAY_CURSOR Execution Plans GATHER_PLAN_STATISTICS Cursor Cache SQL Tuning Oracle Performance V$SQL_PLAN v$sql ·Get the Actual Execution Plan with DBMS_XPLAN.DISPLAY_CURSOR Purpose EXPLAIN PLAN never runs the statement it describes. It asks the optimizer what it would do, based on statistics and cardinality estimates, and prints that guess — which is exactly why a query that looks fine in EXPLAIN PLAN can still run slow in …
Read MoreManage the Recycle Bin with DBA_RECYCLEBIN
Sep 6, 2026 / · 9 min read · Oracle DBA DBA_RECYCLEBIN Recycle Bin PURGE Statement Flashback Table Dropped Objects USER_RECYCLEBIN Oracle Administration ·Manage the Recycle Bin with DBA_RECYCLEBIN Purpose Where does a table actually go the instant DROP TABLE runs? Not straight to disk deallocation. Since Oracle Database 10g, a dropped table is renamed and moved into the recycle bin instead of being physically removed, and it stays there, fully intact, until something …
Read MoreMove a Datafile Online with ALTER DATABASE MOVE DATAFILE
Aug 28, 2026 / · 10 min read · Oracle DBA ALTER DATABASE Move Datafile Online Datafile Move OMF Oracle 12c Datafile Management Oracle Administration dba_data_files v$datafile ·Move a Datafile Online with ALTER DATABASE MOVE DATAFILE Purpose Oracle 12.1 closed a gap that had existed since the earliest releases: moving or renaming a datafile always meant taking something offline first. A DBA had three choices — switch the tablespace offline, switch the individual datafile offline, or shut the …
Read MoreFlush the Shared Pool and Buffer Cache with ALTER SYSTEM
Flush the Shared Pool and Buffer Cache with ALTER SYSTEM Purpose Where DBMS_SHARED_POOL.PURGE removes one cursor or one package from the library cache, ALTER SYSTEM FLUSH SHARED_POOL clears every parsed statement, stored procedure, function, package, and trigger cached in the shared pool at once — a blunt instrument …
Read MoreReview Job Run History with DBA_SCHEDULER_JOB_RUN_DETAILS
Review Job Run History with DBA_SCHEDULER_JOB_RUN_DETAILS Purpose A stuck job that fails silently overnight rarely announces itself. The next morning's dependent process just doesn't have the data it expected, and by then the only trace of what actually happened lives in the Scheduler's own run log. …
Read MoreLocate the Alert Log and Trace Files with V$DIAG_INFO
Aug 3, 2026 / · 11 min read · Oracle DBA V$DIAG_INFO Alert Log ADR Trace Files Automatic Diagnostic Repository Oracle Administration Diagnostic Data DIAGNOSTIC_DEST gv$diag_info ·Locate the Alert Log and Trace Files with V$DIAG_INFO Purpose Before Oracle 11g, finding the alert log meant knowing the value of BACKGROUND_DUMP_DEST and constructing the filename by hand. 11g replaced that parameter, along with USER_DUMP_DEST and CORE_DUMP_DEST, with a single DIAGNOSTIC_DEST parameter and moved every …
Read MoreKill and Disconnect Oracle Sessions with ALTER SYSTEM
Jul 20, 2026 / · 10 min read · Oracle DBA ALTER SYSTEM Kill Session Disconnect Session V$SESSION Oracle Administration Session Termination ORA-00031 ·Kill and Disconnect Oracle Sessions with ALTER SYSTEM Purpose V$SESSION exposes the SID and SERIAL# pair that both ALTER SYSTEM KILL SESSION and ALTER SYSTEM DISCONNECT SESSION require as their targeting key — a DBA cannot terminate a stuck session without pulling that pair first, and getting it wrong means terminating …
Read More