#@# Check the config of crs and disable it
db-ora1:/#/oracrs/product/11gR2/grid/bin/crsctl config crs; -- Run with Root on One Nodes
CRS-4622: Oracle High Availability Services autostart is enabled.
db-ora1:/#/oracrs/product/11gR2/grid/bin/crsctl disable crs; -- Run with Root on One Nodes
db-ora1:/#/oracrs/product/11gR2/grid/bin/crsctl config crs; -- Run with Root on One Nodes
#@# Check the current config of oif
$ /oracrs/product/11gR2/grid/bin/oifcfg getif; -- Run with Root on All Nodes
db-ora1:
lan1 99.98.36.0 global public
lan900 192.168.33.0 global cluster_interconnect
db-ora2:
lan1 99.98.36.0 global public
lan900 192.168.33.0 global cluster_interconnect
$ /oracrs/product/11gR2/grid/bin/oifcfg iflist; -- Run with Root on All Nodes
db-ora1:
lan900 169.254.0.0
lan1 99.98.36.0
lan0 192.168.36.0
lan900 192.168.33.0
db-ora2:
lan900 169.254.0.0
lan1 99.98.36.0
lan0 192.168.36.0
lan900 192.168.33.0
#@# Stop database
$ srvctl modify database -d oradb -police manual; -- Run with Oracle on one nodes
$ lsnrctl status; -- Run with Oracle on All nodes
$ lsnrctl stop; -- Run with Oracle on All nodes
$ ps -ef | grep LOCAL=NO | grep -v grep | awk '{ print $2 }' | xargs kill -9;
-- Run with Oracle on All nodes
$ srvctl stop database -d oradb; -- Run with Oracle on One Nodes
#@# Stop All cluster
/oracrs/product/11gR2/grid/bin/crsctl stop cluster -all; -- Run with Root on One Nodes
/oracrs/product/11gR2/grid/bin/crsctl check crs; -- Run with Root on All Nodes
#@# Start CRS after NIC bonding
/oracrs/product/11gR2/grid/bin/crsctl start cluster -all;
#@# Configure the oracle ifcfg for the new NIC
/oracrs/product/11gR2/grid/bin/oifcfg delif -global lan1;
-- Run with Root on All Nodes
/oracrs/product/11gR2/grid/bin/oifcfg getif; -- Run with Root on All Nodes
/oracrs/product/11gR2/grid/bin/oifcfg setif -global lan901/99.98.36.0:public;
-- Run with Root on All Nodes
/oracrs/product/11gR2/grid/bin/oifcfg getif; -- Run with Root on All Nodes
#@# Check Current scan config prepare to modify
$ srvctl config scan; -- Run with Grid on One Nodes
db-ora1:
SCAN name: db-ora-scan, Network: 1/99.98.36.0/255.255.255.224/lan1
SCAN VIP name: scan1, IP: /db-ora-scan/99.98.36.7
db-ora2:
SCAN name: db-ora-scan, Network: 1/99.98.36.0/255.255.255.224/lan1
SCAN VIP name: scan1, IP: /db-ora-scan/99.98.36.7
$ srvctl config scan_listener; -- Run with Grid on One Nodes
db-ora1:
SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1525
db-ora2:
SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1525
$ srvctl stop scan_listener; -- Run with Root on One Nodes
$ srvctl stop scan; -- Run with Root on One Nodes
#@# Modify the Network configuration
/oracrs/product/11gR2/grid/bin/srvctl modify network -S 99.98.36.0/255.255.255.224/lan901;
-- Run with Root on One Nodes
$ srvctl modify scan_listener -u; -- Run with Root on One Nodes
$ srvctl start scan_listener; -- Run with Root on One Nodes
$ srvctl modify scan -scanname db-ora-scan; -- Run with Root on One Nodes
$ srvctl config scan; -- Run with Grid on One Nodes
$ srvctl config scan_listener; -- Run with Grid on One Nodes
#@# Reenable the crs
/oracrs/product/11gR2/grid/bin/crsctl stop cluster -all; -- Run with Root on One Nodes
/oracrs/product/11gR2/grid/bin/crsctl start cluster -all; -- Run with Root on One Nodes
/oracrs/product/11gR2/grid/bin/crsctl enable crs; -- Run with Root on One Nodes
/oracrs/product/11gR2/grid/bin/crsctl config crs; -- Run with Root on One Nodes
/oracrs/product/11gR2/grid/bin/crsctl status res -t; -- Run with Grid on All Node
#@# Start Database
$ srvctl modify database -d oradb -police automatic; -- Run with Oracle on One Nodes
$ srvctl start database -d oradb; -- Run with Oracle on One Nodes
$ crsctl status res -t; -- Run with Grid on All Node
db-ora1:/#/oracrs/product/11gR2/grid/bin/crsctl config crs; -- Run with Root on One Nodes
CRS-4622: Oracle High Availability Services autostart is enabled.
db-ora1:/#/oracrs/product/11gR2/grid/bin/crsctl disable crs; -- Run with Root on One Nodes
db-ora1:/#/oracrs/product/11gR2/grid/bin/crsctl config crs; -- Run with Root on One Nodes
#@# Check the current config of oif
$ /oracrs/product/11gR2/grid/bin/oifcfg getif; -- Run with Root on All Nodes
db-ora1:
lan1 99.98.36.0 global public
lan900 192.168.33.0 global cluster_interconnect
db-ora2:
lan1 99.98.36.0 global public
lan900 192.168.33.0 global cluster_interconnect
$ /oracrs/product/11gR2/grid/bin/oifcfg iflist; -- Run with Root on All Nodes
db-ora1:
lan900 169.254.0.0
lan1 99.98.36.0
lan0 192.168.36.0
lan900 192.168.33.0
db-ora2:
lan900 169.254.0.0
lan1 99.98.36.0
lan0 192.168.36.0
lan900 192.168.33.0
#@# Stop database
$ srvctl modify database -d oradb -police manual; -- Run with Oracle on one nodes
$ lsnrctl status; -- Run with Oracle on All nodes
$ lsnrctl stop; -- Run with Oracle on All nodes
$ ps -ef | grep LOCAL=NO | grep -v grep | awk '{ print $2 }' | xargs kill -9;
-- Run with Oracle on All nodes
$ srvctl stop database -d oradb; -- Run with Oracle on One Nodes
#@# Stop All cluster
/oracrs/product/11gR2/grid/bin/crsctl stop cluster -all; -- Run with Root on One Nodes
/oracrs/product/11gR2/grid/bin/crsctl check crs; -- Run with Root on All Nodes
#@# Start CRS after NIC bonding
/oracrs/product/11gR2/grid/bin/crsctl start cluster -all;
#@# Configure the oracle ifcfg for the new NIC
/oracrs/product/11gR2/grid/bin/oifcfg delif -global lan1;
-- Run with Root on All Nodes
/oracrs/product/11gR2/grid/bin/oifcfg getif; -- Run with Root on All Nodes
/oracrs/product/11gR2/grid/bin/oifcfg setif -global lan901/99.98.36.0:public;
-- Run with Root on All Nodes
/oracrs/product/11gR2/grid/bin/oifcfg getif; -- Run with Root on All Nodes
#@# Check Current scan config prepare to modify
$ srvctl config scan; -- Run with Grid on One Nodes
db-ora1:
SCAN name: db-ora-scan, Network: 1/99.98.36.0/255.255.255.224/lan1
SCAN VIP name: scan1, IP: /db-ora-scan/99.98.36.7
db-ora2:
SCAN name: db-ora-scan, Network: 1/99.98.36.0/255.255.255.224/lan1
SCAN VIP name: scan1, IP: /db-ora-scan/99.98.36.7
$ srvctl config scan_listener; -- Run with Grid on One Nodes
db-ora1:
SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1525
db-ora2:
SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1525
$ srvctl stop scan_listener; -- Run with Root on One Nodes
$ srvctl stop scan; -- Run with Root on One Nodes
#@# Modify the Network configuration
/oracrs/product/11gR2/grid/bin/srvctl modify network -S 99.98.36.0/255.255.255.224/lan901;
-- Run with Root on One Nodes
$ srvctl modify scan_listener -u; -- Run with Root on One Nodes
$ srvctl start scan_listener; -- Run with Root on One Nodes
$ srvctl modify scan -scanname db-ora-scan; -- Run with Root on One Nodes
$ srvctl config scan; -- Run with Grid on One Nodes
$ srvctl config scan_listener; -- Run with Grid on One Nodes
#@# Reenable the crs
/oracrs/product/11gR2/grid/bin/crsctl stop cluster -all; -- Run with Root on One Nodes
/oracrs/product/11gR2/grid/bin/crsctl start cluster -all; -- Run with Root on One Nodes
/oracrs/product/11gR2/grid/bin/crsctl enable crs; -- Run with Root on One Nodes
/oracrs/product/11gR2/grid/bin/crsctl config crs; -- Run with Root on One Nodes
/oracrs/product/11gR2/grid/bin/crsctl status res -t; -- Run with Grid on All Node
#@# Start Database
$ srvctl modify database -d oradb -police automatic; -- Run with Oracle on One Nodes
$ srvctl start database -d oradb; -- Run with Oracle on One Nodes
$ crsctl status res -t; -- Run with Grid on All Node
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/25521690/viewspace-2123835/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/25521690/viewspace-2123835/