Not possible to connect via Java application (JDBC driver) but SQLplus connects [message #690073] |
Thu, 03 October 2024 17:55 |
|
FranCasas
Messages: 6 Registered: October 2024
|
Junior Member |
|
|
Hello.
I have developed an application on Java, which uses JDBC driver. Locally (in the server machine) it works perfect, but now, I want to connect via an external net (using remote IP with DDNS).
SQLplus can connect without problem, but my application cannot connect, having the IP correctly changed.
Any ideas about this? I have been searching on posts but I have not find anything. In some sides I have read of needing a listener working on the machine with the application (the one which wants to connect to the remote server), but I have also read that the remote listener on the server must be capable of resolving the remote petitions directly from my application with JDBC.
I also don't know how to set up a listener without installing a DB (I have it working on the remote server machine), if the problem is related to that.
Any comment is appreciated.
Thanks in advance.
|
|
|
|
|
|
|
|
|
|
|
|
Re: Not possible to connect via Java application (JDBC driver) but SQLplus connects [message #690086 is a reply to message #690084] |
Sun, 06 October 2024 14:05 |
|
FranCasas
Messages: 6 Registered: October 2024
|
Junior Member |
|
|
Thanks for the explanation Michel.
I have copied my listener.ora:
DEFAULT_SERVICE_LISTENER = XE
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = XE)
In tnsames.ora it is named as you said:
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
)
)
I am a newbie in Oracle connections and this is so new for me.
As I said before, so much thanks.
|
|
|