select
	s.SEGMENT_NAME,
	s.TABLESPACE_NAME,
        s.EXTENTS,
	s.NEXT_EXTENT
from 
	dba_segments s
where
	s.owner='SAPR3' and
	not exists (
		select 1 from 
			dba_free_space f
		where 
			f.tablespace_name = s.tablespace_name
		and
			f.BYTES > s.NEXT_EXTENT
	)

