简体   繁体   中英

SSH tunnel doesn't work in DataGrip

I have an Oracle database that is located on server_c and are only accessible if you are on server_b. So in order to connect to this Oracle database, I have to first log in to server_b via SSH, and type in the following command to connect to it.

sqlplus username/password@server_c:1571/service

I would like to connect to the Oracle database in DataGrip, first I typed in my username and password in the SSH/SSL tab.

ssh选项卡

Then I typed in the general database information.

在此输入图像描述

I thought it would be fine, but when I clicked on the Test Connection , I got an error.

Error: Connection to Oracle - @server_c failed. ORA-00604: error occurred at recursive SQL level 1 ORA-20001: Server is not in the List of Valid Application Servers ORA-06512: at line 28

This error occurs if I try to connect to the database directly without logging in to server_b beforehand. In other words, I think DataGrip doesn't connect to the SSH tunnel first before connecting the database.

I'm not sure if I'm using SSH/SSL tab correctly in this way. So if you have any idea why it doesn't work or any solution to it, please let me know.

The clue is in the error message:

Error: Connection to Oracle - @server_c failed. ORA-00604: error occurred at recursive SQL level 1 ORA-20001: Server is not in the List of Valid Application Servers ORA-06512: at line 28

Check with your DBA either of:

  1. a sqlnet.ora valid node checking tcp.validnode_checking = ...

or more likely:

  1. a login trigger that prevents "unknown servers" from logging in.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM