Hi,
I am trying to create a cloud saved connection using SQLcl connection manager but having some issues.
SQLcl : 23.2
OS : Windows 11
DB : on-prem DB using & Oracle cloud Autonomous DB
Prerequisite:
Provision autonomous transaction db and enable mTLS connection.
Steps
- Creating connection in oracle SQL Developer
- on-prem connection created and saved with password.
- Cloud DB connection created using cloud wallet and saved with password.
- Cloud DB connection created using “Custom JDBC” and saved with password.
- Exporting saved connections from sql developer as json file.
- SQLcl
- Run SQLcl with /nolog
- cm import -duplicates replace C:\Directory\SavedConnection.json
- Success message received for on-prem connection.
- Error message received for cloud connection with wallet and I had to edit the json file to change wallet path to the format “file:/C:/directory/wallet.zip” then rerun same command.
- Error message received for cloud connection using “Custom JDBC”, “Failure - Unable to convert Oracle connection type ADVANCED” I was not able to work around it.
- Connection using saved connection:
- conn -name on_prim_connection
- connection successful.
- Conn -name cloud_connection_using_Wallet
- Error received: The Network Adapter could not establish the connection (CONNECTION_ID=1oc4eWVNQ4aFge5vNJsQeQ==)
Issue:
I was not able to connect to a saved oracle cloud autonomous db connection using wallet or custom JDBC. Error received “The Network Adapter could not establish the connection (CONNECTION_ID=1oc4eWVNQ4aFge5vNJsQeQ==)”.
Note:
I was able to connect from SQLcl using below commands:
- Without wallet
conn username/password@tns
- Using Wallet
conn -cloudconfig "C:\directory\Wallet.zip" username/password@tns_alias