Quick Search:
CODE
Oracle PL/SQL Code Library
JOBS
Find Or Post Oracle Jobs
FORUM
Oracle Discussion & Chat
 The Oracle PL/SQL INDEX Function      [Return To Index] Jump to:  
  Looking for the original pages? (formerly called "Morgan's Library") You can find them here.

Term: INDEX

Definition:
In Oracle, an INDEX is a database object intended to improve the performance of SELECT queries. Indexes are created on table columns, and the index stores all the values of the column under index segments. If the SELECT query uses an indexed column in any of the WHERE conditions, the query uses the index segment instead of performing a full table scan. This results in enhanced query performance. Much of the performance increase comes from reducing the overall amount of disk I/O needed to be done (by traversing the indexed path instead of a full table scan), resulting in less data being processed to complete the query.

Oracle provides several different types of indexes:

  1. B-tree indexes: these are the default, and by far the most common type of index.
  2. B-tree cluster indexes: specifically defined for cluster application use.
  3. Hash cluster indexes: intended for use with a hash cluster.
  4. Global and local indexes: these relate to partitioned tables and indexes.
  5. Reverse key indexes: most often used in Oracle RAC applications.
  6. Bitmap indexes: very compact indexes that generally work best for columns with a limited set of values (low cardinality)
  7. Function-based indexes: these contain the precomputed value of a specific function or expression

Indexes are a broad topic; understanding which, when and where to use them takes some research. For general information on indexes, please view the following pages:
  1. Oracle Indexes
  2. B*Tree Indexes
  3. Bitmap Indexes
  4. Descending Indexes
    Oracle treats descending indexes as if they were function-based indexes.
  5. Reverse Key Indexes
  6. Function Based Indexes
    To create a function-based index (FBI) in your own schema on your own table you must have the QUERY REWRITE system privilege.
  7. Invisible Indexes
  8. Virtual / No Segement Indexes
    These are not officially supported by Oracle but are used extensively by the OEM Grid Control.
  9. Compressed Indexes

Related Code Snippets:
 
Home      :      Code Library      :      Sponsors      :      Privacy      :      Terms of Use      :      Contact Us 144 users online    © 2009 psoug.org
PSOUG LOGIN
Username: 
Password: 
Forgot your password?