Difference between Cluster and Non-cluster index?

Answer Posted / hannan

First, you must understand what a cluster is in Oracle.

A cluster is simply a method for storing more then 1 table
on the same block. Normally
-- a block contains data for exactly 1 table. In a cluster
-- you have data from many
tables sharing the same block.

For example -- if you join the data from EMP and DEPT by
DEPTNO frequently -- you might
consider clustering this data by DEPTNO. In that fashion
all of the rows from EMP for
deptno=10 and the row in DEPT for deptno=10 will reside on
the same exact block (one IO
to get all of the data instead of some IO's to EMP and DEPT).

In order to organize data in such an object, we create a
cluster KEY -- deptno in our
above example. We must index this cluster key. This index
on deptno in the cluster is
called a CLUSTER INDEX and is used to locate the blocks that
contain data about deptno=10

Is This Answer Correct ?    21 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are secondary xml indexes?

668


What is explicit mode in sql server?

622


Where the sql logs gets stored? : sql server database administration

600


Data is not being delivered to subscribers, what can be the possible reasons? : sql server replication

644


How to rename an existing table with the "sp_rename" stored procedure in ms sql server?

635






Describe triggers features and limitations?

594


What is explicit cursors?

638


What is query and its types?

603


What is constraints and its types?

574


How you can get the list of largest tables in a database?

613


What is the purpose of update statistics and scope_identity() function?

706


How to convert a numeric expression from one data type to another?

609


How can i Relate Tables in SSIS

689


What types of replication are supported in sql server?

654


What is a database table?

609