ORA-01652

oracle query - ORA-01652: unable to extend temp segment but only in some versions of sql*plus

删除回忆录丶 提交于 2019-12-07 06:34:49
问题 This one has me rather confused. I've written a query which runs fine from my development client but fails on the production client with error "ORA-01652: unable to extend temp segment by....". In both instances, the database and user is the same. On my development machine (MS Windows) I've got SQL*PLUS (Release 9.0.1.4.0) and Toad 9.0 (both using version 9.0.4.0.1 of the oci.dll). Both run the code without errors. However when I run the same file, against the same database, using the same

ORA-01652: 错误,与临时表空间扩展

跟風遠走 提交于 2019-12-05 20:37:35
ORA-01652: unable to extend temp segment by 128 in tablespace *** 临时表空间的作用:   临时表空间主要用途是 在数据库 进行排序运算[如创建索引、order by及group by、distinct、union/intersect/minus/、sort-merge及join、analyze命令],管理索引[如创建索引、IMP进行数据导入]、访问视图等操作时提供临时的运算空间,当运算完成之后系统会自动清理。   当临时表空间不足时,表现为运算速度异常的慢,并且临时表空间迅速增长到最大空间(扩展的极限),并且一般不会自动清理了。   如果临时表空间没有设置为自动扩展,则临时表空间不够时事务执行将会报ora-01652无法扩展临时段的错误,当然解决方法也很简单: 1、设置临时数据文件自动扩展, 或者 2、增大临时表空间。   临时表空间的相关操作:   查询默认临时表空间:   SQL> select * from database_properties where property_name='DEFAULT_TEMP_TABLESPACE';   PROPERTY_NAME   ------------------------------   PROPERTY_VALUE   -------------------