Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Objects in the temp tablespaces in 9i
dba_222_at_yahoo.com wrote:
> Dear experts,
>
> In 8i and before, I could always tell the size of the objects
> created in the temp tablespace with:
>
> Select SUBSTR(OWNER, 1, 10) OWNER,
> substr(SEGMENT_NAME, 1, 25) segment_name,
> sum(bytes) sum_of_bytes,
> sum (blocks) sum_of_blocks,
> count(1) extent_count
> from dba_extents
> where TABLESPACE_NAME = 'TEMP'
> group by OWNER, segment_name
> order by sum(bytes), segment_name
>
>
> The object names would be system generated.
>
> In 9i, this no longer works. I can find out a number of
> things about the temp tablespace usage, but not the
> size of the objects. I can:
>
>
> Find the total amount of temp tablespace used:
>
> Select
> TABLESPACE_NAME,
> Sum(USED_EXTENTS) USED_EXTENTS,
> Sum(TOTAL_EXTENTS) TOTAL_EXTENTS,
> (Sum(USED_EXTENTS) / Sum(TOTAL_EXTENTS) ) percent_full
>>From v$sort_segment
>>From v$sort_usage
What is the business issue you are addressing? </WITH APOLOGIES>
-- Daniel A. Morgan University of Washington damorgan_at_x.washington.edu (replace x with u to respond) Puget Sound Oracle Users Group www.psoug.orgReceived on Thu Jun 15 2006 - 18:05:02 CDT