RAC 详细配置

RAC 详细配置

环境:
192.168.9.247  rh5.4  Oracle11g2r

192.168.9.248  rh5.4  Oracle11g2r

===============================================================================
1.  环境准备:(192.168.9.247  192.168.9.248都要操作)
1.1 修改主机名
[root@rac1 ~]# vi /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=rac1
GATEWAY=192.168.9.1

[root@rac2 ~]# cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=rac2
#GATEWAY=192.168.4.1

1.2 修改ip (eth0 eth1)
[root@rac1 ~]# cd /etc/sysconfig/network-scripts/
[root@rac1 network-scripts]# ls
ifcfg-eth0      ifdown       ifdown-ipsec  ifdown-ppp     ifdown-tunnel  ifup-eth    ifup-ipx    ifup-post    ifup-sl           net.hotplug
ifcfg-eth0.bak  ifdown-bnep  ifdown-ipv6   ifdown-routes  ifup           ifup-ippp   ifup-isdn   ifup-ppp     ifup-tunnel       network-functions
ifcfg-eth1      ifdown-eth   ifdown-isdn   ifdown-sit     ifup-aliases   ifup-ipsec  ifup-plip   ifup-routes  ifup-wireless     network-functions-ipv6
ifcfg-lo        ifdown-ippp  ifdown-post   ifdown-sl      ifup-bnep      ifup-ipv6   ifup-plusb  ifup-sit     init.ipv6-global
[root@rac1 network-scripts]# cat ifcfg-eth0
# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
IPADDR=192.168.9.247
NETMASK=255.255.255.0
GATEWAY=192.168.9.1
HWADDR=00:50:56:ab:09:27
[root@rac1 network-scripts]# cat ifcfg-eth1
# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
DEVICE=eth1
BOOTPROTO=static
ONBOOT=yes
IPADDR=10.9.1.1
NETMASK=255.255.255.0
#GATEWAY=192.168.9.1
HWADDR=00:50:56:ab:09:28
[root@rac1 network-scripts]#


1.3 修改hosts文件
[root@rac1 ~]# vi /etc/hosts
192.168.9.249 rac1-vip
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               rhel5464 localhost.localdomain localhost
::1             localhost6.localdomain6 localhost6

#eth0-public ip
192.168.9.247 rac1
192.168.9.248 rac2

#eth1-private ip
10.9.1.1 rac1-priv
10.9.1.2 rac2-priv

#vip
192.168.9.249 rac1-vip
192.168.9.250 rac2-vip

#scan
192.168.9.251 rac-cluster-scan

~
~
"/etc/hosts" 20L, 398C written
[root@rac1 ~]#


1.4 配置yum网络
[root@rac1 ~]# cd /etc/yum.repos.d/
[root@rac1 yum.repos.d]# ls
rhel64.repo  rhel-debuginfo.repo
[root@rac1 yum.repos.d]# mv rhel-debuginfo.repo rhel-debuginfo.repo.bak
[root@rac1 yum.repos.d]# cat rhel64.repo
[Server]
name=Red Hat Enterprise Linux Server
baseurl=ftp://192.168.9.188/pub/rhl54_64
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[root@rac1 yum.repos.d]#

1.5 配置时间同步 (这里同步的时间服务器是192.168.9.15)
[root@rac1 ~]# crontab -l
0 5 * * * /usr/sbin/ntpdate 192.168.9.15 && /sbin/hwclock -w
[root@rac1 ~]# date
Wed Nov 19 12:46:56 CST 2014
[root@rac1 ~]#


1.6 启动模式改为3
[root@rac1 ~]# vi /etc/inittab

x:3:respawn:/etc/X11/prefdm -nodaemon

1.7 重启生效
[root@rac1 ~]# reboot

1.8 yum包安装
yum -y install binutils
yum -y install compat-libstdc++-33
yum -y install elfutils-libelf
yum -y install glibc
yum -y install glibc-common
yum -y install ksh
yum -y install libaio
yum -y install libgcc
yum -y install libstdc++
yum -y install make
yum -y install elfutils-libelf-devel
yum -y install glibc-headers
yum -y install glibc-devel
yum -y install gcc
yum -y install libstdc++-devel
yum -y install gcc-c++
yum -y install libaio-devel
yum -y install sysstat
yum -y install unixODBC
yum -y install unixODBC-devel

===============================================================================
2  系统初始化(192.168.9.247  192.168.9.248都要操作)
2.1 配置系统参数
vi /etc/sysctl.conf
添加
kernel.shmall = 4294967296
kernel.shmmax = 68719476736
kernel.shmmni = 4096
kernel.sem = 310 32000 100 128
fs.file-max = 6815744
fs.aio-max-nr = 1048576
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576

生效
sysctl -p

2.2 创建用户
groupadd -g 500 oinstall
groupadd -g 501 dba
groupadd -g 502 oper
groupadd -g 503 asmdba
groupadd -g 504 asmadmin
groupadd -g 505 asmoper
useradd -u 500 -g oinstall -G dba,oper,asmdba oracle
useradd -u 501 -g oinstall -G dba,oper,asmdba,asmadmin,asmoper grid
passwd oracle
passwd grid

[root@rac1 tmp]# id oracle
uid=500(oracle) gid=500(oinstall) groups=500(oinstall),501(dba),502(oper),503(asmdba)
[root@rac1 tmp]# id grid
uid=501(grid) gid=500(oinstall) groups=500(oinstall),501(dba),502(oper),503(asmdba),504(asmadmin),505(asmoper)

2.3 创建密码不过期
chage -M 99999 oracle
chage -M 99999 grid

2.4 创建目录给权限
mkdir -p /app/grid
mkdir -p /app/oracle
mkdir -p /app/oraInventory
mkdir -p /app/soft
mkdir -p /app/soft/grid
mkdir -p /app/soft/oracle
mkdir -p /app/soft/asmlib
mkdir -p /backup
mkdir -p /arch

chown -R oracle:oinstall /app
chown -R oracle:oinstall /arch
chown -R oracle:oinstall /backup
chown -R grid:oinstall /app/grid
chown -R oracle:oinstall /app/oracle
chown -R grid:oinstall /app/oraInventory
chown -R grid:oinstall /app/soft/grid
chown -R oracle:oinstall /app/soft/oracle
chmod -R 755 /app


2.5 修改Oracle用户shell权限
vi /etc/security/limits.conf
添加:
* soft nproc 2047
* hard nproc 16384
* soft nofile 1024
* hard nofile 65536

2.6 修改配置文件vi /etc/profile
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -u 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi

2.7 关闭selinux
vi /etc/sysconfig/selinux
#modify by lcs for oracle
#old SELINUX=enforcing
SELINUX=disabled

2.8 关闭防火墙
service iptables stop
chkconfig iptables off

2.9 用户限制,登录
vi /etc/pam.d/login
添加:
session required pam_limits.so


===============================================================================
3. 配置用户等效性
使用Oracle 用户,配置Oracle 用户等效性,在所有节点执行;
[root@rac1 ~]# su - oracle
[oracle@rac1 ~]$ ssh-keygen -t rsa
[oracle@rac1 ~]$ ssh-keygen -t dsa
使用Oracle用户,配置Oracle用户等效性,在节点1 执行
[oracle@rac1 ~]$ cat /home/oracle/.ssh/*.pub >>/home/oracle/.ssh/authorized_keys
[oracle@rac1 ~]$ ssh rac2 cat /home/oracle/.ssh/*.pub >>/home/oracle/.ssh/authorized_keys
[oracle@rac1 ~]$ scp /home/oracle/.ssh/authorized_keys rac2:/home/oracle/.ssh/authorized_keys
验证oracle用户等效性,在所有节点执行;
[oracle@rac1 ~]$ ssh rac2 date
[oracle@rac1 ~]$ ssh rac2-priv date

[oracle@rac2 ~]$ ssh rac1 date
[oracle@rac2 ~]$ ssh rac1-priv date



使用Grid 用户,配置Grid 用户等效性,在所有节点执行;
[root@rac1 ~]# su - grid
[grid@rac1 ~]$ ssh-keygen -t rsa
[grid@rac1 ~]$ ssh-keygen -t dsa
配置Grid 用户等效性,在节点1 执行;
[grid@rac1 ~]$ cat /home/grid/.ssh/*.pub >> /home/grid/.ssh/authorized_keys
[grid@rac1 ~]$ ssh rac2 cat /home/grid/.ssh/*.pub >> /home/grid/.ssh/authorized_keys
[grid@rac1 ~]$ scp /home/grid/.ssh/authorized_keys rac2:/home/grid/.ssh/authorized_keys
验证Grid 用户等效性,在所有节点执行;
[grid@rac1 ~]$ ssh rac2 date
[grid@rac1 ~]$ ssh rac2_priv date

[grid@rac2 ~]$ ssh rac1 date
[grid@rac2 ~]$ ssh rac1_priv date


===============================================================================
4  磁盘分区

(配置共享磁盘)见
http://blog.itpub.net/29500582/viewspace-1340130/

rac1, rac2都可以看到共享的五块盘
rac1
[root@rac1 ~]# fdisk -l
Disk /dev/sda: 19.3 GB, 19327352832 bytes
255 heads, 63 sectors/track, 2349 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14        1958    15623212+  8e  Linux LVM

Disk /dev/sdb: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdb doesn't contain a valid partition table

Disk /dev/sdc: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdc doesn't contain a valid partition table

Disk /dev/sdd: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdd doesn't contain a valid partition table

Disk /dev/sde: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sde doesn't contain a valid partition table

Disk /dev/sdf: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdf doesn't contain a valid partition table
[root@rac1 ~]#

rac2
[root@rac2 ~]# fdisk -l

Disk /dev/sda: 19.3 GB, 19327352832 bytes
255 heads, 63 sectors/track, 2349 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14        1958    15623212+  8e  Linux LVM

Disk /dev/sdb: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdb doesn't contain a valid partition table

Disk /dev/sdc: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdc doesn't contain a valid partition table

Disk /dev/sdd: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdd doesn't contain a valid partition table

Disk /dev/sde: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sde doesn't contain a valid partition table

Disk /dev/sdf: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdf doesn't contain a valid partition table
[root@rac2 ~]#


================================================================================

5. 安装asm管理 (所有节点root用户执行)
下载地址:http://www.oracle.com/technetwork/server-storage/linux/downloads/rhel5-084877.html

下载时注意版本内核
[root@rac1 yum.repos.d]# uname -a
Linux rac1 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
[root@rac1 yum.repos.d]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.4 (Tikanga)
[root@rac1 yum.repos.d]#

内核参数: 2.6.18-164.el5

[root@rac1 oracleasm]# cd /tmp/oracleasm/
[root@rac1 oracleasm]# ll
total 536
-rw-r--r-- 1 root root 136910 Nov 19 13:51 oracleasm-2.6.18-164.el5-2.0.5-1.el5.x86_64.rpm
-rw-r--r-- 1 root root 138539 Nov 19 13:51 oracleasm-2.6.18-164.el5debug-2.0.5-1.el5.x86_64.rpm
-rw-r--r-- 1 root root   2807 Nov 19 13:51 oracleasm-2.6.18-164.el5-debuginfo-2.0.5-1.el5.x86_64.rpm
-rw-r--r-- 1 root root 136839 Nov 19 13:51 oracleasm-2.6.18-164.el5xen-2.0.5-1.el5.x86_64.rpm
-rw-r--r-- 1 root root  14176 Nov 19 13:51 oracleasmlib-2.0.4-1.el5.x86_64.rpm
-rw-r--r-- 1 root root  90225 Nov 19 13:51 oracleasm-support-2.1.8-1.el5.x86_64.rpm



直接rpm包的安装
rpm -ivh oracleasm-support-2.1.8-1.el5.x86_64.rpm
rpm -ivh oracleasm-2.6.18-164.el5-2.0.5-1.el5.x86_64.rpm
rpm -ivh oracleasmlib-2.0.4-1.el5.x86_64.rpm


初始化 asmlib,在所有节点执行;
[root@rac1 ~]# /usr/sbin/oracleasm configure -i
Configuring the Oracle ASM library driver.

This will configure the on-boot properties of the Oracle ASM library
driver.  The following questions will determine whether the driver is
loaded on boot and what permissions it will have.  The current values
will be shown in brackets ('[]').  Hitting without typing an
answer will keep that current value.  Ctrl-C will abort.

Default user to own the driver interface []: grid
Default group to own the driver interface []: asmadmin
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
[root@rac1 ~]#

ASMlib 加载到内核,在所有节点执行;
[root@rac1 ~]# /usr/sbin/oracleasm init
Creating /dev/oracleasm mount point: /dev/oracleasm
Loading module "oracleasm": oracleasm
Mounting ASMlib driver filesystem: /dev/oracleasm
[root@rac1 ~]#


分区
/dev/sdb  /dev/sdc  /dev/sdd  /dev/sde /dev/sdf 同样的操作
[root@rac1 ~]# fdisk /dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-522, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-522, default 522):
Using default value 522

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.


===========================================================
创建 asm 磁盘,在节点1 执行;
[root@rac1 ~]#  /usr/sbin/oracleasm createdisk OCR_VOL1 /dev/sdb1
Writing disk header: done
Instantiating disk: done
[root@rac1 ~]#

[root@rac1 ~]# /usr/sbin/oracleasm createdisk OCR_VOL1 /dev/sdb1
[root@rac1 ~]# /usr/sbin/oracleasm createdisk OCR_VOL2 /dev/sdc1
[root@rac1 ~]# /usr/sbin/oracleasm createdisk OCR_VOL3 /dev/sdd1
[root@rac1 ~]# /usr/sbin/oracleasm createdisk DATA_VOL1 /dev/sde1
[root@rac1 ~]# /usr/sbin/oracleasm createdisk BACK_VOL1 /dev/sdf1


[root@rac1 ~]# /usr/sbin/oracleasm listdisks
BACK_VOL1
DATA_VOL1
OCR_VOL1
OCR_VOL2
OCR_VOL3
[root@rac1 ~]#


在节点二执行扫描,识别 asm 盘
[root@rac2 ~]# /usr/sbin/oracleasm configure -i
[root@rac2 ~]# /usr/sbin/oracleasm init
[root@rac2 ~]# /usr/sbin/oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
Instantiating disk "OCR_VOL1"
Instantiating disk "OCR_VOL2"
Instantiating disk "OCR_VOL3"
Instantiating disk "DATA_VOL1"
Instantiating disk "BACK_VOL1"
[root@rac2 network-scripts]#
===========================================================

===============================================================================  
6.  配置环境变量
Oracle用户:
[oracle@rac1 ~]$ vi pro_rac1
写入以下内容:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
export ORACLE_BASE=/app/oracle
export ORACLE_HOME=$ORACLE_BASE/ora11g
export GRID_BASE=/app/grid
export GRID_HOME=$GRID_BASE/grid11g
export ORACLE_SID=rac1
export GG_HOME=/app/goldengate
export TNS_ADMIN=$ORACLE_HOME/network/admin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib:$GG_HOME
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin:$GRID_HOME/bin:
export PATH=$PATH:/usr/sbin:/usr/local/bin:$ORACLE_HOME/OPatch
export PATH=$PATH:$GG_HOME
export EDITOR=vi
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
export NLS_DATE_FORMAT="yyyy-mm-dd hh24:mi:ss"
export PS1="[\u@\h \W]:$ORACLE_SID> "
umask 022


使用 . pro_rac1 等即可生效文件


grid用户
[grid@rac1 ~]$ vi pro_asm1
写入以下内容:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
export ORACLE_BASE=/app/grid
export ORACLE_HOME=$ORACLE_BASE/grid11g
export ORACLE_SID=+ASM
export TNS_ADMIN=$ORACLE_HOME/network/admin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin:/usr/sbin
export PATH=$PATH:/usr/local/bin:$ORACLE_HOME/OPatch
export EDITOR=vi
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
export NLS_DATE_FORMAT="yyyy-mm-dd hh24:mi:ss"
export PS1="[\u@\h \W]:$ORACLE_SID> "
umask 022

(报错)

[grid@rac1 ~]:+ASM> vi pro_asm1
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
export ORACLE_BASE=/app/grid/base
export ORACLE_HOME=/app/grid/grid11g
export ORACLE_SID=+ASM
export TNS_ADMIN=$ORACLE_HOME/network/admin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin:/usr/sbin
export PATH=$PATH:/usr/local/bin:$ORACLE_HOME/OPatch
export EDITOR=vi
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
export NLS_DATE_FORMAT="yyyy-mm-dd hh24:mi:ss"
export PS1="[\u@\h \W]:$ORACLE_SID> "
umask 022

(正确 ORACLE_HOME 不能在 ORACLE_BASE目录下  )

使用 . pro_asm1 等即可生效文件


===============================================================================

7. 上传p13390677_112040_Linux-x86-64_3of7.zip到/app/soft/grid后解压  
[grid@rac1 grid]$ pwd
/app/soft/grid
[grid@rac1 grid]$ ll
total 1178164
-rw-r--r-- 1 root root 1205251894 Apr 10  2014 p13390677_112040_Linux-x86-64_3of7.zip

[grid@rac1 grid]$ unzip p13390677_112040_Linux-x86-64_3of7.zip


安装 cvuqdisk 软件包(非必须)
[grid@rac1 grid]$
[root@rac1 ~]# cd /app/soft/grid/grid/rpm/
[root@rac1 rpm]# ls
cvuqdisk-1.0.9-1.rpm
[root@rac1 rpm]# rmp -ivh cvuqdisk-1.0.9-1.rpm
-bash: rmp: command not found
[root@rac1 rpm]# rpm -ivh cvuqdisk-1.0.9-1.rpm
Preparing...                ########################################### [100%]
Using default group oinstall to install package
   1:cvuqdisk               ########################################### [100%]
[root@rac1 rpm]#
[root@rac1 rpm]#




8  安装 Grid 前检查 (非必须)

===============================================================================
9  图形化界面安装


[root@rac1 ~]# /app/grid/oraInventory/orainstRoot.sh
[root@rac1 ~]# /app/grid/grid11g/root.sh


10  确定集群安装成功
[grid@rac1 ~]:+ASM> crs_stat -t -v
Name           Type           R/RA   F/FT   Target    State     Host        
----------------------------------------------------------------------
ora....ER.lsnr ora....er.type 0/5    0/     ONLINE    ONLINE    rac1        
ora....N1.lsnr ora....er.type 0/5    0/0    ONLINE    ONLINE    rac1        
ora.OCR.dg     ora....up.type 0/5    0/     ONLINE    ONLINE    rac1        
ora.asm        ora.asm.type   0/5    0/     ONLINE    ONLINE    rac1        
ora.cvu        ora.cvu.type   0/5    0/0    ONLINE    ONLINE    rac1        
ora.gsd        ora.gsd.type   0/5    0/     OFFLINE   OFFLINE               
ora....network ora....rk.type 0/5    0/     ONLINE    ONLINE    rac1        
ora.oc4j       ora.oc4j.type  0/1    0/2    ONLINE    ONLINE    rac1        
ora.ons        ora.ons.type   0/3    0/     ONLINE    ONLINE    rac1        
ora....SM1.asm application    0/5    0/0    ONLINE    ONLINE    rac1        
ora....C1.lsnr application    0/5    0/0    ONLINE    ONLINE    rac1        
ora.rac1.gsd   application    0/5    0/0    OFFLINE   OFFLINE               
ora.rac1.ons   application    0/3    0/0    ONLINE    ONLINE    rac1        
ora.rac1.vip   ora....t1.type 0/0    0/0    ONLINE    ONLINE    rac1        
ora....SM2.asm application    0/5    0/0    ONLINE    ONLINE    rac2        
ora....C2.lsnr application    0/5    0/0    ONLINE    ONLINE    rac2        
ora.rac2.gsd   application    0/5    0/0    OFFLINE   OFFLINE               
ora.rac2.ons   application    0/3    0/0    ONLINE    ONLINE    rac2        
ora.rac2.vip   ora....t1.type 0/0    0/0    ONLINE    ONLINE    rac2        
ora....ry.acfs ora....fs.type 0/5    0/     ONLINE    ONLINE    rac1        
ora.scan1.vip  ora....ip.type 0/0    0/0    ONLINE    ONLINE    rac1        
[grid@rac1 ~]:+ASM>


11  创建 asm 磁盘组
创建3 个asm 磁盘组,分别为:ARCH,DATA,FLASH。其中
DATA 将存放数据库文件;FLASH 存放闪回文件;ARCH 磁盘组将创建ACFS
文件系统,分别挂载到两个节点,用来存放归档日志。

在 grid 用户下,执行asmca,启动asm 磁盘组创建向导


12  安装Oracle软件
以oracle 用户登录到节点一,切换到软件安装目录,执行安装
[oracle@rac1 database]$ ./runInstaller &


13  安装Oracle数据库
请使用浏览器的分享功能分享到微信等