我用的是windows 2003的系统,oracle9i,启动以下这两个服务后会自动停止:
OracleOraHome90Agent
OracleOraHome90TNSListener
日志显示:
OracleOraHome90Agent:
-------------- [OracleOraHome90Agent] ------------
Sending initial service status..
Commandline is "E:\oracle\ora90\bin\dbsnmpwd.bat" -agent_name OracleOraHome90Agent
2. WAIT_OBJECT_0: Agent exited with retCode 0.
Agent failed to startup.
Check E:\oracle\ora90\network\log\OracleOraHome90Agent.nohup for details
OracleOraHome90TNSListener:
TNSLSNR for 32-bit Windows: Version 9.0.1.1.1 - Production on 04-5月 -2007 14:50:30
Copyright (c) 1991, 2001, Oracle Corporation. All rights reserved.
系统参数文件为E:\oracle\ora90\network\admin\listener.ora
写入E:\oracle\ora90\network\log\listener.log的日志信息
写入E:\oracle\ora90\network\trace\listener.trc的跟踪信息
跟踪级别当前为0
以 pid=4092 开始
监听:(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))
监听该对象时出错: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ygogo98sla5i4oh)(PORT=1521)))
TNS-12545: 因目标主机或对象不存在,连接失败
TNS-12560: TNS: 协议适配器错误
TNS-00515: 因目标主机或对象不存在,连接失败
32-bit Windows Error: 1004: Unknown error
不再监听: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC0ipc)))
原因是我安装了oracle之后,又修改了主机名
解决方法:
一、直接修改 listener.ora
路径是: oracle安装目录\ora90\network\ADMIN\listener.ora
修改HOST 为主机名或者IP
二、通过 Net Manager,在 监听程序\LISTENER 下直接修改主机即可