今天更改计算机名称重启后Developer无法连接,检查发现OracleOraDB12Home1TNSListener服务没有启动,报错:Oracleoradb12home1tnslistener服务启动后停止,某些服务在未由其他服务或程序使用时将自动停止。
网上求解修改以下两个文件中的计算机名称,跟当前计算机名保持一致后重启服务成功。如果不行,检查注册表和环境变量中参数是否正确。
路径:D:\Oracle\product\12.1.0\dbhome_1\NETWORK\ADMIN
文件:listener.ora和tnsnames.ora
内容如下:
# listener.ora Network Configuration File: D:\Oracle\product\12.1.0\dbhome_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = D:\Oracle\product\12.1.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:D:\Oracle\product\12.1.0\dbhome_1\bin\oraclr12.dll")
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = WO12c.xxxxcn.com)(PORT = 1521))
)
)
# tnsnames.ora Network Configuration File: D:\Oracle\product\12.1.0\dbhome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
)
)
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = WO12c.xxxxcn.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl.quantacn.com)
)
)
Oracleoradb12home1tnslistener服务启动后停止,某些服务在未由其他服务或程序使用时将自动停止。,布布扣,bubuko.com
Oracleoradb12home1tnslistener服务启动后停止,某些服务在未由其他服务或程序使用时将自动停止。