我正在创建一个像
create table tablename
as
select * for table2
我收到错误
ORA-01652 Unable to extend temp segment by in tablespace
当我用谷歌搜索时,我通常会发现 ORA-01652 错误显示一些值,例如
Unable to extend temp segment by 32 in tablespace
我没有得到任何这样的价值。我运行了这个查询
select
fs.tablespace_name "Tablespace",
(df.totalspace - fs.freespace) "Used MB",
fs.freespace "Free MB",
df.totalspace "Total MB",
round(100 * (fs.freespace / df.totalspace)) "Pct. Free"
from
(select
tablespace_name,
round(sum(bytes) / 1048576) TotalSpace
from
dba_data_files
group by
tablespace_name
) df,
(select
tablespace_name,
round(sum(bytes) / 1048576) FreeSpace
from
dba_free_space
group by
tablespace_name
) fs
where
df.tablespace_name = fs.tablespace_name;
取自:找出表空间上的可用空间
我发现我目前使用的表空间有大约 32Gb 的可用空间。我什至尝试创建像
create table tablename tablespace tablespacename
as select * from table2
但我再次遇到同样的错误。谁能给我一个想法,问题出在哪里以及如何解决。供您参考,select 语句将获取 40,000,000 条记录。