社区
Oracle
帖子详情
Io 异常: The Network Adapter could not establish the connection
thy1984
2008-04-13 06:15:42
我循环往oracle数据库中插入数据,当插于一定量条数时(大概5多条记录)就报"Io 异常: The Network Adapter could not establish the connection",请问个是怎么回事?怎样解决啊?
...全文
177
7
打赏
收藏
Io 异常: The Network Adapter could not establish the connection
我循环往oracle数据库中插入数据,当插于一定量条数时(大概5多条记录)就报"Io 异常: The Network Adapter could not establish the connection",请问个是怎么回事?怎样解决啊?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
7 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
chenjun8707
2008-09-30
打赏
举报
回复
我连数据库的时候报这个错,怎么解决呢
UltraBejing
2008-05-01
打赏
举报
回复
lz要干嘛?
knowledge_Is_Life
2008-05-01
打赏
举报
回复
接分是王道!
wffffc
2008-04-13
打赏
举报
回复
不要每次都关和提交,把你要做的都做完以后再提交或关闭
thy1984
2008-04-13
打赏
举报
回复
top
thy1984
2008-04-13
打赏
举报
回复
我每插入一次就关掉了的啊.
public synchronized boolean getExecute(String sql){//数据插入更新
boolean success = false;
try{
conn=DriverManager.getConnection(connStr,"admin","admin");
Statement stmt=conn.createStatement();
success=stmt.execute(sql);
success = true;
stmt.close();
conn.commit();
conn.close();
}catch(SQLException ex){
System.out.println("数据库异常(getExecute):"+ex.getMessage());
}
return success;
}
super_ssy
2008-04-13
打赏
举报
回复
你的插入程序不规范,把协议栈给搞崩溃了吧
你出现异常之后TNSPING 还能连上么?检查一下你的插入程序吧,该及时断掉的空连接要断掉,该及时释放的数据集要及时释放.
解决 The
Network
Adapter
could not
es
tabl
ish
the
connect
io
n
The
Network
Adapter
could not
es
tabl
ish
the
connect
io
n
Io
异常
: The
Network
Adapter
could not
es
tabl
ish
the
connect
io
n
解决方案
Io
异常
: The
Network
Adapter
could not
es
tabl
ish
the
connect
io
n
解决方案
Io
异常
: The
Network
Adapter
could not
es
t...
Io
异常
: The
Network
Adapter
could not
es
tabl
ish
the
connect
io
n
解决方案
Io
异常
: The
Network
Adapter
could not
es
tabl
ish
the
connect
io
n
这个
异常
的出现一般与数据库和你的PC的设置有关 这种
异常
的出现大致上有下面几种: 1。IP错误。 在设置URL时错误,例如:jdbc:oracle:thin:@192.168.0.36:1521:sharp 数据库服务器不正确:ping 服务器IP是否正确。不正
IO
异常
:The
Network
Adapter
could not
es
tabl
ish
the
connect
io
n
IO
异常
:The
Network
Adapter
could not
es
tabl
ish
the
connect
io
n
解决方案 这种
异常
的出现大致上有下面几种: 1。IP错误。 在设置URL时错误,例如:jdbc:oracle:thin:@192.168.1.36:1555:sharp 数据库服务器不正确:ping 服务器IP是否正确。不正确,将URL更改为正确 端口号错误:
IO
异常
:The
Network
Adapter
could not
es
tabl
ish
the
connect
io
n
IO
异常
:The
Network
Adapter
could not
es
tabl
ish
the
connect
io
n
Oracle
17,086
社区成员
55,238
社区内容
发帖
与我相关
我的任务
Oracle
Oracle开发相关技术讨论
复制链接
扫一扫
分享
社区描述
Oracle开发相关技术讨论
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章