How to find the actual SQL statement with the v$logstdby_transaction.primary_xid
(Doc ID 1301409.1)
Last updated on NOVEMBER 29, 2019
Applies to:Oracle Database Cloud Service - Version N/A and later
Oracle Database - Enterprise Edition - Version 10.2.0.1 to 184.108.40.206 [Release 10.2 to 11.2]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Information in this document applies to any platform.
Oracle sample schema(s), Public Documentation delivered with an Oracle database product or other training material. Any similarity to actual
environments, actual persons, living or dead, is purely coincidental and not intended in any manner.
For the purposes of this document, the following fictitious environment is used as an example to describe the procedure:
Table Name: TEST01
The intention of this note is to provide a way to find out what is the actual SQL statement that is running in the Primary database where that primary_xid is identified from the logical standby database.
This should work if:
1) The SQL statement is not age out; and
2) Active session history has captured the information.
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