建立互信任关系:
RACDB1@rac1 /home/oracle$ mkdir ~/.ssh
RACDB1@rac1 /home/oracle/.ssh$ ssh-keygen -t rsa
RACDB1@rac1 /home/oracle/.ssh$ ssh-keygen -t dsa
RACDB2@rac2 /home/oracle/.ssh$ mkdir -p ~/.ssh
RACDB2@rac2 /home/oracle/.ssh$ ssh-keygen -t rsa
RACDB2@rac2 /home/oracle/.ssh$ ssh-keygen -t dsa
RACDB1@rac1 /home/oracle/.ssh$ cat /.ssh/id_rsa.pub>>/.ssh/authorized_keys
RACDB1@rac1 /home/oracle/.ssh$ cat /.ssh/id_dsa.pub>>/.ssh/authorized_keys
RACDB1@rac1 /home/oracle/.ssh$ ssh rac2 cat /.ssh/id_rsa.pub>>/.ssh/authorized_keys
RACDB1@rac1 /home/oracle/.ssh$ ssh rac2 cat /.ssh/id_dsa.pub>>/.ssh/authorized_keys
RACDB1@rac1 /home/oracle/.ssh$ scp ~/.ssh/authorized_keys rac2:~/.ssh/
RACDB1@rac1 $ vi ssh.sh
ssh rac1 date
ssh rac2 date
ssh rac2-priv date
ssh rac2-priv date
ssh rac2
RACDB2@rac2 $ vi ssh.sh
ssh rac1 date
ssh rac2 date
ssh rac2-priv date
ssh rac2-priv date
ssh rac1
PATH=PATH:PATH:PATH:HOME/bin export PATH export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
export PATH=ORACLEHOME/jdk/bin:ORACLE_HOME/jdk/bin:ORACLEHOME/jdk/bin:ORACLE_HOME/bin:$PATH
查看两个节点时间,是否同步:
[oracle@rac1 ~]$ date&&ssh rac2 date
[oracle@rac1 ~]$ cd /hsw_media/clusterware/cluvfy/
[oracle@rac1 cluvfy]$ ./runcluvfy.sh stage -pre crsinst -n rac1,rac2 -verbose
[oracle@rac1 cluvfy]$ cd /hsw_media/clusterware
[oracle@rac1 clusterware]$ ./runInstaller -ignoreSysPreReqs
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200224152004576.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2NoZW5fX3Blbmc=,size_16,color_FFFFFF,t_70
原创文章 5获赞 2访问量 2388
关注
私信
展开阅读全文
作者:这一秒不放弃