Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
   
Virtual Index in Oracle




By felix thomas
Jun 12, 2006

Digg! digg!     Print    email to friend Email to Friend

Note: This article was written for educational purpose only. Please refer to the related vendor documentation for detail.




Download Free Confio Software

Virtual Index in Oracle
 

Virtual indexes is to simulate the existence of an index - without actually building a full index. Using Oracle Hidden Parameter.

To build a virtual index, runs the following statement:
 

SQL > CREATE unique INDEX index_name on table_name(col_name)       NOSEGMENT;


To use the index run the following statement:
 

SQL > ALTER SESSION SET \"_use_nosegment_indexes\" = TRUE;


To detect a virtual index in the database run the following sql (the se inde xes don\'t have any columns in
dba_ind_columns):
 

SQL > SELECT index_owner, index_name FROM dba_ind_columns
WHERE index_name NOT LIKE \'BIN$%\'
MINUS
SELECT owner, index_name
FROM dba_indexes;


Oracle has a special hidden \"nosegment\" clause to the create index syntax that allows you to create an index definition without actually creating the index.

 



Comments/Reviews on this article:
Rajesh  
Jun 18, 2006

Great Article Felix. This is good to know that you can create index without using segment. One thing I am not able to understand that where oracle keep metadata for this kind of index. Is it done during run time.

 
About author:

 

Please login to post your comments





  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software