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 14 DATABASE MAINTENANCE 311<br />

The tables and indexes will have <strong>to</strong> be rebuilt <strong>to</strong> reclaim space—several methods are<br />

available for the purpose. Tables and indexes that have a lot of wasted space are au<strong>to</strong>matically<br />

identified by the Au<strong>to</strong>matic Segment Advisor, which runs au<strong>to</strong>matically during the<br />

nightly maintenance window; sample results are shown in Figure 14-1.<br />

Figure 14-1. Au<strong>to</strong>matic Segment Advisor<br />

Alternatively, you can conduct your own investigation of wasted space, using the<br />

procedure. Listing 14-1 shows a sample run; we see that 1161 blocks are<br />

empty.<br />

Listing 14-1. An Example of the Procedure

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

Saved successfully!

Ooh no, something went wrong!