| Author |
reg Network adaptor Exception
|
Mohammed Althaf
Greenhorn
Joined: Apr 05, 2010
Posts: 5
|
|
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 racle: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 racle: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
Joined: Dec 20, 2006
Posts: 2343
|
|
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
|
OCUP UML fundamental
ITIL foundation
|
 |
angel sar
Greenhorn
Joined: Aug 29, 2009
Posts: 17
|
|
|
Just an idea that helped me sometimes, change the oracle jdbc jar.
|
 |
Mohammed Althaf
Greenhorn
Joined: Apr 05, 2010
Posts: 5
|
|
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
Joined: Apr 05, 2010
Posts: 5
|
|
|
I have 11G rac server. using this 11g raac server i want to implement UCP concept.
|
 |
Jan Cumps
Bartender
Joined: Dec 20, 2006
Posts: 2343
|
|
Can you open a new thread for that?
Regards, Jan
|
 |
 |
|
|
subject: reg Network adaptor Exception
|
|
|