Http://inthirties.com: 90/thread-1417-1-1.html
On database guard, when failover is done, sometimes the error of ORA-00261 will be encountered.
Check the error
[Oracle @ Solaris ~] Oerr ora 00261.
00261,000 00, "log % s of thread % s is being archived or
Modified"
// * Cause: the log is either being archived by another process
Or
// Administrative command is modifying the log. Operations that
// Modify the log include clearing, adding a member, dropping
// Member, renaming a member, and dropping the log.
// * Action: Wait for the current operation to complete and try
Again.
It can be seen whether the current log is used or not, resulting in failure.
The above error occurs in failover, mainly because the RFS process on the standby side does not realize that the primary is no longer accessible, so RFS does not release the current
Standby
Log usage, resulting in the above problems. Generally, due to a network failure, standby cannot obtain the status of multiple primary instances.
The database instance is interrupted due to a fault. Generally, the RFS process on the standby end will immediately realize that the primary is no longer accessible and immediately release the current standby.
Redo log file.
As long as the RFS does not release the standby redo log file, execute alter database recover managed
When standby database is finished, the preceding error occurs.
The following error snippets can be found in the log.
Warning: Log 4 of thread 1 is being archived or modified
Recovery interrupted.
Media recovery failed with error 261
If you perform a switch
ORA-16139: Media recovery required
Therefore, you must check the alertlog file until the following information is found, indicating that the RFS process has released the standby redo
Log File. At this time, you can finish:
RFS: Possible network disconnect with primary database
At this time, we can manually urge RFS to release the standby redo log.
1. Wait for the network timeout of The RFS process. It usually takes about 8 minutes.
2. Shut down the standby database and re-enable it to force the RFS process to release the standby redo log.
The V $ managed_standby view can observe the process status in the DG.
Run the switch command after finish:
Alter database commit to switchover to primary;
After the switch is successful, restart the database:
Shutdown immeaite
Startup
Search for more posts on related topics: dataguard
Ora-00261
- Provides Oracle management/troubleshooting/optimization/installation/RAC/Backup Recovery technical services, and professional Oracle training and consulting services.
- Mail: inthirties@gmail.com
- MSN: inthirties@hotmail.com
- QQ: inthirties@qq.com
- Tel: 13828706466
- Technical blog http://blog.csdn.net/inthirties
- Personal site http://blog.inthirties.com