Try with
set pagesi 999
set linesi 100
col file_name forma a50
col bytes forma 999,999,999,999
break on dummy
compute sum on dummy of bytes
select file_name,bytes, null as dummy from
sys.dba_data_files
Also on 8.1.X with group by rollup you have another
option.
Regards.
- Andrea Oracle <andreaoracle_at_yahoo.com> wrote:
> Hi all,
>
> I have these in sqlplus:
> set pagesize 999
> Set linesize 100
> Col file_name format a50
> Col bytes format 999,999,999,999
> compute sum of bytes on report
> select file_name, bytes from dba_data_files order by
> file_name;
>
> The query returns all the data files back, but it
> did
> NOT show the sum of the bytes. Is there anything I
> forgot to set? Thank you.
>
> Andrea
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
> --
> Please see the official ORACLE-L FAQ:
> http://www.orafaq.com
> --
> Author: Andrea Oracle
> INET: andreaoracle_at_yahoo.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).
Eng. Christian Trassens
Senior DBA
Systems Engineer
ctrassens_at_yahoo.com
ctrassens_at_hotmail.com
Phone : 541149816062
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Christian Trassens
INET: ctrassens_at_yahoo.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 Jul 13 2001 - 03:46:22 CDT