重庆思庄Oracle、Redhat认证学习论坛

标题: oracle RAC手动配置互信 [打印本页]

作者: jiawang    时间: 2024-9-22 09:17
标题: oracle RAC手动配置互信
下面命令在一个节点上执行即可(可以在root用户下执行):
cd /u01/app/19.0.0/grid_1/oui/prov/resources/scripts


root用户配置互信


#./sshUserSetup.sh -user root -hosts "db1 db2" -advanced -exverify –confirm


grid用户配置互信


#./sshUserSetup.sh -user grid -hosts "db1 db2" -advanced -exverify –confirm


oracle用户配置互信


#./sshUserSetup.sh -user oracle -hosts "db1 db2" -advanced -exverify -confirm
   
db1 db2指两个主机的主机名,根据实际情况调整  
   


方法二


grid 用户配置


    db1:
    su - grid
    ssh-keygen -t rsa
    ssh-keygen -t dsa
    cat *.pub > authorized_keys
    scp /home/grid/.ssh/authorized_keys grid@db2:/home/grid/.ssh/authorized_keys
   
    db2:
    su - grid
    ssh-keygen -t rsa
    ssh-keygen -t dsa
    cat *.pub > authorized_keys
    scp /home/grid/.ssh/authorized_keys grid@db1:/home/grid/.ssh/


oracle用户配置


    db1:
    su - oracle
    ssh-keygen -t rsa
    ssh-keygen -t dsa
    cat *.pub > authorized_keys
    scp /home/oracle/.ssh/authorized_keys oracle@db2:/home/oracle/.ssh/authorized_keys
   
    db2:
    su - oracle
    ssh-keygen -t rsa
    ssh-keygen -t dsa
    cat *.pub > authorized_keys
    scp /home/oracle/.ssh/authorized_keys oracle@db1:/home/oracle/.ssh/







欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2