ORA-12170:TNS:使用sql plus在oracle 10g中发生连接超时

时间:2016-04-08 06:41:17

标签: oracle oracle10g sqlplus

我是oracle的新手,我已经安装了带有sql plus的oracle 10g。我昨天使用sql plus但是现在它在登录时给了我这个错误 ORA-12170:TNS:发生连接超时。我正在使用 SCOTT用户进行登录。

我正在使用这些凭据登录:

用户名:Scott

密码:tiger

host:orcl

我已经搜索了它并尝试了一些解决方案,但它不起作用:(

以下是我的配置的一些细节:

SQLNET.ORA

SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)

的listener.ora

SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
  (SID_NAME = PLSExtProc)
  (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
  (PROGRAM = extproc)
 )
)

LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
  (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
  (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.9)(PORT = 1521))
)
)

的tnsnames.ora

ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.9)(PORT = 1521))
(CONNECT_DATA =
  (SERVER = DEDICATED)
  (SERVICE_NAME = orcl)
)
)

EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
  (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
)
(CONNECT_DATA =
  (SID = PLSExtProc)
  (PRESENTATION = RO)
)
)

1 个答案:

答案 0 :(得分:0)

尝试ping 192.168.1.9。如果可行,请尝试

tnsping orcl
从命令行

。也许有防火墙会阻止您对Oracle DB的网络访问?