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

Home -> Community -> Mailing Lists -> Oracle-L -> dbms_space incorrect output

dbms_space incorrect output

From: kommareddy sreenivasa <kommacnu_at_yahoo.com>
Date: Sat, 31 Aug 2002 01:28:24 -0800
Message-ID: <F001.004C4E6A.20020831012824@fatcity.com>


Hello all,

DB: 8i
OS: soalris 2.8

why DBMS_SPACE.FREE_BLOCKS is not giving correct status:

create table ram1 (a number);  

analyze table ram1 compute statistics;  

 select table_name, blocks,empty_blocks
 from dba_tables
 where table_name = 'RAM1';  

TABLE_NAME BLOCKS EMPTY_BLOCKS  RAM1 0 4   Using dbms_space.free_space:

 set serveroutput on
 declare
 free number;
 begin
 dbms_space.free_blocks('SYS','RAM1','TABLE',0,free);  dbms_output.put_line('Free blocks '||free);  end;
 /  

> Free blocks 0
>
> PL/SQL procedure successfully completed.

am I missing something ?

regards,
srinivas



Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: kommareddy sreenivasa
  INET: kommacnu_at_yahoo.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 Sat Aug 31 2002 - 04:28:24 CDT

Original text of this message

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