Hibernate configuration for oracle issue :ORA-12516, TNS:listener could not find available handler with matching -


i set connection pool, changed job processes oracle. still getting error : ora-12516, tns:listener not find available handler matching protocol stack connection descriptor used client was

is there specific configuration other connection pool or oracle job process setting needs done resolving error

the above solution masks problem. after die, found solution works. reason, oracle driver running hibernate oracledialect (or oracle10gdialect) needs parameters.

i mapping jdbc connection through spring using

  <bean id="datasource" class="org.springframework.jdbc.datasource.drivermanagerdatasource">     <property name="driverclassname" value="oracle.jdbc.driver.oracledriver" />     <property name="url" value="jdbc:oracle:thin:@localhost:1521:mydb" />     <property name="username" value="mydbuser" />     <property name="password" value="12345" />    </bean> 

then, changed use jndi:

<bean id="datasource" class="org.springframework.jndi.jndiobjectfactorybean">     <property name="jndiname" value="java:comp/env/jdbc/mydb" /> </bean> 

with information in context.xml (tomcat):

<resource name="jdbc/mydb"         type="javax.sql.datasource"         auth="container"         driverclassname="oracle.jdbc.driver.oracledriver"         url="jdbc:oracle:thin:@localhost:1521:mydb"         username="mydbuser"         password="12345"         maxactive="20"         maxidle="10"         maxwait="-1"         validationquery="select 1 dual" /> 

this solves problem. 1 of following configurations maxactive, maxidle or maxwait provides oracle needed value close session , return pool. keep way in system, had pending task migrate jndi, however, if not want use jndi, try search similar values in hibernateproperties might work.

obs.: jndi can used in jetty adding tag of class org.eclipse.jetty.plus.jndi.resource jetty.xml.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -