scan ip的手動切換
檢查RAC的狀態,從狀態資訊可以看到scan_listener 執行在rac-1節點。
[grid@rac-1 ~]$ crsctl stat res -t
--------------------------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.LISTENER.lsnr
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
ora.LISTENER_RAC.lsnr
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
ora.ORADATA.dg
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
ora.ORC_VOTE.dg
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
ora.asm
ONLINE ONLINE rac-1 Started
ONLINE ONLINE rac-2 Started
ora.gsd
OFFLINE OFFLINE rac-1
OFFLINE OFFLINE rac-2
ora.net1.network
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
ora.ons
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
ora.registry.acfs
OFFLINE OFFLINE rac-1
ONLINE ONLINE rac-2
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE rac-1
ora.cvu
1 ONLINE ONLINE rac-1
ora.oc4j
1 ONLINE ONLINE rac-1
ora.oratest.db
1 ONLINE ONLINE rac-2 Open
2 ONLINE ONLINE rac-1 Open
ora.rac-1.vip
1 ONLINE ONLINE rac-1
ora.rac-2.vip
1 ONLINE ONLINE rac-2
ora.scan1.vip
1 ONLINE ONLINE rac-1
[grid@rac-1 ~]$
進一步確認scan ip 和 scan listener 執行在那個節點
[grid@rac-1 ~]$ srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node rac-1
[grid@rac-1 ~]$ srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is running on node rac-1
從資訊看,scan ip 執行在rac-1 節點。下面手動將scan ip 切換到rac-2 節點
我們將使用srvctl relocate scan_listener命令,下面是這個命令的幫助文件
[grid@rac-1 ~]$ srvctl relocate scan_listener -help
Temporarily relocate SCAN listener from one node of the cluster to another.
Usage: srvctl relocate scan_listener -i <ordinal_number> [-n <node_name>]
-i <scan_ordinal_number> Ordinal number of IP address
-n <node_name> SCAN VIP node name
-h Print usage
[grid@rac-1 ~]$
執行該命令
[grid@rac-1 ~]$ srvctl relocate scan_listener -i 1 -n rac-2
檢查scan ip 資訊,發現scan ip 已經執行在rac-2節點了。
[grid@rac-1 ~]$ srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node rac-2
[grid@rac-1 ~]$ srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is running on node rac-2
[grid@rac-1 ~]$ crsctl stat res -t
--------------------------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.LISTENER.lsnr
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
ora.LISTENER_RAC.lsnr
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
ora.ORADATA.dg
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
ora.ORC_VOTE.dg
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
ora.asm
ONLINE ONLINE rac-1 Started
ONLINE ONLINE rac-2 Started
ora.gsd
OFFLINE OFFLINE rac-1
OFFLINE OFFLINE rac-2
ora.net1.network
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
ora.ons
ONLINE ONLINE rac-1
ONLINE ONLINE rac-2
ora.registry.acfs
OFFLINE OFFLINE rac-1
ONLINE ONLINE rac-2
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE rac-2
ora.cvu
1 ONLINE ONLINE rac-1
ora.oc4j
1 ONLINE ONLINE rac-1
ora.oratest.db
1 ONLINE ONLINE rac-2 Open
2 ONLINE ONLINE rac-1 Open
ora.rac-1.vip
1 ONLINE ONLINE rac-1
ora.rac-2.vip
1 ONLINE ONLINE rac-2
ora.scan1.vip
1 ONLINE ONLINE rac-2
[grid@rac-1 ~]$
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31520497/viewspace-2156773/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- [重慶思莊每日技術分享]-11g rac scan ip 如何手動切換到其他節點上
- IP地址切換工具
- ostgreSQL主從切換-手動SQL
- Oracle RAC DG手動切換Oracle
- 爬蟲中的TCP請求自動切換ip爬蟲TCP
- 新增SCAN IP
- Mysql MHA部署-06手動切換MySql
- 切換代理IP時如何檢查IP?
- RAC 增加SCAN IP
- Oracle RAC修改Scan IP,Public IP的方法Oracle
- WPF手動實現切換頁面
- 代理IP常見的三種切換方式
- 手機換IP的方法--手機PPTPpptp
- Python網路爬蟲進階:自動切換HTTP代理IP的應用Python爬蟲HTTP
- MySQL MHA部署 Part 7 MHA手動切換測試MySql
- uniapp 滑動切換APP
- Oracle RAC修改public, VIP, SCAN IPOracle
- MHA實現mysql主從資料庫手動切換的方法MySql資料庫
- 【RAC】如何修改SCAN IP的IP地址、名稱、埠等資訊
- Oracle 11G 修改scan_ipOracle
- 手動配置ip
- MySQL Orchestrator自動導換+VIP切換MySql
- 基於react-intl實現手動國際化切換React
- Oracle 11g RAC SCAN ip的原理及配置Oracle
- 11g RAC 修改PUBLIC-IP、VIP、PRIV-IP、SCAN-IP
- 如何更換動態IP?
- Redis 中使用 scan 替換 keysRedis
- vue路由切換滑動效果Vue路由
- jenkins動態切換環境Jenkins
- echarts 主題動態切換Echarts
- 程式切換(上下文切換)
- [20180427]SCAN_IP DNS 反向解析2.txtDNS
- 蘋果IP:如何換IP?換IP最簡單的方法分享蘋果
- nacos實現對minio的動態版本切換
- 微星筆記本怎麼切換啟動模式?微星筆記本bios設定啟動模式切換的教程筆記模式iOS
- DG的切換操作
- 30個類手寫Spring核心原理之動態資料來源切換Spring
- 手機直播原始碼,文字上下滾動切換 用於公告訊息提示原始碼