05.11.2015 Views

Apress.Expert.Oracle.Database.Architecture.9i.and.10g.Programming.Techniques.and.Solutions.Sep.2005

Create successful ePaper yourself

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

636<br />

CHAPTER 14 ■ PARALLEL EXECUTION<br />

Since we were using an 8KB blocksize, that shows a difference of about 462MB, or looking<br />

at it from ratio perspective, AUTOALLOCATE_TEST is about 70 percent the size of UNIFORM_TEST as<br />

far as allocated space goes. If we look at the actual used space,<br />

ops$tkyte@ORA10GR1> exec show_space('UNIFORM_TEST' );<br />

Free Blocks............................. 59,224<br />

Total Blocks............................ 204,800<br />

Total Bytes............................. 1,677,721,600<br />

Total MBytes............................ 1,600<br />

Unused Blocks........................... 0<br />

Unused Bytes............................ 0<br />

Last Used Ext FileId.................... 6<br />

Last Used Ext BlockId................... 9<br />

Last Used Block......................... 12,800<br />

PL/SQL procedure successfully completed.<br />

ops$tkyte@ORA10GR1> exec show_space('AUTOALLOCATE_TEST' );<br />

Free Blocks............................. 16<br />

Total Blocks............................ 145,592<br />

Total Bytes............................. 1,192,689,664<br />

Total MBytes............................ 1,137<br />

Unused Blocks........................... 0<br />

Unused Bytes............................ 0<br />

Last Used Ext FileId.................... 8<br />

Last Used Ext BlockId................... 41<br />

Last Used Block......................... 8<br />

PL/SQL procedure successfully completed.<br />

■Note The SHOW_SPACE procedure is described in the “Setting Up” section at the beginning of this book.<br />

we can see that if we take away the blocks on the freelist for UNIFORM_TEST—59,224 of them—<br />

the tables consume about the same amount of actual space, but the amount of space needed<br />

by the UNIFORM tablespace is considerably more. This is all due to the extent trimming that did<br />

not take place. It we look at UNIFORM_TEST, we see this clearly:<br />

ops$tkyte@ORA10GR1> select segment_name, extent_id, blocks<br />

2 from user_extents where segment_name = 'UNIFORM_TEST';<br />

SEGMENT_NAME EXTENT_ID BLOCKS<br />

--------------- ---------- ----------<br />

UNIFORM_TEST 0 12800<br />

UNIFORM_TEST 1 12800<br />

UNIFORM_TEST 2 12800<br />

UNIFORM_TEST 3 12800<br />

UNIFORM_TEST 4 12800

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

Saved successfully!

Ooh no, something went wrong!