01.09.2016 Views

Beginning Oracle Database 11g Administration From Novice to Professional

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

136<br />

CHAPTER 7 PHYSICAL DATABASE DESIGN<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Index-Organized Tables<br />

Ordinary <strong>Oracle</strong> tables are often referred <strong>to</strong> as heaps because the data they contain is<br />

not sorted in any way; separate structures—indexes—are needed in order <strong>to</strong> identify<br />

the records of interest efficiently. The index- organized table (IOT) is a single structure<br />

that unites a table and an index for its primary key. No separate index for the primary<br />

key is necessary, because the table itself is structured exactly as if it were an index for<br />

the primary key; all the non- key data is s<strong>to</strong>red on the leaf blocks <strong>to</strong>gether with the key<br />

data. Indexes for other columns can be created in precisely the same way as indexes on<br />

ordinary tables.<br />

Index-organized tables have a number of advantages. The union of table and<br />

primary key index in a single structure results in increased efficiency of retrieval operations.<br />

Certain maintenance operations (such as the operation) can be performed<br />

on them without invalidating all the indexes. Finally, index- organized tables can offer<br />

dramatic performance improvements if the primary key is composed of multiple data<br />

items and the leading item partitions the data in a natural way, for example, the s<strong>to</strong>re<br />

name in a table that contains sales data. The performance improvement comes from<br />

the physical clustering of related data that naturally results, the increased likelihood<br />

of finding the required data in the buffer cache, and the consequent reduction in disk<br />

activity.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!