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

数据库更新操作报错:

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;


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值