Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 
 Home
 E-mail Us
 Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 

 
 
 

Tablespace size & initial extent size

Oracle Tips by Burleson Consulting
June 18, 2009

Question:  I see a mismatch between my “size” parameter and the actual extent size in a tablespace:

CREATE SMALLFILE
TABLESPACE "TEST2"
NOLOGGING
DATAFILE '/u02/oradata/ORCLBD/TEST2.dbf'
   SIZE 5M
   EXTENT MANAGEMENT LOCAL
   UNIFORM SIZE 3K
   SEGMENT SPACE MANAGEMENT MANUAL;


My extents will be uniform and each one with 3K, but if 1 extent is a set of contiguous blocks, so at least I should have 8k for my extent (1 data block in my database is 8k).  But a query against dba_extents shows this as 16k for my initial extents.  Why do I see 16k instead of 3k as specified?

Answer:  The initial size of a tablespace is also governed by the MINEXTENTS parameter.  In this case, you did not specify in your create tablespace syntax, so the default in dba_tablespaces takes effect.  The minimum blocks for any table is 2 blocks, one block for the segment header, and one minimum data block. 

To examine the size of existing tables, I recommend the Oracle datafile and tablespace scripts to see details:

- Oracle tablespace and data file internals scripts

In your case, you specify a value that is less than the database blocksize (8k), but Oracle cannot allocate less than one block (plus another block for the segment header), so you see 16k (8k * 2) for your initial tablespace size.

Robert Freeman notes from his book "Easy Oracle Jumpstart":

An extent is an uninterrupted (or contiguous) allocation of blocks within a segment. Extents are assigned to a segment automatically by Oracle, so you will rarely deal directly with an extent, rather you will deal directly with its associated segment (table or index).

An extent must be on contiguous blocks within a single datafile, so an extent cannot span multiple Oracle datafiles. Oracle will allocate the size of the extents based on the type of tablespace.




 

 

��  
 
 

 
 
 
 
oracle dba poster
 

 
 
Oracle performance tuning software 
 
Oracle Linux poster
 
 
 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright ? 1996 -  2014

All rights reserved by Burleson

Oracle ? is the registered trademark of Oracle Corporation.