Oracle
Connect & Ingest data from / to an Oracle database
Setup
The following credentials keys are accepted:
host
(required) -> The hostname / ip of the instanceuser
(required) -> The username to access the instancepassword
(required) -> The password to access the instanceschema
(optional) -> This is the default schemasid
(optional) -> The Oracle System ID of the instanceservice_name
(optional) -> The Oracle Service Name of the instancetns
(optional) -> The Oracle TNS string of the instance (example:(DESCRIPTION=(ADDRESS=(PROTOCOL=TCPS)(HOST=my-oracle-database.provider.com)(PORT=1521))(CONNECT_DATA=(SID=my_service)))
).port
(optional) -> The port of the instance. Default is1521
.ssh_tunnel
(optional) -> The URL of the SSH server you would like to use as a tunnel (examplessh://user:password@db.host:22
)ssh_private_key
(optional) -> The private key to use to access a SSH server (raw string or path to file).ssh_passphrase
(optional) -> The passphrase to use to access a SSH server.jdbc_str
(optional) -> The JDBC connection string to use. No need to provideuser
,password
orhost
Using sling conns
sling conns
Here are examples of setting a connection named ORACLE
. We must provide the type=oracle
property:
Environment Variable
Sling Env File YAML
See here to learn more about the sling env.yaml
file.
Oracle Client Dependency
Until version 1.1.13, there was a dependency on the Oracle Client for Sling to work. This is because sling used to use a 3rd party driver which needs it. You can install it by following directions:
Starting in v1.1.14, Sling uses another library for Oracle, which does not need the Oracle client for connection. However, there is an advantage of having the Oracle client installed, as it contains the sqlldr
tool, which sling can use to load data (if present in PATH). Loading data with sqlldr
can be much faster.
If you are facing issues connecting, please reach out to us at support@slingdata.io, on discord or open a Github Issue here.
Last updated