热门标签 | HotTags
当前位置:  开发笔记 > 数据库 > 正文

orcle恢复报错:ORA00392:日志2(用于线程1)正被清除,不允许操作

遇到问题RMANalterdatabaseopenresetlogs;RMAN-00571:RMAN-00569:ERRORMESSAGESTACKF

遇到问题

RMAN> alter database open resetlogs;
RMAN
-00571: ===========================================================
RMAN
-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN
-00571: ===========================================================
RMAN
-03002: 位于 10/20/2022 14:28:10 的 sql statement 命令失败
ORA
-00344: 无法重新创建联机日志 'D:\APP\ADMINISTRATOR\ORADATA\ORCL\REDO01.LOG'
ORA
-27040: 文件创建错误, 无法创建文件
OSD
-04002: 无法打开文件
O
/S-Error: (OS 3) 系统找不到指定的路径。

 

1. 目录不存在,尝试手动创建该目录

结果还是有问题

RMAN> alter database open resetlogs;
RMAN
-00571: ===========================================================
RMAN
-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN
-00571: ===========================================================
RMAN
-03002: 位于 10/20/2022 14:30:42 的 sql statement 命令失败
ORA
-00392: 日志 2 (用于线程 1) 正被清除, 不允许操作
ORA
-00312: 联机日志 2 线程 1: 'D:\APP\ADMINISTRATOR\ORADATA\ORCL\REDO02.LOG'
RMAN
> alter database open resetlogs;
RMAN
-00571: ===========================================================
RMAN
-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN
-00571: ===========================================================
RMAN
-03002: 位于 10/20/2022 14:31:02 的 sql statement 命令失败
ORA
-00392: 日志 2 (用于线程 1) 正被清除, 不允许操作
ORA
-00312: 联机日志 2 线程 1: 'D:\APP\ADMINISTRATOR\ORADATA\ORCL\REDO02.LOG'

 

2. 迁移目录

结果不变

RMAN> alter database rename file 'D:\APP\ADMINISTRATOR\ORADATA\ORCL\REDO01.LOG' to 'D:\APP\oradata\ORCL\REDO01.LOG';
已处理语句
RMAN
> alter database rename file 'D:\APP\ADMINISTRATOR\ORADATA\ORCL\REDO02.LOG' to 'D:\APP\oradata\ORCL\REDO02.LOG';
已处理语句
RMAN
> alter database open resetlogs;
RMAN
-00571: ===========================================================
RMAN
-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN
-00571: ===========================================================
RMAN
-03002: 位于 10/20/2022 14:36:22 的 sql statement 命令失败
ORA
-00392: 日志 2 (用于线程 1) 正被清除, 不允许操作
ORA
-00312: 联机日志 2 线程 1: 'D:\APP\ORADATA\ORCL\REDO02.LOG'

 

3. 删除日志信息

OK

RMAN> select group#,status from v$log;
GROUP# STATUS
---------- ----------------
1 CLEARING
2 CLEARING_CURRENT
5 CLEARING
4 CLEARING
3 CLEARING
RMAN
> alter database clear logfile group 1;
已处理语句
RMAN
> alter database clear logfile group 2;
已处理语句
RMAN
> alter database clear logfile group 3;
已处理语句
RMAN
> alter database clear logfile group 4;
已处理语句
RMAN
> alter database clear logfile group 5;
已处理语句
RMAN
> alter database open resetlogs;
已处理语句
RMAN
>

 

RMAN> alter database open resetlogs;
RMAN
-00571: ===========================================================
RMAN
-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN
-00571: ===========================================================
RMAN
-03002: 位于 10/20/2022 14:28:10 的 sql statement 命令失败
ORA
-00344: 无法重新创建联机日志 'D:\APP\ADMINISTRATOR\ORADATA\ORCL\REDO01.LOG'
ORA
-27040: 文件创建错误, 无法创建文件
OSD
-04002: 无法打开文件
O
/S-Error: (OS 3) 系统找不到指定的路径。
RMAN
> alter database open resetlogs;
RMAN
-00571: ===========================================================
RMAN
-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN
-00571: ===========================================================
RMAN
-03002: 位于 10/20/2022 14:30:42 的 sql statement 命令失败
ORA
-00392: 日志 2 (用于线程 1) 正被清除, 不允许操作
ORA
-00312: 联机日志 2 线程 1: 'D:\APP\ADMINISTRATOR\ORADATA\ORCL\REDO02.LOG'
RMAN
> alter database open resetlogs;
RMAN
-00571: ===========================================================
RMAN
-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN
-00571: ===========================================================
RMAN
-03002: 位于 10/20/2022 14:31:02 的 sql statement 命令失败
ORA
-00392: 日志 2 (用于线程 1) 正被清除, 不允许操作
ORA
-00312: 联机日志 2 线程 1: 'D:\APP\ADMINISTRATOR\ORADATA\ORCL\REDO02.LOG'
RMAN
> alter database rename file 'D:\APP\ADMINISTRATOR\ORADATA\ORCL\REDO01.LOG' to 'D:\APP\oradata\ORCL\REDO01.LOG';
已处理语句
RMAN
> alter database rename file 'D:\APP\ADMINISTRATOR\ORADATA\ORCL\REDO02.LOG' to 'D:\APP\oradata\ORCL\REDO02.LOG';
已处理语句
RMAN
> alter database open resetlogs;
RMAN
-00571: ===========================================================
RMAN
-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN
-00571: ===========================================================
RMAN
-03002: 位于 10/20/2022 14:36:22 的 sql statement 命令失败
ORA
-00392: 日志 2 (用于线程 1) 正被清除, 不允许操作
ORA
-00312: 联机日志 2 线程 1: 'D:\APP\ORADATA\ORCL\REDO02.LOG'
RMAN
> select group#,status from v$log;
GROUP# STATUS
---------- ----------------
1 CLEARING
2 CLEARING_CURRENT
5 CLEARING
4 CLEARING
3 CLEARING
RMAN
> alter database clear logfile group 1;
已处理语句
RMAN
> alter database clear logfile group 2;
已处理语句
RMAN
> alter database clear logfile group 3;
已处理语句
RMAN
> alter database clear logfile group 4;
已处理语句
RMAN
> alter database clear logfile group 5;
已处理语句
RMAN
> alter database open resetlogs;
已处理语句
RMAN
>

View Code

 



推荐阅读
author-avatar
被爱的小花花_
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有