Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA-01652: unable to extend temp segment by 128 in tablespace TEMP

user10636796Apr 16 2013 — edited Apr 17 2013
Hi, Everyone,

I am using oracle 11.1.0.6 version & OS is windows server R2 and i am trying to run a query which is using oracle "CORR function". i am getting the below error.

ORA-01652: unable to extend temp segment by 128 in tablespace TEMP
unable to extend temp segment by %s in tablespace %s"
*Cause: Failed to allocate an extent of the required number of blocks for
a temporary segment in the tablespace indicated.
*Action: Use ALTER TABLESPACE ADD DATAFILE statement to add one or more
files to the tablespace indicated.

After searching various resources i tried to add a datafile by doing this:


ALTER TABLESPACE TEMP ADD TEMPFILE
'D:\oradata\dw\Temp03.dbf' size 30720M reuse autoextend on next 100M maxsize unlimited;

But still i get the same error as above. the query i am running is as follows :

INSERT INTO UNPVT_USM_DR_E0322
SELECT A.pr_id, A.NR,
B.NR AS col,
corr(A.n,B.m) val
FROM UNPVT_USM_DRPRE1_E0322 A, UNPVT_USM_DRPRE2_E0322 B
where a.col = b.col
GROUP BY A.PR_ID, A.NR,B.NR;



Could anyone please help me!!!!! How do i overcome this error!!!

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 15 2013
Added on Apr 16 2013
37 comments
7,753 views