Microsoft
Software
Hardware
Network
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:@(DESCRIP
TION=(FAIL
OVER=ON)(A
DDRESS_LIS
T=(LOAD_BA
LANCE=ON)(
ADDRESS=(P
ROTOCOL=TC
P)(HOST=g1
uxxxxc.xxx
xxx.xx.com
)(PORT=152
5)) (ADDRESS=(PROTOCOL=TCP)(HO
ST=g1uxxxx
c.xxxxxx.x
x.com)(POR
T=1525)))(
CONNECT_DA
TA=(SERVIC
E_NAME=Axx
x)))
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
Client wont connect to session. error 10030.
Free Antivirus soft for server
Delete files older than x days, and x characters long.
SQL Reporting Services Print Layout mode issue
t = 12345, 54321, "hello!"
Adobe Acrobat Editing tool
Outlook 2007 - Exchange 2007 Migration issue with Contacts
Unable to view picture
Unable to open attachments in Outlook 2003. This is an intermit problem.
NSLOOKUP - " ls" query