Question

I'm trying to create a view as such:

CREATE MATERIALIZED ReasonableSizedView
TABLESPACE MyMediumTS
AS 
select COUNT(something) AS allsomethings,
    thetype AS thing,
    status
from SomeMassiveTable
where
    thetype = 'x'
    AND status IN (0,1,2,3)
GROUP BY
    thetype,
    status;

And all I get is an error: ORA-01658: unable to create INITIAL extent for segment in tablespace MySmallTS

Okay, now, MySmallTS is the default ts for the user I'm trying to create the view - and it is full. The thing of a full table space, is a problem apart, and is being dealt with, but why on earth is Oracle trying to use it for this view even though I'm explicitly telling where I want it?

Further more, if I change the query a and remove the group by's, it will work, and it will create the view in the correct table space.

I wonder, the whole operation of grouping and summing and stuff, shouldn't that be using the TEMP table space assigned for that user? That would seem reasonable, and by the way, my temp has plenty of space...

why is that so?

thanks

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top