This week's book giveaway is in the Java in General forum.
We're giving away four copies of Helidon Revealed: A Practical Guide to Oracle’s Microservices Framework and have Michael Redlich on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

reg Network adaptor Exception

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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="jdbc:oracle: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

jdbc:oracle: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.
 
Bartender
Posts: 2662
19
Netbeans IDE C++ Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 2662
19
Netbeans IDE C++ Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you open a new thread for that?
Regards, Jan
 
Do not set lab on fire. Or this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic