Home

About Me Contact Me Oracle12cSIG(IOUG)
 
Home  :: Quick-Script

Database Tablespace FreeSpace

0 Comments

Query for Database Tablespace Free Space

set pagesize 100;
set linesize 200;
col file_name format a50;
select a.tablespace_name,a.bytes MB_used,b.bytes MB_free,round(((a.bytes-b.bytes)/a.bytes)*100,0) percent_used
from (select tablespace_name,ceil(sum(bytes/1024/1024)) bytes from dba_data_files group by TABLESPACE_NAME) a, (select
tablespace_name,ceil(sum(bytes/1024/1024)) bytes from dba_free_space group by tablespace_name) b
where a.tablespace_name=b.tablespace_name order by round(((a.bytes-b.bytes)/a.bytes)*100,0) desc;

Posted on : 2/21/2014 by Anuj
 
Comments
No comment found.
 


Add Your Comments
 
Name :
Email :
Comments :

 

 
 
  Archives
 
  Recent Posts

IOUG Collaborate 17
Posted on :   3/25/2017

Create Oracle Database 12c R2 (12.2) in Cloud in around 1 hour
Posted on :   11/13/2016

Changing sysman password in EM cloud control 12c
Posted on :   11/9/2016

  Recent Comments
 

Home  |  About Me  |  Contact  |  Oracle12cSIG(IOUG)

All Rights Reserved 2013 Oracle-12c