- 1、本文档共45页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
ORACLE 11G RAC安装
ORACLE 11G RAC安装配置(自整理)
测试配置缓环境:Red Hat Enterprise Linux 5.8
一、关闭防火墙
[root@rac01 ~]# service iptables stop
[root@rac01 ~]# chkconfig iptables off
[root@rac01 ~]# chkconfig iptables –list
iptables 0:off 1:off 2:off 3:off 4:off 5:off 6:off
[root@rac01 ~]# vi /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
二、修改hosts文件(所有节点)
[root@rac01 ~]# vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
11 rac01
12 rac02
11 rac01-priv
12 rac02-priv
13 rac01-vip
14 rac02-vip
15 rac-scan
16 rac-scan
17 rac-scan
三、添加组和用户
创建组:
[root@rac01 ~]# groupadd -g 1000 oinstall
[root@rac01 ~]# groupadd -g 1001 asmadmin
[root@rac01 ~]# groupadd -g 1002 dba
[root@rac01 ~]# groupadd -g 1003 asmdba
[root@rac01 ~]# groupadd -g 1004 asmoper
创建grid用户:
[root@rac01 ~]# useradd -u 1000 -g oinstall -G asmadmin,asmdba,asmoper,dba -d /home/grid -m grid
为grid用户设密码:
[root@rac01 ~]#passwd grid
创建oracle用户:
如果oracle用户不存在,则:
[root@rac01 ~]# useradd -u 1001 -g oinstall -G dba,asmdba -d /home/oracle -m oracle
如果oracle用户已经存在,则:
[root@rac01 ~]# usermod -g oinstall -G dba,asmdba –u 1001 oracle
为oracle用户设密码:
[root@rac01 ~]# passwd oracle
检测nobody用户
[root@rac01 ~]# id nobody
如果不存在,则:
[root@rac01 ~]# useradd nobody
四、配SSH互信
为ssh和scp创建连接
ls -l /usr/local/bin/ssh
ls -l /usr/local/bin/scp
不存在则创建
[root@rac01 ~]# /bin/ln -s /usr/bin/ssh /usr/
文档评论(0)