• Task
  • Version · 6.0
  • Create

Connect Liquibase to Oracle Database with SSL/TLS

Last updated: September 29, 2026

Before you begin

Procedure

1

Download Oracle JDBC drivers

loading

loading
2

Create server wallet directory

loading
3

Generate server certificate

loading
4

Export server certificate

loading
5

Configure listener.ora

loading

loading
6

Configure server sqlnet.ora

loading
7

Restart and verify Oracle listener

loading
# Test SSL handshake (optional but recommended)
openssl s_client -connect your-server.example.com:2484 -showcerts
8

Create the client wallet

mkdir -p ~/liquibase-ssl
scp your_oracle_user@your_oracle_server:/tmp/server_cert.pem ~/liquibase-ssl/
orapki wallet create -wallet ~/liquibase-ssl -auto_login_only
loading
orapki wallet display -wallet ~/liquibase-ssl
9

Add database credentials to wallet

mkstore -wrl ~/liquibase-ssl \
  -createCredential your_tns_alias your_username your_password
mkstore -wrl ~/liquibase-ssl -listCredential
10

Download Oracle JDBC drivers

loading

loading
11

Create tnsnames.ora

loading
12

Create sqlnet.ora

loading
13

Configure JDBC properties

oracle.net.tns_admin=your_wallet_dir
oracle.net.wallet_location=(SOURCE=(METHOD=FILE)(METHOD_DATA=(DIRECTORY=your_wallet_dir)))
14

Configure Liquibase

loading
15

Create sample changelog

loading
16

Copy ojdbc.properties to root

cp ~/liquibase-ssl/config/ojdbc.properties ~/liquibase-ssl/
17

Set environment variables

loading
18

Test your setup

cd ~/liquibase-ssl
tree -L 2
loading
loading
openssl s_client -connect your-server.example.com:2484 -showcerts
loading
loading
loading
Database is up to date
No changesets to deploy
Liquibase command 'status' was executed successfully.
loading
loading
TCP/IP with SSL/TLS
AES256 Encryption service adapter
SHA256 Crypto-checksumming service