Question : JDBC thin client connection problem

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)
    )
  )



 


Answer : JDBC thin client connection problem

In the CONNECT_DATA section, we add the following:

     (CONNECT_DATA =
        (SERVICE_NAME = Axxxx)
        (FAILOVER_MODE =
           (TYPE = SELECT)
           (METHOD = BASIC)
           (RETRIES = 20)
           (DELAY = 5)
         )

We have a .NET application, but accessing the RAC in a similar way... btw, if you include the full line (like it would appear in the tnsnames.ora file) you don't actually have to have a tnsnames.ora file for the application.
Random Solutions  
 
programming4us programming4us