linux平台安装oracle 11gssh同等配置简单
构造grid用户任关系
登陸rac1,rac2分别运行:
$ su - grid
$mkdir ~/.ssh
$chmod 700 ~/.ssh
$ ssh-keygen -t rsa
$ ssh-keygen -t dsa
登陆rac1:
$cd ~/.ssh
$ cat id_rsa.pub >> authorized_keys
$cat id_dsa.pub >> authorized_keys
$ scp authorized_keys rac2:/home/grid/.ssh/ ----(輸入grid
密碼,回車)
登陆rac2:
$cd ~/.ssh
$ cat id_rsa.pub >> authorized_keys
$cat id_dsa.pub >> authorized_keys
$ scp authorized_keys rac1:/home/grid/.ssh/ ----(輸入grid
密碼,回車)
分別在rac1&rac2
執行下麵操作,多运行几次
$ ssh rac1 date; ssh rac2 date
$ ssh rac1-priv date ; ssh rac2-priv date
配置ORACLE用户信任关系
登陸rac1,rac2分别运行:
$ su - oracle
$mkdir ~/.ssh
$chmod 700 ~/.ssh
$ ssh-keygen -t rsa
$ ssh-keygen -t dsa
登陸rac1:
$ su - oracle
$cd ~/.ssh
$ cat id_rsa.pub >> authorized_keys
$cat id_dsa.pub >> authorized_keys
$ scp authorized_keys rac2:/home/oracle/.ssh/ ----(輸入oracle密碼。回車)
登陸rac2:
$ su - oracle
$cd ~/.ssh
$ cat id_rsa.pub >> authorized_keys
$cat id_dsa.pub >> authorized_keys
$ scp authorized_keys rac1:/home/oracle/.ssh/ ----(輸入oracle密碼。回車)
分別在rac1&rac2
執行以下操作
$ ssh rac1 date; ssh rac2 date
$ ssh rac1-priv date ; ssh rac2-priv date
注意:
1.
假设显示时间不同步。必须手动同步;
2.
系统配置了几张网卡(主机名)就必须保证每张网卡和还有一个节点的ssh不须要输入password!
版权声明:本文博主原创文章,博客,未经同意不得转载。