ORA-01652:unable to extend temp segment by 128 in tablespace TEMPTS1

最近使用rman catalog 备份数据报了一个错误,由于temp临时表空间太小,造成分配segment失败,这里需要重建临时表空间,并设置自动扩展。

RMAN retention policy will be applied to the command
RMAN retention policy is set to recovery window of 30 days
released channel: c1
released channel: c2
released channel: c3
released channel: c4
released channel: c5
released channel: c6
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of delete command at 09/06/2017 05:05:49
RMAN-06004: ORACLE error from recovery catalog database: ORA-01652: unable to extend temp segment by 128 in tablespace TEMPTS1

由于系统默认临时表空间出错,所以需要先创建一个临时表空间,在设置为系统默认临时表空间,在把原来的临时表空间删除。

SQL> select file_name,autoextensible from dba_temp_files;

FILE_NAME                      AUT
------------------------------ ---
/u01/app/oracle/oradata/jhim/t NO
emp01.dbf

可知,临时表文件非自动扩展

创建临时表空间,切换为系统默认临时表空间,阐述旧的临时表空

SQL> create temporary tablespace  TEMPTS2 tempfile '/u01/app/oracle/oradata/jhim/temp02.dbf' size 10m reuse autoextend on;

Tablespace created.

SQL> alter database  default temporary tablespace TEMPTS2;

Database altered.
SQL> select file_name,autoextensible from dba_temp_files;

FILE_NAME                      AUT
------------------------------ ---
/u01/app/oracle/oradata/jhim/t NO
emp01.dbf

/u01/app/oracle/oradata/jhim/t YES
emp02.dbf
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值