Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: exam question
Based on the answer, I would have assumed the question really meant "used
up". Thus to find out how much is used up of the total amount of space, you
would need to know how much there was originally, and thus the need to query
dba_data_files.
Actually I read the original post so quickly, that this what I thought the question wanted. Going back and reading more carefully I can see that my original assumption is NOT what the actual wording says.
-----Original Message-----
bulbultyagi_at_now-india.net.in
Sent: Thursday, May 22, 2003 4:57 PM
To: Multiple recipients of list ORACLE-L
Vladimir and Mladen , I did try it out myself as I mentioned at the end of
my original post, My problem is not with the question but with the answer
given in the test. I think its wrong.
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"" ?
> That's probably going to be our future colleague. If
> he gets OCP, he might even beat some of the people from
> this list to a DBA position. OCP is very much loved by
> HR departments.
>
> -----Original Message-----
> Sent: Thursday, May 22, 2003 4:07 AM
> To: Multiple recipients of list ORACLE-L
>
>
> Why don't you try it yourself?
>
> ----- Original Message -----
> To: "Multiple recipients of list ORACLE-L" <ORACLE-L_at_fatcity.com>
> Sent: Thursday, May 22, 2003 08:31
>
>
> > Hi all
> > 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: <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).
> >
> >
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> --
> Author: Vladimir Barac
> INET: vladob_at_aster.si
>
> 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: Gogala, Mladen
> INET: MGogala_at_oxhp.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: <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). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Babette Turner-Underwood INET: babette_at_rogers.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).Received on Thu May 22 2003 - 23:21:55 CDT