真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

怎么修改linux中rac集群各種ip地址

這篇文章主要介紹“怎么修改linux中rac集群各種ip地址”,在日常操作中,相信很多人在怎么修改linux中rac集群各種ip地址問題上存在疑惑,小編查閱了各式資料,整理出簡單好用的操作方法,希望對大家解答”怎么修改linux中rac集群各種ip地址”的疑惑有所幫助!接下來,請跟著小編一起來學習吧!

創(chuàng)新互聯(lián)公司專注為客戶提供全方位的互聯(lián)網(wǎng)綜合服務(wù),包含不限于做網(wǎng)站、成都網(wǎng)站設(shè)計、尼元陽網(wǎng)絡(luò)推廣、小程序定制開發(fā)、尼元陽網(wǎng)絡(luò)營銷、尼元陽企業(yè)策劃、尼元陽品牌公關(guān)、搜索引擎seo、人物專訪、企業(yè)宣傳片、企業(yè)代運營等,從售前售中售后,我們都將竭誠為您服務(wù),您的肯定,是我們最大的嘉獎;創(chuàng)新互聯(lián)公司為所有大學生創(chuàng)業(yè)者提供尼元陽建站搭建服務(wù),24小時服務(wù)熱線:13518219792,官方網(wǎng)址:www.cdcxhl.com

修改ip地址:
1.查看接口配置并修改:
[root@rac1 ~]# /oracle/app/11.2.0/grid/bin/oifcfg getif
enp0s3 192.168.6.0 global public 公網(wǎng)ip網(wǎng)段
enp0s8 10.10.10.0 global cluster_interconnect 私網(wǎng)ip網(wǎng)段
刪除原公有,私有IP地址:
[root@rac1 ~]# /oracle/app/11.2.0/grid/bin/oifcfg delif -global enp0s3
[root@rac1 ~]# /oracle/app/11.2.0/grid/bin/oifcfg delif -global enp0s8
重新設(shè)置新Public IP:
[root@rac1 ~]# /oracle/app/11.2.0/grid/bin/oifcfg setif -global enp0s3/192.168.60.0:public
[root@rac1 ~]# /oracle/app/11.2.0/grid/bin/oifcfg setif -global enp0s8/10.10.20.0:cluster_inerconnect
[root@rac1 ~]# /oracle/app/11.2.0/grid/bin/oifcfg getif

2.停止has服務(wù):
/oracle/app/11.2.0/grid/bin/crsctl stop has

3.通過操作系統(tǒng)命令修改公有,私有IP地址
linux: vi /etc/sysconfig/network-scripts/ifcfg-enp0s3
systemctl restart network
修改SCAN域名配置(存在DNS域名方式解析,修改域名映射)
修改hosts文件公共IP地址,VIP地址,SCAN地址
vi /etc/hosts

4.啟動has:
/oracle/app/11.2.0/grid/bin/crsctl start has

5.查看和修改網(wǎng)絡(luò)資源
/oracle/app/11.2.0/grid/bin/srvctl config network
Network exists: 1/192.168.6.0/255.255.255.0/enp0s3, type static

/oracle/app/11.2.0/grid/bin/srvctl modify network -k 1 -S 192.168.60.0/255.255.255.0/enp0s3 -v

6.重新配置SCAN VIP和SCAN Listener
[root@rac1 ~]# /oracle/app/11.2.0/grid/bin/srvctl config scan
SCAN name: rac-scan, Network: 1/192.168.6.0/255.255.255.0/enp0s3
SCAN VIP name: scan1, IP: /rac-scan/192.168.6.254

[root@rac1 ~]# /oracle/app/11.2.0/grid/bin/srvctl config scan_listener
SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1521

[root@rac1 ~]# /oracle/app/11.2.0/grid/bin/srvctl stop scan_listener
[root@rac1 ~]# /oracle/app/11.2.0/grid/bin/srvctl stop scan
[root@rac1 ~]# /oracle/app/11.2.0/grid/bin/srvctl remove scan_listener
[root@rac1 ~]# /oracle/app/11.2.0/grid/bin/srvctl remove scan

[root@rac1 ~]# /oracle/app/11.2.0/grid/bin/srvctl add scan -n scan(新的scan名稱) -k 1 -S 192.168.60.0/255.255.255.0/enp0s3
[root@rac1 ~]# /oracle/app/11.2.0/grid/bin/srvctl add scan_listener
[root@rac1 ~]# /oracle/app/11.2.0/grid/bin/srvctl start scan
[root@rac1 ~]# /oracle/app/11.2.0/grid/bin/srvctl start scan_listener

7.重新配置vip
[root@rac1 ~]# /oracle/app/11.2.0/grid/bin/srvctl config vip -n rac1
[root@rac1 ~]# /oracle/app/11.2.0/grid/bin/srvctl config vip -n rac2
VIP exists: /rac1-vip/192.168.6.102/192.168.6.0/255.255.255.0/enp0s3, hosting node rac1

[root@rac1 ~]# /oracle/app/11.2.0/grid/bin/crsctl stop resource ora.rac1.vip -f
[root@rac1 ~]# /oracle/app/11.2.0/grid/bin/crsctl stop resource ora.rac2.vip -f

[root@rac1 ~]# /oracle/app/11.2.0/grid/bin/srvctl modify nodeapps -A 192.168.60.101/255.255.255.0/enp0s3 -n rac1
[root@rac1 ~]# /oracle/app/11.2.0/grid/bin/srvctl modify nodeapps -A 192.168.60.201/255.255.255.0/enp0s3 -n rac2

[root@rac1 ~]# /oracle/app/11.2.0/grid/bin/crsctl start resource ora.rac1.vip -f
[root@rac1 ~]# /oracle/app/11.2.0/grid/bin/crsctl start resource ora.rac2.vip -f

ps:–crsctl eval stop resource ora.cdbrac.db -unsupported(劃重點12c的變化,eval是模擬命令)Doc ID 1966448.1

8.啟動本地監(jiān)聽
[root@rac1 ~]# /oracle/app/11.2.0/grid/bin/srvctl start listener -n rac1
[root@rac1 ~]# /oracle/app/11.2.0/grid/bin/srvctl start listener -n rac2

9.修改數(shù)據(jù)庫實例參數(shù)
alter system set local_listener=’(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.60.101)(PORT=1521))))’ scope=both sid=‘prod1’;
alter system set local_listener=’(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.60.201)(PORT=1521))))’ scope=both sid=‘prod2’;
alter system register;

10.檢查資源狀態(tài)
ifconfig
[root@rac1 ~]# /oracle/app/11.2.0/grid/bin/srvctl config scan
[root@rac1 ~]# /oracle/app/11.2.0/grid/bin/srvctl config scan_listener
gridlrlgridlsnrctl status listener_scan1
grid$crsctl status res –t

到此,關(guān)于“怎么修改linux中rac集群各種ip地址”的學習就結(jié)束了,希望能夠解決大家的疑惑。理論與實踐的搭配能更好的幫助大家學習,快去試試吧!若想繼續(xù)學習更多相關(guān)知識,請繼續(xù)關(guān)注創(chuàng)新互聯(lián)網(wǎng)站,小編會繼續(xù)努力為大家?guī)砀鄬嵱玫奈恼拢?/p>
本文題目:怎么修改linux中rac集群各種ip地址
文章地址:http://weahome.cn/article/jddpds.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部