SQL> select sum(bytes) from dba_free_space where tablespace_name='TEMPORARY_DATA';
SUM(BYTES)
----------
104855552
I have increased the initial and next extent to 1MB and also made the pctincrease to 0.
Even then I am getting the error
SQL> analyze table test compute statistics;
analyze table test compute statistics
*
ERROR at line 1:
ORA-01652: unable to extend temp segment by 512 in tablespace TEMPORARY_DATA.
SQL> select tablespace_name, max(bytes) "largest free extent" from dba_free_space
2 group by tablespace_name
3 /
TABLESPACE_NAME largest free extent
------------------------------ -------------------
REC_DATA 103821312
ROLLBACK_DATA 3008512
SYSTEM 1261568
TEMP 1054720
TEMPORARY_DATA 112195584
USERS 10240
USER_DATA 1392640
Also please note that Now I have assigned the TEMP tablespace to the user and its largest free extent is 1054720.
I am still getting the error.
BTW whats the best way to size the temporary tablespace rather than to keep on increasing its size every now and then. There should be some way where I can predict the temporary tablespace size requirements by doing some calculations.
You know what, since you have pctincrease 50 previously and your inital and next were so small that your current NEXT might be huge! (actually I think this is what is happening)
I dont know a way to deallocate the sort segments in temporary tablespace except
restarting the database
or
recreate the temporary tablespace
if itīs a critical database I would create a new temporary tablespace with pctincrease 0 and assign that new temp tablespace to all users then drop the old temporary tablespace
I increased the datafile size of the temporary table space to 300 MB and set the maximum extents values for the temporary table space to unlimited and it worked.
In the OEM it shows me that used is 261 MB.
It needs this much of space only while querying one particular table which has millions of rows in it. This is the only table in that schema.
Is it OK if I assign a specific temporary table space to it which no other user uses and define the storage parameters as Initial = 300MB so that it does not have to assign extents and will inturn improve performAnce.
Bookmarks