<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>惜分飞 &#187; modify scan ip</title>
	<atom:link href="https://www.xifenfei.com/tag/modify-scan-ip/feed" rel="self" type="application/rss+xml" />
	<link>https://www.xifenfei.com</link>
	<description>提供7*24专业数据库(Oracle,SQL Server,MySQL,PostgreSQL等)恢复和技术支持@Tel:17813235971</description>
	<lastBuildDate>Sun, 22 Nov 2026 15:21:14 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>修改11.2 RAC 的 SCAN IP</title>
		<link>https://www.xifenfei.com/2016/03/%e4%bf%ae%e6%94%b911-2-rac-%e7%9a%84-scan-ip.html</link>
		<comments>https://www.xifenfei.com/2016/03/%e4%bf%ae%e6%94%b911-2-rac-%e7%9a%84-scan-ip.html#comments</comments>
		<pubDate>Fri, 25 Mar 2016 12:43:45 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[Oracle RAC]]></category>
		<category><![CDATA[modify scan ip]]></category>
		<category><![CDATA[SCAN IP]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=6344</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2016/03/%e4%bf%ae%e6%94%b911-2-rac-%e7%9a%84-scan-ip.html">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div id="xifenfeicopyright">
<p>联系：<a href="https://www.xifenfei.com/about_xifenfei" target="_blank">手机/微信(+86 17813235971)   QQ(107644445)</a><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&#038;uin=107644445&#038;site=qq&#038;menu=yes"><img src="https://www.xifenfei.com/wp-content/themes/img/site_qq.jpg" alt="QQ咨询惜分飞" title="QQ咨询惜分飞"/></a></p>
<p>标题：<a href="https://www.xifenfei.com/2016/03/%e4%bf%ae%e6%94%b911-2-rac-%e7%9a%84-scan-ip.html" target="_blank">修改11.2 RAC 的 SCAN IP</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>在某些情况下,由于是C/S架构,从以前的单机系统迁移到现在11.2的rac中,如果修改客户端ip地址工作量太大,而且也不现实,一般建议直接修改scan ip地址和以前一样,从而实现业务直接访问scan ip实现应用不用一个个单独配置.这里通过简单演示,实现修改scan ip的过程(网段不变),主要是把scan名字为scan-xff的ip地址从192.168.137.245修改为192.168.137.248<br />
<strong>查看当前scan ip信息</strong></p>
<pre class="brush: bash; title: ; notranslate">
[root-www.xifenfei.com@xff1 ~]# ping xff-scan
PING xff-scan (192.168.137.245) 56(84) bytes of data.
^C
--- xff-scan ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1738ms
[root-www.xifenfei.com@xff1 ~]# crsctl status res -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS       
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
               ONLINE  ONLINE       xff1                                         
               ONLINE  ONLINE       xff2                                         
ora.LISTENER.lsnr
               ONLINE  ONLINE       xff1                                         
               ONLINE  ONLINE       xff2                                         
ora.asm
               ONLINE  ONLINE       xff1                     Started             
               ONLINE  ONLINE       xff2                     Started             
ora.gsd
               OFFLINE OFFLINE      xff1                                         
               OFFLINE OFFLINE      xff2                                         
ora.net1.network
               ONLINE  ONLINE       xff1                                         
               ONLINE  ONLINE       xff2                                         
ora.ons
               ONLINE  ONLINE       xff1                                         
               ONLINE  ONLINE       xff2                                         
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       xff1                                         
ora.cvu
      1        ONLINE  ONLINE       xff1                                         
ora.oc4j
      1        ONLINE  ONLINE       xff1                                         
ora.scan1.vip
      1        ONLINE  ONLINE       xff1                                         
ora.xff1.vip
      1        ONLINE  ONLINE       xff1                                         
ora.xff2.vip
      1        ONLINE  ONLINE       xff2                                         
ora.xffdb.db
      1        ONLINE  ONLINE       xff1                     Open                
      2        ONLINE  ONLINE       xff2                     Open   
[root-www.xifenfei.com@xff1 ~]# srvctl config scan
SCAN name: xff-scan, Network: 1/192.168.137.0/255.255.255.0/eth0
SCAN VIP name: scan1, IP: /xff-scan/192.168.137.245
</pre>
<p><strong>修改scan ip</strong></p>
<pre class="brush: bash; title: ; notranslate">
[root-www.xifenfei.com@xff1 ~]# srvctl stop scan_listener
[root-www.xifenfei.com@xff1 ~]# srvctl stop scan
[root-www.xifenfei.com@xff1 ~]# crsctl status res -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS       
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
               ONLINE  ONLINE       xff1                                         
               ONLINE  ONLINE       xff2                                         
ora.LISTENER.lsnr
               ONLINE  ONLINE       xff1                                         
               ONLINE  ONLINE       xff2                                         
ora.asm
               ONLINE  ONLINE       xff1                     Started             
               ONLINE  ONLINE       xff2                     Started             
ora.gsd
               OFFLINE OFFLINE      xff1                                         
               OFFLINE OFFLINE      xff2                                         
ora.net1.network
               ONLINE  ONLINE       xff1                                         
               ONLINE  ONLINE       xff2                                         
ora.ons
               ONLINE  ONLINE       xff1                                         
               ONLINE  ONLINE       xff2                                         
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        OFFLINE OFFLINE                                                   
ora.cvu
      1        ONLINE  ONLINE       xff1                                         
ora.oc4j
      1        ONLINE  ONLINE       xff1                                         
ora.scan1.vip
      1        OFFLINE OFFLINE                                                   
ora.xff1.vip
      1        ONLINE  ONLINE       xff1                                         
ora.xff2.vip
      1        ONLINE  ONLINE       xff2                                         
ora.xffdb.db
      1        ONLINE  ONLINE       xff1                     Open                
      2        ONLINE  ONLINE       xff2                     Open 

--如果是dns,注意修改dns中scan ip信息,如果是hosts文件注意多个节点都需要修改
[root-www.xifenfei.com@xff1 ~]# ping xff-scan
PING xff-scan (192.168.137.248) 56(84) bytes of data.
^C
--- xff-scan ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1738ms

[root-www.xifenfei.com@xff1 ~]# srvctl modify scan -n xff-scan
[root-www.xifenfei.com@xff1 ~]# srvctl config scan
SCAN name: xff-scan, Network: 1/192.168.137.0/255.255.255.0/eth0
SCAN VIP name: scan1, IP: /xff-scan/192.168.137.248
[root-www.xifenfei.com@xff1 ~]# srvctl start scan
[root-www.xifenfei.com@xff1 ~]# srvctl start scan_listener
[root-www.xifenfei.com@xff1 ~]# crsctl status res -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS       
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
               ONLINE  ONLINE       xff1                                         
               ONLINE  ONLINE       xff2                                         
ora.LISTENER.lsnr
               ONLINE  ONLINE       xff1                                         
               ONLINE  ONLINE       xff2                                         
ora.asm
               ONLINE  ONLINE       xff1                     Started             
               ONLINE  ONLINE       xff2                     Started             
ora.gsd
               OFFLINE OFFLINE      xff1                                         
               OFFLINE OFFLINE      xff2                                         
ora.net1.network
               ONLINE  ONLINE       xff1                                         
               ONLINE  ONLINE       xff2                                         
ora.ons
               ONLINE  ONLINE       xff1                                         
               ONLINE  ONLINE       xff2                                         
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       xff2                                         
ora.cvu
      1        ONLINE  ONLINE       xff1                                         
ora.oc4j
      1        ONLINE  ONLINE       xff1                                         
ora.scan1.vip
      1        ONLINE  ONLINE       xff2                                         
ora.xff1.vip
      1        ONLINE  ONLINE       xff1                                         
ora.xff2.vip
      1        ONLINE  ONLINE       xff2                                         
ora.xffdb.db
      1        ONLINE  ONLINE       xff1                     Open                
      2        ONLINE  ONLINE       xff2                     Open 
</pre>
<p><strong>查看修改后的scan listener状态</strong></p>
<pre class="brush: bash; title: ; notranslate">
xff2:/home/grid&gt; lsnrctl status LISTENER_SCAN1

LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 12-MAR-2016 17:02:32

Copyright (c) 1991, 2013, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER_SCAN1
Version                   TNSLSNR for Linux: Version 11.2.0.4.0 - Production
Start Date                12-MAR-2016 16:59:05
Uptime                    0 days 0 hr. 3 min. 27 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/oracle/app/grid/network/admin/listener.ora
Listener Log File         /u01/oracle/app/grid/log/diag/tnslsnr/xff2/listener_scan1/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_SCAN1)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.137.248)(PORT=1521)))
The listener supports no services
The command completed successfully

[root-www.xifenfei.com@xff2 ~]# su - oracle
xff2:/home/oracle&gt; sqlplus / as sysdba

SQL*Plus: Release 11.2.0.4.0 Production on Sat Mar 12 17:01:11 2016

Copyright (c) 1982, 2013, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

SQL&gt; alter system register;

System altered.

SQL&gt; /

System altered.

SQL&gt; exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
xff2:/home/oracle&gt; exit
logout
[root-www.xifenfei.com@xff2 ~]# su - grid
xff2:/home/grid&gt; lsnrctl status LISTENER_SCAN1

LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 12-MAR-2016 17:01:24

Copyright (c) 1991, 2013, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER_SCAN1
Version                   TNSLSNR for Linux: Version 11.2.0.4.0 - Production
Start Date                12-MAR-2016 16:59:05
Uptime                    0 days 0 hr. 2 min. 18 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/oracle/app/grid/network/admin/listener.ora
Listener Log File         /u01/oracle/app/grid/log/diag/tnslsnr/xff2/listener_scan1/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_SCAN1)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.137.248)(PORT=1521)))
The listener supports no services
The command completed successfully
</pre>
<p>这里发现修改scan ip之后,scan listener没有正确或者到监听的动态注册信息,哪怕人工执行了alter system register;也不行.<br />
<br />
<strong>通过重启数据库,解决修改scan ip后的动态监听注册问题</strong></p>
<pre class="brush: bash; title: ; notranslate">
[root-www.xifenfei.com@xff2 ~]# su - oracle
xff2:/home/oracle&gt; srvctl stop database -d xffdb
xff2:/home/oracle&gt; srvctl start database -d xffdb
xff2:/home/oracle&gt; exit
logout
[root-www.xifenfei.com@xff2 ~]# su - grid
xff2:/home/grid&gt; lsnrctl status LISTENER_SCAN1

LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 12-MAR-2016 17:06:17

Copyright (c) 1991, 2013, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER_SCAN1
Version                   TNSLSNR for Linux: Version 11.2.0.4.0 - Production
Start Date                12-MAR-2016 16:59:05
Uptime                    0 days 0 hr. 7 min. 11 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/oracle/app/grid/network/admin/listener.ora
Listener Log File         /u01/oracle/app/grid/log/diag/tnslsnr/xff2/listener_scan1/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_SCAN1)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.137.248)(PORT=1521)))
Services Summary...
Service &quot;xffdb&quot; has 2 instance(s).
  Instance &quot;xffdb1&quot;, status READY, has 1 handler(s) for this service...
  Instance &quot;xffdb2&quot;, status READY, has 1 handler(s) for this service...
Service &quot;xffdbXDB&quot; has 2 instance(s).
  Instance &quot;xffdb1&quot;, status READY, has 1 handler(s) for this service...
  Instance &quot;xffdb2&quot;, status READY, has 1 handler(s) for this service...
The command completed successfully
</pre>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2023/04/remove-ora-asmgroup-offline.html" rel="bookmark" class="crp_title">删除ora.asmgroup资源offline记录</a></li><li style="list-style-type:decimal;font-size:11px;" ><a 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" rel="bookmark" class="crp_title">在RAC中lsnrctl和srvctl操作监听区别</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2013/06/%e5%9c%a811gr2-gi%e4%b8%8a%e9%85%8d%e7%bd%ae%e7%ac%ac%e4%ba%8c%e7%9b%91%e5%90%ac.html" rel="bookmark" class="crp_title">在11GR2 GI上配置第二个监听</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2024/09/19c-replace-private-network-card.html" rel="bookmark" class="crp_title">Oracle 19c RAC 替换私网操作</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2024/03/ora-storage-ora-12514.html" rel="bookmark" class="crp_title">ora.storage无法启动报ORA-12514故障处理</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2015/06/%e8%ae%b0%e5%bd%95%e8%a7%a3%e5%86%b3%e4%b8%80%e6%ac%a1listener%e7%8a%b6%e6%80%81%e4%b8%banot-all-endpoints-registered%e7%9a%84%e6%95%85%e9%9a%9c.html" rel="bookmark" class="crp_title">记录解决一次Listener状态为Not All Endpoints Registered的故障</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2019/04/traceroute-has-a-disk-hb-but-no-network-hb.html" rel="bookmark" class="crp_title">has a disk HB, but no network HB&#8212;-traceroute不通导致</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2022/10/dd-npohasd.html" rel="bookmark" class="crp_title">11.2 crs启动超时dd  npohasd 处理</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2017/03/high-space-usage-crfclust-bdb.html" rel="bookmark" class="crp_title">crfclust.bdb文件过大处理</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2013/12/oracle-12c-rac-hub-and-leaf-%e7%9b%b8%e4%ba%92%e8%bd%ac%e6%8d%a2.html" rel="bookmark" class="crp_title">ORACLE 12C RAC hub AND leaf 相互转换</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2023/04/remove-syssys-kupcc.html" rel="bookmark" class="crp_title">清理类似SYS$SYS.KUPC$C_2_20230411115109_0服务</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2024/06/time-interval-more-10min-crs-donot-start.html" rel="bookmark" class="crp_title">RAC主机相差超过10分钟导致crs无法启动</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2016/03/%e4%bf%ae%e6%94%b911-2-rac-%e7%9a%84-scan-ip.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
