Instructions to connect the Metabase to Oracle Autonomous Database
I decided to write this instruction because I had difficulty connecting my Docker Metabase instance with the Oracle Autonomous Database using SSL. Basically, my difficult was discovery how use the Keyfile in the docker container.
As a reference I use the following links:
- First of all you need to create your Oracle Autonomous database.
- Go to the database details.
- Access DB Connection.
- Download client credentials (Wallet).
- Extract the Wallet.
- Copy the file keystore.jks where you going store the metabase configuration data.
- Use the environment
JAVA_OPTS
to define the followingJVM
options:
-Djavax.net.ssl.keyStore=/path/to/keystore.jks
-Djavax.net.ssl.keyStoreType=JKS \
-Djavax.net.ssl.keyStorePassword=<keyStorePassword>
For example JAVA_OPTS: "-Djavax.net.ssl.keyStore=/scripts/keystore.jks -Djavax.net.ssl.keyStoreType=JKS -Djavax.net.ssl.keyStorePassword=<keyStorePassword>"
- Open the file tnsnames.ora extracted from the Wallet and search the information about
host
,port
andservice_name
, and use it in the database configuration in the metabase.
If you have some question, please open a issue here and ask me.
Thanks!!!