Message-Id: <10569.112874@fatcity.com> From: "Shockey, David" Date: Tue, 25 Jul 2000 08:56:42 -0500 Subject: RE: Free space script This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01BFF641.DE3DCD04 Content-Type: text/plain; charset="iso-8859-1" I don't remember where I got this script. From someone's website I imagine. Apologies to the author for not giving credit where due. cl buff cl colu cl break set linesize 100 set pagesize 60 set feedback off set verify off set pause off set timing off set echo off column a1 heading 'Tablespace' format a15 column a2 heading 'data File' format a45 column a3 heading 'Total|Space' format 9999.99 column a4 heading 'Free|Space' format 9999.99 column a5 heading 'Free|perc' format 9999.99 break on a1 on report compute sum of a3 on a1 compute sum of a4 on a1 compute sum of a3 on report compute sum of a4 on report select b.tablespace_name a1, a.file_name a2, a.avail a3, b.free a4, round(((free/avail)*100),2) a5 from (select substr(file_name,1,45) file_name, file_id, round(sum(bytes/(1024*1024)),3) avail from dba_data_files group by substr(file_name,1,45), file_id) a, (select tablespace_name, file_id, round(sum(bytes/(1024*1024)),3) free from dba_free_space group by tablespace_name, file_id) b where a.file_id = b.file_id order by 1, 2 -----Original Message----- From: cemail@sprintmail.com [mailto:cemail@sprintmail.com] Sent: Monday, July 24, 2000 6:35 PM To: Multiple recipients of list ORACLE-L Subject: Free space script Does anybody have a script that reports on total used, total free in MB(not bytes) and percentage free for tablespaces that they could send to me? ----- Sent using MailStart.com ( http://MailStart.Com/welcome.html ) The FREE way to access your mailbox via any web browser, anywhere! -- Author: INET: cemail@sprintmail.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). ------_=_NextPart_001_01BFF641.DE3DCD04 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: Free space script

I don't remember where I got this script.  From = someone's website I imagine.  Apologies to the author for not = giving credit where due.

cl buff
cl colu
cl break
set linesize 100
set pagesize 60
set feedback off
set verify off
set pause off
set timing off
set echo off
column a1 heading 'Tablespace' format a15
column a2 heading 'data File' format a45
column a3 heading 'Total|Space' format = 9999.99
column a4 heading 'Free|Space' format 9999.99
column a5 heading 'Free|perc' format 9999.99
break on a1 on report
compute sum of a3 on a1
compute sum of a4 on a1
compute sum of a3 on report
compute sum of a4 on report
select b.tablespace_name a1, a.file_name a2, a.avail = a3, b.free a4,
       = round(((free/avail)*100),2) a5
from (select substr(file_name,1,45) file_name, = file_id,
          &nb= sp;  round(sum(bytes/(1024*1024)),3) avail
      from   = dba_data_files
      group by = substr(file_name,1,45), file_id) a,
      (select = tablespace_name, file_id,
          &nb= sp;  round(sum(bytes/(1024*1024)),3) free
      from   = dba_free_space
      group by = tablespace_name, file_id) b
where a.file_id =3D b.file_id
order by 1, = 2         

-----Original Message-----
From: cemail@sprintmail.com [mailto:cemail@sprintmail.com]<= /FONT>
Sent: Monday, July 24, 2000 6:35 PM
To: Multiple recipients of list ORACLE-L
Subject: Free space script



Does anybody have a script that reports on total = used, total
free in MB(not bytes) and percentage free for = tablespaces that
they could send to me?

-----
Sent using MailStart.com ( http://MailStart.Com/welcome.html )
The FREE way to access your mailbox via any web = browser, anywhere!

--
Author:
  INET: cemail@sprintmail.com

Fat City Network Services    -- (858) = 538-5051  FAX: (858) 538-5051
San Diego, = California        -- Public Internet = access / Mailing Lists
---------------------------------------------------------------= -----
To REMOVE yourself from this mailing list, send an = E-Mail message
to: ListGuru@fatcity.com (note EXACT spelling of = 'ListGuru') and in
the message BODY, include a line containing: UNSUB = ORACLE-L
(or the name of mailing list you want to be removed = from).  You may