01.09.2016 Views

Beginning Oracle Database 11g Administration From Novice to Professional

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER 7 PHYSICAL DATABASE DESIGN 143<br />

<br />

<br />

Composite Partitioning<br />

<strong>Oracle</strong> offers the ability <strong>to</strong> further divide a partition in<strong>to</strong> subpartitions using different criteria;<br />

this can make sense if a table is very large. In Listing 7-7, we first create one partition<br />

for each month (using the interval partitioning method) and then create subpartitions for<br />

each state.<br />

Listing 7-7. Example of List Partitioning<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Local and Global Indexes<br />

Partitioning a table does not eliminate the need for any of its indexes. However, we must<br />

make a design choice for each index; indexes on partitioned tables can be either local<br />

or global. A local index is itself partitioned in exactly the same way as its table; one need<br />

only specify the clause when creating the index <strong>to</strong> au<strong>to</strong>matically create the necessary<br />

partitions for the use of the index. Local indexes are most suitable when the query<br />

specifies the partitioning criterion; they also promote partition independence; that is, they<br />

preserve our ability <strong>to</strong> perform maintenance operations on a partition without impacting

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

Saved successfully!

Ooh no, something went wrong!