Oracle-Index Tablo indexleri ile ilgili bazı scriptler
22 Eylül 2010
Yorum yapın
Tables/Indexes
Here are some scripts related to Tables/Indexes .
Tabs w/ Questionable Inds
TABLES WITH QUESTIONABLE INDEX(ES) NOTES:
select TABLE_OWNER, TABLE_NAME, COLUMN_NAME from dba_ind_columns where COLUMN_POSITION=1 and TABLE_OWNER not in ('SYS','SYSTEM') group by TABLE_OWNER, TABLE_NAME, COLUMN_NAME having count(*) > 1
Tabs With More Than 5 Inds
TABLES WITH MORE THAN 5 INDEXES NOTES:
select OWNER, TABLE_NAME, COUNT(*) index_count from dba_indexes where OWNER not in ('SYS','SYSTEM') group by OWNER, TABLE_NAME having COUNT(*) > 5 order by COUNT(*) desc, OWNER, TABLE_NAME
Devamını oku...
Categories: Oracle