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@hotm        To:     Multiple recipients of list ORACLE-L 
<[EMAIL PROTECTED]>       
                    ail.com>             cc:                                           
                            
                    Sent by:             Subject:     Finding out used blocks in the 
database                      
                    root@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: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).

Reply via email to