ORA-12537: TNS:connection closed - TNS-12535: TNS:operation timed out ora error
FranklinFaces.com
FranklinFaces.com - Oracle & SQL Server Database Forums for all IT Professionals
 Home          Members     Calendar     Who's On

Welcome Guest ( Login | Register )
        



ORA-12537: TNS:connection closed -... Expand / Collapse
Message
Posted 12/1/2009 1:39:56 AM Post #168
 

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being
I got this ora error message when a user pointed it out to me that they can't connect to database using TOAD.

ORA-12537: TNS:connection closed

I asked the user to send me more info and that's all he was able to provide.  I noticed in the sqlnet.ora the following :

Fatal NI connect error 12170.

  VERSION INFORMATION:
        TNS for IBM/AIX RISC System/6000: Version 10.2.0.3.0 - Production
        TCP/IP NT Protocol Adapter for IBM/AIX RISC System/6000: Version 10.2.0.3.0 - Production
        Oracle Bequeath NT Protocol Adapter for IBM/AIX RISC System/6000: Version 10.2.0.3.0 - Production
  Time: 30-NOV-2009 14:55:06
  Tracing not turned on.
  Tns error struct:
    ns main err code: 12535
    TNS-12535: TNS:operation timed out
    ns secondary err code: 12560
    nt main err code: 505
    TNS-00505: Operation timed out
    nt secondary err code: 78
    nt OS err code: 0
  Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=120.12.214.2)(PORT=1521))

I restarted the listener and that didn't help either.  Then i logged into the database and noticed that there were 396 connections to the database and the processes parameter was set to 400.

I had to open emergency ticket to recycle the production database to change the value to 900 from 400 and restarted the database.

This fixed the problem and user was able to connect and i stopped seeing those errors.

Hope this helps.

Thanks,

Posted 6/11/2010 10:40:57 AM Post #215
 

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being
ORA-12537: TNS: connection closed error

ORA-12537 TNS:connection closed
Cause: Normal "end of file" condition has been reached; partner has disconnected.
Action: None needed; this is an information message.

 

Make sure you tnsnames.ora and listener.ora are all ok.  and if they are ...other then you max processes being reached, check your firewall and make sure the port is open and allowing connections to come in.

One last thing is to check your sqlnet.ora file to make sure all the parameters you set in there are all ok and that they work as they should because slight mistake in there can cause this as well.

hope this helps.

 

Posted 6/11/2010 10:41:30 AM Post #216
 

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

What to do with ORA-12537: TNS: connection closed error

The ORA-12537 is an information message and means that the connection has been closed. This can be caused by a number of reasons:
1. Database is shut down (maybe for nightly backup), but connection to database was kept by client.
2. A time-out occurred on the client-connection.
3. When firewall closes idle connections.
3. A configuration problem in sqlnet.ora or listener.ora.
4. You have a path name that is too long for the Oracle TNS client on windows. (MetaLink Note:263489.1 )
This issue is due to the connection string being large enough that the connection packet is being split into two packets and then sent to the listener. There are several workarounds for the issue.
a. Install the exe in a shorter named directory.
b. Modify the TNS Names entry so that it is shorter.
c. Replace domain names with IP Addresses if that shortens and vice versa.
d. Remove any parameters from the entry that are not needed.
e. Patch the Database Listener to the most recent version.
5. Oracle security is enables (for example in Oracle Apps). Solution either:
a) Edit sqlnet.ora file and add your client-ip to tcp.invited_nodes.
b) Remove secutity by editing sqlnet.ora and comment out parameter tcp.validnode_checking = yes by adding # at the beginning of the line.
Posted 6/11/2010 10:43:55 AM Post #217
 

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being
TNS-00507 Connection closed

ORA-12537

Also remember,  when you upgrade your databases, remember to update the listener as well.  

9i listener does not supports 10g database. Just use 10g listener. Allways the higher listener version supports lower DB versions but not the opposite .

Hope this helps.

Posted 6/14/2010 12:33:09 PM Post #311
 

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

NI  

Net8 Interface Layer  

NR  

Network Routing  

NN  

Network Naming (Oracle Names)  

NS  

Network Session (main and secondary layers)  

NA  

Native Services includes Network Authentication (NA) and Network Encryption (NAE)  

NT  

Network Transport (main, secondary, and operating system layers)  

Your network may or may not include all of these components.

Error Example

As an example, suppose that a user of a client application tries to establish a connection with a database server using Net8 and TCP/IP, and the user enters:

sqlplus scott/tiger@hrserver.world 

The SQL*Plus banner is displayed on the screen, and the following error is displayed:

ORA-12203: TNS:Unable to connect to destination

This message indicates that the connection to the server failed because the database could not be contacted. Although the application displays only a one-line error message, an error stack that is much more informative is recorded in the log file by the network layer. On the client-side, a log file called SQLNET.LOG, contains an error stack corresponding to the ORA-12203 error as follows:

Example 10-1 Typical Error Stack

***********************************************************

Fatal OSN connect error 12203, connecting to: 
(DESCRIPTION=(CONNECT_DATA=(SID=trace)(CID=(PROGRAM=)   
(HOST=lala)(USER=sviavant)))(ADDRESS_LIST=(ADDRESS=   
(PROTOCOL=ipc)(KEY=trace))(ADDRESS=(PROTOCOL=tcp)   (HOST=lala)(PORT=1521))))
VERSION INFORMATION:TNS for SunOS:Oracle Bequeath NT Protocol Adapter for SunOS:
Unix Domain Socket IPC NT Protocol Adaptor for SunOS: TCP/IP NT Protocol Adapter for SunOS:  
Tracing to file: /home/sviavant/trace_admin.trc  Tns error struct:    nr err code: 12203    
TNS-12203: TNS:unable to connect to destination    ns main err code: 12541    
TNS-12541: TNS:no listener    
ns secondary err code: 12560    
nt main err code: 511    
TNS-00511: No listener    
nt secondary err code: 61    
nt OS err code: 0
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 2 (2 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: silencer

Permissions Expand / Collapse

All times are GMT -5:00, Time now is 7:13am

Powered By InstantForum.NET v4.1.4 © 2010
Execution: 0.087. 6 queries. Compression Disabled.