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: RE: exam question

Re: RE: exam question

From: <bulbultyagi_at_now-india.net.in>
Date: Thu, 22 May 2003 12:56:59 -0800
Message-ID: <F001.005A0B20.20030522125659@fatcity.com>


To find out the used space in the tablespaces wouldn't the following work ?: select tablespace_name, sum(bytes) from dba_extents group by  tablespace_name ;

select tablespace_name, sum(bytes) from dba_segments group by  tablespace_name;

> DBA_DATA_FILES
>
> bytes seems to be the current size
> maxbytes is the total size? and possibly includes the max if autoextend is
on
> Im assuming user_bytes is your quota
>
> No way to get freespace if that is true. If maxbytes includes autoextend
then technically you do not have freespace on a tablespace that has not extended since you cannot assume that the space will be available on your hard drive to extend. You hope its planned right, but you dont know. So I assume they mean take MAXBYTES - BYTES, though this is probably wrong.
>
> am I correct?
>
> now DBA_EXTENTS
>
> select tablespace_name, max(bytes)
> from dba_extents
> group by tablespace_name
>
> assumes that your largest extent is your coalesced free extent, but you
cannot assume this. What if you plan poorly and have pctincrease on?
>
> or am I missing something?
> >
> > From: "Deshpande, Kirti" <kirti.deshpande_at_verizon.com>
> > Date: 2003/05/22 Thu AM 09:22:06 EDT
> > To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
> > Subject: RE: exam question
> >
> >
> > I meant to say:
> >
> > Who's the author of this book and what is the title?
> >
> >
> > Too early in the morning after a long night... Sorry.
> >
> > - Kirti
> >
> > -----Original Message-----
> > Sent: Thursday, May 22, 2003 7:10 AM
> > To: 'ORACLE-L_at_fatcity.com'
> >
> >
> > Who's cram book are you reading?
> > Ever thought about sending the author(s) an e-mail?
> >
> > - Kirti
> >
> > -----Original Message-----
> > Sent: Thursday, May 22, 2003 5:02 AM
> > To: Multiple recipients of list ORACLE-L
> >
> >
> > On Thu, 22 May 2003, Vladimir Barac wrote:
> >
> > > Why don't you try it yourself?
> >
> > Umm, he pretty much did try it himself. His questions really are,
> > "Isn't this exam question unclear and idiotic? How are you supposed
> > to pass the exam if the exam qriters lack basic skills of rational
> > thought?"
> >
> > The answers are yes and I don't know.
> >
> > --
> > Jeremiah Wilton
> > http://www.speakeasy.net/~jwilton
> >
> > > ----- Original Message -----
> > > To: "Multiple recipients of list ORACLE-L" <ORACLE-L_at_fatcity.com>
> > > Sent: Thursday, May 22, 2003 08:31
> > >
> > > > here is a question
> > > >
> > > > Q. You need to determine the amount of space currently used in each
> > > > tablespace.
> > > > You can retrieve this information in a single SQL statment using
only one
> > > > DBA view in the FROM clause providing you use either the _______ or
> > > _______
> > > > DBA view.
> > > >
> > > > A.DBA_EXTENTS.
> > > >
> > > > B.DBA_SEGMENTS.
> > > >
> > > > C.DBA_DATA_FILES.
> > > >
> > > > D.DBA_TABLESPACES.
> > > >
> > > > I was thinking that dba_extents and dba_segments would be the
correct
> > > answer
> > > > because i could use :
> > > > select tablespace_name, sum(bytes) from dba_extents group by
> > > tablespace_name
> > > > ;
> > > >
> > > > select tablespace_name, sum(bytes) from dba_segments group by
> > > > tablespace_name;
> > > >
> > > >
> > > >
> > > > But The answer given says dba_extents and dba_data_files. Is the
given
> > > > answer wrong or is there some way of finding out from dba_data_files
how
> > > > much space is used up in a tablespace
> > > >
> > > > For that matter what does the question want to know ? does it want
to know
> > > > how much space do the tablespaces have ( that would be the sum of
the
> > > sizes
> > > > of the data files ) or how much is ""used up"" ?
> >
> >
> > --
> > Please see the official ORACLE-L FAQ: http://www.orafaq.net
> > --
> > Author: Deshpande, Kirti
> > INET: kirti.deshpande_at_verizon.com
> >
> > Fat City Network Services -- 858-538-5051 http://www.fatcity.com
> > San Diego, California -- Mailing list and web hosting services
> > ---------------------------------------------------------------------
> > 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.net
> --
> Author: <rgaffuri_at_cox.net
> INET: rgaffuri_at_cox.net
>
> Fat City Network Services -- 858-538-5051 http://www.fatcity.com
> San Diego, California -- Mailing list and web hosting services
> ---------------------------------------------------------------------
> 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.net
-- 
Author: <bulbultyagi_at_now-india.net.in
  INET: bulbultyagi_at_now-india.net.in

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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 May 22 2003 - 15:56:59 CDT

Original text of this message

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