V$active_session_history
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 MoreOracle ASH Report: Generate with ashrpt.sql
Generate Active Session History ASH Report in Oracle Database Users say the application froze for four minutes at 10:42 and then recovered. An hourly AWR report will average that spike away. An Active Session History (ASH) report built for 10:40 to 10:50 shows which sessions, SQL statements and wait events were active …
Read MoreOracle Time Model Queries: v$sys_time_model Monitoring
Purpose The v$sys_time_model and v$sess_time_model views show where the database spends its time, in microseconds. The queries below list that time largest first, so a DBA can tune the largest time consumer first. Time model statistics measure DB time, which represents the total time spent in database calls by …
Read MoreMonitoring Temporary Tablespace Usage in Oracle Database
Jan 31, 2024 / · 6 min read · oracle sql-queries database-administration tablespace segments dba_segments dba_tablespaces v$session v$sort_usage v$tempseg_usage dba_temp_free_space v$active_session_history ·Lists the Contents of the Temporary Tablespace(s), Including Details About Each Temporary Object and Its Associated Session v$sort_usage is the view to open when TEMP fills up: it holds one row per temporary segment in use, with the user, the session, the tablespace and the blocks allocated. Whether the trigger is an …
Read More