Oracle 12c RAC安装文档Oracle 12c RAC(Real Application Clusters)是一种高可用性和高性能的数据库解决方案。它可以将多个服务器组合成一个数据库集群,从而提高数据库的可用性、性能和可扩展性。本文档将指导您完成Oracle 12c RAC的安装和配置。环境介绍: *操作系统:Oracle Enterprise Linux 6.4(用于RAC Nodes) *存储系统:Openfiler 2.3(用于SAN Storage) *数据库软件:GI和Database 12.1.0.1 *所需介质: t+ linuxamd64_12c_database_1of2.zip t+ linuxamd64_12c_database_2of2.zip t+ linuxamd64_12c_grid_1of2.zip t+ linuxamd64_12c_grid_2of2.zip SAN服务器配置: * Openfiler 2.3部署了三个LUN,大小分别为5G和两个8G。安装步骤: 1.配置/etc/hosts文件在/etc/hosts文件中添加hostname对应信息,以Node1为例,两个节点相同。 [root@12crac1 ~]# cat /etc/hosts 127.0.0.1 localhost.localdomain localhost4.localdomain4 ::1 localhost.localdomain localhost6.localdomain6 # Public Network - (eth0) 192.168.1.100 rac1 192.168.1.101 rac2 # Private Interconnect - (eth1) 192.168.2.100 rac1-priv 192.168.2.101 rac2-priv # Public Virtual IP (VIP) addresses - (eth0:1) 192.168.1.200 rac1-vip 192.168.1.201 rac2-vip # Private Storage Network for Openfiler - (eth1) 192.168.1.195 openfiler 192.168.2.195 openfiler-priv # For SCAN IP 192.168.1.110 rac.cluster.scan 2.系统配置修改/etc/sysctl.conf文件,添加以下内容: fs.file-max = 6815744 kernel.sem = 250 32000 128 kernel.shmmni = 4096 kernel.shmall = 1073741824 kernel.shmmax = 4398046511104 net.core.rmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048576 fs.aio-max-nr = 1048576 net.ipv4.ip_local_port_range = 9000 65500然后执行以下命令使其生效: [root@12c ~]# sysctl -p修改/etc/security/limits.conf文件,添加以下内容: grid soft nofile 1024 grid hard nofile 65536 grid soft nproc 2047 grid hard nproc 16384 grid soft stack 10240 grid hard stack 32768 oracle soft nofile 1024 oracle hard nofile 65536 oracle soft nproc 2047 oracle hard nproc 16384 oracle soft stack 10240 oracle hard stack 32768 4.配置YUM源并安装所需包先将默认的yum配置文件删除或者移动,然后创建一个新的(以Node1为例,两个节点相同)。 [root@12crac1 ~]# cd /etc/yum.repos.d [root@12crac1 yum.repos.d]# mkdir bk [root@12crac1 yum.repos.d]# mv public-yum-ol6.repo bk/ [root@12crac1 yum.repos.d]# vi luocs.repo添加以下内容: [Oracle] name=OEL-$releasever - Media baseurl=file:///media Oracle 12c RAC安装需要详细的规划和配置,包括环境准备、系统配置、存储配置和软件安装等步骤。只有按照正确的步骤进行安装和配置,才能确保Oracle 12c RAC正常工作。