Skip to content

Latest commit

 

History

History
57 lines (32 loc) · 1.1 KB

File metadata and controls

57 lines (32 loc) · 1.1 KB

Read from Oracle 21.3 XE and write changes to a file.

Create Docker images:

The following images are required for this tutorial:

  • Oracle Database 21.3 XE (oracle/database:21.3.0-xe)
  • OpenLogReplicator (bersler/openlogreplicator:tutorial)

Refer to Docker images for image creation scripts.

Containers names.

The default container names are:

  • ORA1 - Oracle Database 21.3 XE
  • OLR1 - OpenLogReplicator

Container names are defined cfg.sh script.

Folders used by this tutorial

All files for the database devices and redo log files are placed outside the containers. Refer to The folders are created in step 2 and cleaned up in step 5.

Run test

  1. Check if images are correct:

Run:

./1.check.sh
  1. Setup folders for database tablespaces and scripts

Run:

./2.setup.sh
  1. Create containers

Run:

./3.create.sh
  1. Run SQL and check results

Run:

./4.test.sh

The expected result would be that the output dir has resuts.txt file with the JSON representation of the transaction run from the sql/test.sql script

  1. Cleanup

Run:

./5.cleanup.sh