|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
ORA-12535: TNS:operation timed out
Hi all,
I recently set up a database on a new server (SID=RRNEW), and can connect to it fine with sqlplus on the server. But I cannot connect to it from my pc with sqlplus. The server has an active firewall, but port 1521 is open. I can successfully tnsping the database from my pc. Initially I was getting this error message (from sqlnet.log on my pc) Fatal NI connect error 12560, connecting to: (DESCRIPTION=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracleORCL)(ARGS='(DESCRIPTION=(LOCAL=YES )(ADDRESS=(PROTOCOL=beq)))'))(CONNECT_DATA=(SID=ORCL)(CID=(PROGRAM=C:\oracle\Ora92\bin\sqlplus.exe)( HOST=MERL)(USER=DaUser)))) VERSION INFORMATION: TNS for 32-bit Windows: Version 9.2.0.1.0 - Production Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 9.2.0.1.0 - Production Time: 16-MAR-2005 13:58:03 Tracing not turned on. Tns error struct: nr err code: 0 ns main err code: 12560 TNS-12560: TNS rotocol adapter errorns secondary err code: 0 nt main err code: 530 TNS-00530: Protocol adapter error nt secondary err code: 126 nt OS err code: 0 I went and reconfigured the Oracle Listener with the Net Configuration Assistant, and restarted the listener. Now I get this error attempting to login: Fatal NI connect error 12535, connecting to: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.64)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=RRNew )(CID=(PROGRAM=C:\oracle\Ora92\bin\sqlplus.exe)(HOST=MERL)(USER=DaUser)))) VERSION INFORMATION: TNS for 32-bit Windows: Version 9.2.0.1.0 - Production Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 9.2.0.1.0 - Production Time: 16-MAR-2005 15:16:30 Tracing not turned on. Tns error struct: nr err code: 0 ns main err code: 12535 TNS-12535: TNS peration timed outns secondary err code: 12560 nt main err code: 505 TNS-00505: Operation timed out nt secondary err code: 60 nt OS err code: 0 Any ideas what is stopping me from connecting? Thanks in advance. |
|
#2
|
|||
|
|||
|
Ok, I have more information now. I turned tracing on on the client.
The connection to oracle on port 1521 works, but it then gets re-directed to port 1922 (a different port every login attempt). Obviously this gets blocked by the firewall, since that port is closed. Possible solutions: 1. Turn the firewall off (unacceptable medium to longterm) 2. Restrict whatever allocates the second port to a narrow range, and open those ports on the firewall. Does anybody know what allocates those ports when clients are connecting? Excerpt from trace file from client: [17-MAR-2005 10:47:49:156] nigini: Count in NI global area now: 1 [17-MAR-2005 10:47:49:156] nigini: Count in NI global area now: 1 [17-MAR-2005 10:47:49:156] nrigbni: Unable to get data from navigation file tnsnav.ora [17-MAR-2005 10:47:49:156] niotns: niotns: setting up interrupt handler... [17-MAR-2005 10:47:49:156] niotns: Not trying to enable dead connection detection. [17-MAR-2005 10:47:49:156] niotns: Calling address: (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.64)(PORT=1521)))(CONNECT_DATA=(SER VICE_NAME=RRNew)(CID=(PROGRAM=C:\oracle\Ora92\bin\sqlplus.exe)(HOST=MERL)(USER=Administrator)))) [17-MAR-2005 10:47:49:156] nscall: connecting... [17-MAR-2005 10:47:49:156] nttgetport: port resolved to 1521 [17-MAR-2005 10:47:49:156] nttbnd2addr: using host IP address: 192.168.1.64 [17-MAR-2005 10:47:49:156] nsopen: opening transport... [17-MAR-2005 10:47:49:166] nttcnp: Validnode Table IN use; err 0x0 [17-MAR-2005 10:47:49:166] nttcni: trying to connect to socket 820. [17-MAR-2005 10:47:49:166] nttcni: connected on ipaddr 192.168.1.51 [17-MAR-2005 10:47:49:166] nttcon: set TCP_NODELAY on 820 [17-MAR-2005 10:47:49:166] nsopen: transport is open [17-MAR-2005 10:47:49:166] nsnainit: inf->nsinfflg[0]: 0x61 inf->nsinfflg[1]: 0x61 [17-MAR-2005 10:47:49:166] nsopen: global context check-in (to slot 0) complete [17-MAR-2005 10:47:49:166] nscon: doing connect handshake... [17-MAR-2005 10:47:49:166] nscon: sending NSPTCN packet [17-MAR-2005 10:47:49:196] nscon: got NSPTRD packet [17-MAR-2005 10:47:49:196] nscall: redirected [17-MAR-2005 10:47:49:196] nstimarmed: no timer allocated [17-MAR-2005 10:47:49:196] nsclose: closing transport [17-MAR-2005 10:47:49:196] nsclose: global context check-out (from slot 0) complete [17-MAR-2005 10:47:49:196] nscall: connecting... [17-MAR-2005 10:47:49:196] nttgetport: port resolved to 1922 [17-MAR-2005 10:47:49:196] nttbnd2addr: using host IP address: 192.168.1.64 [17-MAR-2005 10:47:49:196] nsopen: opening transport... [17-MAR-2005 10:47:49:196] nttcnp: Validnode Table IN use; err 0x0 [17-MAR-2005 10:47:49:196] nttcni: trying to connect to socket 860. [17-MAR-2005 10:48:10:236] ntt2err: soc 860 error - operation=1, ntresnt[0]=505, ntresnt[1]=60, ntresnt[2]=0 [17-MAR-2005 10:48:10:236] nserror: nsres: id=0, op=65, ns=12535, ns2=12560; nt[0]=505, nt[1]=60, nt[2]=0; ora[0]=0, ora[1]=0, ora[2]=0 [17-MAR-2005 10:48:10:236] nsopen: unable to open transport [17-MAR-2005 10:48:10:236] nioqper: error from nscall [17-MAR-2005 10:48:10:236] nioqper: nr err code: 0 [17-MAR-2005 10:48:10:246] nioqper: ns main err code: 12535 [17-MAR-2005 10:48:10:246] nioqper: ns (2) err code: 12560 [17-MAR-2005 10:48:10:246] nioqper: nt main err code: 505 [17-MAR-2005 10:48:10:246] nioqper: nt (2) err code: 60 [17-MAR-2005 10:48:10:246] nioqper: nt OS err code: 0 [17-MAR-2005 10:48:10:246] niqme: reporting NS-12535 error as ORA-12535 [17-MAR-2005 10:48:10:246] niomapnserror: returning error 12535 [17-MAR-2005 10:48:10:246] niotns: Couldn't connect, returning 12535 [17-MAR-2005 10:48:10:246] nigtrm: Count in the NI global area is now 0 [17-MAR-2005 10:48:10:246] nigtrm: Count in the NL global area is now 0 |
|
#3
|
||||
|
||||
|
This should do the trick, it's client oriented but it explains pretty clearly how the ports are chosen.
Please report your experience. Another article suggests a server side solution (and also lists some caveats) Quote:
__________________
My blog Tutorials about OSS databases, DBMonster ... Contribute to OSS Development, fill bug reports! Developer Shed eSupport Commented my.ini/my.cnf (ADD YOUR OWN CONFIG TRICK) An introduction to database normalization Natural or Surrogate key Custom ordering for your results Correlated and uncorrelated subqueries Don't turn your outer joins into inner joins Random data (with a bias) Last edited by pabloj : March 16th, 2005 at 04:18 PM. |
|
#4
|
|||
|
|||
|
I'm an idiot. That looks like it should solve my problem, but I was too hasty in saying that it solved it.
After setting USE_SHARED_SOCKET=TRUE in the registry on both the client and the server (and rebooting both) it still is getting redirected to another port that is closed. [17-MAR-2005 15:48:40:216] nigini: Count in NI global area now: 1 [17-MAR-2005 15:48:40:216] nigini: Count in NI global area now: 1 [17-MAR-2005 15:48:40:216] nrigbni: Unable to get data from navigation file tnsnav.ora [17-MAR-2005 15:48:40:216] niotns: niotns: setting up interrupt handler... [17-MAR-2005 15:48:40:216] niotns: Not trying to enable dead connection detection. [17-MAR-2005 15:48:40:216] niotns: Calling address: (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.64)(PORT=1521)))(CONNECT_DATA=(SER VICE_NAME=RRNew)(CID=(PROGRAM=C:\oracle\Ora92\bin\sqlplus.exe)(HOST=MERL)(USER=Administrator)))) [17-MAR-2005 15:48:40:216] nscall: connecting... [17-MAR-2005 15:48:40:216] nttgetport: port resolved to 1521 [17-MAR-2005 15:48:40:226] nttbnd2addr: using host IP address: 192.168.1.64 [17-MAR-2005 15:48:40:226] nsopen: opening transport... [17-MAR-2005 15:48:40:226] nttcnp: Validnode Table IN use; err 0x0 [17-MAR-2005 15:48:40:226] nttcni: trying to connect to socket 820. [17-MAR-2005 15:48:40:226] nttcni: connected on ipaddr 192.168.1.51 [17-MAR-2005 15:48:40:226] nttcon: set TCP_NODELAY on 820 [17-MAR-2005 15:48:40:226] nsopen: transport is open [17-MAR-2005 15:48:40:226] nsnainit: inf->nsinfflg[0]: 0x61 inf->nsinfflg[1]: 0x61 [17-MAR-2005 15:48:40:226] nsopen: global context check-in (to slot 0) complete [17-MAR-2005 15:48:40:226] nscon: doing connect handshake... [17-MAR-2005 15:48:40:226] nscon: sending NSPTCN packet [17-MAR-2005 15:48:40:246] nscon: got NSPTRD packet [17-MAR-2005 15:48:40:246] nscall: redirected [17-MAR-2005 15:48:40:246] nstimarmed: no timer allocated [17-MAR-2005 15:48:40:246] nsclose: closing transport [17-MAR-2005 15:48:40:246] nsclose: global context check-out (from slot 0) complete [17-MAR-2005 15:48:40:246] nscall: connecting... [17-MAR-2005 15:48:40:246] nttgetport: port resolved to 2151 [17-MAR-2005 15:48:40:246] nttbnd2addr: using host IP address: 192.168.1.64 [17-MAR-2005 15:48:40:246] nsopen: opening transport... [17-MAR-2005 15:48:40:246] nttcnp: Validnode Table IN use; err 0x0 [17-MAR-2005 15:48:40:246] nttcni: trying to connect to socket 860. [17-MAR-2005 15:49:01:256] ntt2err: soc 860 error - operation=1, ntresnt[0]=505, ntresnt[1]=60, ntresnt[2]=0 [17-MAR-2005 15:49:01:256] nserror: nsres: id=0, op=65, ns=12535, ns2=12560; nt[0]=505, nt[1]=60, nt[2]=0; ora[0]=0, ora[1]=0, ora[2]=0 [17-MAR-2005 15:49:01:256] nsopen: unable to open transport [17-MAR-2005 15:49:01:256] nioqper: error from nscall [17-MAR-2005 15:49:01:256] nioqper: nr err code: 0 [17-MAR-2005 15:49:01:256] nioqper: ns main err code: 12535 [17-MAR-2005 15:49:01:256] nioqper: ns (2) err code: 12560 [17-MAR-2005 15:49:01:256] nioqper: nt main err code: 505 [17-MAR-2005 15:49:01:256] nioqper: nt (2) err code: 60 [17-MAR-2005 15:49:01:256] nioqper: nt OS err code: 0 [17-MAR-2005 15:49:01:256] niqme: reporting NS-12535 error as ORA-12535 [17-MAR-2005 15:49:01:256] niomapnserror: returning error 12535 [17-MAR-2005 15:49:01:256] niotns: Couldn't connect, returning 12535 [17-MAR-2005 15:49:01:256] nigtrm: Count in the NI global area is now 0 [17-MAR-2005 15:49:01:256] nigtrm: Count in the NL global area is now 0 |
|
#5
|
||||
|
||||
|
The first solution I posted is for the client (i.e. personal firewall) the second is for the server, you shouldn't mix them up.
|
![]() |
| Viewing: Dev Shed Forums > Databases > Oracle Development > ORA-12535: TNS:operation timed out |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|