oracle 11gR2 修改 DNS 方式 SCAN IP
這篇文章介紹11gR2環境下如何修改dns環境下的scan ip
以下例子為將
192.168.3.231,192.168.3.232,192.168.3.233
改為
192.168.3.234,192.168.3.235,192.168.3.236
以下為具體實施過程:
[root@rac1 bin]# nslookup racnode-cluster-scan.racnode.com
Server: 192.168.3.32
Address: 192.168.3.32#53
Name: racnode-cluster-scan.racnode.com
Address: 192.168.3.231
Name: racnode-cluster-scan.racnode.com
Address: 192.168.3.232
Name: racnode-cluster-scan.racnode.com
Address: 192.168.3.233
1.檢查目前scan ip環境
[root@rac1 bin]# nslookup racnode-cluster-scan.racnode.com
Server: 192.168.3.32
Address: 192.168.3.32#53
Name: racnode-cluster-scan.racnode.com
Address: 192.168.3.236
Name: racnode-cluster-scan.racnode.com
Address: 192.168.3.235
Name: racnode-cluster-scan.racnode.com
Address: 192.168.3.234
[grid@rac1 trace]$ srvctl config scan
SCAN name: racnode-cluster-scan.racnode.com, Network: 1/192.168.3.0/255.255.255.0/eth0
SCAN VIP name: scan1, IP: /192.168.3.231/192.168.3.231
SCAN VIP name: scan2, IP: /192.168.3.233/192.168.3.233
SCAN VIP name: scan3, IP: /192.168.3.232/192.168.3.232
[grid@rac1 trace]$
srvctl config scan_listener
[root@rac1 bin]# ./srvctl modify scan -n racnode-cluster-scan.racnode.com
[root@rac1 bin]#
[grid@rac1 trace]$ srvctl config scan_listener
SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1521
SCAN Listener LISTENER_SCAN2 exists. Port: TCP:1521
SCAN Listener LISTENER_SCAN3 exists. Port: TCP:1521
[grid@rac1 trace]$
2.停止scan ip
[grid@rac1 trace]$ srvctl stop scan_listener
[grid@rac1 trace]$ srvctl stop scan
[grid@rac1 trace]$ crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.ASM_DG.dg ora....up.type ONLINE ONLINE rac1
ora.DATA.dg ora....up.type ONLINE ONLINE rac1
ora....ER.lsnr ora....er.type ONLINE ONLINE rac1
ora....N1.lsnr ora....er.type OFFLINE OFFLINE
ora....N2.lsnr ora....er.type OFFLINE OFFLINE
ora....N3.lsnr ora....er.type OFFLINE OFFLINE
ora.TESTDG.dg ora....up.type ONLINE ONLINE rac1
ora.asm ora.asm.type ONLINE ONLINE rac1
ora.eons ora.eons.type ONLINE ONLINE rac1
ora.gsd ora.gsd.type ONLINE ONLINE rac1
ora....network ora....rk.type ONLINE ONLINE rac1
ora.oc4j ora.oc4j.type ONLINE ONLINE rac1
ora.ons ora.ons.type ONLINE ONLINE rac1
ora....SM1.asm application ONLINE ONLINE rac1
ora....C1.lsnr application ONLINE ONLINE rac1
ora.rac1.gsd application ONLINE ONLINE rac1
ora.rac1.ons application ONLINE ONLINE rac1
ora.rac1.vip ora....t1.type ONLINE ONLINE rac1
ora....SM2.asm application ONLINE ONLINE rac2
ora....C2.lsnr application ONLINE ONLINE rac2
ora.rac2.gsd application ONLINE ONLINE rac2
ora.rac2.ons application ONLINE ONLINE rac2
ora.rac2.vip ora....t1.type ONLINE ONLINE rac2
ora.racdb.db ora....se.type ONLINE ONLINE rac1
ora....est.svc ora....ce.type ONLINE ONLINE rac1
ora....ry.acfs ora....fs.type ONLINE ONLINE rac1
ora.scan1.vip ora....ip.type OFFLINE OFFLINE
ora.scan2.vip ora....ip.type OFFLINE OFFLINE
ora.scan3.vip ora....ip.type OFFLINE OFFLINE
[grid@rac1 trace]$
[grid@rac1 trace]$ crsctl status resource -t
--------------------------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.ASM_DG.dg
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.DATA.dg
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.LISTENER.lsnr
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.TESTDG.dg
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.asm
ONLINE ONLINE rac1 Started
ONLINE ONLINE rac2 Started
ora.eons
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.gsd
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.net1.network
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.ons
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.registry.acfs
ONLINE ONLINE rac1
ONLINE ONLINE rac2
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
1 OFFLINE OFFLINE
ora.LISTENER_SCAN2.lsnr
1 OFFLINE OFFLINE
ora.LISTENER_SCAN3.lsnr
1 OFFLINE OFFLINE
ora.oc4j
1 ONLINE ONLINE rac1
ora.rac1.vip
1 ONLINE ONLINE rac1
ora.rac2.vip
1 ONLINE ONLINE rac2
ora.racdb.db
1 ONLINE ONLINE rac1 Open
2 ONLINE ONLINE rac2 Open
ora.racdb.test.svc
1 ONLINE ONLINE rac1
2 ONLINE ONLINE rac2
ora.scan1.vip
1 OFFLINE OFFLINE
ora.scan2.vip
1 OFFLINE OFFLINE
ora.scan3.vip
1 OFFLINE OFFLINE
[grid@rac1 trace]$
3.檢查scan ip 資源 是否停止
[grid@rac1 trace]$ srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is not running
SCAN VIP scan2 is enabled
SCAN VIP scan2 is not running
SCAN VIP scan3 is enabled
SCAN VIP scan3 is not running
[grid@rac1 trace]$ srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is not running
SCAN Listener LISTENER_SCAN2 is enabled
SCAN listener LISTENER_SCAN2 is not running
SCAN Listener LISTENER_SCAN3 is enabled
SCAN listener LISTENER_SCAN3 is not running
[grid@rac1 trace]$
4.root使用者進行修改
[root@rac1 bin]# ./srvctl modify scan -n racnode-cluster-scan.racnode.com
[root@rac1 bin]#
5.修改dns伺服器上的ip
1.dns 域名ip配置進行修改
2.dhcp ip範圍段進行修改
6.確認結果和啟動scan ip
[grid@rac1 trace]$ srvctl config scan
SCAN name: racnode-cluster-scan.racnode.com, Network: 1/192.168.3.0/255.255.255.0/eth0
SCAN VIP name: scan1, IP: /racnode-cluster-scan.racnode.com/192.168.3.234
SCAN VIP name: scan2, IP: /racnode-cluster-scan.racnode.com/192.168.3.236
SCAN VIP name: scan3, IP: /racnode-cluster-scan.racnode.com/192.168.3.235
[grid@rac1 trace]$ srvctl config scan_listener
SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1521
SCAN Listener LISTENER_SCAN2 exists. Port: TCP:1521
SCAN Listener LISTENER_SCAN3 exists. Port: TCP:1521
[grid@rac1 trace]$ srvctl start scan
[grid@rac1 trace]$ srvctl start scan_listener
[grid@rac1 trace]$
[grid@rac1 trace]$
[grid@rac1 trace]$ crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.ASM_DG.dg ora....up.type ONLINE ONLINE rac1
ora.DATA.dg ora....up.type ONLINE ONLINE rac1
ora....ER.lsnr ora....er.type ONLINE ONLINE rac1
ora....N1.lsnr ora....er.type ONLINE ONLINE rac2
ora....N2.lsnr ora....er.type ONLINE ONLINE rac1
ora....N3.lsnr ora....er.type ONLINE ONLINE rac1
ora.TESTDG.dg ora....up.type ONLINE ONLINE rac1
ora.asm ora.asm.type ONLINE ONLINE rac1
ora.eons ora.eons.type ONLINE ONLINE rac1
ora.gsd ora.gsd.type ONLINE ONLINE rac1
ora....network ora....rk.type ONLINE ONLINE rac1
ora.oc4j ora.oc4j.type ONLINE ONLINE rac1
ora.ons ora.ons.type ONLINE ONLINE rac1
ora....SM1.asm application ONLINE ONLINE rac1
ora....C1.lsnr application ONLINE ONLINE rac1
ora.rac1.gsd application ONLINE ONLINE rac1
ora.rac1.ons application ONLINE ONLINE rac1
ora.rac1.vip ora....t1.type ONLINE ONLINE rac1
ora....SM2.asm application ONLINE ONLINE rac2
ora....C2.lsnr application ONLINE ONLINE rac2
ora.rac2.gsd application ONLINE ONLINE rac2
ora.rac2.ons application ONLINE ONLINE rac2
ora.rac2.vip ora....t1.type ONLINE ONLINE rac2
ora.racdb.db ora....se.type ONLINE ONLINE rac1
ora....est.svc ora....ce.type ONLINE ONLINE rac1
ora....ry.acfs ora....fs.type ONLINE ONLINE rac1
ora.scan1.vip ora....ip.type ONLINE ONLINE rac2
ora.scan2.vip ora....ip.type ONLINE ONLINE rac1
ora.scan3.vip ora....ip.type ONLINE ONLINE rac1
[grid@rac1 trace]$ crsctl status res -t
--------------------------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.ASM_DG.dg
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.DATA.dg
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.LISTENER.lsnr
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.TESTDG.dg
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.asm
ONLINE ONLINE rac1 Started
ONLINE ONLINE rac2 Started
ora.eons
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.gsd
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.net1.network
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.ons
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.registry.acfs
ONLINE ONLINE rac1
ONLINE ONLINE rac2
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE rac2
ora.LISTENER_SCAN2.lsnr
1 ONLINE ONLINE rac1
ora.LISTENER_SCAN3.lsnr
1 ONLINE ONLINE rac1
ora.oc4j
1 ONLINE ONLINE rac1
ora.rac1.vip
1 ONLINE ONLINE rac1
ora.rac2.vip
1 ONLINE ONLINE rac2
ora.racdb.db
1 ONLINE ONLINE rac1 Open
2 ONLINE ONLINE rac2 Open
ora.racdb.test.svc
1 ONLINE ONLINE rac1
2 ONLINE ONLINE rac2
ora.scan1.vip
1 ONLINE ONLINE rac2
ora.scan2.vip
1 ONLINE ONLINE rac1
ora.scan3.vip
1 ONLINE ONLINE rac1
[grid@rac1 trace]$
可以看到修改後192.168.3.234,192.168.3.235,192.168.3.236段的ip地址已經生效
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7199859/viewspace-668942/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle 11gR2 scan ip (DNS模式)OracleDNS模式
- Oracle 11gR2 RAC修改SCAN IPOracle
- Oracle 11gR2 RAC修改SCAN IP地址Oracle
- oracle 11gR2 如何修改scan vip 地址 /etc/hosts方式Oracle
- oracle 客戶端如何連線到oracle 11gR2資料庫(DNS SCAN IP)Oracle客戶端資料庫DNS
- Oracle RAC修改Scan IP,Public IP的方法Oracle
- Oracle RAC修改public, VIP, SCAN IPOracle
- 修改scan ip
- Oracle 11G 修改scan_ipOracle
- Oracle 11g修改RAC SCAN IPOracle
- Oracle RAC修改public,private,vip scan IPOracle
- 11gr2 rac改IP系列之三:修改SCAN IP為同網段其它IP
- oracle 11gR2 如何修改public ipOracle
- oracle 11gR2 如何修改 private ipOracle
- 修改grid scan ip地址
- Oracle 11gr2修改RAC叢集的scan ip,並處理ORA-12514問題Oracle
- oracle 11gr2 SCAN LISTENER配置Oracle
- How to Configure the DNS Server for 11gR2 SCAN On LinuxDNSServerLinux
- 11gR2 RAC修改IP
- oracle 11g rac 修改VIP、scan VIP、priv IP操作文件Oracle
- [Oracle] oracle11g scan ip relocateOracle
- 11g RAC 修改PUBLIC-IP、VIP、PRIV-IP、SCAN-IP
- 【RAC】如何修改SCAN IP的IP地址、名稱、埠等資訊
- scan-dns配置DNS
- oracle 11gR2 scan PRVF-4664 問題Oracle
- Oracle RAC中的Public IP, VIP和Internal IP,SCANOracle
- 【Oracle】修改scan監聽器埠號Oracle
- [20180427]SCAN_IP DNS 反向解析2.txtDNS
- 新增SCAN IP
- 11gr2 rac改IP系列之四:修改私網IP為其它IP
- oracle 11gR2 如何修改vipOracle
- RAC重建SCAN IP
- RAC 增加SCAN IP
- scan IP 學習
- Oracle RAC 修改 IP 地址Oracle
- IP地址修改後,DNS解析引發的問題DNS
- Oracle 11g RAC SCAN ip的原理及配置Oracle
- 11gr2 rac改IP系列之一:修改公網IP為同網段其它IP