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

Free Oracle Tips

HTML Text

 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   


 

 

 


 

 

 
 


dba_hist_tablespace_stat tips

Oracle Tips by Burleson Consulting

June 12, 2010

 
Question:  I want to be able to report on database growth.  What is the dba_hist_tablespace_stat table and is there a STATSPACK equivalent for measuring database size changes over time?

Answer:  The AWR table dba_hist_tablespace_stat table keeps a historical track of tablespace size at each snapshot time, and it can be used for rudimentary growth tracking.  However, using this table requires purchasing of thousands of dollars worth of extra-cost packs from Oracle (the performance pack and diagnostic pack).

Another problem with dba_hist_tablespace_stat is that it only shows tablespace sizes and it does not give you the table-level detail that you need for a meaningful growth report:

        Most recent database object counts and sizes

DB_NAME   TAB_COUNT IDX_COUNT     TAB_BYTES        IDX_BYTES                
--------- --------- --------- ------------- ----------------                 
prod          2,861     6,063 1,659,969,536    1,349,140,480                
          --------- --------- ------------- ----------------                
Total         2,861     6,063 1,659,969,536    1,349,140,480                


                  Database size change
        comparing the most recent snapshot dates

DB_NAME       OLD_BYTES        NEW_BYTES           CHANGE                   
--------- ------------- ---------------- ----------------                   
prod      2,873,147,392    3,009,110,016      135,962,624                   
          ---------------- ---------------- ----------------
Total     2,873,147,392    3,009,110,016      135,962,624   


Oracle AWR also has the dba_hist_seg_stat table for tracking segment size over time, but it also has limitations for reporting Oracle database growth.


A better approach to Oracle size tracking


You can create a custom STATSPACK extension table to track database growth, an easy and cheap alternative to the extra-cost packs required to run queries against the AWR DBA_HIST tables.

Creating STATSPACK extension tables to hold gworth information per table and index is easy.  See these notes for tracking Oracle database growth.

 
 
  Guarantee your Success!

Oracle is the world's most complex, robust and flexible database, considered impossible to master without a mentor.

That's why all BC Oracle trainers are working professionals, experts in Oracle who share their tips and secrets.



 

 

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 -  2012 

All rights reserved.

Oracle ? is the registered trademark of Oracle Corporation.


 

  
 

 
 
 
 
Oracle performance tuning software
 
 

 

 
 
 
Oracle performance Tuning 10g reference poster
 
 
 
Oracle training in Linux commands
 
Oracle training Excel
 
Oracle training & performance tuning books