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: Finding out used blocks in the database

RE: Finding out used blocks in the database

From: DENNIS WILLIAMS <DWILLIAMS_at_LIFETOUCH.COM>
Date: Fri, 08 Feb 2002 13:31:47 -0800
Message-ID: <F001.0040AD32.20020208133327@fatcity.com>

Rick - Does this query find the blocks used since the last RMAN backup? Or some other criteria like since the instance was started? Dennis Williams
DBA
Lifetouch, Inc.
dwilliams_at_lifetouch.com

-----Original Message-----
Sent: Friday, February 08, 2002 3:20 PM
To: Multiple recipients of list ORACLE-L

To find used blocks within a table  

                                                                   SELECT
COUNT (DISTINCT                 
 

 

DBMS_ROWID.ROWID_BLOCK_NUMBER(rowid)||    

DBMS_ROWID.ROWID_RELATIVE_FNO(rowid))

                                                                   "Used"

                                                                       FROM
schema.table;                 
 

 



Rick  

                    "Sona"

                    <sona_us_at_hotm        To:     Multiple recipients of list
ORACLE-L <ORACLE-L_at_fatcity.com>       
                    ail.com>             cc:

                    Sent by:             Subject:     Finding out used
blocks in the database                      
                    root_at_fatcity.

                    com

 

 

                    02/08/2002

                    03:41 PM

                    Please

                    respond to

                    ORACLE-L

 

 





Hi
As we all know RMAN backs up only the used blocks in the database.Was wondering if there is any way to query the database to find out if a block is used or not so as to find out how much of the database is currently being used ?

TIA
--

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

Author:
  INET: Rick_Cale_at_teamhealth.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: DENNIS WILLIAMS
  INET: DWILLIAMS_at_LIFETOUCH.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 Feb 08 2002 - 15:31:47 CST

Original text of this message

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