Code Monkey home page Code Monkey logo

lcl101 / openlogreplicator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bersler/openlogreplicator

0.0 1.0 0.0 31.33 MB

Open Source Oracle database CDC written purely in C++. Reads transactions directly from database redo log files and streams in JSON or Protobuf format to: Kafka, flat file, network stream (plain TCP/IP or ZeroMQ)

Home Page: https://www.bersler.com

License: GNU General Public License v3.0

C++ 96.32% Makefile 0.33% M4 0.02% Shell 3.33%

openlogreplicator's Introduction

OpenLogReplicator

Open Source Oracle database CDC written purely in C++. Reads transactions directly from database redo log files and streams in JSON or Protobuf format to:

  • Kafka
  • flat file
  • network stream (plan TCP/IP or ZeroMQ)

Please mind that the code has 2 branches:

  1. master - branch with stable code - updated monthly
  2. nightly - unstable current branch with daily code updates

Updating Protobuf code:

  1. cd proto
  2. export PATH=/opt/protobuf/bin:$PATH
  3. protoc OraProtoBuf.proto --cpp_out=.
  4. mv OraProtoBuf.pb.cc ../src/OraProtoBuf.pb.cpp
  5. mv OraProtoBuf.pb.h ../src/OraProtoBuf.pb.h

Compilation for Debug:

  1. git clone https://github.com/bersler/OpenLogReplicator
  2. cd OpenLogReplicator
  3. autoreconf -f -i
  4. ./configure CXXFLAGS='-g -O0 -fsanitize=address' --with-rapidjson=/opt/rapidjson --with-rdkafka=/opt/librdkafka --with-instantclient=/opt/instantclient_19_11 --with-protobuf=/opt/protobuf --with-zeromq=/usr
  5. make

Compilation for Release:

  1. git clone https://github.com/bersler/OpenLogReplicator
  2. cd OpenLogReplicator
  3. autoreconf -f -i
  4. ./configure CXXFLAGS='-O3' --with-rapidjson=/opt/rapidjson --with-rdkafka=/opt/librdkafka --with-instantclient=/opt/instantclient_19_11 --with-protobuf=/opt/protobuf --with-zeromq=/usr
  5. make

Step 3 is optional and required if you downloaded the files from GIT and timestamps of files may be changed.

Running:

  1. cp sample/OpenLogReplicator.json.example OpenLogReplicator.json
  2. vi OpenLogReplicator.json
  3. export LD_LIBRARY_PATH=/opt/instantclient_19_11:/opt/protobuf/lib:/opt/librdkafka/lib
  4. ./src/OpenLogReplicator

The documentation for the OpenLogReplicator program can be found on https://www.bersler.com/openlogreplicator/

Please do not create issues claiming that the documentation is missing. It is still being created. This is not speed up the process, but will it will down it down. Instead of writing documenation and finishing the code the time is spent on answering questions.

The currently available chapters are:

  1. Getting started: https://www.bersler.com/openlogreplicator/getting-started/
  2. Installation: https://www.bersler.com/openlogreplicator/installation/
  3. Configuration: https://www.bersler.com/openlogreplicator/configuration/
  4. Tutorials: https://www.bersler.com/openlogreplicator/tutorials/
  5. FAQ: https://www.bersler.com/openlogreplicator/faq/
  6. Support: https://www.bersler.com/openlogreplicator/support/
  7. Contribution: https://www.bersler.com/openlogreplicator/contribution/

I have also opened a gitter chat at https://gitter.im/bersler/OpenLogReplicator

openlogreplicator's People

Contributors

bersler avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.