11g grid rac更改心跳ip位址

2021-09-19 21:53:50 字數 4889 閱讀 8491

資料庫版本:11.2.0.4.0

hosts檔案配置:

[grid@prod01 ~]$ cat /etc/hosts

#127.0.0.1 localhost.localdomain localhost.localdomain localhost4 localhost4.localdomain4

#::1 localhost.localdomain localhost.localdomain localhost6 localhost6.localdomain6

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4

::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

192.168.0.230 prod01

192.168.0.232 prod01-vip

192.168.0.231 prod02

192.168.0.233 prod02-vip

192.168.0.234 scan

prod01 ip配置:

[grid@prod01 ~]$ ip a s

1: lo: mtu 65536 qdisc noqueue state unknown

link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00

inet 127.0.0.1/8 scope host lo

inet6 ::1/128 scope host

valid_lft forever preferred_lft forever

2: eth0:

mtu 1500 qdisc pfifo_fast state up qlen 1000

link/ether 00:0c:29:1e:dd:db brd ff:ff:ff:ff:ff:ff

inet 192.168.0.230/24 brd 192.168.0.255 scope global eth0

inet 192.168.0.232/24 brd 192.168.0.255 scope global secondary eth0:1

inet6 fe80::20c:29ff:fe1e:dddb/64 scope link

valid_lft forever preferred_lft forever

3: eth1:

mtu 1500 qdisc pfifo_fast state up qlen 1000

link/ether 00:0c:29:1e:dd:e5 brd ff:ff:ff:ff:ff:ff

inet 12.168.0.230/24 brd 12.168.0.255 scope global eth1

inet 169.254.43.21/16 brd 169.254.255.255 scope global eth1:1

inet6 fe80::20c:29ff:fe1e:dde5/64 scope link

valid_lft forever preferred_lft forever

prod02 ip配置:

[oracle@prod02 ~]$ ip a s

1: lo: mtu 65536 qdisc noqueue state unknown

link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00

inet 127.0.0.1/8 scope host lo

inet6 ::1/128 scope host

valid_lft forever preferred_lft forever

2: eth0:

mtu 1500 qdisc pfifo_fast state up qlen 1000

link/ether 00:0c:29:97:6c:de brd ff:ff:ff:ff:ff:ff

inet 192.168.0.231/24 brd 192.168.0.255 scope global eth0

inet 192.168.0.233/24 brd 192.168.0.255 scope global secondary eth0:1

inet6 fe80::20c:29ff:fe97:6cde/64 scope link

valid_lft forever preferred_lft forever

3: eth1:

mtu 1500 qdisc pfifo_fast state up qlen 1000

link/ether 00:0c:29:1e:dd:e5 brd ff:ff:ff:ff:ff:ff

inet 12.168.0.231/24 brd 12.168.0.255 scope global eth1

inet 169.254.70.199/16 brd 169.254.255.255 scope global eth1:1

inet6 fe80::20c:29ff:fe1e:dde5/64 scope link

valid_lft forever preferred_lft forever

prod01 eth1

12.168.0.230/24 *****> 17.17.0.1/24

prod02 eth1

12.168.0.230/24 *****> 17.17.0.2/24

(2個節點都需要備份)

[grid@prod01 peer]$ pwd

[grid@prod01 peer]$ ls -l

total 8

-rw-r--r-- 1 grid oinstall 1823 oct 26 09:49 profile_orig.xml

-rw-r--r-- 1 grid oinstall 1886 oct 26 09:56 profile.xml

[grid@prod01 peer]$ cp profile.xml profile.xml.bak

保持所有節點處於執行狀態,只要在乙個節點操作既可以,用root使用者執行操作。

eth0 192.168.0.0

eth1 12.168.0.0

eth1 169.254.0.0

eth0 192.168.0.0 global public

eth1 12.168.0.0 global cluster_interconnect

[root@prod01 ~]# ipcalc -bnm 17.17.0.1 255.255.255.0

netmask=255.255.255.0

broadcast=17.17.0.255

network=17.17.0.0

eth0 192.168.0.0 global public

eth1 12.168.0.0 global cluster_interconnect

eth1 17.17.0.0 global cluster_interconnect

[root@prod01 ~]# ip a s eth1

3: eth1:

mtu 1500 qdisc pfifo_fast state up qlen 1000

link/ether 00:0c:29:1e:dd:e5 brd ff:ff:ff:ff:ff:ff

inet 17.17.0.1/24 brd 17.17.0.255 scope global eth1

inet6 fe80::20c:29ff:fe1e:dde5/64 scope link

valid_lft forever preferred_lft forever

[root@prod02 network-scripts]# ip a s eth1

3: eth1:

mtu 1500 qdisc pfifo_fast state up qlen 1000

link/ether 00:0c:29:97:6c:e8 brd ff:ff:ff:ff:ff:ff

inet 17.17.0.2/24 brd 17.17.0.255 scope global eth1

inet6 fe80::20c:29ff:fe97:6ce8/64 scope link

valid_lft forever preferred_lft forever

# 確認所有集群啟動之後,執行如下操作。

eth0 192.168.0.0 global public

eth1 12.168.0.0 global cluster_interconnect

eth1 17.17.0.0 global cluster_interconnect

eth0 192.168.0.0 global public

eth1 17.17.0.0 global cluster_interconnect

這是按照子網掩碼252計算的網路配置,一會打算使用這個值模擬錯誤:

[root@prod01 ~]# ipcalc -bnm 17.17.0.1 255.255.255.0

netmask=255.255.255.0

broadcast=17.17.0.255

network=17.17.0.0

如何修改集群的公網資訊(包括 vip) (文件 id 1674442.1)

如何在 oracle 集群環境下修改私網資訊 (文件 id 2103317.1)

11git更改提交

1 將不必要的檔案add 2 上次提交覺得是錯的 3 不想改變暫存區內容,只是想調整提交的資訊 4 版本回滾 git reset head 檔名 移除不必要的新增到暫存區的檔案 git reset head 或者 commitid 去掉上一次的提交 git reset soft head 修改上次提...

Redhat6 0 安裝Oracle11g心得

4天時間乙個linux小白從自己裝linux系統到安裝完成oracle11g 現在記錄下,期間我碰到的一下小問題及解決方法 首先,安裝教程參考 url q linux缺少gcc,會在安裝過程中報錯找不到相關依賴包的makefileexception a 自己用rpm光碟自帶包安裝成功,以下按順序安裝...

oracle 11g更改字符集

工作需要,安裝裝了oracle 11g,在匯入其他機器上的備份資料的時間,發生乙個錯誤 imp 00019 由於 oracle 錯誤 12899 而拒絕行 imp 00003 遇到 oracle 錯誤 12899 ora 12899 列 zheng d dic dicexplain 的值太大 實際值...