Home » RDBMS Server » Server Administration » Help!!!! Need to know used or unused space for a schema
Help!!!! Need to know used or unused space for a schema [message #57059] Sat, 17 May 2003 19:58 Go to next message
sidd
Messages: 130
Registered: May 2003
Senior Member
I need to know used or unused space for a schema, i have oracle 817 any help is appreciated
thanks.
Re: Help!!!! Need to know used or unused space for a schema [message #57062 is a reply to message #57059] Sun, 18 May 2003 06:41 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
actually u need to lookinto the tablespace that is assigned to the schema.
please have a look here
http://orafaq.com/scripts/sql/tsspace.txt
Re: Help!!!! Need to know used or unused space for a schema [message #57063 is a reply to message #57062] Sun, 18 May 2003 08:48 Go to previous messageGo to next message
sidd
Messages: 130
Registered: May 2003
Senior Member
Thanks Mahesh
Re: Help!!!! Need to know used or unused space for a schema [message #57069 is a reply to message #57059] Mon, 19 May 2003 09:03 Go to previous messageGo to next message
Michel Bartov
Messages: 35
Registered: February 2003
Member
I posted an integrated set of GUI tools to manage, monitor and tune the Oracle database. One of the many functions is to display schema tablespaces free/used space. The link is http://www.barsoft.net
Re: Help!!!! Need to know used or unused space for a schema [message #57077 is a reply to message #57062] Mon, 19 May 2003 12:32 Go to previous message
Sanjay
Messages: 236
Registered: July 2000
Senior Member
Nice little script there.

Here is the same with a little fine tuning. (Still based on the SQL from Balaji)
==
tti "Space Usage for Database"
set pagesize 55

col total_mb format 9,999,999.99
col used_mb format 9,999,999.99
col free_mb format 9,999,999.99
col free_% format 999.9

SELECT substr(total.name,1,25) tablspace_name,
       total_mb, 
       (total_mb-free_mb) used_mb, 
       free_mb,
       (free_mb/total_mb)*100 "FREE_%"
FROM
  (select tablespace_name, sum(bytes/1048576) free_mb
     from sys.dba_free_space
    group by tablespace_name
  ) Free,
  (select b.name,  sum(bytes/1048576) total_mb
     from sys.v_$datafile a, sys.v_$tablespace b
    where a.ts# = b.ts#
    group by b.name
  ) Total
WHERE free.tablespace_name = total.name
/

tti off

Previous Topic: Diff between Global database name(DB_NAME) and SID(INSTANCE_NAME)
Next Topic: Oracle Server Configuration (Urgent)
Goto Forum:
  


Current Time: Fri Sep 20 02:43:06 CDT 2024