日期:2014-05-16  浏览次数:20547 次

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 =
//------------------------------------------注意有问题,固定ip是默认      
(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 =
//---------------------------------注意不固定--这个可不行 --tomcat oracle不准许------------[img][/img]    
   (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 =
//------------------------------------------注意看看自己ip,修改成自己ip相同的       
(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:无监听程序。


Oracle