Oracle10.2.0.4 modify the ip address of RAC

Source: Internet
Author: User
Database Version: Oracle10.2.0.4 node count: 2 1. Stop all processes related to oracle, including databases, asm, nodeapplication, crs. 1.1, Disabled

Database Version: Oracle 10.2.0.4 node count: 2 1. Stop all processes related to oracle, including databases, asm, node application, crs. 1.1, Disabled

Basic Information

Database Version: Oracle 10.2.0.4

Number of nodes: 2

1. Stop all processes related to oracle, including databases, asm, node application, and crs.

1.1 close all processes,
Crs_stop-all
2.2 shut down the crs background process and stop the running crs background process at the operating system level. It must run on all nodes.
[Root @ rac1 bin] #/etc/init. d/init. crs stop
Shutting down Oracle Cluster Ready Services (CRS ):
Stopping resources.
Successfully stopped CRS resources
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
Shutdown has begun. The daemons shoshould exit soon.
[Root @ rac2 ~] #/Etc/init. d/init. crs stop
Shutting down Oracle Cluster Ready Services (CRS ):
Stopping resources.
Successfully stopped CRS resources
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
Shutdown has begun. The daemons shoshould exit soon.
1.3 check whether all processes are disabled
[Root @ rac2 ~] # Crs_stat-t

Ii. Modify the IP settings of the Operating System
2.1 modify the/etc/hosts file (all nodes)
[Root @ rac1 ~] # Vim/etc/hosts
127.0.0.1 rac1 localhost. localdomain localhost
172.20.225.91 rac1
172.20.225.92 rac2
10.73.5.91 rac1-priv
10.73.5.92 rac2-priv
172.20.225.81 rac1-vip
172.20.225.82 rac2-vip
[Root @ rac2 ~] # Vim/etc/hosts
127.0.0.1 rac2 localhost. localdomain localhost
172.20.225.91 rac1
172.20.225.92 rac2
10.73.5.91 rac1-priv
10.73.5.92 rac2-priv
172.20.225.81 rac1-vip
172.20.225.82 rac2-vip

2.2 modify the eth0 and eth1 addresses on the two nodes, and restart the nodes to make the ip address take effect.

3. Modify the storage Link
3.1 clear the previous Link (executed by two nodes)
1) stop the service
Service iscsi stop
2) Remove mounting
Iscsiadm-m node -- op delete
3) restart the service
[Root @ rac1] # service iscsi restart
Stopping iSCSI daemon:
Iscsid is stopped [OK]
Starting iSCSI daemon: [OK]
[OK]
Setting up iSCSI targets: iscsiadm: No records found!
[OK]
3.2 relink
1) Configure openfiler correctly. Please follow the document strictly and do not omit any step.
2) scan
[Root @ 100-201 ~] # Iscsiadm-m discovery-t sendtargets-p 10.73.5.80
172.100.10.100: 3260,1 iqn.2006-01.com. openfiler: LUN2
172.100.10.100: 3260,1 iqn.2006-01.com. openfiler: LUN1

3) restart the service
Service iscsi restart

4. Start crs and configure ip addresses in oracle
3.1 view services
[Root @ rac1 ~] # Crs_stat-t3.2 start crs on two nodes and close applications started with crs
[Root @ rac1 ~] #/Etc/init. d/init. crs start
Startup will be queued to init within 90 seconds.
[Root @ rac2 ~] #/Etc/init. d/init. crs start
Startup will be queued to init within 90 seconds.
3.3 Use oifcfg to modify Nic settings. oifconfig can be used to set and view Nic usage methods.
Note: If the modified CIDR block is the same, you can skip this step.
-- View the current configuration:
[Root @ rac2 raw] # oifcfg getif-global
Eth0 192.168.0.0 global public
Eth1 10.10.10.0 global cluster_interconnect
-- Delete the current configuration
[Root @ rac2 raw] # oifcfg delif-global eth0
[Root @ rac2 raw] # oifcfg delif-global eth1
[Root @ rac2 raw] # oifcfg getif
[Root @ rac2 raw] #
-- View the current CIDR Block
[Root @ rac1 ~] # Oifcfg iflist
Eth0 172.255.0.0
Eth1 10.72.0.0
-- Add again
[Root @ rac2 raw] # oifcfg setif-global eth0/ 172.255.0.0: Public
[Root @ rac2 raw] # oifcfg setif-global eth1/ 10.72.0.0: Cluster_interconnect
[Root @ rac2 raw] # oifcfg getif
Eth0 172.255.0.0 global public
Eth1 10.72.0.0 global cluster_interconnect

[Root @ rac2 raw] # oifcfg iflist
Eth0 172.255.0.0
Eth1 10.72.0.0

Note: The IP address 0 represents a network segment. Remember to modify it. When starting OCR, the following error is reported:
[CRSOCR] [4054413904] OCR context init failure. Error: PROC-44: network address and network interface operation Error [7]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.