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 


 

 

 


 

 

 

 
 

Computing Oracle percent (%) used for tablespaces

Oracle Database Tips by Donald Burleson

 

Question:  I hear that in Oracle10g it is no longer necessary to compute the % usage for tablespaces and datafiles.  How do you get the percent used in Oracle 10g?

 

Answer: Oracle provides numerous DBA views to show the percent used for Oracle objects:

 

  • gv$filespace_usage RAC view

  • v$filespace_usage view

  • dba_tablespace_usage_metrics view

  • dba_hist_tbspc_space_usage AWR table

 

Inside dba_tablespace_usage_metrics

 

The most useful for computing the percent used for tablespaces ids the dba_tablespace_usage_metrics view, which has pre-computed used_space and used_percent columns:

 

Column Name Unit Description
TABLESPACE_NAME String Name of the PERMANENT, TEMPORARY, or UNDO tablespace
USED_SPACE Blocks Used space, in blocks
TABLESPACE_SIZE Blocks Total data file space, in blocks
USED_PERCENT Percentage USED_SPACE / TABLESPACE_SIZE * 100
 

A query to display tablespaces with greater than 90 percent usage might look something like this:

select
   tablespace_name,
   used_percent
from
   dba_tablespace_usage_metrics
where
   used_percent > 90;

For computing space usage over time, you cannot beat the dba_hist_tbspc_space_usage table.  This AWR table allows you to compute a historical trend for tablespace growth, and use the data in a linear regression to predict when your tablespaces will extend. 

For more details on doing time-series analysis of space requirements, see my book "Oracle Tuning: The Definitive Reference".  In addition to complete explanations, it has dozens of working scripts in the instance code depot download.


 

 

��  
 
 
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.