Site icon Radu Pârvu

How to Check Table Replication Status with DBA_GOLDENGATE_SUPPORT_MODE

Oracle GoldenGate is a powerful replication tool that enables real-time data replication across heterogeneous environments. With the release of Oracle 23ai, enhancements in data replication and dictionary views provide more robust insights into replication readiness. One such critical view is DBA_GOLDENGATE_SUPPORT_MODE, which helps Database Administrators (DBAs) determine whether a table is supported for replication and its corresponding mode.


What is DBA_GOLDENGATE_SUPPORT_MODE?


The DBA_GOLDENGATE_SUPPORT_MODE view provides metadata about tables and their compatibility with Oracle GoldenGate. It helps identify whether a table is fully supported, has limitations, or is not supported for replication.


Key Columns in DBA_GOLDENGATE_SUPPORT_MODE

How to Use DBA_GOLDENGATE_SUPPORT_MODE in Oracle 23ai

It is assumed that the environment is setup for Golden Gate replication. E.g.
show parameter ENABLE_GOLDENGATE_REPLICATION
-- ALTER SYSTEM SET ENABLE_GOLDENGATE_REPLICATION=TRUE SCOPE=BOTH SID='*';

To check the replication support status of tables in a database, you can execute the following query:
SELECT OWNER, object_NAME, SUPPORT_MODE 
FROM DBA_GOLDENGATE_SUPPORT_MODE 
ORDER BY OWNER, object_NAME;

This query returns a list of all tables and their replication support status.

Test Cases


Test Case 1: Verifying GoldenGate Support Mode in Oracle 23ai


Let’s go through a simple test case where we create a table, check its support mode, and analyze the output.

Step 1: Create a Sample Table
CREATE TABLE test_table (
  id         NUMBER PRIMARY KEY,
  name       VARCHAR2(100),
  created_at TIMESTAMP DEFAULT SYSTIMESTAMP,
  data       JSON -- New JSON datatype in Oracle 23ai
);
Step 2: Check the GoldenGate Support Mode
select owner, object_name, support_mode
from DBA_GOLDENGATE_SUPPORT_MODE
where object_name like 'TEST_TABLE';

OWNER	        OBJECT_NAME	SUPPOR
--------------------------------------
RADU		TEST_TABLE	FULL  
Step 3: Interpret the Output
  • If the SUPPORT_MODE is SUPPORTED, the table can be fully replicated using GoldenGate.
  • If it is not SUPPORTED, check Oracle’s documentation for potential limitations.

Test Case 2: Verifying GoldenGate Support Mode in Oracle 23ai – AQ Table


Let’s go through a simple test case where we create a table, check its support mode, and analyze the output.

Step 1: Create a Sample AQ Table
BEGIN
DBMS_AQADM.CREATE_QUEUE_TABLE(
queue_table => 'my_queue_table',
queue_payload_type => 'SYS.AQ$_JMS_TEXT_MESSAGE', -- Message type
multiple_consumers => TRUE
);
END;
/
Step 2: Check the GoldenGate Support Mode
select owner, object_name, support_mode, explanation
from DBA_GOLDENGATE_SUPPORT_MODE
where object_name like 'MY_QUEUE_TABLE';

WNER       OBJECT_NAME          SUPPORT_MODE         EXPLANATION         
---------- -------------------- -------------------- --------------------
RADU       MY_QUEUE_TABLE       PLSQL                Table is an Advanced
                                                     Queue Table    
Step 3: Interpret the Output
  • If the SUPPORT_MODE is SUPPORTED, the table can be fully replicated using GoldenGate.
  • If it is not SUPPORTED, check Oracle’s documentation for potential limitations.

Conclusion


With Oracle 23ai, the DBA_GOLDENGATE_SUPPORT_MODE view has been enhanced to provide better insights into table replication compatibility. By leveraging this view, DBAs can proactively identify and address potential replication challenges, ensuring smooth and efficient data synchronization across environments.

Would you like assistance in analyzing the replication readiness of your database? Let me know in the comments!


References

Exit mobile version