I want to connect to an Oracle db in JAVA which hosted in cloud. I have server private key and remote details to connect.
I can establish SSH connection to server with private key authentication and created SSH tunnel. Now using this tunnel, I can connect to remote server and forwarded session to local port.
Now I used below URL to connect Oracle DB,
"jdbc:oracle:thin:@//localhost:" + local_port_forward + "/service_name", db_user, db_password
But it throws below error:
java.sql.SQLException: Oracle Error: ORA-12650