# Network Management on Oracle Database 11.2 RAC# Local Listener~] $ srvctl add listener -l LISTENER -p 1521 -k 1 ~] $ srvctl config listener ~] $ srvctl start listener
# Modify Private IPNode DNS Original Planning node1 asm01-priv 100.100.100.151/24, ens224 10.10.10.151/24, ens224 node2 asm02-priv 100.100.100.152/24, ens224 10.10.10.152/24, ens224
Login as root :
~] ~] ~] ~] ~] ens192 192.168 .3.0 ens224 100.100 .100.0 ~] ens192 192.168 .3.0 global public ens224 100.100 .100.0 global cluster_interconnect ~] ~] ens192 192.168 .3.0 global public ens224 100.100 .100.0 global cluster_interconnect ens224 10.10 .10.0 global cluster_interconnect ~] ~] ~] ~] ~] ~] ~] ~] ~]
In the Oracle 11.2 Grid structure, private hostnames are no longer recorded in OCR and have no dependencies, so they can be freely changed in the /etc/hosts file.
# Modify Virtual IPNode DNS Original Planning node1 rac01-vip 192.168.12.105/24, ens160 192.168.12.107/24, ens160 node2 rac01-vip 192.168.12.106/24, ens160 192.168.12.108/24, ens160
~] $ srvctl stop database -d orcl ~] $ srvctl stop listener -n oracle19c1 ~] $ srvctl stop listener -n oracle19c2 ~] $ srvctl stop vip -n oracle19c1 -f ~] $ srvctl stop vip -n oracle19c2 -f ~] bin] bin] bin] bin] bin] bin] bin] bin] ~] $ srvctl start listener -n oracle19c1 Listener LISTENER is enabled on node( s) : oracle19c1 Listener LISTENER is running on node( s) : oracle19c1 ~] $ srvctl status listener -n oracle19c2 Listener LISTENER is enabled on node( s) : oracle19c2 Listener LISTENER is running on node( s) : oracle19c2 ~] $ sqlplus / as sysasm SQL> alter system set local_listener = '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.3.163)(PORT=1521))))' sid = '+ASM1' scope = both; SQL> alter system set local_listener = '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.3.164)(PORT=1521))))' sid = '+ASM2' scope = both; SQL> alter system register;
Cannot directly change the VIP hostname; you need to delete and recreate it.
# Modify SCAN IPNode DNS Original Planning / jzh-cluster-scan 192.168.1.205/24, eth0 192.168.1.206/24, eth0
~] bin] SCAN name: jzh-cluster-scan, Network: 1 /192.168.1.0/255.255.255.0/eth0 SCAN VIP name: scan1, IP: /jzh-cluster-scan/192.168.1.205 bin] bin] bin] SCAN VIP scan1 is enabled SCAN VIP scan1 is not running bin] 192.168 .1.201 jzh1.oracle.com jzh1192.168 .1.203 jzh2.oracle.com jzh210.10 .10.201 jzh1-priv10.10 .10.203 jzh2-priv192.168 .1.202 jzh1-vip192.168 .1.204 jzh2-vip192.168 .1.206 jzh-cluster-scanbin] bin] bin] SCAN name: 192.168 .1.206, Network: 1 /192.168.1.0/255.255.255.0/eth0 SCAN VIP name: scan1, IP: /192.168.1.206/192.168.1.206 bin] bin] bin] PING 192.168 .1.206 ( 192.168 .1.206) 56 ( 84 ) bytes of data. 64 bytes from 192.168 .1.206: icmp_seq = 1 ttl = 64 time = 1.78 ms64 bytes from 192.168 .1.206: icmp_seq = 2 ttl = 64 time = 1.23 ms64 bytes from 192.168 .1.206: icmp_seq = 3 ttl = 64 time = 0.444 ms64 bytes from 192.168 .1.206: icmp_seq = 4 ttl = 64 time = 0.512 ms64 bytes from 192.168 .1.206: icmp_seq = 5 ttl = 64 time = 0.891 ms~] $ crs_stat -t | grep scan ora.scan1.vip ora.. .. ip.type ONLINE ONLINE jzh2 ~] $ crs_stat -t | grep lsnr ora.. .. ER.lsnr ora.. .. er.type ONLINE ONLINE jzh1 ora.. .. N1.lsnr ora.. .. er.type ONLINE ONLINE jzh2 ora.. .. H1.lsnr application ONLINE ONLINE jzh1 ora.. .. H2.lsnr application ONLINE ONLINE jzh2
The scan IP hostname can be changed.
# Modify Host Name・ How to rename the hostname in RAC