oracle linux 4.8安装oracle 10g rac环境之cluster安装

安装环境:

操作系统:oracle linux 4.8 64位

集群软件:10201_clusterware_linux_x86_64.cpio.gz

数据库:10201_database_linux_x86_64.cpio.gz

cpu:1颗

内存:必须1.5G以上(一般是2G)

本地磁盘:20G(根分区17G,swap是4G,boot分区是512M)

asm下载地址:http://www.oracle.com/technetwork/server-storage/linux/downloads/rhel4-092650.html#oracleasm_rhel4_amd64

asm软件:oracleasm-support-2.1.7-1.el4.x86_64.rpm

oracleasmlib-2.0.4-1.el4.x86_64.rpm

oracleasm-2.6.9-89.35.1.EL-2.0.5-1.el4.x86_64.rpm

IP地址划分:192.168.3.30   rac10g01      eth0

192.168.3.40   rac10g01      eth0

192.168.3.50   rac10g01-vip    eth0:1

192.168.3.60   rac10g02-vip    eth0:1

10.0.0.1      rac10g01-priv   eth1

10.0.0.2      rac10g02-priv   eth1

IP说明:

每台服务器必须两块网卡, public ip和priv ip不能在同一网段.public和priv必须在网卡中写明地址,vip在地址是数据库自己添加的.

1.安装操作系统,图形化安装

安装系统时将iptable和selinux全部禁用

2.配置虚拟机的网卡

rac10g01节点:

[[email protected] ~]# vim /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0

BOOTPROTO=static

HWADDR=00:0C:29:54:80:1D

ONBOOT=yes

TYPE=Ethernet

IPADDR=192.168.3.30

NETMASK=255.255.255.0

[[email protected] ~]# vim /etc/sysconfig/network-scripts/ifcfg-eth1

DEVICE=eth1

BOOTPROTO=static

HWADDR=00:0C:29:54:80:27

ONBOOT=yes

TYPE=Ethernet

IPADDR=10.0.0.1

NETMASK=255.255.255.0

[[email protected] ~]# /etc/init.d/network restart

Shutting down interface eth0:                              [  OK  ]

Shutting down loopback interface:                          [  OK  ]

Setting network parameters:                                [  OK  ]

Bringing up loopback interface:                            [  OK  ]

Bringing up interface eth0:                                [  OK  ]

Bringing up interface eth1:                                [  OK  ]

[[email protected] ~]#

rac10g02节点:

[[email protected] ~]# vim /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0

BOOTPROTO=static

HWADDR=00:0C:29:25:63:D2

ONBOOT=yes

TYPE=Ethernet

IPADDR=192.168.3.40

NETMASK=255.255.255.0

[[email protected] ~]# vim /etc/sysconfig/network-scripts/ifcfg-eth1

DEVICE=eth1

BOOTPROTO=static

HWADDR=00:0C:29:25:63:DC

ONBOOT=yes

TYPE=Ethernet

IPADDR=10.0.0.2

NETMASK=255.255.255.0

[[email protected] ~]# /etc/init.d/network restart

Shutting down interface eth0:                              [  OK  ]

Shutting down loopback interface:                          [  OK  ]

Setting network parameters:                                [  OK  ]

Bringing up loopback interface:                            [  OK  ]

Bringing up interface eth0:                                [  OK  ]

Bringing up interface eth1:                                [  OK  ]

[[email protected] ~]#

3.配置hosts文件,主机名与IP地址解析(两个节点都是一样的)

[[email protected] ~]# vim /etc/hosts

192.168.3.30   rac10g01

192.168.3.40   rac10g02

192.168.3.50   rac10g01-vip

192.168.3.60   rac10g02-vip

10.0.0.1      rac10g01-priv

10.0.0.2      rac10g02-priv

[[email protected] ~]# ping rac10g01    --所有的地址都ping一下,检查是否有问题

4.光盘镜像挂载,安装软件依赖包(两个节点是一样的)

[[email protected] ~]# mount /dev/hdc /mnt/cdrom/

mount: block device /dev/hdc is write-protected, mounting read-only

[[email protected] ~]# vim /etc/yum.repos.d/tong.repo

[tong]

name=tong

baseurl=file:///mnt

gpgkey=file:///mnt/cdrom/RPM-GPG-KEY-oracle

gpgcheck=1

enabled=1

[[email protected] ~]# yum list

[[email protected] ~]# yum install binutils compat-db compat-libstdc++-296 control-center gcc gcc-c++ glibc glibc-common libstdc++ libstdc++-devel make sysstat setarch glibc-devel libaio ksh glibc-headers libgnome libgcc libgnomeui libgomp openmotif libXp -y

[[email protected] ~]#

5.修改内核参数(两个节点必须一至)

[[email protected] ~]# vim /etc/sysctl.conf

kernel.shmall = 2097152

kernel.shmmax = 2147483648

kernel.shmmni = 4096

kernel.sem = 250 32000 100 128

fs.file-max = 65536

net.ipv4.ip_local_port_range = 1024 65000

net.core.rmem_default = 262144

net.core.rmem_max = 262144

net.core.wmem_default = 262144

net.core.wmem_max = 262144

[[email protected] ~]# sysctl -p

6.创建用户,用户组,用户设置密码(两个节点必须一至)

[[email protected] ~]# groupadd -g 500 oinstall

[[email protected] ~]# groupadd -g 501 dba

[[email protected] ~]# groupadd -g 502 oper

[[email protected] ~]# groupadd -g 503 asmadmin

[[email protected] ~]# groupadd -g 504 asmdba

[[email protected] ~]# groupadd -g 505 asmoper

[[email protected] ~]# useradd -u 1000 -g oinstall -G dba,oper,asmdba -d /home/oracle oracle

[[email protected] ~]# passwd oracle

Changing password for user oracle.

New UNIX password:

BAD PASSWORD: it is based on a dictionary word

Retype new UNIX password:

passwd: all authentication tokens updated successfully.

[[email protected] ~]#

7.创建oracle与grid存放的目录(两个节点必须一至)

[[email protected] ~]# mkdir -p /u01/oracle/product/10.2.0.1/db_1

[[email protected] ~]# mkdir -p /u01/oracle/product/10.2.0.1/crs_1

[[email protected] ~]# chown  -R oracle:oinstall /u01/

8.修改用户对文件打开的限制(两个节点一至)

[[email protected] ~]# vim /etc/security/limits.conf

oracle soft nproc 2047

oracle hard nproc 16384

oracle soft nofile 1024

oracle hard nofile 65536

oracle soft memlock 5242880

oracle hard memlock 524280

[[email protected] ~]#

9.添加oracle用户的环境变量(两个节点一至)

[[email protected] ~]# vim /home/oracle/.bash_profile

export ORACLE_BASE=/u01/oracle

export ORACLE_HOME=$ORACLE_BASE/product/10.2.0.1/db_1

export CRS_HOME=$ORACLE_BASE/product/10.2.0.1/crs_1

export ORA_CRS_HOME=$CRS_HOME

export ORACLE_SID=rac01

export PATH=$PATH:$ORA_CRS_HOME/bin:$ORACLE_HOME/bin

[[email protected] ~]# . /home/oracle/.bash_profile

10.oracle用户的ssh互相信任(两个节点一至)

rac10g01节点:

[[email protected] ~]# su - oracle

[[email protected] ~]$ ssh-keygen -t rsa

Generating public/private rsa key pair.

Enter file in which to save the key (/home/oracle/.ssh/id_rsa):

Created directory ‘/home/oracle/.ssh‘.

Enter passphrase (empty for no passphrase):

Enter same passphrase again:

Your identification has been saved in /home/oracle/.ssh/id_rsa.

Your public key has been saved in /home/oracle/.ssh/id_rsa.pub.

The key fingerprint is:

cb:63:66:59:9d:7a:68:8f:4c:de:83:c4:f3:f4:19:97 [email protected]

[[email protected] ~]$ cd .ssh/

[[email protected] .ssh]$ scp id_rsa.pub [email protected]:/home/oracle/

The authenticity of host ‘rac10g02 (192.168.3.40)‘ can‘t be established.

RSA key fingerprint is 43:20:d8:f6:01:f1:e0:c0:9a:5f:6c:e2:f8:76:3e:3a.

Are you sure you want to continue connecting (yes/no)? yes

Warning: Permanently added ‘rac10g02,192.168.3.40‘ (RSA) to the list of known hosts.

[email protected]‘s password:

id_rsa.pub                      100%  225     0.2KB/s   00:00

[[email protected] .ssh]$

rac10g02节点:

[[email protected] ~]$ ssh-keygen -t rsa

Generating public/private rsa key pair.

Enter file in which to save the key (/home/oracle/.ssh/id_rsa):

Created directory ‘/home/oracle/.ssh‘.

Enter passphrase (empty for no passphrase):

Enter same passphrase again:

Your identification has been saved in /home/oracle/.ssh/id_rsa.

Your public key has been saved in /home/oracle/.ssh/id_rsa.pub.2

The key fingerprint is:

cb:63:66:59:9d:7a:68:8f:4c:de:83:c4:f3:f4:19:97 [email protected]

[[email protected] ~]$  cat  id_rsa.pub >> ./ssh/id_rsa.pub

[[email protected] ~]$  mv ./ssh/id_rsa.pub  ./ssh/authorized_keys

[[email protected] ~]$ scp ./ssh/authorized_keys [email protected]:/home/oracle/.ssh/

[[email protected] .ssh]$ ssh rac10g01 date      --两边节点都要测试,必须通过

Sat Nov 12 22:39:54 CST 2016

[[email protected] .ssh]$ ssh rac10g02 date

Sat Nov 12 22:40:03 CST 2016

[[email protected] .ssh]$ ssh rac10g02-priv date

Sat Nov 12 22:40:07 CST 2016

[[email protected] .ssh]$ ssh rac10g01-priv date

Sat Nov 12 22:40:04 CST 2016

[[email protected] .ssh]$

11.添加本地磁盘,安装oracleasm软件,设置asm自动存储管理

时间: 2024-08-20 18:27:48

oracle linux 4.8安装oracle 10g rac环境之cluster安装的相关文章

oracle linux 4.8安装oracle 10g rac环境之database安装

1.安装oracle database软件 [[email protected] ~]$ cd database/ [[email protected] database]$ ./runInstaller rac10g01节点: [[email protected] ~]# sh /u01/oracle/product/10.2.0.1/db_1/root.sh Running Oracle10 root.sh script... The following environment variab

redhat 下 oracle 10G RAC 集群 详细安装

在大家做RAC安装测试搭建环境时,没有存储环境下,我来教大家怎么采用虚拟机来安装 ORACLE 10 rac,这样可以让大家更快学习好 ORACLE 10 RAC ,我会把很详细的安装写给大家. 1.安装前的准备 准备需要软件 10201_clusterware_linux_x86_64.cpio.gz 10201_database_linux_x86_64.cpio.gz binutils-2.17.50.0.6-6.0.1.el5.x86_64.rpm oracleasm-2.6.18-16

【翻译自mos文章】Oracle Linux 5.9到Oracle Linux 6.4 之间的bug--Wrong Kernel Statistic

Oracle Linux 5.9到Oracle Linux 6.4 之间的bug--Wrong Kernel Statistic in Version 2.6.39-400.X.X 参考自: Wrong Kernel Statistic in Version 2.6.39-400.X.X (Doc ID 1552713.1) 适用于: Linux OS - Version Oracle Linux 5.9 with Unbreakable Enterprise Kernel [2.6.39] t

oracle 10g rac环境升级到10.2.0.5

升级oracle rac环境,以前是oracle 是10.2.0.1版本,现在要10.2.0.5的版本.首先必须安装oracle cluster集群软件,然后下载oracle 10.2.0.5软件包进行打补丁. oracle cluster安装地址: oracle 10.2.0.5下载地址: 1.查看当前的crs版本(两个节点都看一下) [[email protected] ~]$ crsctl query crs softwareversion CRS software version on

oracle linux 4.8安装oracl 10g rac错误解决

1.初使化asm自动存储驱动出错,找不到模块 [[email protected] Desktop]# /etc/init.d/oracleasm configure Configuring the Oracle ASM library driver. This will configure the on-boot properties of the Oracle ASM library driver.  The following questions will determine whethe

在Linux下搭建Java web的开发环境之MYSQL安装

本文介绍如何在Linux下安装MYSQL数据库. 1.将下载好的MYSQL安装文件复制至/home目录下 2.tar -xzvf 安装文件名.解压成功后会发现当前目录下会多出一个文件夹. 3.配置<这是最重要的啊,想想为什么要这么修改?> 我们先罗列出需要修改的参数. ①创建MYSQL组 Groupadd mysql cat /etc/group | more//查看是否创建成功 为什么要创建MYSQL用户组呢?只有加入该组的人员才能使用数据库!控制权限管理. ②创建mysql用户,并放入到m

Linux巩固记录(6) Hbase环境准备-zookeeper安装

Hbase是运行在hadoop之上,所以请参考第3篇文章搭建好一个master,两个slave的hadoop环境,我采用的版本为hadoop2.7.4 不了解Hbase的同学可以参考下这篇文章,分析得相当深刻,感谢作者 http://blog.csdn.net/u010270403/article/details/51648462 为啥在安装Hbase前需要安装zookeeper? 1,hbase regionserver 向zookeeper注册,提供hbase regionserver状态信

安装和配置Storm环境第一步 安装zookeeper环境 (一)

1.安装配置Zookeeper 2.Storm的核心配置文件  $STORM_HOME/conf/storm.yaml 3.注意:如果要搭建Storm的HA(高可用性),nimbus即可. 4.把配置好的安装包复制到其他节点上. -- 自己搭建zookeeper集群 主节点:centos-00 从节点:centos-01,centos-02 (*)tar -zxvf  zookeeper-xxx.tar.gz   . (*)设置环境变量 vi ~/.bash_profile ZOOKEEPER_

【tomcat】Centos7最快速安装tomcat网页实验环境(yum安装)

一.实验环境 EXSI6.0虚拟机系统:Centos7yum源:mirror.163.com.repo 二.实验步骤 1.yum安装tomcat yum install tomcat -y 2.yum安装tomcat网页访问必要服务 yum install tomcat-webapps tomcat-admin-webapps -y 3.开放tomcat:8080端口,开机启动 firewall-cmd --zone=public --permannet --add-prot=8080/tcp