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:
- master - branch with stable code - updated monthly
- nightly - unstable current branch with daily code updates
Updating Protobuf code:
- cd proto
- export PATH=/opt/protobuf/bin:$PATH
- protoc OraProtoBuf.proto --cpp_out=.
- mv OraProtoBuf.pb.cc ../src/OraProtoBuf.pb.cpp
- mv OraProtoBuf.pb.h ../src/OraProtoBuf.pb.h
Compilation for Debug:
- git clone https://github.com/bersler/OpenLogReplicator
- cd OpenLogReplicator
- autoreconf -f -i
- ./configure CXXFLAGS='-g -O0 -fsanitize=address' --with-rapidjson=/opt/rapidjson --with-rdkafka=/opt/librdkafka --with-instantclient=/opt/instantclient_19_8 --with-protobuf=/opt/protobuf --with-zeromq=/usr
- make
Compilation for Release:
- git clone https://github.com/bersler/OpenLogReplicator
- cd OpenLogReplicator
- autoreconf -f -i
- ./configure CXXFLAGS='-O3' --with-rapidjson=/opt/rapidjson --with-rdkafka=/opt/librdkafka --with-instantclient=/opt/instantclient_19_8 --with-protobuf=/opt/protobuf --with-zeromq=/usr
- make
Step 3 is optional and required if you downloaded the files from GIT and timestamps of files may be changed.
Running:
- cp sample/OpenLogReplicator.json.example OpenLogReplicator.json
- vi OpenLogReplicator.json
- export LD_LIBRARY_PATH=/opt/instantclient_19_8:/opt/protobuf/lib:/opt/librdkafka/lib
- ./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:
- Getting started: https://www.bersler.com/openlogreplicator/getting-started/
- Installation: https://www.bersler.com/openlogreplicator/installation/
- Configuration: https://www.bersler.com/openlogreplicator/configuration/
- Tutorials: https://www.bersler.com/openlogreplicator/tutorials/
- FAQ: https://www.bersler.com/openlogreplicator/faq/
- Support: https://www.bersler.com/openlogreplicator/support/
- Contribution: https://www.bersler.com/openlogreplicator/contribution/
I have also opened a gitter chat at https://gitter.im/bersler/OpenLogReplicator