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

Home -> Community -> Usenet -> c.d.o.server -> Re: Summery of all Used Oracle-Blocks

Re: Summery of all Used Oracle-Blocks

From: John Chiu <johnymc_at_netscape.net>
Date: Thu, 11 Nov 1999 06:40:13 -0500
Message-ID: <80e9t3$rcu$1@news2.tor.accglobal.net>


to obtain the number of blocks allocated (A):

   select blocks from dba_segments where segment_name='table_name';

to obtain the number of unused blocks (B):

   analyze table tablename compute statistics;    select empty_blocks from dba_tables where table_name=;tablename';

# of used blocks (including headers) = A - B

HTH John Chiu Received on Thu Nov 11 1999 - 05:40:13 CST

Original text of this message

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