Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Setup Oracle Server
https://github.com/oracle/docker-images/blob/main/OracleDatabase/SingleInstance/README.md#running-oracle-database-enterprise-and-standard-edition-2-in-a-container
After building the 19.3.0-ee docker image, run:
Populate data
First login as sysdba to the PDB:
Create a new user named
CHUBEI
(this is hardcoded in the test binary) and insert some data:Create the replication user
Login to CDB as sysdba:
Enable supplemental logging, create replication user
C##DOZER
(this is hardcoded in test binary) and grant permissions:Login to PDB again and grant more permissions:
Setup Oracle Client
Download client from https://www.oracle.com/database/technologies/instant-client/downloads.html.
Run snapshot and replication
RUST_LOG=info DYLD_LIBRARY_PATH=/Users/chubei/Downloads/instantclient_19_16/ cargo test --target x86_64-apple-darwin -p dozer-ingestion-oracle -- --ignored --nocapture
This is what I use on apple silicon, adjust path and target accordingly.
You should see log like:
Now login as
CHUBEI
to PDB:And insert some data:
Now the test process should output something like:
Known working types
%d-%b-%y
format, example: 15-JAN-22%d-%b-%y %I.%M.%S%.6f %p
format, example: 04-FEB-24 12.19.18.326567 AMNULLs are already handled.