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

View File

@@ -0,0 +1,14 @@
-- -----------------------------------------------------------------------------------
-- File Name : https://oracle-base.com/dba/19c/auto_index_config.sql
-- Author : Tim Hall
-- Description : Displays the auto-index configuration for each container.
-- Requirements : Access to the CDB views.
-- Call Syntax : @auto_index_config
-- Last Modified: 04/06/2019
-- -----------------------------------------------------------------------------------
COLUMN parameter_name FORMAT A40
COLUMN parameter_value FORMAT A40
SELECT con_id, parameter_name, parameter_value
FROM cdb_auto_index_config
ORDER BY 1, 2;

View File

@@ -0,0 +1,26 @@
-- -----------------------------------------------------------------------------------
-- File Name : https://oracle-base.com/dba/19c/auto_indexes.sql
-- Author : Tim Hall
-- Description : Displays auto indexes for the specified schema or all schemas.
-- Requirements : Access to the DBA views.
-- Call Syntax : @auto_indexes (schema-name or all)
-- Last Modified: 04/06/2019
-- -----------------------------------------------------------------------------------
SET VERIFY OFF LINESIZE 200
COLUMN owner FORMAT A30
COLUMN index_name FORMAT A30
COLUMN table_owner FORMAT A30
COLUMN table_name FORMAT A30
SELECT owner,
index_name,
index_type,
table_owner,
table_name
table_type
FROM dba_indexes
WHERE owner = DECODE(UPPER('&1'), 'ALL', owner, UPPER('&1'))
AND auto = 'YES'
ORDER BY owner, index_name;