Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can we add comments on index in oracle?

I have one index in oracle say "TEMP_INDEX" and i want to add one comment on it like "OBSOLETE" so that i can ignore this index for further processing.

Can we do this? or is there any other way to do this.

Here the aim is, i just want to mark index in some way so that it won't be considered for further processing. Here the constraint is, i can't delete that index.

like image 696
seetendra Avatar asked Nov 14 '25 16:11

seetendra


1 Answers

You can simply disable the index by

alter index TEMP_INDEX invisible

OR as you mentioned that you don't want the system to consider that index for further processing you can use NO INDEX hint in your query

Referenced from ORACLE GUIDE ->

SELECT /*+ NO_INDEX(employees emp_empidx) */ employee_id 
  FROM employees 
  WHERE employee_id > 200; 
like image 79
Pirate X Avatar answered Nov 17 '25 08:11

Pirate X



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!