oracle-01624,ORA-01624: log 1 needed for crash recovery of thread&nbs

This document is

being delivered to you via Oracle Support's Rapid Visibility (RaV)

process and therefore has not been subject to an independent

technical review.

Applies

to:

Oracle Database - Enterprise Edition - Version 9.2.0.7 to 11.2.0.2

[Release 9.2 to 11.2]

Information in this document applies to any platform.

***Checked for relevance on 25-JUN-2013***

Symptoms

SQL> alter database drop standby logfile group 1;

alter database drop standby logfile group 1

*

ERROR at line 1:

ORA-01624: log 1 needed for crash recovery of thread 1

ORA-00312: online log 1 thread 1: '/oradata/fs32/redo0101'

ORA-00312: online log 1 thread 1: '/oradata/fs37/redo0102'

Changes

Cause

1. Standby_file_management does not affect Online RedoLogs.

2. Thee Online RedoLog which is

being dropped on the Primary is either the current Online RedoLog

or it has not completely been archived yet.

See Oracle Data Guard, Concepts and Administration, Release 2

(9.2), Part No. A96653-02,

Chapter 11: Initialization Parameters ->

STANDBY_FILE_MANAGEMENT

You can verify this if you have a look at V$LOG

-> The Status should be 'INACTIVE' for the RedoLog to be

dropped.

Solution

To implement the solution, please execute the following steps:

1) Switch the logfile on primary so that group can become

non-current.

connect / as sysdba

alter system switch logfile;

2) Copy from primary to standby.

If you are working with Group 1 on the primary

then copy both files for group 1 from the primary

to the standby machine into an alternate location at operating

system level.

3) Move current group one files on the standby to a different

location

4) Rename the logfile- Move the copied redo logs

into the group 1 current location

ALTER DATABASE RENAME FILE

'/FULL_PATH_OF_OLD_LOCATION/AND_REDO_LOG_NAME.LOG'

TO

'/FULL_PATH_OF_NEW_LOCATION/AND_REDO_LOG_NAME.LOG';

5) Clear the logfile :

alter database clear logfile group;

6)

alter database drop standby logfile group1 .

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值