This is a really nice feature, particulary for me, a development DBA. Essentially you can make an index invisible so the optimizer doesn't use this index. This is excellent testing new indexes. You don't need to spend the time waiting for an index to be recreated each time you want to compare the differences.
To make an index invisable then run:
sql> alter index <index name> INVISIBLE;
To make an index visible:
sql> alter index <index name> VISIBLE;
You can also make the optimizer use all invisible indexes by for the current session by:
sql> alter session set optimizer_use_invisible_indexes = true ;
Everything Changes
1 week ago