Oracle 10g RAC 的部署
2008-09-02 12:49:06 来源:WEB开发网(2)第二步将每个主机上的公共密钥文件id_rsa.pub和id_dsa.pub的内容复制到其他每个主机的~/.ssh/authorized_keys文件中
在第一个节点,以oracle用户身份登录:
$cat~/.ssh/id_rsa.pub>>~/.ssh/authorized_keys
$cat~/.ssh/id_dsa.pub>>~/.ssh/authorized_keys//本地的共享密钥
$sshoracle@ds2cat~/.ssh/id_rsa.pub>>~/.ssh/authorized_keys//另外节点的共享密钥is_rsa.pub
Theauthenticityofhost’ds2(192.168.200.52)’can’tbeestablished.
RSAkeyfingerprintisd1:23:a7:df:c5:fc:4e:10:d2:83:60:49:25:e8:eb:11.
Areyousureyouwanttocontinueconnecting(yes/no)?yes
Warning:Permanentlyadded’ds2,192.168.200.52’(RSA)tothelistofknownhosts.
oracle@ds2’spassword:
$sshoracle@ds2cat~/.ssh/id_dsa.pub>>~/.ssh/authorized_keys//另外节点的共享密钥is_dsa.pub
oracle@ds2’spassword:
$chmod644~/.ssh/authorized_keys//改变权限
现在对其余节点做同样的处理。请注意,这次SSH会提示您输入在创建密钥时所使用的口令短语而非oracle的口令。这是因为第一个主机(ds1)现在知道了第二个主机的公共密钥
$cat~/.ssh/id_rsa.pub>>~/.ssh/authorized_keys
$cat~/.ssh/id_dsa.pub>>~/.ssh/authorized_keys
$sshoracle@ds1cat~/.ssh/id_rsa.pub>>~/.ssh/authorized_keys
Theauthenticityofhost’ds1(192.168.200.51)’can’tbeestablished.
RSAkeyfingerprintisbd:0e:39:2a:23:2d:ca:f9:ea:71:f5:3d:d3:dd:3b:65.
Areyousureyouwanttocontinueconnecting(yes/no)?yes
Warning:Permanentlyadded’ds1,192.168.200.51’(RSA)tothelistofknownhosts.
Enterpassphraseforkey’/home/oracle/.ssh/id_rsa’:
$sshoracle@ds1cat~/.ssh/id_dsa.pub>>~/.ssh/authorized_keys
Enterpassphraseforkey’/home/oracle/.ssh/id_rsa’:
$chmod644~/.ssh/authorized_keys
- ››oracle 中 UPDATE nowait 的使用方法
- ››Oracle ORA-12560解决方法
- ››Oracle 10g RAC 常用维护命令
- ››Oracle如何在ASM中定位文件的分布
- ››Oracle的DBMS_RANDOM.STRING 的用法
- ››oracle 外部表导入时间日期类型数据,多字段导入
- ››Oracle中查找重复记录
- ››oracle修改用户登录密码
- ››Oracle创建删除用户、角色、表空间、导入导出等命...
- ››Oracle中登陆时报ORA-28000: the account is lock...
- ››Oracle数据库在配置文件中更改最大连接数
- ››Oracle中在pl/sql developer修改表的两种方式
更多精彩
赞助商链接