2026-03-12 20:23:15
This commit is contained in:
14
tpt/segext.sql
Normal file
14
tpt/segext.sql
Normal file
@@ -0,0 +1,14 @@
|
||||
-- Copyright 2018 Tanel Poder. All rights reserved. More info at http://tanelpoder.com
|
||||
-- Licensed under the Apache License, Version 2.0. See LICENSE.txt for terms & conditions.
|
||||
|
||||
select
|
||||
s.tablespace_name,
|
||||
s.max_next_extent,
|
||||
f.max_bytes
|
||||
from
|
||||
(select tablespace_name, max(next_extent) max_next_extent from dba_segments group by tablespace_name) s,
|
||||
(select tablespace_name, max(bytes) max_bytes from dba_free_space group by tablespace_name) f
|
||||
where
|
||||
s.tablespace_name = f.tablespace_name
|
||||
and s.max_next_extent > f.max_bytes;
|
||||
|
||||
Reference in New Issue
Block a user