My Oracle Support Banner

Mssql- Add Heartbeattable- OGG-05268 Failed to enable change data capture for table 'GGS.<heartbeat table>' in the database '<dbname>'. SQL error: 50000 (Doc ID 2950222.1)

Last updated on JANUARY 28, 2024

Applies to:

Oracle GoldenGate - Version and later
Information in this document applies to any platform.


Why the add heartbeattable was failing with the following error

GGSCI 2> Add heartbeattable frequency 300

2023-05-09 14:15:13  INFO    OGG-14000  Successfully created heartbeat table "[<heartbeat table>]".

2023-05-09 14:15:13  INFO    OGG-14001  Successfully created heartbeat seed table "[<heartbeat table>_SEED]".

2023-05-09 14:15:13  INFO    OGG-14016  Successfully created heartbeat history table "[<heartbeat table>_HISTORY]".

2023-05-09 14:15:14  ERROR   OGG-05268  Failed to enable change data capture for table 'GGS.<heartbeat table>' in the database '<dbname>'. SQL error: 50000: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Could not update the metadata that indicates table [GGS].[<heartbeat table>] is enabled for Change Data Capture. The failure occurred when executing the command 'sp_cdc_create_change_table'. The error returned was 916: 'The server principal "S-1-9-3-2384526852-1182620053-3747026102-721547432" is not able to access the database "<db name>" under the current security context.'. Use the action and error to determine the cause of the failure and resubmit the requ.

2023-05-09 14:15:14  ERROR   OGG-05278  Failed to enable logging of supplemental log data for table: GGS.<heartbeat table>.




To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.