当前位置: 首页 > 知识库问答 >
问题:

无法将 Oracle 10g XE 连接到 Eclipse [重复]

邹高峻
2023-03-14

可能重复:
Eclipse无法在windows 7上连接oracle 10g XE

当我尝试测试连接时,我遇到了这个错误。。

java.sql.SQLException: Io异常:网络适配器无法建立连接"

现在该怎么办?我也从网站下载了ojdbc14.jar,但我仍然收到这个错误。

共有1个答案

程旭尧
2023-03-14

执行以下步骤,如下所示 首先使用 Sql 加检查:

SQL*Plus: Release 10.2.0.1.0 - Production on Tue Jul 29 08:51:27 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> conn system
Enter password:
Connected.
SQL> select instance_name from V$instance;
INSTANCE_NAME
----------------
xe
SQL>

Here is the listener status and services


C:\>lsnrctl services

LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 29-JUL-2008 08:46:43
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
Services Summary...
Service "XEXDB" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1002 state:ready
DISPATCHER <machine: KIRANKUMAR-PC, pid: 3632>
(ADDRESS=(PROTOCOL=tcp)(HOST=KiranKumar-PC)(PORT=49160))
Service "XE_XPT" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
Service "xe" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0 state:ready
LOCAL SERVER
The command completed successfully


C:\>lsnrctl status

LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 29-JUL-2008 08:46:56
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
Start Date 29-JUL-2008 08:39:27
Uptime 0 days 0 hr. 7 min. 29 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\listener.ora
Listener Log File C:\oraclexe\app\oracle\product\10.2.0\server\network\log\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=KiranKumar-PC)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=KiranKumar-PC)(PORT=8080))(Presentation=HTTP)(Session=RAW))
Services Summary...
Service "XEXDB" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Service "XE_XPT" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Service "xe" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
The command completed successfully

C:\>TNSPING xe
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 29-JUL-2008 08:49:28
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\sqlnet.ora

Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = KiranKumar-PC)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE)))
OK (250 msec)


C:\>tnsping localhost-pc<hostname>
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 29-JUL-2008 08:49:42
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\sqlnet.ora
Used HOSTNAME adapter to resolve the alias
Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=))(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521)))
OK (170 msec)

请检查这个...让我知道解决方法..希望这有所帮助!

 类似资料:
  • 我正在尝试安装。 但我收到一条错误消息: 无法读取https://sourceforge.net/projects/oneclick-logger/files/site/content.xml中的存储库。收到致命警报:handshake_failure

  • 问题内容: 我无法将Eclipse Luna发行版连接到市场以安装Maven 2 Pluggin。这是我的配置: Eclipse:-Eclipse Luna M5版本,我配置了一个代理 我的电脑:-Windows XP 32位 这是错误消息: 问题答案: 我找到了解决方案。我更改了Eclipse版本。我现在使用Eclipse Indigo,因为所有4.x版本都无法在我的计算机上运行。提醒一下,我使

  • 当我试图在Eclipse上调试任何项目时,突然开始出现这个奇怪的错误。我不记得为了这个问题突然开始而改变了什么。 错误得详细信息: 谢谢 索萨

  • 问题内容: 每当我尝试启动eclipse调试(用于服务器端代码)时,我都会收到以下错误 无法连接到远程VM。 拒绝连接。 可能是什么问题?我已经尝试了网络上的大多数解决方案,但是都没有解决我的问题。谁能帮我解决这个问题?提前谢谢.. 问题答案: 您正在使用哪个服务器? 就像已经说过的: 在调试配置中,您必须定义服务器的正确端口(GF:9009 / Tomcat:8000) 您必须将服务器的JVM属

  • 我有数据存储在mysql数据库,我想把它拉到我的程序,这是使用javafx,但它不会工作。如果我用一些不使用javafx的基本类提取数据,它工作得很好。但是,使用javafx,我会得到以下错误消息。我该怎么做才能解决这个问题? 很抱歉这个问题太长了。

  • 我是谷歌云的新手,我只是配置云计算中需要的所有组件。但是我在MySQL和APP Engine/VM之间的MySQL连接上有一个问题。我可以在浏览器中看到我的主html页面,但当我的servlet试图建立MySQL连接时,它失败了。 错误消息:com.mysql.cj.jdbc.exceptions.CommunicationsException:通信链接失败,最后一个成功发送到服务器的数据包是0毫