Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Catch up on the newest Qlik features and improvements: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Orlandis
Contributor III
Contributor III

Attunity - Read TRN files from SQL Server

Hello everyone.

I have encountered the following situation.

I have a database that is part of an Always On Availability Group. This database also participates in transactional replication on SQL Server 2022 for Attunity CDC.
In the Availability Group configuration, the backup preference is set to Primary, and the secondary replica is not readable.
Attunity CDC is configured to work only with transaction log backup files.

A transaction log backup for this database was accidentally initiated on the secondary replica, but according to the Availability Group backup preference settings, the backup was actually created on the primary replica.

As a result, the Attunity CDC task stopped and did not continue processing. The log contains the following information:

Orlandis_0-1796298279981.png

I copied the backup metadata for that log backup from the msdb database on the secondary replica to the msdb database on the primary replica, and then tried to restart the Attunity task. Unfortunately, the task stopped again at the same point and did not continue.

msdb.dbo.backupmediafamily (media_set_id, family_sequence_number, device_type, physical_device_name)
msdb.dbo.backupset (backup_set_uuid, media_set_id, name, type, first_lsn, last_lsn, backup_start_date,backup_finish_date, backup_size, database_name, server_name, recovery_model,machine_name, compressed_backup_size, position)

At the moment, it is unclear what is causing this behavior.

One difference I noticed between the backup files is that the problematic backup file does not contain a value for LastValidRestoreTime. This behavior is normal for SQL Server, but it is possible that Attunity stops at this point and is unable to continue processing

Orlandis_1-1796298598089.png

 

Has anyone encountered a similar issue or has any suggestions on how to resolve it?

Thank you in advance for your help.

Labels (1)
0 Replies