ORA-01652: unable to extend temp segment by 128 in tablespace TEMP
2013-07-22 17:54
561 查看
http://blog.sina.com.cn/s/blog_548a52f601016rg2.html
如果临时表空间没有设置为自动扩展,则临时表空间不够时事务执行将会报ora-01652 无法扩展临时段的错误。
解决方法比较简单:
1、设置临时数据文件自动扩展。
2、增大临时表空间。
查询临时表空间状态:
SQL> select tablespace_name,file_name,bytes/1024/1024 file_size,autoextensible from dba_temp_files;
TABLESPACE_NAME
——————————
FILE_NAME
——————————————————————————–
FILE_SIZE AUT
———- —
TEMP
/u01/oracle/oradata/ORCL/temp01.dbf
100 YES
扩展临时表空间:
方法一、增大临时文件大小:
SQL> alter database tempfile ‘/u01/oracle/oradata/ORCL/temp01.dbf’ resize 100M;
Database altered.
方法二、将临时数据文件设为自动扩展:
SQL> alter database tempfile ‘/u01/oracle/oradata/ORCL/temp01.dbf’ autoextend on next 3M maxsize
unlimited;
Database altered.
方法三、向临时表空间中添加数据文件:
SQL> alter tablespace temp add tempfile ‘/u01/oracle/oradata/ORCL/temp02.dbf’ size 10M;
Tablespace altered.
删除临时表空间的一个数据文件:
SQL> alter database tempfile ‘/u01/oracle/oradata/ORCL/temp02.dbf’ drop;
Database altered.
删除临时表空间(彻底删除):
SQL> drop tablespace temp1 including contents and datafiles;
Tablespace dropped.
创建临时表空间:
SQL> create temporary tablespace temp1 tempfile ‘/u01/oracle/oradata/ORCL/temp11.dbf’ size 10M;
Tablespace created.
更改系统的默认临时表空间:
SQL> alter database default temporary tablespace temp1;
Database altered.
更改某一用户的临时表空间:
SQL> alter user scott temporary tablespace temp1;
User altered.
SQL> select username,temporary_tablespace from dba_users;
Oracle临时表空间主要用来做查询和存放一些缓冲区数据。临时表空间消耗的主要原因是需要对查询的中间结果进行排序。
如果临时表空间没有设置为自动扩展,则临时表空间不够时事务执行将会报ora-01652 无法扩展临时段的错误。
解决方法比较简单:
1、设置临时数据文件自动扩展。
2、增大临时表空间。
查询临时表空间状态:
SQL> select tablespace_name,file_name,bytes/1024/1024 file_size,autoextensible from dba_temp_files;
TABLESPACE_NAME
——————————
FILE_NAME
——————————————————————————–
FILE_SIZE AUT
———- —
TEMP
/u01/oracle/oradata/ORCL/temp01.dbf
100 YES
扩展临时表空间:
方法一、增大临时文件大小:
SQL> alter database tempfile ‘/u01/oracle/oradata/ORCL/temp01.dbf’ resize 100M;
Database altered.
方法二、将临时数据文件设为自动扩展:
SQL> alter database tempfile ‘/u01/oracle/oradata/ORCL/temp01.dbf’ autoextend on next 3M maxsize
unlimited;
Database altered.
方法三、向临时表空间中添加数据文件:
SQL> alter tablespace temp add tempfile ‘/u01/oracle/oradata/ORCL/temp02.dbf’ size 10M;
Tablespace altered.
删除临时表空间的一个数据文件:
SQL> alter database tempfile ‘/u01/oracle/oradata/ORCL/temp02.dbf’ drop;
Database altered.
删除临时表空间(彻底删除):
SQL> drop tablespace temp1 including contents and datafiles;
Tablespace dropped.
创建临时表空间:
SQL> create temporary tablespace temp1 tempfile ‘/u01/oracle/oradata/ORCL/temp11.dbf’ size 10M;
Tablespace created.
更改系统的默认临时表空间:
SQL> alter database default temporary tablespace temp1;
Database altered.
更改某一用户的临时表空间:
SQL> alter user scott temporary tablespace temp1;
User altered.
SQL> select username,temporary_tablespace from dba_users;
Oracle临时表空间主要用来做查询和存放一些缓冲区数据。临时表空间消耗的主要原因是需要对查询的中间结果进行排序。
相关文章推荐
- ORA-01652: unable to extend temp segment by 128 in tablespace TEMP
- ORA-01652: 无法通过 128 (在表空间 TEMP 中) 扩展 temp 段(EXP-00056: 遇到 ORACLE 错误 1652 ORA-01652: unable to extend temp segment by 128 in tablespace TEMP)
- ORA-01652: unable to extend temp segment by 128 in tablespace TEMP
- ORA-01652 : Unable to extend temp segment by 128 in tablespace temp
- ORA-01652: unable to extend temp segment by 128 in tablespace TEMP
- 临时表空间不够ORA-01652: unable to extend temp segment by 128 in tablespace TEMP
- java.sql.SQLException: ORA-01652: unable to extend temp segment by 128 in tablespace TEMP
- Oracle - ORA-01652: unable to extend temp segment by 128 in tablespace TEMP
- ORA-01652:unable to extend temp segment by 128 in tablespace TEMPTS1
- 2016-1-8 ORA-1652: unable to extend temp segment by 128 in tablespace解决方案
- ORA-1652: unable to extend temp segment by 128 in tablespace
- ORA-01652:unable to extend temp segment by num in tablespace name
- ORA-20000: -1652:ORA-01652: unable to extend temp segment by 8192 in tablespace
- ORA-1652: unable to extend temp segment by 128 in tablespace xxx Troubleshootin
- ORA-1652错误 unable to extend temp segment by 128 in tablespace
- ORA-01652:unable to extend temp segment by num in tablespace name
- ORA-01652:unable to extend temp segment by num in tablespace name
- ORA-01652:unable to extend temp segment by num in tablespace name
- ORA-01652:unable to extend temp segment by num in tablespace name
- ORA-01652:unable to extend temp segment by num in tablespace name