Questions And Answers

More Tutorials

Oracle Indexes

b-tree index

CREATE INDEX ord_customer_ix ON orders (customer_id);

By default, if we do not mention anything, oracle creates an index as a b-tree index. But we should know when to use it. B-tree index stores data as binary tree format. As we know that, index is a schema object which stores some sort of entry for each value for the indexed column. So, whenever any search happens on those columns, it checks in the index for the exact location of that record to access fast. Few points about indexing:

.To search for entry in the index, some sort of binary search algorithm used.

.When data cardinality is high, b-tree index is perfect to use.

.Index makes DML slow, as for each record, there should be one entry in the index for indexed column.

.So, if not necessary, we should avoid creating index.


In this page (written and validated by ) you learned about Oracle Indexes . What's Next? If you are interested in completing Oracle tutorial, your next topic will be learning about: Oracle Bitmap Index.

Incorrect info or code snippet? We take very seriously the accuracy of the information provided on our website. We also make sure to test all snippets and examples provided for each section. If you find any incorrect information, please send us an email about the issue:

Share On:

Mockstacks was launched to help beginners learn programming languages; the site is optimized with no Ads as, Ads might slow down the performance. We also don't track any personal information; we also don't collect any kind of data unless the user provided us a corrected information. Almost all examples have been tested. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. By using, you agree to have read and accepted our terms of use, cookies and privacy policy.