ps -ef|grep pmon
你就知道你当前登陆机器的运行中的ORACLE_SID了
?
?
客户端连接RAC
三台主机的IP映射必须写在hosts
连接scan的机器,必须用主机名连接,后跟global database name
?
rac的hosts文件,一定要写
127.0.0.1 ?localhost ? localhost
?
清除RAC环境
rm -rf /u01/11.2.0/grid/*
rm -rf /u01/app/oracle/*
rm -rf /u01/app/grid/*
rm -rf /u01/app/oraInventory/*
rm -rf /etc/ora*
chown -R oracle:oinstall /u01/app
?
修改裸设备权限
chown oracle:asmadmin /dev/sdb1
chmod 777 /dev/sdb1
?
增加VIP
srvctl add nodeapps -n rac2 -A 192.168.0.102/255.255.255.0/eth1
?
修改VIP地址
srvctl modify nodeapps -n rac1 -A 192.168.0.101/255.255.255.0/eth1
?
重新配置SCAN-IP的步骤:
查看SCAN-IP配置:
[root@rac1 bin]# ./srvctl config scan
SCAN name: scan-ip, Network: 1/10.0.4.0/255.255.255.0/eth0
SCAN VIP name: scan1, IP: /scan-ip/192.168.175.233
关闭SCAN-IP和SCAN_LISTENER服务:
[root@rac1 bin]# ./srvctl stop scan_listener
[root@rac1 bin]# ./srvctl stop scan
[root@rac1 bin]# ./srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is not running
[root@rac1 bin]# ./srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is not running
修改SCAN-IP配置:
[root@rac1 bin]# ./srvctl modify scan -n scan-ip#/etc/hosts里的SCAN-IP名字
[root@rac1 bin]# ./srvctl config scan
SCAN name: scan-ip, Network: 1/