您的位置:首页 > 编程语言 > Java开发

java.sql.SQLException: ORA-01652: unable to extend temp segment by 128 in tablespace TEMP

2017-03-23 17:49 766 查看
数据库更新操作报错:

Error updating database.  Cause: java.sql.SQLException: ORA-01652: unable to extend temp segment by 128 in tablespace TEMP

; uncategorized SQLException for SQL []; SQL state [72000]; error code [1652]; ORA-01652: unable to extend temp segment by 128 in tablespace TEMP

; nested exception is java.sql.SQLException: ORA-01652: unable to extend temp segment by 128 in tablespace TEMP

原因:表空间太小

1.删除掉原表空间,新建一个表空间temp02

查找表空间:

select file_name,bytes/1024/1024 "MB",autoextensible,tablespace_name from dba_temp_files  

新建temp02;

create temporary tablespace TEMP02      TEMPFILE '/u01/app/oracle/product/10.2.0/db_1/dbs/temp02.dbf' SIZE 512M        REUSE AUTOEXTEND ON NEXT 640K MAXSIZE UNLIMITED; 

Tablespace created.

更改数据库的默认临时表空间为temp02  

alter database default temporary tablespace temp02; 

删除原来的默认临时表空间TEMP01 

drop tablespace temp01 including contents and datafiles; 

2.更改临时表空间大小

alter database tempfile '/u01/app/oracle/product/10.2.0/db_1/dbs/temp01.dbf' RESIZE 1000m;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  oracle 表空间不足
相关文章推荐