2026-03-12 20:23:15

This commit is contained in:
root
2026-03-12 21:23:47 +01:00
parent eab4b36eca
commit 93039b8489
3332 changed files with 699614 additions and 0 deletions

49
csierra/cs_top.sql Normal file
View File

@@ -0,0 +1,49 @@
----------------------------------------------------------------------------------------
--
-- File name: ta.sql | t.sql | cs_top.sql
--
-- Purpose: Top Active SQL as per Active Sessions History ASH - last 1m
--
-- Author: Carlos Sierra
--
-- Version: 2021/08/17
--
-- Usage: Execute connected to PDB or CDB
--
-- Example: $ sqlplus / as sysdba
-- SQL> @cs_top.sql
--
-- Notes: *** Requires Oracle Diagnostics Pack License ***
--
-- Developed and tested on 12.1.0.2.
--
---------------------------------------------------------------------------------------
--
@@cs_internal/cs_primary.sql
@@cs_internal/cs_cdb_warn.sql
@@cs_internal/cs_set.sql
@@cs_internal/cs_def.sql
@@cs_internal/cs_file_prefix.sql
--
DEF cs_script_name = 'cs_top';
DEF cs_script_acronym = 'ta.sql | t.sql | ';
--
DEF cs_minutes = '1';
DEF cs_top = '30';
--
SELECT '&&cs_file_prefix._&&cs_script_name.' cs_file_name FROM DUAL;
--
@@cs_internal/cs_spool_head.sql
PRO SQL> @&&cs_script_name..sql
@@cs_internal/cs_spool_id.sql
--
@@cs_internal/cs_top_activity_internal.sql
@@cs_internal/cs_top_internal_foot.sql
--
PRO
PRO SQL> @&&cs_script_name..sql
--
@@cs_internal/cs_spool_tail.sql
@@cs_internal/cs_undef.sql
@@cs_internal/cs_reset.sql
--