设为首页 加入收藏

TOP

Oracle Linux 5.5 (64bit)安装Oracle 11g R2 RAC图文超详细教程(一)
2015-12-15 22:18:16 来源: 作者: 【 】 浏览:26
Tags:Oracle Linux 5.5 64bit 安装 11g RAC 图文 详细 教程


? ? ? ? allow-query? ? { any; };
? ? ? ? allow-query-cache { any; };
};
logging {
? ? ? ? channel default_debug {
? ? ? ? ? ? ? ? file "data/named.run";
? ? ? ? ? ? ? ? severity dynamic;
? ? ? ? };
};
view localhost_resolver {
? ? ? ? match-clients? ? ? { any; };
? ? ? ? match-destinations { any; };
? ? ? ? recursion yes;
? ? ? ? include "/etc/named.zones";
};
配置Zone文件,修改/var/named/chroot/etc/named.rfc1912.zones文件
添加如下:
zone "192.168.192.in-addr.arpa" IN {
? ? ? ? type master;
? ? ? ? file "192.168.192.in-addr.arpa";
? ? ? ? allow-update { none; };
};



再配置DNS正反向解析文件
/var/named/chroot/var/named 目录下
?vi localdomain.zone ,配置为
$TTL? ? 86400
@? ? ? ? ? ? ? IN SOA? localhost root (
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 42? ? ? ? ? ? ? ; serial (d. adams)
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3H? ? ? ? ? ? ? ; refresh
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 15M? ? ? ? ? ? ; retry
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 1W? ? ? ? ? ? ? ; expiry
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 1D )? ? ? ? ? ? ; minimum
? ? ? ? ? ? ? ? IN NS? ? ? ? ? localhost
localhost? ? ? IN A? ? ? ? ? ? 127.0.0.1
scan-cluster? ? IN A? ? ? ? ? ? 192.168.192.173(这里是配置scan-ip)


vi 192.168.168.in-addr-arpa(这个自己生成一个就行)
$TTL? ? 86400
@? ? ? IN? ? ? SOA? ? localhost. root.localhost.? (
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 1997022700 ; Serial
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 28800? ? ? ; Refresh
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 14400? ? ? ; Retry
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 3600000? ? ; Expire
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 86400 )? ? ; Minimum
? ? ? ? IN? ? ? NS? ? ? localhost.
1? ? ? IN? ? ? PTR? ? localhost.
173? ? IN? ? ? PTR? ? scan-cluster.localdomain.(这里配置san IP)
启动DNS服务
[root@dns named]# /etc/init.d/named status
number of zones: 1
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is OFF
recursive clients: 0/1000
tcp clients: 0/100
server is up and running
named (pid? 18907) is running..
再对rac的两个节点分别修改/etc/resolv.conf
search localdomain
nameserver 192.168.192.168
我们完成DNS的配置了!!!!


7.配置hosts文件在两个节点上配置
[root@rac1 ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1? ? ? ? ? ? ? localhost.localdomain localhost
192.168.192.169? ? ? ? rac1.xupeng.com rac1
192.168.192.170? ? ? ? rac2.xupeng.com rac2
10.0.0.1? ? ? ? ? ? ? ? rac1-priv.xupeng.com rac1-priv
10.0.0.2? ? ? ? ? ? ? ? rac2-priv.xupeng.com rac2-priv
192.168.192.171? ? ? ? rac1-vip.xupeng.com rac1-vip
192.168.192.172? ? ? ? rac2-vip.xupeng.com rac2-vip


8.安装oracle 11g所需要的环境包
这个看你自己怎么装了,有的人选择全包安装(在装操作系统的时候),有的喜欢手动安装oracle 需要的包,这个就无所谓了,我这里用YUM源,哈哈。。。。
此操作在两个节点上进行
[root@rac1 ~]# vi /etc/yum.repos.d/my.repo
[Oracle]
name=OEL-$releasever - Media
baseurl=file:///mnt/Server
gpgcheck=0
enable=1
[root@rac1 ~]# yum -y install compat-libstdc++-33 elfutils-libelf-devel gcc? gcc-c++ glibc-devel glibc-headers libaio-devel? libstdc++-devel? sysstat? unixODBC unixODBC-devel


9.参数配置
以下操作需在两个节点上进行配置
[root@rac1 ~]# vi /etc/sysctl.conf
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmmax = 4294967295
kernel.shmall = 2097152
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586
使内核参数生效,sysctl -p 这些配置都和安装单实例是一样的


[root@rac1 ~]# vi /etc/security/limits.conf
grid soft nofile 1024
grid hard nofile 65536
grid soft nproc 2047
grid hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft nproc 2047
oracle hard nproc 16384


[root@rac1 ~]# vi /etc/pam.d/login
session? ? required? ? /lib64/security/pam_limits.so


10.添加用户和组以及oracle、grid用户ssh的对等性

首页 上一页 1 2 3 下一页 尾页 1/3/3
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Oracle Linux 6.4安装Oracle 11g .. 下一篇Oracle 11g+RAC+RHEL6.5+udev+ASM..

评论

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