执行alter database open resetlogs提示ORA-00392和ORA-00312错误

2024年 7月 23日 35.1k 0

Recreate the controflile with the RESETLOGS option.

1) Get the controlfile trace from below command :

SQL> ALTER DATABASE BACKUP CONTROLFILE TO TRACE AS '/tmp/control.sql' resetlogs ;

2) Modify the CREATE CONTROLFILE  script /tmp/control.sql and ensure that all directories for the online redo logs exist and Oracle has permission to write to it

3) Create the controlfile in NOMOUNT state :

SQL> STARTUP FORCE NOMOUNT

SQL> @/tmp/control.sql

controlfile created

4) Run a fake recovery :

SQL> RECOVER DATABASE USING BACKUP CONTROLFILE UNTIL CANCEL ;

Type  when prompted

5) Open with RESETLOGS option:

SQL> ALTER DATABASE OPEN RESETLOGS;

转载于:http://blog.itpub.net/31394774/viewspace-2285953/

相关文章

Oracle如何使用授予和撤销权限的语法和示例
Awesome Project: 探索 MatrixOrigin 云原生分布式数据库
下载丨66页PDF,云和恩墨技术通讯(2024年7月刊)
社区版oceanbase安装
Oracle 导出CSV工具-sqluldr2
ETL数据集成丨快速将MySQL数据迁移至Doris数据库

发布评论