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.

140<br />

CHAPTER 7 PHYSICAL DATABASE DESIGN<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Interval Partitioning<br />

One difficulty with partitioning by mono<strong>to</strong>nically increasing data items such as dates is<br />

that new partitions have <strong>to</strong> be periodically added <strong>to</strong> the table; this can be accomplished<br />

using the clause of the command. Interval partitioning eliminates<br />

this difficulty by having <strong>Oracle</strong> au<strong>to</strong>matically create new partitions as necessary.<br />

The example of the previous section can be rewritten as illustrated in Listing 7-4. Only<br />

one partition called is initially created. New partitions are au<strong>to</strong>matically created<br />

by <strong>Oracle</strong> as necessary when data is inserted in<strong>to</strong> the table.<br />

Listing 7-4. Example of Interval Partitioning

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

Saved successfully!

Ooh no, something went wrong!