OGG-01169 encountered an update where all key columns for target table

Hi,

You can get ” OGG-01169 encountered an update where all key columns for target table ” error.

 

 

Details of error are as follows.

 

                          : [/ggateb01/goldengate/product/GG19cFor18cDB/replicat(ggs::gglib::MultiThreading::MainThread::Run(int, char**))]
                          : [/ggateb01/goldengate/product/GG19cFor18cDB/replicat(main)]
                          : [/lib64/libc.so.6(__libc_start_main)]
                          : [/ggateb01/goldengate/product/GG19cFor18cDB/replicat()]

2020-05-17 04:09:09  ERROR   OGG-01169  Encountered an update where all key columns for target table MSDBA.TEST_TABLE are not present.




 

To solve this error, Use KEYCOLS parameter to define the primary key.

And Add APPLYNOOPUPDATES to replicat parameter file to force the update to be applied using all columns in both the SET and WHERE clause.

When I add APPLYNOOPUPDATES to replicat parameter file, replicat process works fine.

 

Second case and solution of this error are as follows.

1) Create Unique Index at Target with new name.

CREATE UNIQUE INDEX "<USER>"."<TABLE>2" ON "<USER>"."<TABLE>" ("EMPLID", "EMPL_RCD", "EFFDT", "EFFSEQ")

 

2) Make the unique index “INVISIBLE” so it doesn’t impact application queries.

ALTER INDEX <index name> INVISIBLE;

 

3) Use OGG parameter ALLOWINVISIBLEINDEXKEYS

Use the ALLOWINVISIBLEINDEXKEYS parameter in the GLOBALS file to allow Extract and Replicat to use columns that are part of an Oracle invisible index as a unique row identifier. By default, the process abends when this type of index is the only available unique identifier.

set the following parameter to TRUE in the params.sql

script:
define allow_invisible_index_keys = 'TRUE'

This functionality is automatically enabled for integrated capture and replicat.

 

 

Do you want to learn Oracle Goldengate from scratch, then read the following Goldengate Tutorial articles.

https://ittutorial.org/goldengate-tutorials-oracle-for-beginners/

 540 views last month,  13 views today

About Mehmet Salih Deveci

I am Founder of SysDBASoft IT and IT Tutorial and Certified Expert about Oracle & SQL Server database, Goldengate, Exadata Machine, Oracle Database Appliance administrator with 10+years experience. I have OCA, OCP, OCE RAC Expert Certificates I have worked 100+ Banking, Insurance, Finance, Telco and etc. clients as a Consultant, Insource or Outsource. I have done 200+ Operations in this clients such as Exadata Installation & PoC & Migration & Upgrade, Oracle & SQL Server Database Upgrade, Oracle RAC Installation, SQL Server AlwaysOn Installation, Database Migration, Disaster Recovery, Backup Restore, Performance Tuning, Periodic Healthchecks. I have done 2000+ Table replication with Goldengate or SQL Server Replication tool for DWH Databases in many clients. If you need Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS Consultancy and Training you can send my email adress mehmetsalih.deveci@outlook.com. -                                                                                                                                                                                                                                                 - Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS ve linux Danışmanlık ve Eğitim için  mehmetsalih.deveci@outlook.com a mail atabilirsiniz.

Check Also

blank

OGG-08223 ERROR: One or more containers must be specified when registering Extract for a container database.

Hi, Sometimes You can get ” OGG-08223 ERROR: One or more containers must be specified …

Leave a Reply