Next Extent Fail [message #52271] |
Thu, 11 July 2002 15:27 |
Suri
Messages: 6 Registered: July 2002
|
Junior Member |
|
|
Hi,
I am using the following script to identify the objects that will have trouble in throwing next extents I have configured this script through OEM to run for every 12 Hrs. Last week we had space issues on one of our server and this script was not able to identify the tables before hand that will fail when throwing the next extent. Can somebody tell if there is anything wrong in with the script.
SELECT
seg.owner,
seg.segment_name,
seg.segment_type,
seg.tablespace_name,
seg.next_extent/1024 next_extent
FROM dba_segments seg
WHERE seg.next_extent IS NOT NULL
AND NOT EXISTS
(select tablespace_name
from dba_free_space free
where free.tablespace_name = seg.tablespace_name
and bytes >= seg.next_extent)
Thanks in Advance
|
|
|
|