Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Remote login
Singnet Newsgroup wrote:
> Your guess is right. > I am able to perform a TNSping to the server. > However, when I start the test connection from NET8 Assistant, I encounter > TNS:protocal adapter error. > All linkage seems OK but when tested, it fails. > I was wondering if the failure was due to the NAT at the firewall or router > ? > What do U think? > I don't have a metalink account. > Would appreciate, if it is possible, to summarize it for me. > Thanks a lot. > bye > > "Karsten Farrell" <kfarrell_at_belgariad.com> wrote in message > news:VA8D9.2038$uy7.43823309_at_newssvr14.news.prodigy.com... >
> logon >>>>Bye
>>>to the oracle database.
>>>Is there some port that I need to open on the firewall?
>>>Is there other things that I need to look at?
>>>
A level 16 client trace file can verify if the problem is a firewall issue. In the sqlnet.ora file on the client, add the following lines:
trace_level_client = 16 trace_file_client = client trace_directory_client = c:\temp [or any other valid directory]
Now connect with sqlplus to force the error. Look for the 'nsprecv: packet dump' line. It will be followed by a hex/ascii dump that will show the port change. You can also see it in the 'nttbnd2addr: port resolved to n' line.
The port that is assigned to the client is randomly chosen by the o/s and *can't* be modified. It can be *any* free port available that the server determines is not in use.
Once you have determined that the problem is the firewall causing the connection to fail, the next step is to select a solution to resolve the issue.
*Solution*: Contact firewall vendor to see if they have an upgrade that knows about Oracle's port redirection.
*Solution*: Use Oracle Connection Manager. Configuring this is somewhat complex and is covered in the doc set.
*Solution*: For NT clients, add 'use_shared_socket = true' to registry. This forces all clients to stay on port 1521 (no port redirection). However, if the Listener is stopped (for whatever reason), everyone loses their connection (which is probably why port redirection was invented in the first place ... so I can restart the Listener without dumping everyone).
For some Unix clients, you can encounter problems similar to NT clients if you've implemented MTS (Multi-Threaded Server).
*Solution*: Set up specific MTS ports in your init.ora file. This forces the dispatchers to use the specified ports instead of assigning random ports. This can be effective in SSL connections.
There's more ... and links to related Notes. But I didn't want to type or cut/paste the whole thing. :) Received on Fri Nov 22 2002 - 11:08:13 CST
![]() |
![]() |