ORA-12170:TNS:Connect timeout occurred 问题的解决。

# listener.ora Network Configuration File: E:\oracle\product\10.1.0\Db_1\network\admin\listener.ora
# Generated by Oracle configuration tools.

SID_LIST_LISTENER =
(SID_LIST
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = E:\oracle\product\10.1.0\Db_1)
(PROGRAM = extproc)
)
)

LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
)
(ADDRESS_LIST =
[color=red]//------------------------------------------注意有问题,固定ip是默认 [/color]
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.17)(PORT = 1521))
)
)
)

--------------------------------------------------------------------------
# listener.ora Network Configuration File: E:\oracle\product\10.1.0\Db_1\network\admin\listener.ora
# Generated by Oracle configuration tools.

SID_LIST_LISTENER =
(SID_LIST
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = E:\oracle\product\10.1.0\Db_1)
(PROGRAM = extproc)
)
)

LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
)
(ADDRESS_LIST =
[color=red]//---------------------------------注意不固定--这个可不行 --tomcat oracle不准许------------[img][/img][/color]
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
)
)
)

# listener.ora Network Configuration File: E:\oracle\product\10.1.0\Db_1\network\admin\listener.ora
# Generated by Oracle configuration tools.

SID_LIST_LISTENER =
(SID_LIST
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = E:\oracle\product\10.1.0\Db_1)
(PROGRAM = extproc)
)
)

LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
)
(ADDRESS_LIST =
[color=red]//------------------------------------------注意看看自己ip,修改成自己ip相同的 [/color]
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.10)(PORT = 1521))
)
)
)
看附件图片,截图了。
对了如果还不行,就重新启动机器一下。


--------->在不行,用这个要到病除


实例讲解Ora-12514和Ora-12514解决方法
Ora-12514和Ora-12514解决方法,阅读实例讲解Ora-12514和Ora-12514解决方法,错误现象:Oralce数据库服务启动后,出现了下面的问题: OracleOraDb10g_home1TNSListener: 该服务对应 %Oracle_Hoem\bin TNSLSNR.EXE 若该服务未启动,将会导致Oracle错误- 错误现象:Oralce数据库服务启动后,出现了下面的问题:
OracleOraDb10g_home1TNSListener:

该服务对应 %Oracle_Hoem\bin TNSLSNR.EXE

若该服务未启动,将会导致Oracle错误- Ora-12514:TNS:无监听程序。


OracleServiceORACLE:

若该服务未启动,将会导致Oracle错误- Ora-12514:TNS:监听程序当前无法识别链接描述符中请求的服务。

注释:启动了该服务也有可能导致该错误。

下面我们来介绍一下具体的解决方法:


打开:%Oracle_Hoem%/network/admin/listener.ora文件



SID_LIST_LISTENER =

(SID_LIST =

(SID_DESC =

(SID_NAME = PLSExtProc)

(ORACLE_HOME = D:\Oracle\Oracle10g)

(PROGRAM = extproc)

)

后面添加:

(SID_DESC =

(GLOBAL_DBNAME = ORACLE)

(ORACLE_HOME = D:\Oracle\Oracle10g)

(SID_NAME = ORACLE)

)


最后变成:

SID_LIST_LISTENER =

(SID_LIST =

(SID_DESC =

(SID_NAME = PLSExtProc)

(ORACLE_HOME = D:\Oracle\Oracle10g)

(PROGRAM = extproc)

) (SID_DESC =

(GLOBAL_DBNAME = ORACLE)

(ORACLE_HOME = D:\Oracle\Oracle10g)

(SID_NAME = ORACLE)

)

)

你可能感兴趣的:(数据库)