20120511---oracle 11GR2 RAC安装配置笔记
参考文档:Oracle_RAC_11g实战指南_12773585.pdf
介质目录:
10.213.11.38:/u01/soft
最新版本:p10404530_112030(实际最后是用这个版本新装的,并且修改base目录)
拷贝到60主机/u01/soft目录。
p9974223_112020_AIX64-5L.zip 不用
p11724916_112020_AIX64-5L.zip 不用,在p12311357_112020_AIX64-5L.zip中已经包含
p6880880_112000_AIX64-5L.zip Opatch 补丁,
p12311357_112020_AIX64-5L.zip CRS、DATABASE 补丁
p12431716_112022_AIX64-5L.zip 数据库补丁
p10098816_112020_AIX64-5L_1of7.zip
p10098816_112020_AIX64-5L_2of7.zip database 安装程序
p10098816_112020_AIX64-5L_3of7.zip grid 安装程序
目标机器:
zhjkdb1: 10.213.11.60
zhjkdb2: 10.213.11.65
1、确认环境,确认所需的系统软件是否齐全:
oslevel -s
getconf KERNEL_BITMODE
lslpp -l bos.adt.base bos.adt.lib等等
2、内核参数调整:
ncargs,maxuproc,maxreqs
lsattr -EH -l sys0 -a ncargs
lsattr -EH -l sys0 -a maxuproc
lsattr -EH -l aio0 -a maxreqs(5.3)
ioo -o aio_maxreqs(6.1)
以下命令用于调整内核参数(参数值为Oracle推荐值) :
# chdev -l sys0 -a ncargs=128
# chdev -l sys0 -a maxuproc=16384
# chdev -P -l aio0 -a maxreqs=65536 在AIX 5.3中设置内核参数maxreqs的值
# ioo -o aio_maxreqs=65536 在AIX 6.1中设置内核参数maxreqs的值
以下命令用于对操作系统的虚拟内存进行调整:
# vmo -p -o minperm%=3
# vmo -p -o maxperm%=90
# vmo -p -o maxclient%=90
# vmo -p -o lru_file_repage=0
# vmo -p -o strict_maxclient=1
# vmo -p -o strict_maxperm=0
3、创建相关的用户、用户组:
3.1 用户组:oinstall、dba、asmadmin、asmdba
mkgroup oinstall
mkgroup dba
mkgroup asmadmin
mkgroup asmdba
3.2 用户:grid、oracle
useradd -g oinstall -G asmadmin,asmdba grid
useradd -g oinstall -G dba,asmdba oracle
设置相关的用户密码。
4、确认各个用户对于shell资源的使用限制:
设为无限制(-1),参见/etc/security/limits文件
5、每个节点确认至少双网卡,确认公共ip、私有ip、虚拟ip,以及scan ip的分配是否合适。
6、确认是使用ntp服务,还是集群时间同步服务。
在默认情况下,oracle提供的集群时间同步服务将默认启动。
查看ntp服务状态:
lssrc -s xntpd
关闭ntp服务:
stopsrc -s xntpd
ntp服务的配置:
/etc/rc.tcpip
grid用户查看时间服务是否启动:
crsctl stat resource ora.ctssd -t -init
7、创建文件系统以安装软件:
文件系统的创建使用rootvg,创建/u01/app相关的目录,修改相应的目录属性。
8、设置asm磁盘的属性:
目前可见可供oracle使用的共享磁盘是hdisk2-17,每块均为300G,用作asm磁盘。
chown grid:asmadmin /dev/rhdisk[2-9]
chown grid:asmadmin /dev/rhdisk1[0-7]
chmod 660 /dev/rhdisk[2-9]
chmod 660 /dev/rhdisk1[0-7]
9、确认相关的ip地址:
### For oracle RAC, 20120513
10.213.11.65 zhjkdb2
10.213.11.66 zhjkdb2_vip
10.168.1.21 zhjkdb2_priv
9.168.1.21 zhjkdb2_priv2
10.213.11.62 scan-name
10.213.11.63 scan-name
10.213.11.64 scan-name
10.213.11.60 zhjkdb1
10.213.11.61 zhjkdb1_vip
10.168.1.20 zhjkdb1_priv
9.168.1.20 zhjkdb1_priv2
### For oracle RAC, 20120513
10、安装openssh、openssl软件:
注意,smit install时,路径选择当前路径,选定同意许可。
11、解压缩安装包:
需要安装unzip工具,在网上搜到安装即可。或者使用jar -xvf亦可。
p10098816_112020_AIX64-5L_1of7.zip
p10098816_112020_AIX64-5L_1of7.zip
p10098816_112020_AIX64-5L_1of7.zip
得到database、grid两个目录。
12、由于原机器已经安装bim的cluster软件,与oracle cluster冲突,卸载掉:
smit remove (cluster*)
否则无法继续安装grid,在执行rootpre.sh时,会出现很多错误。
13、安装前检查:
zhjkdb1:/u01/soft/grid$exec /usr/bin/ssh-agent $SHELL
zhjkdb1:/u01/soft/grid$/usr/bin/ssh-add
zhjkdb1:/u01/soft/grid$export DISPLAY=10.19.65.162:1.0
zhjkdb1:/u01/soft/grid$./runcluvfy.sh stage -pre crsinst -n zhjkdb1,zhjkdb2 -verbose
主机对等性提示错误。
使用oracle提供的sshsetup脚本:
zhjkdb1:/u01/soft/grid/sshsetup$./ssh* -user grid -hosts "zhjkdb1 zhjkdb2"
多次失败,转而使用手动方式吧,oracle离简易化、智能化还有很长的路要走啊,汗
手动配置ssh信任关系,按照文档一步一步执行即可。
大致思路是:生成rsa、dsa密钥,再把这些密钥拷贝其他节点的对应用户.ssh目录下即可。生成密钥的命令如下所示。
zhjkdb1:/home/grid$ssh-keygen -t rsa
zhjkdb1:/home/grid$ssh-keygen -t dsa
zhjkdb1:/home/grid/.ssh$cat id_rsa.pub >> authorized_keys
zhjkdb1:/home/grid/.ssh$cat id_dsa.pub >> authorized_keys
zhjkdb1:/home/grid/.ssh$chmod 600 authorized_keys
zhjkdb1:/home/grid/.ssh$scp authorized_keys zhjkdb2:/home/grid/.ssh/authorized_keys
zhjkdb1:/home/grid/.ssh$exec /usr/bin/ssh-agent $SHELL
zhjkdb1:/home/grid/.ssh$/usr/bin/ssh-add
Identity added: /home/grid/.ssh/id_rsa (/home/grid/.ssh/id_rsa)
Identity added: /home/grid/.ssh/id_dsa (/home/grid/.ssh/id_dsa)
除此以外, 需要注意的是,还需要在第二个节点生成相关的rsa、dsa密钥,合并并拷贝到相关的主机、用户目录下!在此花费1个小时!oracle的安装日志系统帮了大忙。
14、安装!先执行上面的倒数3、4行,再执行安装。
下一步后,
ORACLE_BASE:/u01/base
ORACLE_HOME: /u01/app/grid
SYSASM密码:Sysasm
需要自己创建安装目录:/u01/oraInventory并设置合适的属性,两个节点都需要创建、设置。
根据提示的错误,修改系统配置:包括如下但不限于/et/ssh/ssh_config
LoginGraceTime 0,加此配置后出现错误,之后去掉次配置。
同时根据提示的错误,修改了其他的核心参数。
最后有两个错误提示,一个是ntp需要卸载,我暂时关闭了,另外一个就是ssh的登录控制时间,暂时忽略,看看能否成功,估计99%成功吧。
15、root用户执行脚本:
果然,成功!这是最顺利的一次RAC经历了,周末合计10小时,周一接近一天,后面的database应该没问题了。
如下:
zhjkdb1:/u01/app/grid$./root.sh
Running Oracle 11g root script...
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /u01/app/grid
Enter the full pathname of the local bin directory: [/usr/local/bin]:
Creating /usr/local/bin directory...
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /u01/app/grid/crs/install/crsconfig_params
Creating trace directory
User grid has the required capabilities to run CSSD in realtime mode
LOCAL ADD MODE
Creating OCR keys for user 'root', privgrp 'system'..
Operation successful.
OLR initialization - successful
root wallet
root wallet cert
root cert export
peer wallet
profile reader wallet
pa wallet
peer wallet keys
pa wallet keys
peer cert request
pa cert request
peer cert
pa cert
peer root cert TP
profile reader root cert TP
pa root cert TP
peer pa cert TP
pa peer cert TP
profile reader pa cert TP
profile reader peer cert TP
peer user cert
pa user cert
Adding daemon to inittab
ACFS-9459: ADVM/ACFS is not supported on this OS version: 'AIX 6100-03-09-1112'
ACFS-9201: Not Supported
ACFS-9459: ADVM/ACFS is not supported on this OS version: 'AIX 6100-03-09-1112'
CRS-2672: Attempting to start 'ora.mdnsd' on 'zhjkdb1'
CRS-2676: Start of 'ora.mdnsd' on 'zhjkdb1' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'zhjkdb1'
CRS-2676: Start of 'ora.gpnpd' on 'zhjkdb1' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'zhjkdb1'
CRS-2672: Attempting to start 'ora.gipcd' on 'zhjkdb1'
CRS-2676: Start of 'ora.cssdmonitor' on 'zhjkdb1' succeeded
CRS-2676: Start of 'ora.gipcd' on 'zhjkdb1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'zhjkdb1'
CRS-2672: Attempting to start 'ora.diskmon' on 'zhjkdb1'
CRS-2676: Start of 'ora.diskmon' on 'zhjkdb1' succeeded
CRS-2676: Start of 'ora.cssd' on 'zhjkdb1' succeeded
ASM created and started successfully.
Disk Group DATA created successfully.
clscfg: -install mode specified
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'system'..
Operation successful.
CRS-4256: Updating the profile
Successful addition of voting disk 9fed6e8666624f31bfdf5d3859090aff.
Successfully replaced voting disk group with +DATA.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 9fed6e8666624f31bfdf5d3859090aff (/dev/rhdisk2) [DATA]
Located 1 voting disk(s).
CRS-2672: Attempting to start 'ora.asm' on 'zhjkdb1'
CRS-2676: Start of 'ora.asm' on 'zhjkdb1' succeeded
CRS-2672: Attempting to start 'ora.DATA.dg' on 'zhjkdb1'
CRS-2676: Start of 'ora.DATA.dg' on 'zhjkdb1' succeeded
ACFS-9459: ADVM/ACFS is not supported on this OS version: 'AIX 6100-03-09-1112'
ACFS-9201: Not Supported
ACFS-9459: ADVM/ACFS is not supported on this OS version: 'AIX 6100-03-09-1112'
ACFS-9201: Not Supported
Configure Oracle Grid Infrastructure for a Cluster ... succeeded
在第二个节点执行root.sh。失败!
CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node zhjkdb1, number 1, and is terminating
An active cluster was found during exclusive startup, restarting to join the cluster
/u01/app/grid/bin/srvctl start nodeapps -n zhjkdb2 ... failed
Failed to start Nodeapps at /u01/app/grid/crs/install/crsconfig_lib.pm line 8398.
/u01/app/grid/perl/bin/perl -I/u01/app/grid/perl/lib -I/u01/app/grid/crs/install /u01/app/grid/crs/install/rootcrs.pl execution failed
再次执行:
Now product-specific root actions will be performed.
Using configuration parameter file: /u01/app/grid/crs/install/crsconfig_params
PRKO-2190 : VIP exists for node zhjkdb2, VIP name zhjkdb2_vip
/u01/app/grid/bin/srvctl start nodeapps -n zhjkdb2 ... failed
Failed to start Nodeapps at /u01/app/grid/crs/install/crsconfig_lib.pm line 8398.
/u01/app/grid/perl/bin/perl -I/u01/app/grid/perl/lib -I/u01/app/grid/crs/install /u01/app/grid/crs/install/rootcrs.pl execution failed
查看节点的vip:
zhjkdb2:/u01/app/grid$olsnodes -i
zhjkdb1 zhjkdb1_vip
zhjkdb2 <none>
可见第二节点的vip除了问题。
检查/u01/app/grid/crs/install/crsconfig_params这个配置文件,发现两个节点完全一致。
此时如果先不管,先执行完毕那个gui的安装界面再说吧
还是报错。
经过1个多小时的折腾,原因找到,发现第二个节点的网卡ip配置掩码不对,汗,改过来,继续。当初哪个王八蛋配置的ip掩码这么坑他爹!
停掉第二个节点的crs:
crsctl stop crs
启动:
crsctl start crs
这次的结果很完美,哈:
zhjkdb2:/home/grid$crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.DATA.dg ora....up.type ONLINE ONLINE zhjkdb1
ora....ER.lsnr ora....er.type ONLINE ONLINE zhjkdb1
ora....N1.lsnr ora....er.type ONLINE ONLINE zhjkdb2
ora....N2.lsnr ora....er.type ONLINE ONLINE zhjkdb1
ora....N3.lsnr ora....er.type ONLINE ONLINE zhjkdb1
ora.asm ora.asm.type ONLINE ONLINE zhjkdb1
ora.cvu ora.cvu.type ONLINE ONLINE zhjkdb1
ora.gsd ora.gsd.type OFFLINE OFFLINE
ora....network ora....rk.type ONLINE ONLINE zhjkdb1
ora.oc4j ora.oc4j.type ONLINE ONLINE zhjkdb1
ora.ons ora.ons.type ONLINE ONLINE zhjkdb1
ora.scan1.vip ora....ip.type ONLINE ONLINE zhjkdb2
ora.scan2.vip ora....ip.type ONLINE ONLINE zhjkdb1
ora.scan3.vip ora....ip.type ONLINE ONLINE zhjkdb1
ora....SM1.asm application ONLINE ONLINE zhjkdb1
ora....B1.lsnr application ONLINE ONLINE zhjkdb1
ora....db1.gsd application OFFLINE OFFLINE
ora....db1.ons application ONLINE ONLINE zhjkdb1
ora....db1.vip ora....t1.type ONLINE ONLINE zhjkdb1
ora....SM2.asm application ONLINE ONLINE zhjkdb2
ora....B2.lsnr application ONLINE ONLINE zhjkdb2
ora....db2.gsd application OFFLINE OFFLINE
ora....db2.ons application ONLINE ONLINE zhjkdb2
ora....db2.vip ora....t1.type ONLINE ONLINE zhjkdb2
16、其他配置信息:
修改grid用户的profile文件:
ORACLE_BASE=/u01/base
ORACLE_HOME=/u01/app/grid
ORACLE_SID=+ASM1
PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH
17、下一步安装oracle软件,估计不会有什么问题了,最关键的一步已经过去了,:)
18、配置oracle用户的profile文件:
ORACLE_BASE=/u01/base
ORACLE_HOME=/u01/app/oracle
ORACLE_SID=zhjkdb1
PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH
19、建立oracle的对等性信任关系:
同grid用户
20、以oracle用户安装database软件:
zhjkdb1:/u01/soft/database$exec ssh-agent $SHELL
zhjkdb1:/u01/soft/database$ssh-add
Identity added: /home/oracle/.ssh/id_rsa (/home/oracle/.ssh/id_rsa)
Identity added: /home/oracle/.ssh/id_dsa (/home/oracle/.ssh/id_dsa)
zhjkdb1:/u01/soft/database$export DISPLAY=10.19.65.162:1.0
zhjkdb1:/u01/soft/database$./runI*
所有管理用户密码一致:Oracle!@3
21、打补丁
p6880880_112000_AIX64-5L.zip Opatch 补丁
p12311357_112020_AIX64-5L.zip CRS、DATABASE 补丁
p12431716_112022_AIX64-5L.zip 数据库补丁
解压缩opatch补丁软件p6880880到grid用户、oracle用户的home下面,覆盖原来的低版本opatch软件。
解压缩p12311357到/u01/soft/11202目录下,严格按照readme执行几步即可,很多网上或别人的文档简单问题复杂化了,汗
查看当前的补丁信息:
opatch lsinventory
重新创建inventory:
/u01/app/grid/oui/bin/runInstaller -attachHome -noClusterEnabled ORACLE_HOME=/u01/app/grid ORACLE_HOME_NAME=OraDb_home1 CLUSTER_NODES=zhjkdb1,zhjkdb2 "INVENTORY_LOCATION=/u01/oraInventory" LOCAL_NODE=zhjkdb2
除grid补丁以外,还要打上oracle的补丁:
卸载databse、grid的方式,很简单,只是执行deinstall,最后清楚磁盘的原始信息。清楚磁盘原始信息的命令:
dd if=/dev/zero of=/dev/rhdisk2 bs=1024 count=500
dd if=/dev/zero of=/dev/rhdisk3 bs=1024 count=500
dd if=/dev/zero of=/dev/rhdisk4 bs=1024 count=500
dd if=/dev/zero of=/dev/rhdisk5 bs=1024 count=500
dd if=/dev/zero of=/dev/rhdisk6 bs=1024 count=500
dd if=/dev/zero of=/dev/rhdisk7 bs=1024 count=500
dd if=/dev/zero of=/dev/rhdisk8 bs=1024 count=500
dd if=/dev/zero of=/dev/rhdisk9 bs=1024 count=500
以下是早期的实践。
=============================================================
◆确认内存、硬盘等?
lsattr -El sys0 -a realmem
lsps -a
lsattr -El rhdisk1 -a size_mb
◆调整用户的SHELL Limit
修改/etc/security/limits文件中root、oracle用户相关部分如下:
root:(oracle同)
fsize = -1
core = -1
cpu = -1
data = -1
rss = -1
stack = -1
nofiles = -1
◆调整系统参数
lsattr -El sys0 -a maxuproc
/usr/sbin/chdev -l sys0 -a maxuproc=16384
/usr/sbin/no -r -o ipqmaxlen=512
/usr/sbin/no -p -o udp_sendspace=65536
/usr/sbin/no -p -o udp_recvspace=655360
/usr/sbin/no -p -o tcp_sendspace=65536
/usr/sbin/no -p -o tcp_recvspace=65536
/usr/sbin/no -p -o rfc1323=1
/usr/sbin/no -p -o sb_max=1301720
◆为 Grid Infrastructure 创建组和用户
用户组:oinstall(gid 1000)
用户:grid(uid 1101)
修改grid用户密码;
配置用户profile文件:
ORACLE_SID=+ASM1; export ORACLE_SID
ORACLE_BASE=/u01/app/grid; export ORACLE_BASE
ORACLE_HOME=/u01/app/11.2.0/grid; export ORACLE_HOME
PATH=.:${PATH}:$HOME/bin:$ORACLE_HOME/bin
PATH=${PATH}:/u01/app/common/oracle/bin
export PATH
◆为 Oracle 数据库软件创建组和用户
用户组:dba(gid 1001)
用户:oracle(uid 1102)
oracle用户归属于oinstall、dba
修改oracle用户密码;
配置用户profile文件:
ORACLE_SID=eomsdb1; export ORACLE_SID
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1; export ORACLE_HOME
PATH=.:${PATH}:$HOME/bin:$ORACLE_HOME/bin
PATH=${PATH}:/u01/app/common/oracle/bin
export PATH
◆做法1
mkgroup -A id=1000 oinstall
mkgroup -A id=1001 dba
mkuser id=1101 pgrp=oinstall groups=dba home='/home/grid' grid
mkuser id=1102 pgrp=oinstall groups=dba home='/home/oracle' oracle
passwd grid
passwd oracle
mkdir -p /oracle/grid
chown -R grid:oinstall /oracle
mkdir /oracle/app
chown oracle:oinstall /oracle/app
chmod -R 775 /oracle/
lsuser -a capabilities grid
chuser capabilities=CAP_NUMA_ATTACH,CAP_BYPASS_RAC_VMM,CAP_PROPAGATE grid
◆验证用户 nobody 存在
id nobody
如果不存在则创建:/usr/sbin/useradd nobody
◆创建 Oracle 基目录路径
mkdir -p /u01/app/grid
mkdir -p /u01/app/11.2.0/grid
chown -R grid:oinstall /u01
mkdir -p /u01/app/oracle
chown oracle:oinstall /u01/app/oracle
chmod -R 775 /u01
◆存储情况,全部采用裸磁盘,由ASM管理,两个节点共享6*300G存储用于ASM,各自独享100G存储用作文件系统安装oracle软件,如下:
emosdb1:#getconf DISK_SIZE /dev/hdisk2 (2-7)
300000
emosdb1:#getconf DISK_SIZE /dev/hdisk8
100000
emosdb2:#getconf DISK_SIZE /dev/hdisk2 (2-7)
300000
emosdb2:#getconf DISK_SIZE /dev/hdisk8
100000
◆设置ASM设备
for i in 2 3 4 5 6 7
do
chdev -l hdisk${i} -a pv=clear
chdev -l hdisk${i} -a pv=yes
chown grid:oinstall /dev/rhdisk${i}
chmod 660 /dev/rhdisk${i}
chdev -l hdisk${i} -a reserve_policy=no_reserve
done
◆安装、配置ssh
ssh软件包安装,发现ibm官网实在是差劲、糟糕,印象里面最差劲的就是ibm的官网了,ibm很多其他问题也是令人无语,这不是一个好现象,但是也从另外一个方面说明,ibm的竞争对手还太弱,这么烂的ibm竟然还能生存下去,早晚会有人来终结它,期待吧。
找到openssl、openssh安装包:
smit install_latest
全部安装ssl、ssh,ok:
lslpp -l openss*
启动ssh服务:
#lssrc -a | grep ssh
sshd ssh 979088 active
如果是inactive,可通过以下命令启动ssh服务:
#startsrc -s sshd
停止ssh服务:
#stopsrc -s sshd
ssh管理:
sshd命令位于/usr/sbin目录,配置文件位于/etc/ssh目录:
emosdb2:#ls -l
total 336
-rw------- 1 root system 132839 Aug 04 09:00 moduli
-rw-r--r-- 1 root system 1498 Aug 04 09:00 ssh_config
-rw------- 1 root system 668 Aug 04 09:00 ssh_host_dsa_key
-rw-r--r-- 1 root system 590 Aug 04 09:00 ssh_host_dsa_key.pub
-rw------- 1 root system 963 Aug 04 09:00 ssh_host_key
-rw-r--r-- 1 root system 627 Aug 04 09:00 ssh_host_key.pub
-rw------- 1 root system 1675 Aug 04 09:00 ssh_host_rsa_key
-rw-r--r-- 1 root system 382 Aug 04 09:00 ssh_host_rsa_key.pub
-rw-r--r-- 1 root system 2341 Aug 04 09:00 ssh_prng_cmds
-rw-r--r-- 1 root system 3278 Aug 04 09:00 sshd_config
不管什么时候调整了/etc/ssh/sshd.config文件,ssh都需要停掉并重新启动。
关闭Root用户直接登录系统:
修改sshd.config文件中的PermitRootLogin 的参数为no,同时将前面的”#”去掉。然后重启ssh即可。
停用telnet \ftp:
stopsrc –t telnet stopsrc –t ftp
启用telnet \ftp:
startsrc –t telnet startsrc –t ftp
◆配置grid用户互信
hosts文件:
127.0.0.1 loopback localhost # loopback (lo0) name/address
10.213.11.16 emosdb1
10.213.11.17 emosdb1-vip
9.168.1.6 emosdb1-priv
8.168.1.6 emosdb1-priv2
10.213.11.18 scan-name
10.213.11.19 scan-name
10.213.11.20 scan-name
10.213.11.22 emosdb2
10.213.11.21 emosdb2-vip
9.168.1.7 emosdb2-priv
8.168.1.7 emosdb2-priv2
emosdb1:/home/grid$/usr/bin/ssh-keygen -t rsa
emosdb1:/home/grid$/usr/bin/ssh-keygen -t dsa
emosdb1:/home/grid$cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
emosdb1:/home/grid$cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
emosdb1:/home/grid$ssh grid@emosdb2 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
emosdb1:/home/grid$ssh grid@emosdb2 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
以上步骤以后,即生成了一份完整的认证key文件,再把它拷贝到另一台主机对应目录即可。
◆安装grid、database
p10098816_112020_AIX64-5L_1of7.zip
p10098816_112020_AIX64-5L_2of7.zip
p10098816_112020_AIX64-5L_3of7.zip
没有unzip包,使用jar -xvf的方式,ok
emosdb1:/home/grid$export DISPLAY=10.19.67.77:0.0
文章评论