0

I am absolutely new to oracle. I am using oracle 10g connection and just on experimental basis trying to connect to HR schema, through the database explorer. After much difficulty I figured SID, hostname etc, but now m stuck again.

Now I'm trying to establish a connection to the Database via eclipse but the ping keeps failing and get the following error

java.sql.SQLException: Io exception: The Network Adapter could not establish the connection at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:113) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:147) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:257) at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:389) at oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:454) at oracle.jdbc.driver.T4CConnection.(T4CConnection.java:165) at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:802) at org.eclipse.datatools.connectivity.drivers.jdbc.JDBCConnection.createConnection(JDBCConnection.java:206) at org.eclipse.datatools.connectivity.DriverConnectionBase.internalCreateConnection(DriverConnectionBase.java:104) at org.eclipse.datatools.connectivity.DriverConnectionBase.open(DriverConnectionBase.java:53) at org.eclipse.datatools.connectivity.drivers.jdbc.JDBCConnection.open(JDBCConnection.java:72) at org.eclipse.datatools.enablement.internal.oracle.JDBCOracleConnectionFactory.createConnection(JDBCOracleConnectionFactory.java:27) at org.eclipse.datatools.connectivity.internal.ConnectionFactoryProvider.createConnection(ConnectionFactoryProvider.java:83) at org.eclipse.datatools.connectivity.internal.ConnectionProfile.createConnection(ConnectionProfile.java:355) at org.eclipse.datatools.connectivity.ui.PingJob.createTestConnection(PingJob.java:76) at org.eclipse.datatools.connectivity.ui.PingJob.run(PingJob.java:59) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

4

1 回答 1

0

每当您看到网络适配器无法建立连接时,您要么使用了错误的 SQL Developer URL,要么遇到了基本的 SQL*Net 连接问题!此错误很可能是由以下因素之一引起的:

  • 您使用了错误的网址

  • 使用了错误的端口号或 IP 地址(或 DNS 主机名)

  • 监听器配置不正确

  • 侦听器进程(服务)未运行。您可以使用“lsnrctl start”命令或在 Windows 上通过启动侦听器服务重新启动它。

请参阅此链接以获取更多详细信息

于 2013-04-16T09:16:28.740 回答