oracle partly available,Best practice to create a new undo tablespace.

Create pfile from spfile to edit

SQL> Create pfile=’/tmp/initsid.ora’ from spfile;

Shutdown the instance

set the following parameters in the pfile /tmp/initsid.ora

undo_management = manual

event = ‘10513 trace name context forever, level 2’

SQL>>startup restrict pfile=’/tmp/initsid.ora’

SQL>select tablespace_name, status, segment_name from dba_rollback_segs where status != ‘OFFLINE’;https://www.cndba.cn/xw15575450545/article/3447

If any are ‘PARTLY AVAILABLE’ or ‘NEEDS RECOVERY’ - Please open an issue with Oracle Support or update the current SR. There are many options from this moment and Oracle Support Analyst can offer different solutions for the bad undo segments.https://www.cndba.cn/xw15575450545/article/3447

6 Create new undo tablespace - example

SQL>create undo tablespace (new undo tablespace) datafile

(datafile) size 2000M;

7 Drop old undo tablespace

SQL>drop tablespace (old undo tablespace) including contents and datafiles;

9 SQL>startup nomount; —> Using your Original spfilehttps://www.cndba.cn/xw15575450545/article/3447

10 Modify the spfile with the new undo tablespace name

SQL> Alter system set undo_tablespace = ‘(new tablespace created in step 6)’ scope=spfile;

https://www.cndba.cn/xw15575450545/article/3447

https://www.cndba.cn/xw15575450545/article/3447

11 SQL>shutdown immediate;https://www.cndba.cn/xw15575450545/article/3447https://www.cndba.cn/xw15575450545/article/3447

12 SQL>startup; —> Using spfile

SQL> Create pfile=’/tmp/initsid.ora’ from spfile;https://www.cndba.cn/xw15575450545/article/3447

版权声明:本文为博主原创文章,未经博主允许不得转载。

重建undo

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值