OGG Error: ORA-26887: Insufficient Privileges To Attach To XStream Inbound Server (Doc ID 2327707.1)

OGG Error: ORA-26887: Insufficient Privileges To Attach To XStream Inbound Server (Doc ID 2327707.1)

GoldenGate process abends with the following error:

2017-11-10 14:13:13 ERROR OGG-00870 Database error 26887 (OGG-00870: Insufficient privileges to attach to XStream inbound server "OGG$<<QUEUE-TABLE>>".).

 

CAUSE

  1. Registered the GoldenGate process being logged in *dblogin* as user SYS to create the replicat.
  2. Replicat was added as common user at CDB$ROOT

SOLUTION

  1. Unregister the GoldenGate process and recreate it as GGADMIN (the GoldenGate user)

        2.

GGSCI(c##[email protected]/CDB$ROOT) > ADD REPLICAT REPLICAT-NAME INTEGRATED EXTTRAIL ./dirdat/rt

Integrated replicat cannot connect to the root container. The replicat user must connect directly to a specific PDB.

So a specific user must be created.

$ sqlplus / as sysdba
Connect to the specific PDB :

SQL> alter session set container = pdb1 ;
Session altered.

SQL> create user USER-NAME identified by PASSWORD container=current ;
User created.

SQL> grant dba to USER-NAME ;
SQL> exec dbms_goldengate_auth.grant_admin_privilege('USER-NAME',container=>'PDB1');

Check the connection,

SQL> connect USER-NAME/[email protected]
Connected.

You would then DBLOGIN as USER-NAME and use that user for adding the Replicat and also in the parameter file

REPLICAT REPLICAT-NAME
USERID [email protected], PASSWORD PASSWORD

https://docs.oracle.com/en/middleware/goldengate/core/19.1/oracle-db/configuring-capture-integrated-mode.html#GUID-74E23910-A441-4939-BDFD-FE0B2EE9783F

https://docs.oracle.com/en/middleware/goldengate/core/19.1/using/working-data-replications.html#GUID-D8B727DE-0197-42B3-9DA7-EB15D2BC758F

https://docs.oracle.com/en/middleware/goldengate/core/19.1/oracle-db/choosing-capture-and-apply-modes.html#GUID-A289A7C3-632D-49CB-9E11-BE267575D915

In integrated capture mode, the Oracle GoldenGate Extract process interacts directly with a database logmining server to receive data changes in the form of logical change records (LCR). The following diagram illustrates the configuration of Extract in integrated capture mode.

Description of integratedcapture.png follows

About the Integrated Replicat Mode

In integrated mode, the Replicat process leverages the apply processing functionality that is available within the Oracle Database. In this mode, Replicat operates as follows:

  • Reads the Oracle GoldenGate trail.

  • Performs data filtering, mapping, and conversion.

  • Constructs logical change records (LCR) that represent source database DML transactions (in committed order). DDL is applied directly by Replicat.

  • Attaches to a background process in the target database known as a database inbound server by means of a lightweight streaming interface.

  • Transmits the LCRs to the inbound server, which applies the data to the target database.

The following figure illustrates the configuration of Replicat in integrated mode.

Description of integratedapply.png follows