ORA-01652: unable to extend temp segment by 64 in tablespace TEMP
FranklinFaces.com
FranklinFaces.com - Oracle & SQL Server Database Forums for all IT Professionals
 Home          Members     Calendar     Who's On

Welcome Guest ( Login | Register )
        



ORA-01652: unable to extend temp segment by... Expand / Collapse
Message
Posted 1/18/2009 10:24:38 AM Post #63
 

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being
Hi,

Anyone can help on this issue. I have a procedure in this procedure one statement

INSERT INTO prod.temp select * from .........

This statement is giving the unable to extend temp segment by 64 in tablespace TEMP error.

This is a big query and when we run that procedure in development and testing environment it's running fine but in staging database it's given the trouble.
Posted 1/18/2009 10:25:12 AM Post #64
 

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being
You can set tempfile to be autoextend (check free disk space before):

ALTER DATABASE TEMPFILE 'filename' AUTOEXTEND ON;

But I can't understand why it tries to allocate space in TEMP while INSERT AS SELECT (this shouldn't cause implicit sort)
Posted 1/18/2009 10:25:58 AM Post #65
 

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being
You can put temp tablespace into autoextend mode but put it with maxsize clause. If you think just for one query it is not feasible to extend temp tablespace then you can try below commands before running insert into.

Alter session set workarea_size_policy=MANUAL;
alter session set sort_area_size=;


Above will set a big sort area size for your session. Set it according to your requirement.
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: silencer

Permissions Expand / Collapse

All times are GMT -5:00, Time now is 7:16am

Powered By InstantForum.NET v4.1.4 © 2010
Execution: 0.071. 9 queries. Compression Disabled.