我安装了网格基础架构为一个独立的服务器,并启用ASM.So它有两个的listener.ora,一个是如何安装网格基础架构的独立服务器重启后的RDBMS中的Oracle 11g侦听
%ORACLE_BASE%\产品\ 11.2.0 \网格\ NETWORK \ ADMIN \ listener.ora中和 另一个是%ORACLE_HOME%\ NETWORK \ ADMIN \ listener.ora中。
我已经定义的listener_dynamic在%ORACLE_HOME%\ NETWORK \ ADMIN \ listener.ora中。 我的问题是:当我停止RDBMS实例的监听器,然后重新启动它,它总是说:TNS-01151:在LISTENER.ORA
在这里失去了听众的名字是输出:
C:\Users\Administrator>set tns_admin=D:\app\Administrator\product\11.2.0\dbhome_1\NETWORK\ADMIN
C:\Users\Administrator>lsnrctl status listener_dynamic
LSNRCTL for 64-bitWindows: Version 11.2.0.1.0 -Production on 18-OCT-2017 12:30:24
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=WIN-P269HP3NG00)(PORT=2521)))
STATUS of the LISTENER
------------------------
Alias listener_dynamic
Version TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Production
Start Date 18-OCT-2017 11:53:27
Uptime 0 days 0 hr. 36 min. 57 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File D:\app\Administrator\product\11.2.0\dbhome_1\network\admin\listener.ora
Listener Log File d:\app\administrator\diag\tnslsnr\WIN-P269HP3NG00\listener_dynamic\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=WIN-P269HP3NG00)(PORT=2521)))
Services Summary...
Service "asset.xcsc.com" has 1 instance(s).
Instance "asset", status READY, has 1 handler(s) for this service...
Service "assetXDB.xcsc.com" has 1 instance(s).
Instance "asset", status READY, has 1 handler(s) for this service...
The command completed successfully
C:\Users\Administrator>lsnrctl stop listener_dynamic
LSNRCTL for 64-bitWindows: Version 11.2.0.1.0 -Production on 18-OCT-2017 12:31:08
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=WIN-P269HP3NG00)(PORT=2521)))
The command completed successfully
C:\Users\Administrator>lsnrctl start listener_dynamic
LSNRCTL for 64-bitWindows: Version 11.2.0.1.0 -Production on 18-OCT-2017 12:31:26
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Starting tnslsnr: please wait...
Failed to open service <OracleOraCrs11g_home1TNSListenerlistener_dynamic>, error 1060.
TNSLSNR for 64-bitWindows: Version 11.2.0.1.0 -Production
system parameter file is D:\app\Administrator\product\11.2.0\grid\network\admin\listener.ora
Write to d:\app\administrator\product\11.2.0\grid\log\diag\tnslsnr\WIN-P269HP3NG00\listener_dynamic\alert\log.xml log information
TNS-01151:Missing listener name listener_dynamic in LISTENER.ORA
Listener failed to start. See the error message(s) above...
我指定tns_admin,为什么每次给它在网格目录中搜索listener.ora?
解决了我的问题。谢谢! – mcmxciv