<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>《在RAC中lsnrctl和srvctl操作监听区别》的评论</title>
	<atom:link href="https://www.xifenfei.com/2012/03/%e5%9c%a8rac%e4%b8%adlsnrctl%e5%92%8csrvctl%e6%93%8d%e4%bd%9c%e7%9b%91%e5%90%ac%e5%8c%ba%e5%88%ab.html/feed" rel="self" type="application/rss+xml" />
	<link>https://www.xifenfei.com/2012/03/%e5%9c%a8rac%e4%b8%adlsnrctl%e5%92%8csrvctl%e6%93%8d%e4%bd%9c%e7%9b%91%e5%90%ac%e5%8c%ba%e5%88%ab.html</link>
	<description>提供7*24专业数据库(Oracle,SQL Server,MySQL,PostgreSQL等)恢复和技术支持@Tel:17813235971</description>
	<lastBuildDate>Thu, 11 Dec 2025 02:46:14 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>作者：shumu</title>
		<link>https://www.xifenfei.com/2012/03/%e5%9c%a8rac%e4%b8%adlsnrctl%e5%92%8csrvctl%e6%93%8d%e4%bd%9c%e7%9b%91%e5%90%ac%e5%8c%ba%e5%88%ab.html/comment-page-1#comment-807</link>
		<dc:creator><![CDATA[shumu]]></dc:creator>
		<pubDate>Fri, 04 May 2012 03:54:41 +0000</pubDate>
		<guid isPermaLink="false">https://www.xifenfei.com/?p=2658#comment-807</guid>
		<description><![CDATA[不错，好文章。非常透彻]]></description>
		<content:encoded><![CDATA[<p>不错，好文章。非常透彻</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：惜分飞</title>
		<link>https://www.xifenfei.com/2012/03/%e5%9c%a8rac%e4%b8%adlsnrctl%e5%92%8csrvctl%e6%93%8d%e4%bd%9c%e7%9b%91%e5%90%ac%e5%8c%ba%e5%88%ab.html/comment-page-1#comment-715</link>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
		<pubDate>Wed, 14 Mar 2012 12:18:30 +0000</pubDate>
		<guid isPermaLink="false">https://www.xifenfei.com/?p=2658#comment-715</guid>
		<description><![CDATA[当默认监听存在时测试
[shell]
rac1-&gt; ps -ef&#124;grep tns
oracle    1266     1  0 23:02 ?        00:00:00 /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr LISTENER_RAC1 -inherit
oracle   19409     1  0 23:15 ?        00:00:00 /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr LISTENER -inherit
oracle   19589  8971  0 23:15 pts/0    00:00:00 grep tns
rac1-&gt; lsnrctl stop

LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 11-MAR-2012 23:15:26

Copyright (c) 1991, 2005, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=rac1-vip)(PORT=1522)(IP=FIRST)))
The command completed successfully
rac1-&gt; lsnrctl 

LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 11-MAR-2012 23:15:32

Copyright (c) 1991, 2005, Oracle.  All rights reserved.

Welcome to LSNRCTL, type &quot;help&quot; for information.

LSNRCTL&gt; status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=rac1-vip)(PORT=1522)(IP=FIRST)))
TNS-12541: TNS:no listener
 TNS-12560: TNS:protocol adapter error
  TNS-00511: No listener
   Linux Error: 111: Connection refused
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.11)(PORT=1522)(IP=FIRST)))
TNS-12541: TNS:no listener
 TNS-12560: TNS:protocol adapter error
  TNS-00511: No listener
   Linux Error: 111: Connection refused
LSNRCTL&gt; status LISTENER_RAC1
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=rac1-vip)(PORT=1521)(IP=FIRST)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER_RAC1
Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date                11-MAR-2012 23:02:43
Uptime                    0 days 0 hr. 12 min. 56 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File         /u01/app/oracle/product/10.2.0/db_1/network/log/listener_rac1.log
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.21)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.11)(PORT=1521)))
Services Summary...
Service &quot;+ASM&quot; has 1 instance(s).
  Instance &quot;+ASM1&quot;, status BLOCKED, has 1 handler(s) for this service...
Service &quot;+ASM_XPT&quot; has 1 instance(s).
  Instance &quot;+ASM1&quot;, status BLOCKED, has 1 handler(s) for this service...
Service &quot;PLSExtProc&quot; has 1 instance(s).
  Instance &quot;PLSExtProc&quot;, status UNKNOWN, has 1 handler(s) for this service...
Service &quot;devdb&quot; has 1 instance(s).
  Instance &quot;devdb1&quot;, status READY, has 1 handler(s) for this service...
Service &quot;devdbXDB&quot; has 1 instance(s).
  Instance &quot;devdb1&quot;, status READY, has 1 handler(s) for this service...
Service &quot;devdb_XPT&quot; has 1 instance(s).
  Instance &quot;devdb1&quot;, status READY, has 1 handler(s) for this service...
The command completed successfully
LSNRCTL&gt; exit
rac1-&gt; ps -ef&#124;grep tns
oracle    1266     1  0 23:02 ?        00:00:00 /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr LISTENER_RAC1 -inherit
oracle   20233  8971  0 23:15 pts/0    00:00:00 grep tns
rac1-&gt; lsnrctl start

LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 11-MAR-2012 23:16:17

Copyright (c) 1991, 2005, Oracle.  All rights reserved.

Starting /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 10.2.0.1.0 - Production
System parameter file is /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.21)(PORT=1522)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.11)(PORT=1522)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=rac1-vip)(PORT=1522)(IP=FIRST)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date                11-MAR-2012 23:16:17
Uptime                    0 days 0 hr. 0 min. 0 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File         /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.21)(PORT=1522)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.11)(PORT=1522)))
Services Summary...
Service &quot;PLSExtProc&quot; has 1 instance(s).
  Instance &quot;PLSExtProc&quot;, status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
rac1-&gt; ps -ef&#124;grep tns
oracle    1266     1  0 23:02 ?        00:00:00 /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr LISTENER_RAC1 -inherit
oracle   21077     1  0 23:16 ?        00:00:00 /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr LISTENER -inherit
oracle   21207  8971  0 23:16 pts/0    00:00:00 grep tns
[/shell]
当默认监听存在时，所有不指定监听名称的操作都是对于默认监听的，不会影响到非默认监听]]></description>
		<content:encoded><![CDATA[<p>当默认监听存在时测试</p>
<pre class="brush: bash; title: ; notranslate">
rac1-&gt; ps -ef|grep tns
oracle    1266     1  0 23:02 ?        00:00:00 /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr LISTENER_RAC1 -inherit
oracle   19409     1  0 23:15 ?        00:00:00 /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr LISTENER -inherit
oracle   19589  8971  0 23:15 pts/0    00:00:00 grep tns
rac1-&gt; lsnrctl stop

LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 11-MAR-2012 23:15:26

Copyright (c) 1991, 2005, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=rac1-vip)(PORT=1522)(IP=FIRST)))
The command completed successfully
rac1-&gt; lsnrctl 

LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 11-MAR-2012 23:15:32

Copyright (c) 1991, 2005, Oracle.  All rights reserved.

Welcome to LSNRCTL, type &quot;help&quot; for information.

LSNRCTL&gt; status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=rac1-vip)(PORT=1522)(IP=FIRST)))
TNS-12541: TNS:no listener
 TNS-12560: TNS:protocol adapter error
  TNS-00511: No listener
   Linux Error: 111: Connection refused
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.11)(PORT=1522)(IP=FIRST)))
TNS-12541: TNS:no listener
 TNS-12560: TNS:protocol adapter error
  TNS-00511: No listener
   Linux Error: 111: Connection refused
LSNRCTL&gt; status LISTENER_RAC1
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=rac1-vip)(PORT=1521)(IP=FIRST)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER_RAC1
Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date                11-MAR-2012 23:02:43
Uptime                    0 days 0 hr. 12 min. 56 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File         /u01/app/oracle/product/10.2.0/db_1/network/log/listener_rac1.log
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.21)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.11)(PORT=1521)))
Services Summary...
Service &quot;+ASM&quot; has 1 instance(s).
  Instance &quot;+ASM1&quot;, status BLOCKED, has 1 handler(s) for this service...
Service &quot;+ASM_XPT&quot; has 1 instance(s).
  Instance &quot;+ASM1&quot;, status BLOCKED, has 1 handler(s) for this service...
Service &quot;PLSExtProc&quot; has 1 instance(s).
  Instance &quot;PLSExtProc&quot;, status UNKNOWN, has 1 handler(s) for this service...
Service &quot;devdb&quot; has 1 instance(s).
  Instance &quot;devdb1&quot;, status READY, has 1 handler(s) for this service...
Service &quot;devdbXDB&quot; has 1 instance(s).
  Instance &quot;devdb1&quot;, status READY, has 1 handler(s) for this service...
Service &quot;devdb_XPT&quot; has 1 instance(s).
  Instance &quot;devdb1&quot;, status READY, has 1 handler(s) for this service...
The command completed successfully
LSNRCTL&gt; exit
rac1-&gt; ps -ef|grep tns
oracle    1266     1  0 23:02 ?        00:00:00 /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr LISTENER_RAC1 -inherit
oracle   20233  8971  0 23:15 pts/0    00:00:00 grep tns
rac1-&gt; lsnrctl start

LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 11-MAR-2012 23:16:17

Copyright (c) 1991, 2005, Oracle.  All rights reserved.

Starting /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 10.2.0.1.0 - Production
System parameter file is /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.21)(PORT=1522)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.11)(PORT=1522)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=rac1-vip)(PORT=1522)(IP=FIRST)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date                11-MAR-2012 23:16:17
Uptime                    0 days 0 hr. 0 min. 0 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File         /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.21)(PORT=1522)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.11)(PORT=1522)))
Services Summary...
Service &quot;PLSExtProc&quot; has 1 instance(s).
  Instance &quot;PLSExtProc&quot;, status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
rac1-&gt; ps -ef|grep tns
oracle    1266     1  0 23:02 ?        00:00:00 /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr LISTENER_RAC1 -inherit
oracle   21077     1  0 23:16 ?        00:00:00 /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr LISTENER -inherit
oracle   21207  8971  0 23:16 pts/0    00:00:00 grep tns
</pre>
<p>当默认监听存在时，所有不指定监听名称的操作都是对于默认监听的，不会影响到非默认监听</p>
]]></content:encoded>
	</item>
</channel>
</rss>
