Oracle Performance
Query Historical ASH Beyond Memory with DBA_HIST_ACTIVE_SESS_HISTORY
Oct 7, 2026 / · 11 min read · Oracle DBA Active Session History AWR Retention ASH Sampling Oracle Performance dba_hist_active_sess_history v$active_session_history dbms_workload_repository ·Query Historical ASH Beyond Memory with DBA_HIST_ACTIVE_SESS_HISTORY Purpose Troubleshooting a performance spike after the fact is a different job than watching one happen live. By the time anyone opens a session the next morning to ask what was running during last night's batch window, the in-memory …
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 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 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 MoreCheck Redo Log Switch Frequency with V$LOG_HISTORY
Jul 12, 2026 / · 12 min read · Oracle DBA V$LOG_HISTORY Redo Log Log Switch Frequency Oracle Administration Dynamic Performance Views Redo Log Sizing Oracle Performance v$log ·Check Redo Log Switch Frequency with V$LOG_HISTORY Purpose How many times does the online redo log switch in a single hour, and does that number spike during the nightly batch window or stay flat around the clock? A redo log sizing decision made from a single "switches per day" total hides the answer to that question. …
Read MoreEnable a 10046 Trace for an Oracle Session
Jul 10, 2026 / · 14 min read · Oracle DBA SQL Trace 10046 Trace Performance Diagnostics ORADEBUG DBMS_MONITOR Oracle Performance Trace File v$diag_info v$process v$session ·Enable a 10046 Trace for an Oracle Session Purpose A 10046 trace returns wait events only if the level includes them. Enabling the trace at level 1 and then wondering why the file shows no waits is the most common 10046 mistake in production diagnosis — the output has elapsed times and call counts, but none of the db …
Read MoreCheck RESUMABLE_TIMEOUT and RESUMABLE Status in V$SESSION
Jun 19, 2026 / · 6 min read · Oracle DBA V$SESSION Resumable Space Allocation Oracle Administration Session Management Space Management Oracle Performance Dynamic Performance Views dba_resumable ·Check RESUMABLE_TIMEOUT and RESUMABLE Status in V$SESSION Purpose V$SESSION carries two columns that tell you whether a session can survive running out of space: RESUMABLE and the resumable timeout that governs it. When resumable space allocation is enabled, a statement that hits a space error — a full tablespace, a …
Read MoreMonitor PGA Aggregate Target with V$PGASTAT in Oracle
Jun 18, 2026 / · 10 min read · Instance Tuning Oracle DBA PGA Memory Management Oracle Performance v$pgastat v$sql_workarea_histogram v$pga_target_advice v$sql_workarea ·Monitor PGA Aggregate Target with V$PGASTAT in Oracle Purpose Is PGA_AGGREGATE_TARGET set high enough for the work the instance actually does? V$PGASTAT answers that question. It is the instance-level statistics view for the Program Global Area (PGA), the private memory that server processes use for work areas. Oracle …
Read MoreOracle AWR Snapshot Interval: modify_snapshot_settings
How to Change Oracle AWR Snapshot Interval to 30 Minutes using dbms_workload_repository.modify_snapshot_settings Purpose The Oracle Database Automatic Workload Repository (AWR) collects and stores performance statistics to help database administrators monitor and analyze database performance over time. The code …
Read MoreHow to Monitor Oracle Shared Pool Usage with V$SGASTAT
Aug 22, 2025 / · 2 min read · oracle database shared pool memory tuning dba scripts sql query oracle performance database monitoring administration v$sgastat ·How to Monitor Oracle Shared Pool Usage with V$SGASTAT Database Administrators (DBAs) frequently need to track memory allocation inside Oracle’s SGA (System Global Area), especially within the Shared Pool. Monitoring the shared pool helps identify memory fragmentation, excessive parsing, and potential memory-related …
Read More