Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: DB Size

RE: DB Size

From: Smith, Ron L. <rlsmith_at_kmg.com>
Date: Fri, 03 May 2002 07:33:23 -0800
Message-ID: <F001.004574DD.20020503073323@fatcity.com>


Try this:

spool files.txt
set pagesize 60
set linesize 80
col name format a55 heading "Control Files" select name
from sys.v_$controlfile
/

col name format a22 heading "Dump / ARCH Files" col value format a55 heading "Location"
select name, value
from sys.v_$parameter
where name like '%archive_dest%'
or name like '%dump_dest%'
/

col group# format 99 heading Group
col status format a8 heading Status
col member format a55 heading "Redo Logs" col mb format 9999 heading MB
select a.group#,b.status,b.archived,a.member,round(b.bytes/1024000) mb from sys.v_$logfile a, sys.v_$log b
where a.group# = b.group#
/

set pagesize 60
set linesize 80
col status format a3 heading Sta

col Id        format 99  heading ID
col Mbyte     format 999999 heading MBYTE
col name      format a55 heading "Database Data Files"

break on report
compute sum of Mbyte on report

select F.file_id Id,
       F.file_name name,
       F.bytes/(1024*1024) Mbyte,
       decode(F.status,'AVAILABLE','OK',F.status) status
from sys.dba_data_files F
order by Id
/

spool off

-----Original Message-----
Sent: Friday, May 03, 2002 9:53 AM
To: Multiple recipients of list ORACLE-L

Hi all,
How could one collect data from an Oracle Server to respond to the question:

"How big is (what is the size of your) Database ?"

Thaking you,

---
CSW
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Simon Waibale
  INET: waibals_at_mtn.co.ug

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_at_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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Smith, Ron L.
  INET: rlsmith_at_kmg.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_at_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).
Received on Fri May 03 2002 - 10:33:23 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US