Indexes in Oracle

Source: Internet
Author: User

Indexes in Oracle

In a relational database, an index is a database structure that is related to a table and is another important schema object other than a table. An index is a helper object that is built on one or more columns of a table to increase the speed of data access in the table.

Another way of representing data at index time, which provides a different order of data than the physical storage of data on disk. It rearranges the physical location of the data so that its value is a list of ordered key values, and each key value is a pointer to the table row, so that it is arranged so that its search becomes more efficient.

If a primary key constraint is defined in the table, and no index exists on the primary key column, Oracle automatically creates one.

The index types commonly used in Oracle are: B-tree index, reverse key index, bitmap index, function-based index, cluster index, global index, and local index.

The syntax for creating an index is as follows:

CREATE unique| Btimap INDEX<schema>.<index_name>On<schema>.<table_name>(<column_name>|<expression>asc| DESC,<column_name>|<expression>asc|    DESC,...) Tablespace<tablespace_name>STORAGE<storage_settings>Logging| Nologging COMPUTE STATISTICS nocompress| COMPRESS<nn>Nosort| REVERSE patition| GLOBAL patition<patition_setting>;

Indexes in Oracle

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.