Performance =========== Displaying daily top SQL for last 7 days: @exadata/mon_topsql.sql ASH --- ASH Report for SQL ID: @ash/sqlid_activity.sql AWR --- Display Execution plan history from AWR: @awr_xplan Example: @awr_xplan h6hYfr4esZrz % 14 "and 1=1" Display SQL Text from AWR: @awr/awr_sqlid SQL Monitor ----------- List SQL Monitor reports based on a where clause: @sqlmon_lsrep.sql # @sqlmon_lsrep "x.session_id='303'" # @sqlmon_lsrep "x.sql_id='g9n768y28mu9m'" # @sqlmon_lsrep "x.sql_id='g9n768y28mu9m'" 6 asc SQL Monitor report detail: @sqlmon_detrep # @sqlmon_detrep 172 # @sqlmon_detrep 172 html # @sqlmon_detrep 172 active Run DBMS_SQLTUNE.REPORT_SQL_MONITOR (text mode) for session: @xp Run custom DBMS_SQLTUNE.REPORT_SQL_MONITOR: @xprof # Protect sql_id as in example: @xprof BASIC TEXT sql_id "'a4fqzw4mszwck'" Explain plan ------------ Display execution plan for last statement for this session from library cache: @x.sql @xb.sql Plan for library cache: @xi @xbi Plan for AWR: @xawr.sql Statistics ---------- Column stats details: @stats_col % % % % History of the optimizer statistic operations. Optionally filters on the start time in the format DD/MM/YYYY and the target name (which supports wildcards) @list_optstat_history.sql List STATS operations: @stats_opls # @stats_opls sysdate-14 sysdate BASIC TEXT # @stats_opls "timestamp'2023-01-12 14:00:00'" "timestamp'2023-02-12 14:00:00'" TYPICAL HTML Detail of a STATS operation: @stats_opdet # @stats_opdet 1482 # @stats_opdet 1482 TYPICAL HTML Trace activation ---------------- Display current trace file name: @t Activate/deactivate 10046 trace: @46on @46off Divers ------ Display SQL_ID and PHV for the last SQL: @hash Display SQL hint: @hint Database layout =============== Tablespaces ----------- @tbs % Redolog ------- Redolog informations @redolog Redolog switch history @perf_log_switch_history_count_daily_all.sql Oracle Directories @dba_directories Database links @dblinks.sql Table informations: @dba_table_info @tab . @tab_details Partition informations: @part_info.sql @tabpart . @tab_parts_summary @tab_parts Restore points: @restore_points Locks ===== Blocking locks tree RAC aware: @raclock Blocking Locks in the databases: @locks_blocking.sql @locks_blocking2.sql Undo ==== Active undo segments and the sessions that are using them: @undo_users.sql