RAC安裝2
修改/etc/udev/permissions.d/50-udev.permissions,使oracle能操作裸裝置
[root@rac1 ~]# vi /etc/udev/permissions.d/50-udev.permissions
# raw devices
ram*:root:disk:0660
19.啟動兩個節點後做 ssh 兩邊能互相信任連線
[oracle@rac1 ~]$ mkdir .ssh
[oracle@rac1 ~]$ chmod 700 .ssh
[oracle@rac1 ~]$ /usr/bin/ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/u01/app/oracle/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /u01/app/oracle/.ssh/id_rsa.
Your public key has been saved in /u01/app/oracle/.ssh/id_rsa.pub.
The key fingerprint is:
a3:92:9c:82:73:07:25:c1:9c:fe:59:e9:e9:25:d4:64oracle@rac1.cn
[oracle@rac1 ~]$ /usr/bin/ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/u01/app/oracle/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /u01/app/oracle/.ssh/id_dsa.
Your public key has been saved in /u01/app/oracle/.ssh/id_dsa.pub.
The key fingerprint is:
b3:46:2a:20:4a:72:cd:f2:b0:cc:33:ed:fe:bb:06:e1oracle@rac1.cn
[oracle@rac2 ~]$ mkdir .ssh
[oracle@rac2 ~]$ chmod 700 .ssh
[oracle@rac2 ~]$ /usr/bin/ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/u01/app/oracle/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /u01/app/oracle/.ssh/id_rsa.
Your public key has been saved in /u01/app/oracle/.ssh/id_rsa.pub.
The key fingerprint is:
db:d0:cf:59:a5:1e:5a:e3:71:7a:71:a0:94:77:d1:51oracle@rac2.cn
[oracle@rac2 ~]$ /usr/bin/ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/u01/app/oracle/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /u01/app/oracle/.ssh/id_dsa.
Your public key has been saved in /u01/app/oracle/.ssh/id_dsa.pub.
The key fingerprint is:
85:32:9e:5d:e3:27:c6:4f:5b:58:c4:2b:da:d1:62:01oracle@rac2.cn
[oracle@rac1 ~]$ cd .ssh
[oracle@rac1 .ssh]$ cat id_rsa.pub >> authorized_keys
[oracle@rac1 .ssh]$ cat id_dsa.pub >> authorized_keys
[oracle@rac1 .ssh]$ /usr/bin/ssh rac2 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
The authenticity of host 'rac2 (192.168.1.246)' can't be established.
RSA key fingerprint is a1:fd:a1:b7:0a:9f:c0:e5:4c:b1:5d:4e:ad:30:9f:52.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'rac2,192.168.1.246' (RSA) to the list of known hosts.
oracle@rac2'spassword:
[oracle@rac1 .ssh]$ /usr/bin/ssh rac2 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
oracle@rac2'spassword:
[oracle@rac1 .ssh]$ /usr/bin/scp authorized_keys rac2:~/.ssh/authorized_keys
oracle@rac2'spassword:
authorized_keys 100% 1672
1.6KB/s 00:00
在每個節點上測試連線,並輸入口令,這樣今後就不用口令了。
[oracle@rac1 .ssh]$ ssh rac1 date
[oracle@rac1 .ssh]$ ssh rac2 date
[oracle@rac1 .ssh]$ ssh rac1.cn date
[oracle@rac1 .ssh]$ ssh rac2.cn date
[oracle@rac1 .ssh]$ ssh rac1-priv date
[oracle@rac1 .ssh]$ ssh rac2-priv date
[oracle@rac1 .ssh]$ ssh rac1-priv.cn date
[oracle@rac1 .ssh]$ ssh rac2-priv.cn date
[oracle@rac2 .ssh]$ ssh rac1 date
[oracle@rac2 .ssh]$ ssh rac2 date
[oracle@rac2 .ssh]$ ssh rac1.cn date
[oracle@rac2 .ssh]$ ssh rac2.cn date
[oracle@rac2 .ssh]$ ssh rac1-priv date
[oracle@rac2 .ssh]$ ssh rac2-priv date
[oracle@rac2 .ssh]$ ssh rac1-priv.cn date
[oracle@rac2 .ssh]$ ssh rac2-priv.cn date
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/15187685/viewspace-735172/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【RAC】 RAC For W2K8R2 安裝--解除安裝(八)
- 【RAC安裝】 AIX下安裝Oracle 11gR2 RACAIOracle
- 2節點RAC安裝
- 【RAC】 RAC For W2K8R2 安裝--grid的安裝(四)
- 【RAC】 RAC For W2K8R2 安裝--RDBMS軟體的安裝(五)
- 安裝11gr2 RAC
- 11 g rac 安裝 2步
- oracle 11gr2 rac 安裝Oracle
- oracle 11gR2 RAC安裝與oracle 10gR2 rac 安裝時的不同點Oracle 10g
- 【RAC】 RAC For W2K8R2 安裝--安裝過程中碰到的問題(九)
- 【RAC】 RAC For W2K8R2 安裝--結尾篇(十)
- OCFS2+ASM 的RAC安裝文件ASM
- 【RAC】RAC安裝錯誤手工解除安裝
- RAC安裝過程(連續3天安裝2次)
- RAC安裝
- 【RAC】 RAC For W2K8R2 安裝--總體規劃 (一)
- 【RAC】 RAC For W2K8R2 安裝--共享磁碟的配置(三)
- 【RAC】 RAC For W2K8R2 安裝--建立ASM磁碟組(六)ASM
- Orace RAC安裝-DNS安裝DNS
- Oracle11g R2 RAC安裝Oracle
- oracle 11g R2安裝RACOracle
- 【RAC】 RAC For W2K8R2 安裝--dbca建立資料庫(七)資料庫
- 【RAC】11gR2 rac 上滾動安裝/回退補丁
- Oracle 11G RAC叢集安裝(2)——安裝gridOracle
- 解除安裝RAC
- aix rac安裝AI
- Oraccle 11G R2 RAC解除安裝
- 11Gr2 RAC udev ASM openfiler(安裝文件)devASM
- 11gr2RAC環境解除安裝(二)
- 11gr2RAC環境解除安裝(一)
- 【RAC】 RAC For W2K8R2 安裝--作業系統環境配置 (二)作業系統
- rac靜默安裝
- RAC安裝 參考
- oracle rac aix 安裝OracleAI
- RAC安裝手冊
- ORACLE11GR2 For Linux RAC安裝筆記OracleLinux筆記
- oracle 11gr2 rac 虛擬安裝問題Oracle
- oracle 11gR2 rac 安裝問題總結Oracle