C:\Users\Administrator>lsnrctl service listener_scan1

LSNRCTL for 64-bit Windows: Version 11.2.0.4.0 - Production on 25-4月 -2017 09:5
8:44

Copyright (c) 1991, 2013, Oracle. All rights reserved.

TNS-01101: Could not find service name

C:\Users\Administrator>lsnrctl status listener_scan1

LSNRCTL for 64-bit Windows: Version 11.2.0.4.0 - Production on 25-4月 -2017 09:5
8:52

Copyright (c) 1991, 2013, Oracle. All rights reserved.

TNS-01101: Could not find service name

C:\Users\Administrator>e:

E:\app\11.2.0\grid\BIN>cd E:\app\11.2.0\grid\BIN ---->>>切换到$GRID_HOME下的bin下.

E:\app\11.2.0\grid\BIN>lsnrctl status listener_scan1
----->>>此处的linrctl 命令实际上找的是$GRID_HOME下的,因为,Windows下执行命令,首先搜索的是当前路径下有无该命令.
LSNRCTL for 64-bit Windows: Version 11.2.0.4.0 - Production on 25-4月 -2017 09:5
9:14

Copyright (c) 1991, 2013, Oracle. All rights reserved.

正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))
LISTENER 的 STATUS
------------------------
别名 LISTENER_SCAN1
版本 TNSLSNR for 64-bit Windows: Version 11.2.0.4.0 - Produ
ction
启动日期 25-4月 -2017 09:57:56
正常运行时间 0 天 0 小时 1 分 18 秒
跟踪级别 off
安全性 ON: Local OS Authentication
SNMP OFF
监听程序参数文件 E:\app\11.2.0\grid\network\admin\listener.ora
监听程序日志文件 E:\app\11.2.0\grid\log\diag\tnslsnr\leirac1\listener_s
can1\alert\log.xml
监听端点概要...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\LISTENER_SCAN1ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.101.205)(PORT=1521)))
服务摘要..
服务 "orcl" 包含 2 个实例。
实例 "orcl1", 状态 READY, 包含此服务的 1 个处理程序...
实例 "orcl2", 状态 READY, 包含此服务的 1 个处理程序...
服务 "orclXDB" 包含 2 个实例。
实例 "orcl1", 状态 READY, 包含此服务的 1 个处理程序...
实例 "orcl2", 状态 READY, 包含此服务的 1 个处理程序...
命令执行成功

E:\app\11.2.0\grid\BIN>cd ..

E:\app\11.2.0\grid>lsnrctl status listener_scan1
----->>>此处的linrctl 命令实际上找的是$ORACLE_RDBMS_HOME下的.因为windows下,谁后安装,谁的path路径就排在前面.
LSNRCTL for 64-bit Windows: Version 11.2.0.4.0 - Production on 25-4月 -2017 09:5
9:26

Copyright (c) 1991, 2013, Oracle. All rights reserved.

TNS-01101: Could not find service name

E:\app\11.2.0\grid>