Caused by: java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection 这个错误很明显是连接不到数据库,于是: 我们创建Oracle连接时(oracle11g),url往往写成:jdbc:oracle:thin:@地址:1521:ORCL,如:jdbc:oracle:thin:@localhost:1521:ORCL. 此时,有可能会报出:Oracle 网络适配器不能建立连接问…
连接数据库 注意 url ip地址换的时候 oracle 里的listener.ora thnsnames.ora也要随之变化 重启数据库 不然可能会报出 java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection解决方案…
Io 异常: The Network Adapter could not establish the connection这个异常的出现一般与数据库和你的PC的设置有关 这种异常的出现大致上有下面几种: 1.IP错误.在设置URL时错误,例如:jdbc:oracle:thin:@192.168.0.36:1521:sharp数据库服务器不正确:ping 服务器IP是否正确.不正确,将URL更改为正确端口号错误:一般不会错误.进行一下操作:在DOS上键入sqlplus,检查oracle是否开启一却…
http://note.youdao.com/noteshare?id=e6baee7ea7b7f60d7a265124e2bdd46c&sub=988945C6DDE843D5A7D6588F79011ACA 这是我的有道笔记,详细记录了ORACLE 12C的安装和配置过程.以及配置完成后遇到IO Error: The Network Adapter could not establish the connection的问题. PS: 这个问题真的坑了我很久.…
Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection解决办法: 启动监听器时[oracle@localhost ~]$lsntctl start 出现The listener supports no services Linux命令行运行 [oracle@localhost bin]$ netmgr 打开Oracle Net Manager,添加Data…
今天要用tomcat部署一个系统,windows环境下,oracle和程序在一台机器上. 在配置jndi时,直接写成 jdbc:oracle:thin:@127.0.0.1:1521:orcl.启动程序后, 后台报Io异常: The Network Adapter could not establish the connection). 这种情况基本是: 防火墙开启,相关端口关闭----- 关闭防火墙问题解决.我是本机,该问题不存在. 我这边问题,后来发现: jndi:jdbc:oracle:t…