My Oracle Support Banner

After An Unexpected Halt For The Replication Source Running XA Transactions, The Replica SQL Thread Fails With Error 'XAER_NOTA: Unknown XID', Error_code: 1397 (Doc ID 2637217.1)

Last updated on SEPTEMBER 09, 2021

Applies to:

MySQL Server - Version 5.6 and later
Information in this document applies to any platform.
Disclaimer: Starting from v8.0, some terms have been deprecated. Older releases will only use the deprecated terminology, and new releases will only use new terminology. Please see for a complete list of those changes, and in which minor versions it happened.


After an unexpected MySQL server halt (eg. kill -9 on Unix or shuts down abnormally) for the replication source running XA transactions, the replica SQL thread may fail with Error 'XAER_NOTA: Unknown XID', Error_code: 1397 when the source is recovered and the replication is resuming. Here is an example of the error message on the replica:



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.