【发布时间】:2012-08-07 05:06:34
【问题描述】:
我正在创建一个类似的表
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;
取自:Find out free space on tablespace
我发现我当前使用的表空间有大约 32Gb 的可用空间。我什至尝试创建像
这样的表create table tablename tablespace tablespacename
as select * from table2
但我又遇到了同样的错误。谁能给我一个想法,问题出在哪里以及如何解决。供您参考,select 语句将获取 40,000,000 条记录。
【问题讨论】:
-
数据文件满了吗?
标签: oracle10g tablespace