Streams Capture Aborts : Ora-1422 From Builder Re Select From Logmnr_restart_ckpt$ (Doc ID 1398855.1)

Last updated on MAY 07, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.1 to 11.2.0.2 [Release 11.2]
Information in this document applies to any platform.

Symptoms

Streams capture aborts with error ORA-1280. Examining the alert.log file prior to the Capture process failing shows that the Logminer Builder process immediately prior to the above encountered ora-1422.

In the trace file of the Builder process, we see  :

ORA-00604: error occurred at recursive SQL level 1
ORA-01422: exact fetch returns more than requested number of rows
KSV 1422 error in slave process

In order to determine the sql being executed at the time of the error / to gain a better understanding of the issue , enable an errorstack to be generated at the point of the ora-1422 error (errorstack , level 3). This will give more information in the latest Builder trace file created. This can be done using :

conn / as sysdba
alter system set events '1422 trace name errorstack level 3' ;
-- start the Capture process and reproduce the issue .
conn / as sysdba
alter system set events '1422 trace name errorstack off' ;


This may likely show that the following sql is being executed is :

select ckpt_info from system.logmnr_restart_ckpt$ where session# = :1 and ckpt_scn = :2 and xidusn = :3 and xidslt = :4 and xidsqn = :5 for update




Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms