Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

reg Network adaptor Exception

 
Mohammed Althaf
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI ,
I am trying to connect the DB using the JNDI connection with the followong details
<Resource name="jdbc/YATRA" auth="Container" scope="Shareable" type="oracle.jdbc.pool.OracleDataSource" driverclassname="oracle.jdbc.driver.OracleDriver" factory="oracle.jdbc.pool.OracleDataSourceFactory" url="jdbcracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=ON)(ADDRESS=(PROTOCOL=TCP)(HOST=host1)(PORT=1567))(ADDRESS=( PROTOCOL=TCP)(HOST=host2) (PORT=1567)))(CONNECT_DATA=(SERVICE_NAME=dbcustom)))" user="dbcust1" password="dbcust" connectionCachingEnabled="true" connectionCacheName="BCIFCache" removeExistingOracleConnectionPoolIfExists="true" connectionCacheProperties="{MaxLimit=50, MinLimit=5, InitialLimit=5, ConnectionWaitTimeout=60,ValidateConnection=true}" />


i am unable to connect the DB it is giving me network adaptor Error.


If i am trying to connect using url

jdbcracle:thin:@host1:1567:dbcustom1

i am getting the connection to DB.

Here i need to use load balance to connect two DB's.


Please let me know is there any solution for this.

i tried pinging as well as telnet to the two ports both are running.
 
Jan Cumps
Bartender
Posts: 2602
13
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mohammed Althaf wrote:HI , ...I am unable to connect the DB it is giving me network adaptor Error.

Welcome to JavaRanch, Mohammed.
Can you give the exact error?
Regards, Jan
 
angel sar
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just an idea that helped me sometimes, change the oracle jdbc jar.
 
Mohammed Althaf
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
now i got connection whenn i am using ojdbc5.jar...

may i know wat is the procedure for writing JNDI for Implementing UCP concept in oracle.

I am very new to UCP Concept.
 
Mohammed Althaf
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have 11G rac server. using this 11g raac server i want to implement UCP concept.
 
Jan Cumps
Bartender
Posts: 2602
13
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you open a new thread for that?
Regards, Jan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic