Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> exam question

exam question

From: <bulbultyagi_at_now-india.net.in>
Date: Wed, 21 May 2003 22:31:40 -0800
Message-ID: <F001.0059F739.20030521223140@fatcity.com>


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). Received on Thu May 22 2003 - 01:31:40 CDT

Original text of this message

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