ORA-01652 Unable to extend temp segment by in tablespace

前端 未结 4 812
北荒
北荒 2020-12-09 02:40

I am creating a table like

create table tablename
as
select * for table2

I am getting the error

ORA-01652 Unable to extend          


        
4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-09 02:51

    I found the solution to this. There is a temporary tablespace called TEMP which is used internally by database for operations like distinct, joins,etc. Since my query(which has 4 joins) fetches almost 50 million records the TEMP tablespace does not have that much space to occupy all data. Hence the query fails even though my tablespace has free space.So, after increasing the size of TEMP tablespace the issue was resolved. Hope this helps someone with the same issue. Thanks :)

提交回复
热议问题