# based on note: How to rename the hostname in RAC (Doc ID 2341779.1)
# rodia-db01 -> ylesia-db01
# rodia-db02 -> ylesia-db02
# rodia-scan -> ylesia-scan


# on rodia-db02: stop CRS
# on rodia-db02: deconfigure CRS
# on rodia-db02: uninstall GI
# on rodia-db01: remove rodia-db02 from cluster
# on rodia-db02: change IPs and change hostname to ylesia-db02
# on rodia-db01: add ylesia-db02 to cluster

# on rodia-db02 as root
$ORACLE_HOME/bin/crsctl stop crs
$ORACLE_HOME/crs/install/rootcrs.sh -deconfig -force
# on rodia-db02 as grid
$ORACLE_HOME/deinstall/deinstall -local

# on rodia-db01 as root
$ORACLE_HOME/bin/crsctl delete node -n rodia-db02
olsnodes
crsctl status res -t

# change IPs and hostame rodia-db02 -> ylesia-db02

# on rodia-db01 as grid using graphical interface
$ORACLE_HOME/addnode/addnode.sh
olsnodes
crsctl status res -t

# repeat operations for remove rodia-db01, rename rodia-db01 -> ylesia-db01 and add ylesia-db01 to the cluster

# now change SCAN & SCAN listener
srvctl config scan

srvctl stop scan_listener
srvctl stop scan -f

srvctl status scan
srvctl status scan_listener


srvctl modify scan -n ylesia-scan
srvctl config scan

srvctl start scan
srvctl start scan_listener







