java.sql.SQLException:IO Exception : End of TNS data channel
来源:互联网 发布:info软件 编辑:程序博客网 时间:2024/06/03 18:10
Error "IO Exception : End of TNS data channel" When Connecting with Multiple ADDRESS_LIST. (Doc ID 750796.1)
To Bottom
Modified:28-Aug-2012Type:PROBLEMStatus:PUBLISHEDPriority:3
Comments (0)
In this Document
Symptoms
Changes
Cause
Solution
References
Applies to:
JDBC - Version10.2.0.3 and later
Information in this document applies to any platform.
***Checked for relevance on 28-Aug-2012***
Symptoms
When connecting using a JDBC/thin 10.2.0.3driver using the following URL:
String thinConn = "jdbc:oracle:thin:@( DESCRIPTION = ( ADDRESS_LIST= (ADDRESS = (PROTOCOL=TCP)(HOST=host1)(PORT=1521) )
(ADDRESS = (PROTOCOL=TCP)(HOST=host2)(PORT=1521) )
(LOAD_BALANCE=true)(FAILOVER=true)
)
( ADDRESS_LIST = (ADDRESS = (PROTOCOL=TCP)(HOST=host3)(PORT=1521) )
(ADDRESS = (PROTOCOL=TCP)(HOST=host4)(PORT=1521) )
(LOAD_BALANCE=true)(FAILOVER=true)
)
(CONNECT_DATA=(SERVICE_NAME=orcl)(SERVER=DEDICATED)))\n";
you get the following error:
Error : IO Exception : End of TNS data channel
The same connection works fine with JDBC 10.2.0.4
Changes
Using multiple ADDRESS_LIST clauses isuseful in a DataGuard environment, when both the primary and secondarydatabases are RAC.
Cause
This is caused by internal BUG 12029725 -JavaNet throws exception with nested/multiple ADDRESS_LIST clauses
as explained in:
Note4570363.8- BUG 12029725 - JavaNet throws exception with nested/multipleADDRESS_LIST clauses
Solution
Use the JDBC/thin driver version10.2.0.4.0 or later. The latest versions can be downloadedhere.
OR
use only one ADDRESS_LIST clause
References
NOTE:401436.1- 10.2.0.4 Patch Set - List of Bug Fixes by Problem Type
NOTE:4570363.8- Bug 4570363 - JavaNet throws exception with nested/multiple ADDRESS_LISTclauses
BUG:4570363- I/O EXCEPTION WHEN CONNECTING WITH NET KEYWORD OF NESTED ADDRESS_LIST CLAUSE
Related
…
Products
…
· Middleware > Developer Tools > Java Development > JDBC > Thin JDBC driver
Keywords
…
DATAGUARD;JDBC THIN;ORACLE NET
- java.sql.SQLException:IO Exception : End of TNS data channel
- oracle共享服务器创建成功后,通过jdbc连接数被限制,报错:java.sql.SQLException: Io 异常: End of TNS data channel解决方法
- java.sql.SQLException: Io exception: Connection reset
- java.sql.SQLException: Io exception: Invalid Packet Lenght
- nested exception is java.sql.SQLException: IO 错误
- java.sql.SQLException: Overflow Exception
- Exception in thread "main" java.lang.RuntimeException: java.sql.SQLException: Io 异常: The Network Ada
- java.sql.SQLException: JZ006: Caught IO Exception: java.net.SocketTimeoutException: Read timed out
- nested exception is java.sql.SQLException: Data truncated for column 'update
- nested exception is java.sql.SQLException: Data truncated for column 'PassWord' at row 72
- 出现java.sql.SQLException: After end of result set的原因
- 出现java.sql.SQLException: After end of result set的原因
- 异常java.sql.SQLException: Io exception:The Network Adapter could not establish connection
- java.sql.SQLException: Io exception:Got minus one from a read call
- java.sql.SQLException: Io : NL Exception was generated错误解决(jdbc数据源问题)
- Java.Sql.Sqlexception: Io Exception: The Network Adapter Could Not Establish The Connection
- com.mtconnect.exception.DAOException: java.sql.SQLException: number of allocated descriptors exceede
- java.sql.SQLException: Io 异常: Connection reset
- Spring+Struts2+Hibernate搭建教程全解!
- Web Server Security Best Practices
- iOS 动画总结----UIView动画
- Android四大组件之Broadcast Receiver
- string to longlong
- java.sql.SQLException:IO Exception : End of TNS data channel
- linux 常用命令汇集
- XCODE全局禁止横屏
- CURL开源库在VS2010环境下编译安装,配置详解
- Android四大组件之Content Provider
- 关于JAVA中英文字符占用字节的问题
- ascii字符属性表
- uva 705 Slash Maze
- JAVA多线程