-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathDBA Index Columns.sql
More file actions
37 lines (36 loc) · 1.21 KB
/
DBA Index Columns.sql
File metadata and controls
37 lines (36 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*************************************************************************/
/* */
/* (c) 2010-2024 Enginatics GmbH */
/* www.enginatics.com */
/* */
/*************************************************************************/
-- Report Name: DBA Index Columns
-- Description: None
-- Excel Examle Output: https://www.enginatics.com/example/dba-index-columns/
-- Library Link: https://www.enginatics.com/reports/dba-index-columns/
-- Run Report: https://demo.enginatics.com/
select
dic.table_owner,
dic.table_name,
dic.index_owner,
decode(di.index_type,'NORMAL',null,di.index_type) index_type,
dic.index_name,
xxen_util.meaning(decode(di.uniqueness,'UNIQUE','Y'),'YES_NO',0) unique_,
dic.column_name,
dic.column_position,
do.created
from
dba_indexes di,
dba_ind_columns dic,
dba_objects do
where
1=1 and
di.owner=dic.index_owner and
di.index_name=dic.index_name and
di.owner=do.owner(+) and
di.index_name=do.object_name(+) and
do.object_type(+)='INDEX'
order by
dic.table_name,
dic.index_name,
dic.column_position