Home > Database > Mysql Tutorial > Oracle数据库正常关闭状态下丢失undo文件的恢复

Oracle数据库正常关闭状态下丢失undo文件的恢复

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 17:16:02
Original
1143 people have browsed it

Oracle数据库正常关闭的意思是:在关闭时,提交的事务已经写入数据文件,未提交的事务也已经回滚,控制文件、日志文件和数据文件

Oracle数据库正常关闭的意思是:在关闭时,提交的事务已经写入数据文件,,未提交的事务也已经回滚,控制文件、日志文件和数据文件中的数据一致,再次启动时不需要实例恢复,不需要用到undo数据文件中的回滚信息。

正常启动时会报错,恢复步骤如下:

1、以oracle用户登录系统,sqlplus / as sysdba;
2、start mount;
3、alter database datafile '/u01/app/oracle/oradata/orcl/undotbs01.dbf' offline drop;
4、alter database open;
5、create undo tablespace undotbs2 datafile '/u01/app/oracle/oradata/orcl/undotbs02.dbf' size 200m autoextend on maxsize 10g;
6、alter system set undo_tablespace=undotbs2;
7、drop tablespace undotbs1 including contents and datafiles;

linux

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template