Linux platform

Tools/Libraries

  1. Download and unzip the SQLcl from https://www.oracle.com/database/sqldeveloper/technologies/sqlcl/download/.

    For example, Instant client is unzipped in /home/ubuntu/<user>/instantclient_21_9 and SQLcl is unzipped in /home/ubuntu/<user>/sqlcl.

Setup Oracle wallet

Installing orapki utility from Oracle takes more time and needs to install whole fusion middleware packages. Instead, please use the below script.

#!/bin/bash
# set classpath for orapki - align this to your local SQLcl installation
SQLCL=<sqlcl unzipped path>/lib/ # For ex - /home/ubuntu/<user>/sqlcl/lib/
CLASSPATH=${SQLCL}/oraclepki.jar:${SQLCL}/osdt_core.jar:${SQLCL}/osdt_cert.jar
# simulate orapki command
java -classpath ${CLASSPATH} oracle.security.pki.textui.OraclePKITextUI "$@"
# Make orapki as executable
# chmod +x orapki

Import CA certificate to wallet

  • Download the CA certificate from DB service Overview page.

  • Create wallet directory.

  • Import CA certificate to the wallet.

  • Verify the CA in the wallet.

sqlnet.ora

  • Create sqlnet.ora file with wallet location in <instant_client_path>network/admin.

  • Connect using sqlplus.

    • Download and install sqlplus package.

    • Set ORACLE_HOME (where instant lib and sqlplus are installed/unzipped).

confirm sqlnet.ora is present in $ORACLE_HOME/network/admin

  • Connect to DB.

  • Confirm connected protocol.

Last updated

Was this helpful?