![]() |
|
SQL ScriptDoes Next Extent Fit ? |
|
This scripts reports any tables,indexes,clusters (and table/index partitions) where the tablespace that the object is stored in does not have sufficient room to accomodate the next extent
None
REM Copyright (C) Think Forward.com 1998- 2005. All rights reserved.
col owner form a8 col segment_type for a7 col segment_name form a25 col tablespace_name form a15 col req form 9999999990 heading "Req (Mb)" col next_extent form 99990 heading "Req (Mb)" col maxfree form 99990 heading "Free (Mb)" set pause off set pages 1000 set lines 80 compute sum of req on tablespace_name break on tablespace_name skip 1 spool nextext.lst select s.owner ,s.segment_type ,s.segment_name ,s.tablespace_name ,s.next_extent/1024/1024 req ,maxtspace.max/1024/1024 maxfree from dba_segments s, (select tablespace_name,max(fsu.bytes) max from dba_free_space fsu group by tablespace_name) maxtspace where s.tablespace_name = maxtspace.tablespace_name and segment_type IN ('TABLE','INDEX','CLUSTER','TABLE PARTITION','INDEX PARTITION') and next_extent > maxtspace.max / spool off
Return to Index of SQL Scripts
General Information :
Home | Company Profile
| Contact Us | Legal
Database Support :
Proactive Support
|
Pay Per Incident Support
Expert Services :
High Availability
|
Creative Solutions
|
Training
Build Services :
Oracle Installations
|
Revive your Oracle Setup
|
Low Cost Development
Free Oracle Resources:
DBA Scripts
|
Oracle Links