Today while I was doing reviews of AWR reports on a database, I came across a wait event that I was a bit surprised to see. The wait event in question is “Streams miscellaneous even”. Since I have been reviewing this environment for a customer for about two weeks, I know the customer is not using Oracle Streams. In fact, this customer is using Oracle GoldenGate 11G (126.96.36.199.0).
Since I have established that the environment is not using Streams but Oracle GoldenGate, what about this wait event? On one hand, this wait event provides some insight on the direction of Oracle GoldenGate. It appears that Oracle is integrating GoldenGate with Streams on some level. On the other hand, Oracle GoldenGate is not directly integrated with the database in this environment; the customer is using Classic Captures processes with GoldenGate. Makes you wonder what is going on?
In researching this wait event (Streams miscellaneous even), I was directed to MOS Note 1317122.1. In reading the note, it is identified that this wait event is actually a bug Oracle GoldenGate (188.8.131.52.0) or later. The note also specifies that the bug is fixed in Oracle GoldenGate 12c (184.108.40.206.0). What exactly is the cause of this error/bug in Oracle GoldenGate?
The cause for this bug has been identified as being incorrectly associated with the wait for a redo log with the “Streams miscellanous event” rather than the IDLE wait event “Streams capture: waiting for archive log”. Additionally, this bug is triggered by using the TRANLOGOPTIONS DBLOGREADER in your extract parameter files.
The simple solution to this problem is to upgrade to Oracle GoldenGate 12c (220.127.116.11.0); however, that is not always feasible without planning. Before upgrading, you should also make sure that you have this bug within your environment. You can check for this issue/bug by tracing the SPID for the GoldenGate extract processed. Perform the following:
1. As SYSDBA get the operating system process id associated with the “Streams miscellaneous event’.
select s.sid, s.serial#, s.process, p.spid, p.pid, p.program from v$session s, v$session_wait sw, v$process p where s.sid=sw.sid and sw.event = ‘Streams miscellaneous event’ and s.paddr=p.addr;
2. Attach to the processes and generate a SQL trace file.
oradebug setospid <spid>;
oradebug event 10046 trace name context forever, level 12
==> Trace for 5 minutes <==
oradebug event 10046 trace name context off
Once you have the trace file and review it, you will see something similar to the waits listed below. These waits are associated with the SPID of the extract that was waiting on the “Streams miscellaneous event”.
WAIT #0: nam=’log file sequential read’ ela= 295 log#=0 block#=1 blocks=1 obj#=-1 tim=1386701225296657
WAIT #0: nam=’log file sequential read’ ela= 394 log#=0 block#=1038323 blocks=55 obj#=-1 tim=1386701225297159
WAIT #0: nam=’log file sequential read’ ela= 456 log#=0 block#=1038323 blocks=55 obj#=-1 tim=1386701225297651
WAIT #0: nam=’Streams miscellaneous event’ ela= 496159 TYPE=16 p2=0 p3=0 obj#=-1 tim=1386701225793859
If you start to see “Streams miscellaneous event” showing up as a top wait event in the AWR reports, you may be hitting this bug within Oracle GoldenGate. Once you go through the steps outlined in the MOS Note or the steps above; if you determine that this bug is not the cause of the wait event, than you may have another issue to address.
I’m Bobby Curtis and I’m just your normal average guy who has been working in the technology field for awhile (started when I was 18 with the US Army). The goal of this blog has changed a bit over the years. Initially, it was a general blog where I wrote thoughts down. Then it changed to focus on the Oracle Database, Oracle Enterprise Manager, and eventually Oracle GoldenGate.
If you want to follow me on a more timely manner, I can be followed on twitter at @dbasolved or on LinkedIn under “Bobby Curtis MBA”.