You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
la.sql | l.sql | cs_latency.sql - Current SQL latency (elapsed time over executions)
lah.sql | lh.sql | cs_latency_hist.sql - Current and Historical SQL latency (cpu time over executions)
cs_sql_latency_histogram.sql - SQL Latency Histogram (elapsed time over executions)
cs_sql_perf_long_executions.sql - SQL Executions longer than N seconds
cs_dg_redo_dest_resp_histogram_chart.sql - Data Guard (DG) REDO Transport Duration Chart
cs_dg_redo_dest_resp_histogram_report.sql - Data Guard (DG) REDO Transport Duration Report
Load
ta.sql | t.sql | cs_top.sql - Top N Active SQL as per recent (AAS) Average Active Sessions (text report)
aa.sql | cs_ash_analytics.sql - Poor-man's version of ASH Analytics for all Timed Events (Average Active Sessions AAS)
ma.sql | cs_max_ash_analytics.sql - Poor-man's version of ASH Analytics for all Timed Events (Maximum Active Sessions MAS)
cpu.sql | cs_cpu_demand.sql - Poor-man's version of ASH Analytics for CPU Demand (ON CPU + Scheduler)
aas.sql | cs_average_active_sessions.sql - Average Active Sessions (ASH Analytics on dbc_active_session)
mas.sql | cs_maximum_active_sessions.sql - Maximum Active Sessions (ASH Analytics on dbc_active_session)
cs_timed_event_top_consumers_pie.sql - Top contributors of a given Wait Class or Event (pie chart)
cs_timed_event_top_consumers_report.sql - Top contributors of a given Wait Class or Event (text report)
cs_osstat_cpu_load_chart.sql - CPU Cores Load as per OS Stats from AWR (time series chart)
cs_osstat_cpu_busy_chart.sql - CPU Cores Busyness as per OS Stats from AWR (time series chart)
cs_osstat_cpu_report.sql - CPU Cores Load and Busyness as per OS Stats from AWR (time series report)
cs_top_pdb_chart.sql - Top PDBs as per use of CPU Cores, Disk Space or Sessions (time series chart)
cs_top_pdb_tps_chart.sql - Top PDBs as per TPS (time series chart)
cs_pdb_cpu_iod_chart.sql - AAS on CPU percentiles for one PDB as per IOD metadata (time series chart)
SQL Performance
p.sql | cs_sqlperf.sql - Basic SQL performance metrics for a given SQL_ID
x.sql | cs_planx.sql - Execution Plans and SQL performance metrics for a given SQL_ID
tc.sql | cs_top_chart.sql - Top SQL as per some SQL Statistics Computed Metric (time series chart)
tr.sql | cs_top_report.sql - Top SQL as per some SQL Statistics Computed Metric (text report)
tsh.sql | cs_sqlstat_hist_top_report.sql - SQL Statistics History (AWR) - Top SQL Report
tsm.sql | cs_sqlstat_mem_top_report.sql - SQL Statistics Current (MEM) - Top SQL Report
ssc.sql | cs_sqlstat_chart.sql - SQL Statistics for a SQL set (time series chart)
cs_sqltext.sql - SQL Text for a given SQL_ID
pm.sql | cs_planm.sql - Execution Plans in Memory for a given SQL_ID
ph.sql | cs_planh.sql - Execution Plans in AWR for a given SQL_ID
dc.sql - Display Cursor Execution Plan. Execute this script after one SQL for which you want to see the Execution Plan
dp.sql - Display Plan Table Explain Plan. Execute this script after one EXPLAIN PLAN FOR for a SQL for which you want to see the Explain Plan
cs_sqlmon_hist.sql - SQL Monitor Report for a given SQL_ID (from AWR)
cs_sqlmon_mem.sql - SQL Monitor Report for a given SQL_ID (from MEM)
cs_sqlmon_duration_chart.sql - SQL Monitor Reports duration for a given SQL_ID (time series chart)
cs_sqlmon_capture.sql - Generate SQL Monitor Reports for given SQL_ID for a short period of time
cs_sqlmon_binds.sql - SQL Monitor Binds for given SQL_ID
cs_sqlmon_top_binds.sql - SQL Monitor Top Binds for given SQL_ID
cs_sql_bind_capture.sql - SQL Bind Capture for given SQL_ID
cs_binds.sql - Binds for a given SQL_ID
cs_sql_sessions.sql - Recent and Active Sessions executing a SQL_ID
cs_sql_perf_concurrency.sql - Concurrency Histogram of SQL with more than N Concurrent Sessions
cs_sql_perf_high_aas.sql - SQL with AAS per hour for a given Timed Event higher than N (time series text report)
cs_purge_cursor.sql - Purge Cursor(s) for SQL_ID using DBMS_SHARED_POOL.PURGE and SQL Patch
ZAPPER
z.sql | cs_spbl_zap.sql - Zap a SQL Plan Baseline for given SQL_ID or entire PDB or entire CDB
zl.sql | cs_spbl_zap_hist_list.sql - SQL Plan Baseline - Zapper History List
zr.sql | cs_spbl_zap_hist_report.sql - SQL Plan Baseline - Zapper History Report
zi.sql | cs_spbl_zap_ignore.sql - Add SQL_ID to Zapper white list (Zapper to ignore such SQL_ID)
zd.sql | cs_spbl_zap_disable.sql - Disable ZAPPER on CDB
ze.sql | cs_spbl_zap_enable.sql - Enable ZAPPER on CDB
SPBL - SQL Plan Baselines
cs_spbl_create.sql - Create a SQL Plan Baseline for given SQL_ID
cs_spbl_drop.sql - Drop one or all SQL Plan Baselines for given SQL_ID
cs_spbl_list.sql - Summary list of SQL Plan Baselines for given SQL_ID
cs_spbl_plan.sql - Display SQL Plan Baseline for given SQL_ID
cs_spbl_enable.sql - Enable one or all SQL Plan Baselines for given SQL_ID
cs_spbl_disable.sql - Disable one or all SQL Plan Baselines for given SQL_ID
cs_spbl_accept.sql - Accept one or all SQL Plan Baselines for given SQL_ID
cs_spbl_fix.sql - Fix one or all SQL Plan Baselines for given SQL_ID
cs_spbl_unfix.sql - Unfix one or all SQL Plan Baselines for given SQL_ID
cs_spbl_stgtab.sql - Creates Staging Table for SQL Plan Baselines
cs_spbl_stgtab_delete.sql - Deletes Staging Table for SQL Plan Baselines
cs_spbl_pack.sql - Packs into staging table one or all SQL Plan Baselines for given SQL_ID
cs_spbl_unpack.sql - Unpacks from staging table one or all SQL Plan Baselines for given SQL_ID
cs_spbl_expdp.sql - Packs into staging table one or all SQL Plan Baselines for given SQL_ID and Exports such Baselines using Datapump
cs_spbl_impdp.sql - Imports from Datapump file into a staging table all SQL Plan Baselines and Unpacks from staging table one or all SQL Plan Baselines for given SQL
cs_spbl_meta.sql - SQL Plan Baseline Metadata for given SQL_ID
cs_spbl_failed.sql - List of SQL Plans with: "Failed to use SQL plan baseline for this statement"
cs_spbl_corrupt.sql - List of Corrupt SQL Plans with: missing Plan Rows from sys.sqlobj$plan
cs_spbl_purge_outdated.sql - Purge Outdated SQL Plan Baselines
create_spb_from_awr - Create SQL Plan Baselin from AWR Plan (legacy script)
create_spb_from_cur - Create SQL Plan Baseline from SQL Cursor (legacy script)
spm_backup.sql - Create DATAPUMP backup of SQL Plan Management (SPM) Repository for one PDB
SPCH - SQL Patches
cs_spch_first_rows.sql - Create a SQL Patch with FIRST_ROWS for given SQL_ID, and drops SQL Profile and SQL Plan Baselines
cs_spch_scan_create.sql - Create a SQL Patch for slow KIEV performScanQuery without Baselines, Profiles and Patches
cs_spch_create.sql - Create a SQL Patch for given SQL_ID
cs_spch_drop.sql - Drop all SQL Patches for given SQL_ID
cs_spch_list.sql - Summary list of SQL Patches for given SQL_ID
cs_spch_plan.sql - Display SQL Patch Plan for given SQL_ID
cs_spch_enable.sql - Enable one or all SQL Patches for given SQL_ID
cs_spch_disable.sql - Disable one or all SQL Patches for given SQL_ID
cs_spch_stgtab.sql - Creates Staging Table for SQL Patches
cs_spch_pack.sql - Packs into staging table one or all SQL Patches for given SQL_ID
cs_spch_unpack.sql - Unpack from staging table one or all SQL Patches for given SQL_ID
cs_spch_xfr.sql - Transfers a SQL Patch for given SQL_ID
cs_spch_category.sql - Changes category for a SQL Patch for given SQL_ID
SPRF - SQL Profiles
cs_sprf_create.sql - Create a SQL Profile for given SQL_ID
cs_sprf_drop.sql - Drop all SQL Profiles for given SQL_ID
cs_sprf_list.sql - Summary list of SQL Profiles for given SQL_ID
cs_sprf_plan.sql - Display SQL Profile Plan for given SQL_ID
cs_sprf_enable.sql - Enable one or all SQL Profiles for given SQL_ID
cs_sprf_disable.sql - Disable one or all SQL Profiles for given SQL_ID
cs_sprf_stgtab.sql - Creates Staging Table for SQL Profiles
cs_sprf_pack.sql - Packs into staging table one or all SQL Profiles for given SQL_ID
cs_sprf_unpack.sql - Unpack from staging table one or all SQL Profiles for given SQL_ID
cs_sprf_xfr.sql - Transfers a SQL Profile for given SQL_ID
cs_sprf_export.sql - Exports Execution Plans for some SQL_ID or all SQL in some PDBs, using SQL Profile(s)
cs_sprf_category.sql - Changes category for a SQL Profile for given SQL_ID
cs_sprf_verify_wf.sql - Verifies Current Execution Plan for some KIEV WF SQL in all PDBs
cs_sprf_verify_wf_flash.sql - Verifies Current Execution Plan for some KIEV WF SQL in all PDBs (flash version)
cs_sprf_implement_wf.sql - Implements (imports) Execution Plans for some KIEV WF SQL in some PDBs, using SQL Profile(s)
coe_xfr_sql_profile.sql - Transfer (copy) a SQL Profile from PDBx on CDBa into PDBy on CDBb (legacy script)
Sessions
ah.sql | cs_ash_awr_sample_report.sql - Detailed List of ASH samples from AWR
am.sql | cs_ash_mem_sample_report.sql - Detailed List of ASH Samples from MEM
a.sql | as.sql | cs_active_sessions.sql - Active Sessions including SQL Text and Exection Plan
cs_active_sessions_peaks_report.sql - Active Sessions - Peaks Report
cs_active_sessions_peaks_chart.sql - Active Sessions - Peaks Chart
cs_active_sessions_peaks_bubble.sql - Duration of Active Sessions in Concurrency contention - Peaks Bubble
cs_sessions.sql - Simple list of all current Sessions (all types and all statuses)
cs_sessions_hist.sql - Simple list of all historical Sessions (all types and all statuses)
cs_sessions_PCTL_by_machine.sql - Sessions Percentiles by Machine
cs_sessions_by_type_and_status_chart.sql - Sessions by Type and Status (time series chart)
cs_sessions_by_machine_chart.sql - Sessions by Machine (time series chart)
cs_sessions_age_by_machine_chart.sql - Session Age by Machine (time series chart)
cs_sessions_by_pdb_chart.sql - Sessions by PDB (time series chart)
cs_sess_mon.sql - Monitored Sessions
mysid.sql - Get SID and SPID of own Session
open_cursor.sql - Open Cursors and Count of Distinct SQL_ID per Session
session_undo.sql - Displays undo information on relevant database sessions (by Tim Hall)
Kill Sessions
cs_kill_sid.sql - Kill one User Session
cs_kill_sql_id.sql - Kill User Sessions executing some SQL_ID
cs_kill_root_blockers.sql - Kill Root Blocker User Sessions
cs_kill_machine.sql - Kill User Sessions connected from some Machine(s)
cs_kill_scheduler.sql - Kill User Sessions waiting on Scheduler (Resource Manager)
Blocked Sessions
cs_blocked_sessions_ash_awr_report.sql - Top Session Blockers by multiple Dimensions as per ASH from AWR (text report)
cs_blocked_sessions_by_state_ash_awr_chart.sql - Top Session Blockers by State of Root Blocker as per ASH from AWR (time series chart)
cs_blocked_sessions_by_machine_ash_awr_chart.sql - Top Session Blockers by Machine of Root Blocker as per ASH from AWR (time series chart)
cs_blocked_sessions_by_module_ash_awr_chart.sql - Top Session Blockers by Module of Root Blocker as per ASH from AWR (time series chart)
cs_blocked_sessions_by_sid_ash_awr_chart.sql - Top Session Blockers by SID of Root Blocker as per ASH from AWR (time series chart)
Locks
locks.sql | cs_locks.sql - Locks Summary and Details
cs_locks_mon.sql - Locks Summary and Details - Monitor
cs_wait_chains.sql - Wait Chains (text report)
Space Reporting
cs_df_u02_chart.sql - Disk FileSystem u02 Utilization Chart
cs_top_pdb_size_chart.sql - Top PDB Disk Size Utilization (time series chart)
cdb_tablespace_usage_metrics.sql - Application Tablespace Inventory for all PDBs