Home » RDBMS Server » Networking and Gateways » TNSPing is OK but connect by sqlplus is error
TNSPing is OK but connect by sqlplus is error [message #67570] |
Sat, 16 October 2004 18:20  |
Nguyen Lam
Messages: 2 Registered: October 2004
|
Junior Member |
|
|
Hi all,
I get this trouble, I installed Oracle 9i database on Windows 2000 Advance Server. When it located in our company, I connect to it successfully! When I put the server in our ISP, I can't connect (even tnsping, using port 1521). So I change listener port setting to another port, tnsping is OK, but when using sqlplus, it shows error: "ORA-12543 TNS:destination host unreachable".
I think that in tnsping, the server reply to port is configured. But in sqlplus, it reply to another port that isn't allowed by firewall. Is it right???
Please help me in connect to that server!
|
|
|
Re: TNSPing is OK but connect by sqlplus is error [message #67637 is a reply to message #67570] |
Mon, 29 November 2004 21:04   |
Mohamad Wahyudi
Messages: 2 Registered: November 2004
|
Junior Member |
|
|
Hi there....
I have a same problem with Nguyen Lam.
My case is described below :
We have setup two oracle server connected each other thru firewall in between, but currently we have a problem with this connection.
Say Server A and Server B.
When Server A is trying to connect to Server B either using TNSPing and SQLPlus, they will establish properly. And I've the used tcp port is 1521 for both connection at Server B, and tcphigh port at Server A, and it is normal, since Server A is a calling server.
But it was the opposite situation, when B connect to A.
using the TNSPing, B will connect to A using tcp port 1521, but when B trying to connect to A using SQLPlus, then they will use randow tcp port at both sides.
At A, the tcp port used was in incremental count.
First attempt, it used tcp 1023, 2nd attempt used tcp 1024, 3rd attempt used 1025 etc.
Is this case, at firewall we can not set the destination port at A to be 1521, since the destination port at A is always used randomly (count up).
How to solve it. Is there any solution on this. We have set the tsname.ora and listener.ora using the same tcp port 1521.
Looking forward to hearing your advised in short.
Best regards, Wahyudi - ABN AMRO Bank jakarta.
|
|
|
|
|
Re: TNSPing is OK but connect by sqlplus is error [message #67643 is a reply to message #67642] |
Tue, 30 November 2004 16:11  |
Nguyen Lam
Messages: 2 Registered: October 2004
|
Junior Member |
|
|
Dear Mohamad Wahyudi,
I've just resolve the problem by setting the registry value:
It located at: HKEY_LOCAL_MACHINESOFTWAREORACLEHOME0
At the following key: USE_SHARED_SOCKET (string value) with value: TRUE
Reboot your machine and ... ok!
Hope it solve your problem!
Regards,
Lam Nguyen
IT Dept,
MHB Bank, Vietnam
* Addr. : MHB Bank - Head Office - 09 Vo Van Tan street, Dist 3, Ho Chi Minh City, Vietnam
* Phone : +848 9302509
* e-mail : lamnguyen@mhb.com.vn
|
|
|
Goto Forum:
Current Time: Fri May 02 05:48:01 CDT 2025
|