Skip to content

asman1337/kafka-debezium-oracle-docker-setup

Repository files navigation

Kafka-Debezium with Oracle LogMiner Setup

This guide outlines the setup for Kafka with Debezium and Oracle LogMiner using Docker.

Table of Contents

  1. Prerequisites
  2. Setup
  3. Scripts
  4. Connectors
  5. Other Information
  6. Contact

Prerequisites

Before you begin, make sure you have the following prerequisites installed and configured on your system:

  • Docker: Required for running containers.
  • Docker Compose: Used for managing multi-container Docker applications.
  • Git: Optional, but useful for cloning the repository.

Setup

To get started with Kafka and Debezium with Oracle LogMiner, follow these steps:

  1. Build the Debezium Connect image with OJDBC8:

    docker build -t jdbc-debezium-connect .
    
  2. Start the containers using Docker Compose:

    docker-compose up
    
    • Use docker-compose up -d to run as a daemon (optional).
    • Use docker-compose down to stop the Docker containers.

Scripts

1. create_logminer_user.sh

This script creates the Oracle LogMiner user with all the required permissions.

2. setup_image_docker.sh

Use this script to build the Oracle Docker image from the official Oracle docker-images repository. By default, it will build version 19.3.0e.

3. run.sh

Run this script to start the Docker container with Kafka, Debezium, and the Oracle database with the JDBC connector configured.


Connectors

You can manage connectors using the following commands:

  • Get connectors:

    curl -i -X GET http://localhost:8083/connectors/
    
  • Load a connector (example using oracle-logminer.json):

    curl -i -X POST -H "Accept: application/json" -H "Content-Type: application/json" http://localhost:8083/connectors/ -d @oracle-logminer.json
    
  • Delete a connector (replace oracle-connector with the connector name):

    curl -i -X DELETE http://localhost:8083/connectors/oracle-connector
    
  • Check Connector Status:

    curl -i -X GET http://localhost:8083/connectors/oracle-connector/status
    
  • List Connector Tasks:

    curl -i -X GET http://localhost:8083/connectors/oracle-connector/tasks
    

You can also check the status and troubleshoot any problems with the connectors.


Other Information


Contact

Releases

No releases published

Packages

No packages published