Call for Oracle support & training (800) 766-1884
Free Oracle Tips

Home
Corporate Oracle Training
Custom Oracle Training
Oracle New Features Training
Advanced Oracle DBA Classes
Oracle Tuning Courses
Oracle Tips & Tricks
Oracle Training Links
Oracle Training Links
Oracle Training Links

We are top for USA Oracle Training Clients

 

Free Oracle Tips


 
HTML Text AOL

Free Oracle App Server Tips


 
HTML Text

Oracle support

Oracle training

Oracle tuning

Rednecks!

Remote Oracle

Custom Oracle Training

 

   
  Oracle Tips by Burleson

Chapter 6 Oracle Tablespace and File Internals Script

free_space_view.sql

--**********************************************
--
--   Copyright © 2003 by Rampant TechPress Inc.
--
--   Free for non-commercial use.
--   For commercial licensing, e-mail info@rampant.cc
--
-- *********************************************
 
rem FUNCTION: Create free_space view for use by freespc reports
rem
CREATE VIEW free_space
    (tablespace, file_id, pieces, free_bytes, free_blocks,
     largest_bytes,largest_blks, fsfi) AS
SELECT tablespace_name, file_id, COUNT(*),
    SUM(bytes), SUM(blocks),
    MAX(bytes), MAX(blocks),
    SQRT(MAX(blocks)/SUM(blocks))*(100/SQRT(SQRT(COUNT(blocks))))
FROM sys.dba_free_space
GROUP BY tablespace_name, file_id, relative_fno;
 
Here is a sample listing.
                        Free         Free      Biggest  Biggest
Average
Name
FSFI    #Files   Frag   Byte         Blk        Bytes     Blks   Percent
------- ------ ------ ------------ -------- ------------ -------- ------


The above text is an excerpt from:
 

Mike Ault’s Oracle Internals Monitoring & Tuning Scripts
 


http://www.rampant-books.com/book_2003_2_ault_internals.htm
 

See the Oracle script collection::
 


 

 
 
 

Oracle performance tuning book

 

 

Oracle performance tuning software

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

 

email BC:


Copyright © 1996 -  2014 by Burleson Inc. All rights reserved.

Oracle® is the registered trademark of Oracle Corporation.