在Myeclipse里创建oracle连接时,出现:The Network Adapter could not establish the connection 错误
2011-09-05 14:47
615 查看
我们创建oracle连接时(oracle10g),url往往写成:jdbc:oracle:thin:@地址:1521:ORCL,如:jdbc:oracle:thin:@localhost:1521:ORCL。
此时,有可能会报出:Oracle 网络适配器不能建立连接问题——The Network Adapter could not establish the connection 。
原因是:@后面的地址的值不一定是localhost,或是127.0.0.1 。他真正的值是和Oracle 的安装目录下的product\10.2.0\db_1\NETWORK\ADMIN目录下的listener.ora和tnsnames.ora里的host后面对应的值一样的。
如,我机子上url为:
jdbc:oracle:thin:@192.168.0.8:1521:orclsid
这样就对了
相关文章推荐
- 数据库连接错误The Network Adapter could not establish the connection
- MyEclipse链接oracle数据库提示:the network adapter could not establish connection
- 使用Oracle SQL Developer连接数据库时,提示“执行请求的操作时遇到错误:IO 错误: The Network Adapter could not establish”,不知如何处理
- jdbc连接错误 SQLException: The Network Adapter could not establish the connection
- oracle 11g JDBC连接数据库:IO异常The Network Adapter could not establish the connection 解决方法
- spring中的xml配置出现的错误 The Network Adapter could not establish the connection
- 数据库连接错误The Network Adapter could not establish the connection之琴宝所见
- Java连接Oracle异常The Network Adapter could not establish the connection
- Oracle安装后遇到错误:The Network Adapter could not establish the connection
- 解决Linux下JSP连接Orcale的著名错误Java.SQL.Exception The Network Adapter could not establish the connection .
- Myeclipse链接Oracle等数据库时lo exception: The Network Adapter could not establish the connection
- 利用Sqoop从oracle同步数据到HDFS出现The Network Adapter could not establish the connection的解决方法
- 数据库连接错误The Network Adapter could not establish the connection
- 连接数据库错误The Network Adapter could not establish the connection
- 使用Oracle连接池错误 Cannot create PoolableConnectionFactory(Io 异常: The Network Adapter could not establish the connection )的解决方法
- [置顶] 数据库连接错误The Network Adapter could not establish the connection
- 连接Oracle数据库,出现The Network Adapter could not establish the connection
- oracle出异常:Io 异常: The Network Adapter could not establish the connection 解决办法
- 注册表 MaxUserPort的值 和 “The Network Adapter could not establish the connection” “Address already in use” 错误
- Oracle the network adapter could not establish the connection