Macrometa source oracle connector for reading from oracle databases.
Project description
macrometa-source-oracle
Macrometa source connector that extracts data from a Oracle database and produces JSON-formatted data following the Singer spec.
How to use it
Install and Run
First, make sure Python 3 is installed on your system or follow these installation instructions for Mac or Ubuntu.
It's recommended to use a virtualenv:
python3 -m venv venv
pip install macrometa-source-oracle
or from source using,
- Install poetry using https://python-poetry.org/docs/#installation
- Run
poetry build pip install dist/macrometa_source_oracle-<version>*.whl
Configuration
Running the the macrometa source connector independently requires a config.json
file.
Example configuration:
{
"host": "dev.oracledb.io",
"port": 1521,
"user": "C##HELLO",
"password": "password",
"service_name": "ORCLCDB",
"filter_schema": "C##HELLO",
"filter_table": "CUSTOMERS",
"default_replication_method": "LOG_BASED",
"pdb_name": "ORCLPDB1",
"multitenant": true,
"scn_window_size": 10
}
You can run a discover run using the previous config.json
file to acquire all the tables definition
macrometa-source-oracle --config /tmp/config.json --discover >> /tmp/catalog.json
Then use the catalog.json to run a full export:
macrometa-source-oracle --config /tmp/config.json --catalog /tmp/catalog.json
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for macrometa-source-oracle-0.0.33.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2eacce8808f614a5c8ef5bff861e965a708f80a723c394a137fd03aff721fe0 |
|
MD5 | 75d812741ba1bb10ee9931dfb9baaf4a |
|
BLAKE2b-256 | 93cd5d940465b0c00eafb636655e76bb9add0de3831f8324505d5e7413ee89ee |
Close
Hashes for macrometa_source_oracle-0.0.33-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0cf3e7cb0b8b02130dbaf464065bb2a7a49cac9f010017b5cffd7138d9ece49 |
|
MD5 | 02b18bb6a35a3bcb418ebc784a3b9ee4 |
|
BLAKE2b-256 | dee0cd03f73d724798d5408971e169d24c389f4724f733892b64c38c593f5693 |