﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>FranklinFaces.com - Oracle &amp; SQL Server Database Forums for all IT Professionals / Oracle Forum / ORA - Oracle Database Error Codes - Search via specific error codes. / ORA-10560 Through ORA-19999  / ORA-12519: TNS:no appropriate service handler found tips / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>FranklinFaces.com - Oracle &amp; SQL Server Database Forums for all IT Professionals</description><link>http://www.franklinfaces.com/</link><webMaster>no-reply@FranklinFaces.com</webMaster><lastBuildDate>Thu, 09 Sep 2010 14:58:39 GMT</lastBuildDate><ttl>20</ttl><item><title>ORA-12519: TNS:no appropriate service handler found tips</title><link>http://www.franklinfaces.com/Topic107-55-1.aspx</link><description>Users were getting the following ora error messages and I noticed the the listener.log had some entries that showed the state=blocked.   Here are my findings and solution.&lt;P&gt;Users are getting below errors in their app logs connecting to the database. &lt;/P&gt;&lt;DIR&gt;&lt;B&gt;&lt;P&gt;&lt;FONT color=#3333dd&gt;Error Message:&lt;/FONT&gt;&lt;/B&gt;&lt;FONT color=#3333dd&gt; MYPRODDB Io exception: Connection refused (DESCRIPTION= (TMP=) (VSNNUM=153093632)(&lt;B&gt;ERR=12519&lt;/B&gt;)(ERROR_STACK=(ERROR=(&lt;B&gt;CODE=12519&lt;/B&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#3333dd&gt;(EMFI=4))))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#3333dd&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#3333dd&gt;tabase: java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=153093632)(ERR=12519)(ERROR_STACK=(ERROR=(CODE=12519)(EMFI=4))))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#3333dd&gt;2009-03-18 23:04:25,175 ERROR - 18/3/2009 23:4:25 || merx.toolkit.DBWithoutPooling:newConnection():Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=153093632)(ERR=12519)(ERROR_STACK=(ERROR=(CODE=12519)(EMFI=4))))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#3333dd&gt;2009-03-18 23:04:25,175 ERROR - 18/3/2009 23:4:25 || cl***merx.toolkit.DBWithoutPooling:newStatement()-&amp;gt;merx.toolkit.DBException: Cannot connect to Database: java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=153093632)(ERR=12519)(ERROR_STACK=(ERROR=(CODE=12519)(EMFI=4))))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#3333dd&gt;2009-03-18 23:04:45,740 ERROR - 18/3/2009 23:4:45 || merx.toolkit.DBWithoutPooling:newConnection():Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=153093632)(ERR=12519)(ERROR_STACK=(ERROR=(CODE=12519)(EMFI=4))))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#3333dd&gt;2009-03-18 23:04:45,740 ERROR - 18/3/2009 23:4:45 || cl***merx.toolkit.DBWithoutPooling:newStatement()-&amp;gt;merx.toolkit.DBException: Cannot connect to Database: java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=153093632)(ERR=12519)(ERROR_STACK=(ERROR=(CODE=12519)(EMFI=4))))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#3333dd&gt;2009-03-18 23:04:45,806 ERROR - 18/3/2009 23:4:45 || merx.toolkit.DBWithoutPooling:newConnection():Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=153093632)(ERR=12519)(ERROR_STACK=(ERROR=(CODE=12519)(EMFI=4))))&lt;/FONT&gt;&lt;/P&gt;&lt;/DIR&gt;&lt;P&gt;&lt;FONT color=#3333dd&gt;&lt;/FONT&gt; &lt;/P&gt;&lt;P&gt;&lt;FONT color=#113311&gt;&lt;STRONG&gt;I checked the listener.log and this is what it showed:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#3333dd&gt;TNS-12519: TNS:no appropriate service handler found&lt;BR&gt;18-MAR-2009 23:47:45 * (CONNECT_DATA=(SID=MYPRODDB)(CID=(PROGRAM=)(HOST=__jdbc__)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=prodserv1)(PORT=42121)) * establish * MYPRODDB * 12519&lt;BR&gt;TNS-12519: TNS:no appropriate service handler found&lt;BR&gt;18-MAR-2009 23:47:45 * (CONNECT_DATA=(SID=MYPRODDB(CID=(PROGRAM=)(HOST=__jdbc__)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=prodserv1)(PORT=42122)) * establish * MYPRODDB * 12519&lt;BR&gt;TNS-12519: TNS:no appropriate service handler found&lt;BR&gt;18-MAR-2009 23:47:45 * (CONNECT_DATA=(SID=MYPRODDB)(CID=(PROGRAM=)(HOST=__jdbc__)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=prodserv1)(PORT=42123)) * establish * &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#3333dd&gt;&lt;/FONT&gt; &lt;/P&gt;&lt;P&gt;&lt;FONT color=#113311&gt;&lt;STRONG&gt;I did a status on the listener and this is what showed that the status is blocked:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#3333dd&gt;Service "MYPRODDB" has 1 instance(s).&lt;BR&gt;  Instance "MYPRODDB", status READY, has 1 handler(s) for this service...&lt;BR&gt;    Handler(s):&lt;BR&gt;      "DEDICATED" established:16610866 refused:0 &lt;STRONG&gt;state:blocked&lt;/STRONG&gt;&lt;BR&gt;         LOCAL SERVER&lt;BR&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial color=#000080 size=2&gt;&lt;FONT face=Verdana color=#4b6e9d&gt;So after doing some research, I found out that the database didn't register with the listener and that the processes parameter needed to be increased.   So did the following two things:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial size=2&gt;&lt;FONT face=Verdana color=#3333dd&gt;SQL&amp;gt; alter system set processes=500 scope=spfile;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial size=2&gt;&lt;FONT face=Verdana color=#3333dd&gt;SQL&amp;gt; alter system register;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial size=2&gt;&lt;FONT face=Verdana color=#113311&gt;&lt;STRONG&gt;After i issued these two statements&lt;/STRONG&gt; &lt;STRONG&gt;and checked the listener status I saw the following:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial color=#000080 size=2&gt;Service "MYPRODDB" has 1 instance(s).&lt;BR&gt;  Instance "MYPRODDB", status READY, has 1 handler(s) for this service...&lt;BR&gt;    Handler(s):&lt;BR&gt;      "DEDICATED" established:5775993 refused:0 &lt;STRONG&gt;state:ready&lt;/STRONG&gt;&lt;BR&gt;         LOCAL SERVER&lt;BR&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial color=#000080 size=2&gt;I hope this helps .&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial color=#000080&gt;&lt;/FONT&gt; Remember, oracle states the following reasons that it maybe in that state:&lt;/P&gt;&lt;P&gt;&lt;FONT color=#3333dd&gt;There are normally 5 reasons for an instance to be blocked:&lt;BR&gt;&lt;BR&gt;1.The remote_listener parameter is set in the init/spfile, but the local_listener is not running.&lt;BR&gt;2.The instance is not fully mounted.&lt;BR&gt;3.The instance is shutting down.&lt;BR&gt;4.The maximum number of concurrent sessions has been reached.&lt;BR&gt;5.The node load is at a maximum.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial color=#000080&gt;Thanks,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial color=#000080 size=2&gt; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face=Arial color=#000080 size=2&gt; &lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Thu, 19 Mar 2009 03:30:28 GMT</pubDate><dc:creator>Admin</dc:creator></item></channel></rss>