1.连接数据库
sqlplus /nolog
connect sys/xxxx@oracle as sysdba;
connect sys/xxxx@oracle as sysdba;
2.加载实例
startup mount
3.改回用"回滚段"管理UNDO表空间
alter system set undo_management='MANUAL' scope=spfile;
4.删除损坏的数据文件
alter database datafile ''d:\oracle\oradata\orcl\undotbs01.dbf'' offline drop
5.关闭数据库
shutdown immediate
6.启动数据库
startup
7.创建UNDO表空间
create undo tablespace undotbs2 datafile '
/opt/oracle/oradata/undotbs02.dbf'' size 100M;
/opt/oracle/oradata/undotbs02.dbf'' size 100M;
8.使用自动撤销管理
alter system set undo_management=''AUTO'' scope=spfile;
9.指定新的UNDO表空间
alter system set undo_tablespace=''UNDOTBS2'' scope=spfile;
alter system set undo_tablespace=''UNDOTBS2'' scope=spfile;
10.关闭数据库
shutdown immediate
11.启动数据库
startup