My IP address changes frequently and hence I use ssh tunnel via bastion host to connect to Oracle SQL DB. I used JDBC to connect to the Oracle SQL and it works successfully. However, I want to connect to Oracle DB from my QGIS and I tried adding a new connection using Layer -> Vector Layer -> selected Database radio button. When I tested my connection I got the below error.
Are the procedures for connecting QGIS to Oracle SQL directly and for connecting QGIS to Oracle via tunneling using JDBC is the same?
I set up tunnel in SQL Developer as below:

And in the tns_names file I added port forwarding as follows:
(prdatp_tp = (description= (address=(protocol=tcps)(port=1522)(host=adb.ap-tokyo-1.oraclecloud.com))(connect_data=(service_name=gact2d7ku0cfecu_prdatp_tp.atp.oraclecloud.com))(security=(ssl_server_cert_dn= "CN=adb.ap-tokyo-1.oraclecloud.com,OU=Oracle ADB TOKYO,O=Oracle Corporation,L=Redwood City,ST=California,C=US")) ))
In the sqlnet.ora I provided the path to my wallet folder:
WALLET_LOCATION = (SOURCE = (METHOD = file) (METHOD_DATA = (DIRECTORY="C:/Users/Swathi V/Wallet_prdatp_and_devatp"))) SSL_SERVER_DN_MATCH=yes
I am able to successfully connect to the SQL Oracle DB via bastion host using the above-explained configuration. Coming to QGIS the following is the screenshot of a new connection I tried to create, for which I got an error:




ssh_prdptand the database should be the actual name of the database (and JDBC is completly wrong)