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: sqlplus question ???

RE: sqlplus question ???

From: Kevin Lange <kgel_at_ppoone.com>
Date: Fri, 13 Jul 2001 07:37:54 -0700
Message-ID: <F001.00349CEB.20010713071552@fatcity.com>

The Compute works hand in hand with the break function. Before the compute line you need to add

break on report

So, it should be

set pagesize 999
Set linesize 100
Col file_name format a50
Col bytes format 999,999,999,999
break on report
compute sum of bytes on report
select file_name, bytes from dba_data_files order by file_name;

I ran it and it works

-----Original Message-----
Sent: Thursday, July 12, 2001 6:46 PM
To: Multiple recipients of list ORACLE-L

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).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Kevin Lange
  INET: kgel_at_ppoone.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 - 09:37:54 CDT

Original text of this message

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