为什么只有4m的表空间,但是autoextend on插入大数量有问题

[复制链接]
查看11 | 回复9 | 2007-10-20 08:38:44 | 显示全部楼层 |阅读模式
测试建立了一个的表空间 ,数据文件只有一个4M的,但是autoextend是On,为什么挺入 select * from dba_objects时会报如下

*
ERROR at line 1:
ORA-01652: unable to extend temp segment by 128 in tablespace
resize改大后就可以,数据文件不是可以自增长么
回复

使用道具 举报

千问 | 2007-10-20 08:38:44 | 显示全部楼层
报的是temp表空间不够
回复

使用道具 举报

千问 | 2007-10-20 08:38:44 | 显示全部楼层
可为什么增大datafile size会解决这个问题,况且temfile剩余空间很大啊
回复

使用道具 举报

千问 | 2007-10-20 08:38:44 | 显示全部楼层
整个过程贴出来看看,藐视不是这个问题
回复

使用道具 举报

千问 | 2007-10-20 08:38:44 | 显示全部楼层
SQL> select * from v$version;
BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE10.2.0.1.0Production
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production

SQL> create tablespace test datafile '/u01/oracle/oradata/jhknow/test.dbf' size 4m;
Tablespace created.
SQL> create table testtt tablespace test as select * from dba_objects;
create table testtt tablespace test as select * from dba_objects

*
ERROR at line 1:
ORA-01652: unable to extend temp segment by 128 in tablespace TEST

SQL> alter database datafile '/u01/oracle/oradata/jhknow/test.dbf' resize 10m;
Database altered.
SQL>create table testtt tablespace test as select * from dba_objects;
Table created.
回复

使用道具 举报

千问 | 2007-10-20 08:38:44 | 显示全部楼层
上面我说错了。
你没有指定autoextend on呀/
回复

使用道具 举报

千问 | 2007-10-20 08:38:44 | 显示全部楼层
在表空间上创建表和索引的时候,在创建实际区段之前,会在表空间上创建临时段,所以这个时候会出现数据表空间上无法扩展临时段的现象。
参考http://www.dbmotive.com/oracle_e ... =01652&type=ORA
回复

使用道具 举报

千问 | 2007-10-20 08:38:44 | 显示全部楼层
不好意思,可能 没有加autoextend on
原以为默认是autoextend 是ON的,
另有没有视图可以查datafile是否是autoextend on的
OEM中好象也没有发现
回复

使用道具 举报

千问 | 2007-10-20 08:38:44 | 显示全部楼层
原帖由 xutoa 于 2008-10-27 15:38 发表
不好意思,可能 没有加autoextend on
原以为默认是autoextend 是ON的,
另有没有视图可以查datafile是否是autoextend on的
OEM中好象也没有发现

暴汗,,
第一“原以为默认是autoextend 是ON的,”
第二“另有没有视图可以查datafile是否是autoextend on的”
select d.autoextensible from dba_data_files d
回复

使用道具 举报

千问 | 2007-10-20 08:38:44 | 显示全部楼层
呵呵。
实际操作两下就知道了。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行