From b3985006045cd289e4442f48e4a0394030d72905 Mon Sep 17 00:00:00 2001 From: Hubert Dulay Date: Fri, 4 Nov 2022 11:38:12 -0400 Subject: [PATCH] [docs] oracle cdc for aws rds --- COPYRIGHT.txt | 1 + .../modules/ROOT/pages/connectors/oracle.adoc | 24 +++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/COPYRIGHT.txt b/COPYRIGHT.txt index 50df8dc33..09249347b 100644 --- a/COPYRIGHT.txt +++ b/COPYRIGHT.txt @@ -176,6 +176,7 @@ Himanshu Mishra Hoa Le Horia Chiorean Hossein Torabi +Hubert Dulay Hussain Ansari Hyunjin Oh Ian Axelrod diff --git a/documentation/modules/ROOT/pages/connectors/oracle.adoc b/documentation/modules/ROOT/pages/connectors/oracle.adoc index 704389767..2e2522370 100644 --- a/documentation/modules/ROOT/pages/connectors/oracle.adoc +++ b/documentation/modules/ROOT/pages/connectors/oracle.adoc @@ -1801,6 +1801,30 @@ archive log list exit; ---- +Oracle AWS RDS does not allow you to execute the commands above nor does it allow you to log in as sysdba. AWS provides these alternative commands to configure LogMiner. Before executing these commands, ensure that your Oracle AWS RDS instance is enabled for backups. + +To confirm that Oracle has backups enabled, execute the command below first. The LOG_MODE should say ARCHIVELOG. If it does not, you may need to reboot your Oracle AWS RDS instance. + +.Configuration needed for Oracle AWS RDS LogMiner +[source,indent=0] +---- +SQL> SELECT LOG_MODE FROM V$DATABASE; + +LOG_MODE +------------ +ARCHIVELOG +---- + +Once LOG_MODE is set to ARCHIVELOG, execute the commands to complete LogMiner configuration. The first command set the database to archivelogs and the second adds supplemental logging. + +.Configuration needed for Oracle AWS RDS LogMiner +[source,indent=0] +---- +exec rdsadmin.rdsadmin_util.set_configuration('archivelog retention hours',24); + +exec rdsadmin.rdsadmin_util.alter_supplemental_logging('ADD'); +---- + To enable {prodname} to capture the _before_ state of changed database rows, you must also enable supplemental logging for captured tables or for the entire database. The following example illustrates how to configure supplemental logging for all columns in a single `inventory.customers` table.