dbms_space.free_space[9]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 youbo2004 的 blog

what auto segment space management ts's?  march 20, 2003
reviewer:  matt  from australia

what should the value of freelist_group_id be in each call to 
dbms_space.free_blocks? you default your value to 1, should this be 1 for tables 
in all cases?

i just executed dbms_space.free_blocks for a segment in a locally managed ts 
with auto segment space management
and got the following error:

10618, 00000, "operation not allowed on this segment"
// *cause:  this dbms_space operation is not permitted on segments in
//          tablespaces with auto segment space management
// *action:  recheck the segment name and type and re-issue the statement

how do you identify free blocks in this case? 

followup:
i just assumed one freelist.  if you have more, this routine is not 
"sophisticated enough"



there is a dbms_space.space_usage routine for assm 

your show_space procedure and partitoned tables  may 06, 2003
reviewer:  pingu

hi

i am trying to use your show_space procedure but it seems that it does not work 
with partitioned tables?

i think the cursor

for x in ( select tablespace_name
             from dba_tablespaces
            where tablespace_name = ( select tablespace_name
                                        from dba_segments
                                       where segment_type = p_type
                                         and segment_name = p_segname
                                         and segment_space_management <> 'auto' 
)

the subquery should we add distinct? 

followup:
go for it.  i adjust it as i need. 

本文关键:dbms_space.free_space
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top