修改机器名后启动TNSListener失败的处理

1)修改机器名后,启动OracleServiceORCL正常,但测试连接的时候报:

ORA-12545: Connect failed because target host or object does not exist

原因是安装后机器名有修改,在Net Manager中更正机器名后OK

 

2)启动OracleOraDb10g_home1TNSListener失败,Windows的事件查看器中没有找到相关错误,通过网络搜索后找到如下解决办法:

在F:\oracle\product\10.1.0\Db_1\NETWORK\ADMIN中查看,其内容为:

# listener.ora Network Configuration File: F:\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 = F:\oracle\product\10.1.0\Db_1)
      (PROGRAM = extproc)
    )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
      )
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = TCP)(HOST = H6CTV2X)(PORT = 1521))
      )
    )
  )

 

修改其中的“H6CTV2X”为新的机器名,重新连接后OK。

 

你可能感兴趣的:(oracle,.net,windows,F#)