Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: sql question
Rob,
You are right of course.
Igor Neyman, OCP DBA
ineyman_at_perceptron.com
-----Original Message-----
From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of R Zijlstra
Sent: Friday, April 02, 2004 1:32 AM
To: oracle-l_at_freelists.org
Subject: RE: sql question
Igor,
I think it should be:
select SUBSTR(hint, INSTR(hint,' ') + 1, LENGTH(hint) - INSTR(hint,' ')
-
1),
count(*)
from dba_outline_hints
where hint like '%INDEX%'
GROUP BY (SUBSTR(hint, INSTR(hint,' ') + 1, LENGTH(hint) - INSTR(hint,'
')
- 1));
--List of indices not used:
Select index_name
from user_indexes
where index_name not in (
Select distinct SUBSTR(hint, INSTR(hint,' ') + 1, LENGTH(hint) - INSTR(hint,' ') - 1)
from dba_outline_hints where hint like '%INDEX%' )
(INSTR changed)
Rob
![]() |
![]() |