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

 
 Home
 E-mail Us
 Oracle Articles
New 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 


 

 

 


 

 

   
 

Data Warehouse Alter Tables

Oracle Tips  by Burleson Consulting

The Data Warehouse Development Life Cycle

Oracle Features for the Data Warehouse

Tablespace Fragmentation

Here we see that the sales tablespace has been allocated to a physical file called /Data/ORACLE/sales/sales.dbf, created at a size of 500 MB. Assuming that all tables within this tablespace use default storage, they will be initially allocated at 500 K and will extend in chunks of 50 K.

But what happens if the tablespace gets full? Processing will cease against the tablespace, and the Oracle DBA must intervene to add another data file to the tablespace with the alter tablespace command:

ALTER TABLESPACE SALES
ADD DATAFILE ‘/Data/ORACLE/sales/sales1.dbf’
SIZE 200M REUSE;


Obviously, the DBA should carefully monitor tablespace usage so that tablespaces never fill, but Oracle version 7.2 and above offer an alternative that is especially useful for data warehouses. The AUTOEXTEND command can be used to allow a data file to grow automatically on an “as needed” basis. Here are the different permutations of this command:

ALTER DATABASE DATAFILE ‘/Data/ORACLE/sales/sales.dbf’ AUTOEXTEND ON;

ALTER DATABASE DATAFILE ‘/Data/ORACLE/sales/sales.dbf’ AUTOEXTEND MAXSIZE UNLIMITED;

ALTER DATABASE DATAFILE ‘/Data/ORACLE/sales/sales.dbf’ AUTOEXTEND MAXSIZE (500M);

ALTER DATABASE DATAFILE ‘/Data/ORACLE/sales/sales.dbf’ RESIZE (600M);


When tables fragment, additional I/O will be required to access the table data, since the disk must access blocks on two noncontiguous spots on the datafile. The following script in Listing 8.14 will detect all tablespaces whose tables have taken more than 10 extents. These tablespaces will become candidates for a reorganization:


This is an excerpt from "High Performance Data Warehousing", copyright 1997.

If you like Oracle tuning, you may enjoy the book Oracle Tuning: The Definitive Reference , with over 900 pages of BC's favorite tuning tips & scripts. 

You can buy it directly from the publisher and save 30%, and get instant access to the code depot of Oracle tuning scripts.


 
��  
 
 
Oracle Training at Sea
 
 
 
 
oracle dba poster
 

 
Follow us on Twitter 
 
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 -  2020

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.