软件测试开发技术Oracle7.X 回滚表空间数据文件误删除处理方法[2] Oracle数据库
关键字:
svrmgrl >alter rollback_segment r01 offline drop;
svrmgrl >alter rollback_segment r02 offline drop;
svrmgrl >alter rollback_segment r03 offline drop;
svrmgrl >alter rollback_segment r04 offline drop;
svrmgrl >drop tablespace rbs including contents;
重建新的回滚表空间及回滚段。
svrmgrl >connect internal
svrmgrl >create rollback segment ro tablespace system;
svrmgrl >alter rollback segment ro online;
svrmgrl >create tablespace rbs datafile
‘##/##/rbs01.dbf’ size ##k;
svrmgrl >create rollback segment r01 tablespace rbs;
svrmgrl >create rollback segment r02 tablespace rbs;
svrmgrl >create rollback segment r03 tablespace rbs;
svrmgrl >create rollback segment r04 tablespace rbs;
svrmgrl >alter rollback segment r01 online;
svrmgrl >alter rollback segment r02 online;
svrmgrl >alter rollback segment r03 online;
svrmgrl >alter rollback segment r04 online;
4、 使用新建的回滚段启动数据库
svrmgrl >Shutdown abort
$ vi $ORACLE_HOME/dbs/init< sid >.ora
rollback_segments=(r01,r02,r03,r04)
将参数_corrupted_rollback_segment去掉
svrmgrl >Startup normal
三、 结束语:
此故障的排除是数据库在归档方式上执行的,笔者已在HP-UX 10.20及Solaris2.5两种系统平台上成功通过。
文章来源于领测软件测试网 https://www.ltesting.net/