Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: urgent..! how to combining 2 querries...
thanks to all.
Saurabh Sharma
saurabh.sh_at_usa.net
http://www.geocities.com/saurabh00pc/stride.html
>
>
> -----Original Message-----
> Sent: Wednesday, July 04, 2001 2:53 PM
> To: 'ORACLE-L_at_fatcity.com'
>
>
> I think you need this ....
> >>>>>
> comp sum of nfrags totsiz avasiz on report
> break on report
>
> col tsname format a16 justify c heading 'Tablespace'
> col nfrags format 999,990 justify c heading 'Free|Frags'
> col mxfrag format 999,999,990 justify c heading 'Largest|Frag (KB)'
> col totsiz format 999,999,990 justify c heading 'Total|(KB)'
> col avasiz format 999,999,990 justify c heading 'Available|(KB)'
> col pctusd format 990 justify c heading 'Pct|Used'
>
> select
> total.tablespace_name tsname,
> count(free.bytes) nfrags,
> nvl(max(free.bytes)/1024,0) mxfrag,
> total.bytes/1024 totsiz,
> nvl(sum(free.bytes)/1024,0) avasiz,
> (1-nvl(sum(free.bytes),0)/total.bytes)*100 pctusd
> from
> dba_data_files total,
> dba_free_space free
> where
> total.tablespace_name = free.tablespace_name(+)
> group by
> total.tablespace_name,
> total.bytes
> /
> <<<<<<<
> PS: Don't remember the source of this script .....
>
> HTH,
> Rajesh
> -----Original Message-----
> Sharma
> Sent: Wednesday, July 04, 2001 11:46 AM
> To: Multiple recipients of list ORACLE-L
>
>
> ya i checked this too.. it's not working.
>
> Saurabh Sharma
>
> saurabh.sh_at_usa.net
> http://www.geocities.com/saurabh00pc/stride.html
>
> ----- Original Message -----
> To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
> Sent: Tuesday, July 03, 2001 7:00 PM
>
>
> > sorry. I checked it and turned out that this is wrong "solution"
> >
> > > Hi!
> > >
> > > Try this.
> > >
> > > select a.tablespace_name,sum(a.bytes),sum(b.bytes) from
> > > dba_data_files a,
> > > dba_free_space b where b.tablespace_name=a.tablespace_name group by
> > > a.tablespace_name
> > >
> > > Gyula
> > --
> > Please see the official ORACLE-L FAQ: http://www.orafaq.com
> > --
> > Author:
> > INET: gy.andor_at_euromacc.hu
> >
> > 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: Saurabh Sharma
> INET: ssharma1_at_fcsltd.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: Rajesh Dayal
> INET: Rajesh_at_ohitelecom.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: Saurabh Sharma INET: ssharma1_at_fcsltd.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 Thu Jul 05 2001 - 23:51:35 CDT
![]() |
![]() |