设为首页 加入收藏

TOP

Oracle 11g+RAC+RHEL6.5+udev+ASM+PSU安装总结(三)
2015-12-15 22:18:16 来源: 作者: 【 】 浏览:28
Tags:Oracle 11g RAC RHEL6.5 udev ASM PSU 安装 总结
##################### [100%]
Using default group oinstall to install package
1:cvuqdisk ########################################### [100%]


10.配置SSH互信


# cp $INSTALL_MEDIA/grid/sshsetup/sshUserSetup.sh /home/grid
# cd /home/grid
# chown grid:oinstall sshUserSetup.sh
# su - grid
$ ./sshUserSetup.sh -user grid -hosts "test1 test1-priv test2 test2-priv" -advanced -noPromptPassphrase
$ date;ssh test2 date; ssh test1-priv date; ssh test2-priv date



# cp $INSTALL_MEDIA/grid/sshsetup/sshUserSetup.sh /home/oracle
# cd /home/oracle


?# chown oracle:oinstall sshUserSetup.sh
?# su - oracle
?$ ./sshUserSetup.sh -user oracle -hosts "test1 test1-priv test2 test2-priv" -advanced -noPromptPassphrase
?$ ./date;ssh test date; ssh test1-priv date; ssh test2-priv date


11.运行GI的安装前检查


# su - grid
$ cd $INSTALL_MEDIA/grid/
$ ./runcluvfy.sh stage -pre crsinst -n test1,test2 -fixup -verbose
12.安装GI软件
# su - grid
?$ cd $INSTALL_MEDIA/grid
?$ ./runInstaller
后面的就略了,不想贴图...累...


13.安装Database软件


?


# su - oracle
$ cd $INSTALL_MEDIA/database/
$ ./runcluvfy.sh stage -pre dbcfg -n test1,test2
后面同略,点点点的操作请自己琢磨着选。
PS:官方建议GI和Database都把中文语言包装上去,以后可能会用到。


14.Opatch补丁更新
首先需要替换更新/u01/app/11.2.0/grid/和$ORACLE_HOME下的OPatch文件,记得停crs。
然后执行以下程序:


?


root用户执行:
# /oracle/app/11.2.0/grid/crs/install/rootcrs.pl -unlock



grid用户执行:
$ /oracle/app/11.2.0/grid/OPatch/opatch napply -oh /oracle/app/11.2.0/grid -local /oracle/app/11.2.0/grid/OPatch/20996923/20831122
$ /oracle/app/11.2.0/grid/OPatch/opatch napply -oh /oracle/app/11.2.0/grid -local /oracle/app/11.2.0/grid/OPatch/20996923/20299019
$ /oracle/app/11.2.0/grid/OPatch/opatch apply -oh /oracle/app/11.2.0/grid -local /oracle/app/11.2.0/grid/OPatch/20996923/20760982



oracle用户执行:
?$ /oracle/app/11.2.0/grid/OPatch/20996923/20831122/custom/server/20831122/custom/scripts/prepatch.sh -dbhome /oracle/app/oracle/product/11.2.0/dbhome_1
?$ /oracle/app/oracle/product/11.2.0/dbhome_1/OPatch/opatch napply -oh /oracle/app/oracle/product/11.2.0/dbhome_1 -local /oracle/app/11.2.0/grid/OPatch/20996923/20831122/custom/server/20831122
?$ /oracle/app/oracle/product/11.2.0/dbhome_1/OPatch/opatch apply -oh /oracle/app/oracle/product/11.2.0/dbhome_1 -local /oracle/app/11.2.0/grid/OPatch/20996923/20760982
?$ /oracle/app/11.2.0/grid/OPatch/20996923/20831122/custom/server/20831122/custom/scripts/postpatch.sh -dbhome /oracle/app/oracle/product/11.2.0/dbhome_1
?


?root用户执行:
?# /oracle/app/11.2.0/grid/rdbms/install/rootadd_rdbms.sh
?# /oracle/app/11.2.0/grid/crs/install/rootcrs.pl -patch
?


?安装完成后运行一下命令检查版本是否更新:
?$ opatch lsinventory
?Oracle Interim Patch Installer version 11.2.0.3.11
?Copyright (c) 2015, Oracle Corporation. All rights reserved.
15.ASM参数设置


alter diskgroup DATA set attribute 'disk_repair_time'='2400h';
alter diskgroup ARCH set attribute 'disk_repair_time'='2400h';
alter diskgroup OCRDG set attribute 'disk_repair_time'='2400h';
alter system set asm_diskgroups='DATA','ARCH' SCOPE=SPFILE sid='*';
alter system set memoey_max_target=4096M scope=spfile;
alter system set memoey_target=4096M scope=spfile;


16.创建数据库
此处也略了...大家懂得。


首页 上一页 1 2 3 下一页 尾页 3/3/3
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Oracle Linux 5.5 (64bit)安装Ora.. 下一篇Oracle 11g忘记SYS和SYSTEM密码的..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: