ORA-942 reported on dropping a change data capture table (Doc ID 1665761.1)

Last updated on APRIL 24, 2014

Applies to:

Oracle Database - Enterprise Edition - Version 11.1.0.6 to 11.1.0.7 [Release 11.1]
Information in this document applies to any platform.

Symptoms

When trying to drop a change table an ORA-00942 is reported as follows

BEGIN DBMS_CDC_PUBLISH.DROP_CHANGE_TABLE('CDCP_CBD','C_ZSZ_CHAR_GOSP_RS_ZSZIK','Y'); END;

*
BúaD w linii 1:
ORA-00942: tabela lub perspektywa nie istnieje
ORA-06512: przy "SYS.DBMS_CDC_PUBLISH", linia 810
ORA-06512: przy linia 1

With Streams tracing enabled and an errorstack on 942 set as follows

 results in the following being reported 

 
Streams : knlcfdrl 
   error 942 while looking up the Streams tables. 

with the following stack 
   
kkzugekdl_int <- kkzugekdl <- kntsSetTrigger <- knlcfdrl 

The problem is caused by private synonyms which have the same names as the CDC change tables in the staging database.

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