Connecting to Oracle 10g from remote server (L2TP IPSEC VPN)
Hi,
-- Question 1 --
2 Windows 2003 servers, each of them with 1 Oracle 10g database.
Objective = connect to DB 2 (on server 2...) from server 1.
Just for info / background: would like to remove as soon as possible the DB1 on server 1, and install only oracle client on server 1, and use a common/single one and only DB (on server 2...).
Tunnel has been setup successfully from what I can see and port 1521 on server 2 is open.
1. PINGING server 2 from server 1 => successful.
2. TNSPING from server 1 trying to reach the target DB on server 2 => successful too.
3. SQLPLUS from server 1 trying to reach target DB on server 2 ends up on the typical ORA-12514 error message. Looking at the listener.log file, I have:
(CONNECT_DATA=(SERVICE_NAME=<myservice name>)(CID=(PROGRAM=D:\oracle\product\10.2.0\db_3\bin\sqlplus.exe)(HOST=<my host>)(USER=Administrator))) * (ADDRESS=(PROTOCOL=tcp)(HOST=<IP from target DB server>)(PORT=1038)) * establish * <myservice name> * 12514
TNS-12514: TNS: listener could not resolve SERVICE_NAME given in connect descriptor
I tried the following:
Set the variable USE_SHARED_SOCKET to TRUE in the registry => did not help / still getting the same error message.
Wanted now to investigate more on the connection manager in 10g / cman.ora but prefer to come back to you first to get your opinion. What should I do?
-- Question 2 --
Last point / just a question: the listener.log on the server1 shows everytime I try SQL a different port (in the ex. given above: port 1038 this time). Something I was expecting - but with the use of the USE_SHARED_SOCKET = TRUE on the target DB server, I would imagine only 1521 would then be retained after the connection has been engaged on 1521 since only this port is open on the firewall... Am I correct / what I do I miss here?
Any hint very much welcome !
Thanks a lot in advance.
Oracle Database
Last Comment
csi-consulting
8/22/2022 - Mon
Qlemo
10g uses shared socket by default. All connections are done with a single port (1521 as default).
I suppose the problem lies in the service name created. Global name, DNS domain, computer name may all play a role. Look into the listener log or lsnctrl to see which name the service uses actually.
csi-consulting
ASKER
Thanks for the swift reply.
Adapter TNSNAMES zur Auflösung des Alias benutzt
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = <MY DB SERVER IP>)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = <MY SERVICE NAME>)))
OK (40 ms)
Since the TNSPING is fine, it can be "only" at Port level then?
Qlemo
> tnsping ntserver/pre.nonsenseAdapter HOSTNAME zur Auflösung des Alias benutztAttempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=pre.nonsense))(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.x.2)(PORT=1521)))OK (10 ms)
That service name pre.nonsense is nonsense. TNSPing only checks for the server and port (and some compatibility issues maybe), the service name is of no use.
- Thanks -
Which means at least the IP + port 1521 are fine / open.
I will investigate differently / any problem theoretically you are aware of concerning IPSEC? Any risk it is not supported by Oracle in general?
Thanks again
I suppose the problem lies in the service name created. Global name, DNS domain, computer name may all play a role. Look into the listener log or lsnctrl to see which name the service uses actually.