We help IT Professionals succeed at work.

JDBC thin client connection problem

monto1
monto1 asked
on
4,813 Views
Last Modified: 2013-11-05
Hi ,
      The application team is trying to connect a oracle 10g db using jdbc thin client , as it is RAC db one of the node is down , so the aplication should failover to the surviving node but its giving the following error.Do i have to add any additional parameter in my tns.

An error occured while establishing the connection.
   Type: java.sql.SQLException   Error Code: 17002
Message:
   Io exception: The Network Adapter could not establish the connection
 
here is the connect string using  jdbc url

jdbc:oracle:thin:@(DESCRIPTION=(FAILOVER=ON)(ADDRESS_LIST=(LOAD_BALANCE=ON)(ADDRESS=(PROTOCOL=TCP)(HOST=g1uxxxxc.xxxxxx.xx.com)(PORT=1525)) (ADDRESS=(PROTOCOL=TCP)(HOST=g1uxxxxc.xxxxxx.xx.com)(PORT=1525)))(CONNECT_DATA=(SERVICE_NAME=Axxx)))

Do i have to add any additional parameter in my tns?

Tns entry:
Axxx =
  (DESCRIPTION =
    (SDU = 32768)
    (enable = broken)
    (LOAD_BALANCE = yes)
    (ADDRESS = (PROTOCOL = TCP)(HOST = gvxxxx.xxxxxx.xx.com)(PORT = 1525))
    (ADDRESS = (PROTOCOL = TCP)(HOST = gvxxxx.xxxxxx.xx.com)(PORT = 1525))
    (CONNECT_DATA =
      (SERVICE_NAME = Axxx)
    )
  )



 


Comment
Watch Question

This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Forced accept.

Computer101
EE Admin
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.