- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
4#
发表于 2012-4-18 16:53:48
ODM FINDING:
Bug 7654309: OLD STANDBY REDO LOG REMAINS AS STATUS=ACTIVE ON V$STANDBY_LOG
Hdr: 7654309 10.2.0.3 RDBMS 10.2.0.3 RECOVERY PRODID-5 PORTID-214 5746174
Abstract: OLD STANDBY REDO LOG REMAINS AS STATUS=ACTIVE ON V$STANDBY_LOG
PROBLEM:
--------
[environment]
primary site --- 4node-RAC
logical standby site --- 4node-RAC
[problem]
The old Standby Redo Log entry remains as STATUS=ACTIVE on V$STANDBY_LOG.
We could see two entries thread#1 seqence#17 and thread#3 seqence#16.
The sequence of those logs are already applied by seeing DBA_LOGSTDBY_LOG.
So those Standby Redo Log remains without being reused until recreate
Standby Redo Log.
SQL> select * from v$standby_log;
GROUP# DBID THREAD# SEQUENCE# USED ARCHIVED STATUS
------ ----------- -------- ---------- ---------- --------- -----------
25 1457123581 1 17 1573376 YES ACTIVE <-----
26 UNASSIGNED 1 0 512 NO UNASSIGNED
27 1457123581 1 74 99328 YES ACTIVE
28 UNASSIGNED 1 0 512 YES UNASSIGNED
29 UNASSIGNED 1 0 512 YES UNASSIGNED
30 UNASSIGNED 1 0 512 YES UNASSIGNED
31 UNASSIGNED 2 0 512 NO UNASSIGNED
32 1457123581 2 70 49152 YES ACTIVE
33 UNASSIGNED 2 0 512 YES UNASSIGNED
34 UNASSIGNED 2 0 512 YES UNASSIGNED
35 UNASSIGNED 2 0 512 YES UNASSIGNED
36 UNASSIGNED 2 0 512 YES UNASSIGNED
37 1457123581 3 16 1206272 YES ACTIVE <-----
38 1457123581 3 74 103936 YES ACTIVE
39 UNASSIGNED 3 0 512 NO UNASSIGNED
40 UNASSIGNED 3 0 512 YES UNASSIGNED
41 UNASSIGNED 3 0 512 YES UNASSIGNED
42 UNASSIGNED 3 0 512 YES UNASSIGNED
43 UNASSIGNED 4 0 512 NO UNASSIGNED
44 1457123581 4 75 49664 YES ACTIVE
45 UNASSIGNED 4 0 512 NO UNASSIGNED
46 UNASSIGNED 4 0 512 YES UNASSIGNED
47 UNASSIGNED 4 0 512 YES UNASSIGNED
48 UNASSIGNED 4 0 512 YES UNASSIGNED
SQL> select * from dba_logstdby_log;
THREAD# SEQUENCE# FILE_NAME APPLIED
------- ---------- ----------------------------------- -------
1 17 /DBDD/sarchive/1_17_670942747.arc YES
3 16 /DBDD/sarchive/3_16_670942747.arc YES
DIAGNOSTIC ANALYSIS:
--------------------
We comfirmed alertlog on logical standby.
Almost log are archived by ARC to standby_archive_dest, but that two
logs are archived by RFS.
And after complete archive and register, LOGMINER transits to archivelog
on standby_archive_dest from Standby Redo Log.
[alertlog on logical standby(alert_DBDD541.log)]
- focus on thread#1 sequence#17
Sun Nov 16 16:50:50 2008
RFS[43]: Begin archive primary thread 1 sequence 17 (DBDD541)
Sun Nov 16 16:50:50 2008
RFS[43]: Successfully opened standby log 25: '/dev/raw/raw161' <----- open
SRL
Sun Nov 16 16:50:58 2008
LOGMINER: Begin mining logfile: /dev/raw/raw161 <----- begin mining SRL
Sun Nov 16 17:04:30 2008
RFS[43]: Possible network disconnect with primary database
Sun Nov 16 17:05:03 2008
RFS[38]: Begin archive primary thread 1 sequence 17 (DBDD541)
Sun Nov 16 17:05:04 2008
RFS[38]: Completed archive primary log 0 thread 1 sequence 17 (DBDD541)
Sun Nov 16 17:05:04 2008
RFS[38]: Archived Log: '/DBDD/sarchive/1_17_670942747.arc' <--- archive by
RFS
Committing creation of archivelog '/DBDD/sarchive/1_17_670942747.arc'
Sun Nov 16 17:05:04 2008
RFS LogMiner: Registered logfile [/DBDD/sarchive/1_17_670942747.arc]
to LogMiner session id [82]
Sun Nov 16 17:05:04 2008
LOGMINER: Archived logfile found, transition to mining logfile:
/DBDD/sarchive/1_17_670942747.arc <----- mining transit
Sun Nov 16 17:05:06 2008
LOGMINER: Archived logfile found, transition to mining logfile:
/DBDD/sarchive/1_17_670942747.arc
Sun Nov 16 17:05:16 2008
LOGMINER: End mining logfile: /DBDD/sarchive/1_17_670942747.arc
================================================
The situation of that two logs is as follows.
1. archived to standby_archive_dest by RFS (Other logs archived by ARCH)
2. mining through following steps.
2-1. Begin mining Standby Redo Log at first.
2-2. After complete archiving by RFS to standby_archive_dest,
LOGMINER transits mining logfile to archivelog on
standby_archive_dest.
2-3. End mining logfile
3. Standby Redo Log entry remains as STATUS=ACTIVE on V$STANDBY_LOG.
We confirmed problem about deleting entry of Standby Redo Log.
And could not find another bugs and notes about this behavior.
WORKAROUND:
-----------
none.
alert.log shows 4 RFS process stopped by network disconnect at
same time.
-------------------------
Sun Nov 16 17:04:30 2008
RFS[54]: Possible network disconnect with primary database
Sun Nov 16 17:04:30 2008
RFS[46]: Possible network disconnect with primary database
Sun Nov 16 17:04:30 2008
RFS[50]: Possible network disconnect with primary database
Sun Nov 16 17:04:30 2008
RFS[43]: Possible network disconnect with primary database
-------------------------
RFS[54] was archiving thread 4 seq 16 to /dev/raw/raw180
RFS[46] was archiving thread 2 seq 12 to /dev/raw/raw168
RFS[50] was archiving thread 3 seq 16 to /dev/raw/raw173
RFS[43] was archiving thread 1 seq 17 to /dev/raw/raw161
These destinations are standby logfiles.
No "RFS[n]: Completed archive ..." log is written for these.
Customer see entries for thread 1 seq 17 and thread 3 seq 16 are
left in v$standby_log
thread 2 sequence 12 is processed later by RFS[47] using
same standby logfile. thread 4 sequence 16 is processed by same way.
------------------------------
Sun Nov 16 17:05:03 2008
RFS[47]: Begin archive primary thread 2 sequence 12 (DBDD541)
Sun Nov 16 17:05:03 2008
RFS[47]: Successfully opened standby log 32: '/dev/raw/raw168'
Sun Nov 16 17:05:04 2008
RFS[47]: Completed archive primary log 0 thread 2 sequence 12 (DBDD541) |
|