P. 1
Oracle 11g Nf 1.0

Oracle 11g Nf 1.0

|Views: 1,031|Likes:
Published by Ramu Spl

More info:

Published by: Ramu Spl on May 10, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

03/12/2013

pdf

text

original

Invisible index is an index that is not considered by the optimizer when creating the execution plans. This can be
used to test the effect of adding an index to a table on a query (using index hint) without actually being used by
the other queries.

Following are the commands to create an invisible index, change visibility of an existing index and obtaining
information about invisible indexes:

CREATE INDEX name_indx ON employees(emp_name) INVISIBLE;

SELECT /*+ index (EMP_NAME NAME_INDEX) */ ...

ALTER INDEX name_indx VISIBLE;

ALTER INDEX name_indx INVISIBLE;

SELECT INDEX_NAME, VISIBILITY FROM DBA_INDEXES WHERE INDEX_NAME='NAME_INDX';

When using invisible indexes, consider the following:
• If you rebuild an invisible index, the resulting operation will make the index visible.
• If you want the optimizer to consider the invisible indexes in its operation, you can set the new initialization
parameter OPTIMIZER_USE_INVISIBLE_INDEXES to TRUE (the default is FALSE). You can set the parameter
in the system and session levels.

Page 37

Oracle 11g New Features for Administrators - Summary Sheets

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->