C/C++教程

虚拟机安装Oracle RAC

本文主要是介绍虚拟机安装Oracle RAC,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

服务器信息:
节点一:192.168.10.2 dbm1
节点二:192.168.10.3 dbm2
操作系统均为红帽6.9
Ip信息

public ip

192.168.10.2 dbm1
192.168.10.3 dbm2

private ip

10.10.0.4 dbm1-priv
10.10.0.5 dbm2-priv

vip

192.168.10.4 dbm1-vip
192.168.10.5 dbm2-vip

scan

192.168.10.6 scan

需要的安装包
cvuqdisk-1.0.9-1.rpm,pdksh-5.2.14-37.el5_8.1.x86_64.rpm,rlwrap-0.41-1.el6.x86_64.rpm,p13390677_112040_Linux-x86-64_1of7.zip,p13390677_112040_Linux-x86-64_2of7.zip,p13390677_112040_Linux-x86-64_3of7.zip,rhel-server-6.9-x86_64-dvd.iso,shell RAC.zip

双节点配置如下
[root@localhost apps]# vi /etc/sysconfig/network
[root@localhost apps]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=dbm1
[root@localhost apps]#
修改主机名,节点二修改为dbm2

[root@dbm1 ~]# chkconfig --level 2345 iptables off
[root@dbm1 ~]# chkconfig --level 2345 ip6tables off
[root@dbm1 ~]# service iptables stop
iptables:将链设置为政策 ACCEPT:filter [确定]
iptables:清除防火墙规则: [确定]
iptables:正在卸载模块: [确定]
[root@dbm1 ~]# service ip6tables stop
ip6tables:将 chains 设置为 ACCEPT 策略:filter [确定]
ip6tables:清除防火墙规则: [确定]
:正在卸载模块:
[root@dbm1 ~]# vi /etc/sysconfig/selinux
关闭服务

[root@dbm1 ~]# mkdir /mnt/cdrom
[root@dbm1 ~]# mount /apps/rhel-server-6.9-x86_64-dvd.iso /mnt/cdrom/ -o loop
[root@dbm1 ~]# vi /etc/yum.repos.d/rhel-source.repo
[root@dbm1 ~]# cat /etc/yum.repos.d/rhel-source.repo
[rhel-source-beta]
name=Red Hat Enterprise Linux $releasever Beta - $basearch - Source
baseurl=file:///mnt/cdrom
enabled=1
gpgcheck=0
[root@dbm1 ~]#
安装配置源

[root@dbm1 ~]# yum -y install binutils* compat* elfutils* gcc-c* gcc* glibc* libaio* libgcc* libstdc* numactl* sysstat* unixODBC* make* compat* lib* ksh*
[root@dbm1 ~]# rpm -qa | grep ksh
ksh-20120801-33.el6.x86_64
[root@dbm1 ~]# rpm -e ksh-20120801-33.el6.x86_64
[root@dbm1 ~]# rpm -ivh /apps/pdksh-5.2.14-37.el5_8.1.x86_64.rpm
warning: /apps/pdksh-5.2.14-37.el5_8.1.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID e8562897: NOKEY
Preparing… ########################################### [100%]
1:pdksh ########################################### [100%]
[root@dbm1 ~]# yum install readline-*
已加载插件:product-id, search-disabled-repos, security, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
设置安装进程
包 readline-6.0-4.el6.x86_64 已安装并且是最新版本
解决依赖关系
–> 执行事务检查
—> Package readline-devel.x86_64 0:6.0-4.el6 will be 安装
–> 处理依赖关系 ncurses-devel,它被软件包 readline-devel-6.0-4.el6.x86_64 需要
–> 执行事务检查
—> Package ncurses-devel.x86_64 0:5.7-4.20090207.el6 will be 安装
–> 完成依赖关系计算

依赖关系解决

===============================================================================================================================================================
软件包 架构 版本 仓库 大小

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

正在安装:
readline-devel x86_64 6.0-4.el6 rhel-source-beta 134 k
为依赖而安装:
ncurses-devel x86_64 5.7-4.20090207.el6 rhel-source-beta 641 k

事务概要

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

Install 2 Package(s)

总下载量:776 k
Installed size: 2.0 M
确定吗?[y/N]:y
下载软件包:


总计 59 MB/s | 776 kB 00:00
运行 rpm_check_debug
执行事务测试
事务测试成功
执行事务
Warning: RPMDB altered outside of yum.
正在安装 : ncurses-devel-5.7-4.20090207.el6.x86_64 1/2
正在安装 : readline-devel-6.0-4.el6.x86_64 2/2
Verifying : ncurses-devel-5.7-4.20090207.el6.x86_64 1/2
Verifying : readline-devel-6.0-4.el6.x86_64 2/2

已安装:
readline-devel.x86_64 0:6.0-4.el6

作为依赖被安装:
ncurses-devel.x86_64 0:5.7-4.20090207.el6

完毕!
[root@dbm1 ~]# rpm -ivh /apps/rlwrap-0.41-1.el6.x86_64.rpm
warning: /apps/rlwrap-0.41-1.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Preparing… ########################################### [100%]
1:rlwrap ########################################### [100%]
[root@dbm1 ~]# rlwrap -v
rlwrap 0.41
[root@dbm1 ~]#
安装依赖包

[root@dbm1 ~]# yum groupinstall ‘X Window System’ Base Setup Desktop
[root@dbm1 ~]# yum install tigervnc tigervnc-server
已加载插件:product-id, refresh-packagekit, search-disabled-repos, security, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
设置安装进程
解决依赖关系
–> 执行事务检查
—> Package tigervnc.x86_64 0:1.1.0-24.el6 will be 安装
—> Package tigervnc-server.x86_64 0:1.1.0-24.el6 will be 安装
–> 处理依赖关系 xorg-x11-fonts-misc,它被软件包 tigervnc-server-1.1.0-24.el6.x86_64 需要
–> 执行事务检查
—> Package xorg-x11-fonts-misc.noarch 0:7.2-11.el6 will be 安装
–> 完成依赖关系计算

依赖关系解决

软件包 架构 版本 仓库 大小

正在安装:
tigervnc x86_64 1.1.0-24.el6 rhel-source-beta 185 k
tigervnc-server x86_64 1.1.0-24.el6 rhel-source-beta 1.0 M
为依赖而安装:
xorg-x11-fonts-misc noarch 7.2-11.el6 rhel-source-beta 5.8 M

事务概要

Install 3 Package(s)

总下载量:7.0 M
Installed size: 9.9 M
确定吗?[y/N]:y
下载软件包:

总计 157 MB/s | 7.0 MB 00:00
运行 rpm_check_debug
执行事务测试
事务测试成功
执行事务
正在安装 : xorg-x11-fonts-misc-7.2-11.el6.noarch 1/3
正在安装 : tigervnc-server-1.1.0-24.el6.x86_64 2/3
正在安装 : tigervnc-1.1.0-24.el6.x86_64 3/3
Verifying : tigervnc-1.1.0-24.el6.x86_64 1/3
Verifying : xorg-x11-fonts-misc-7.2-11.el6.noarch 2/3
Verifying : tigervnc-server-1.1.0-24.el6.x86_64 3/3

已安装:
tigervnc.x86_64 0:1.1.0-24.el6 tigervnc-server.x86_64 0:1.1.0-24.el6

作为依赖被安装:
xorg-x11-fonts-misc.noarch 0:7.2-11.el6

完毕!
[root@dbm1 ~]# vi /etc/sysconfig/vncservers
[root@dbm1 ~]#
[root@dbm1 ~]# cat /etc/sysconfig/vncservers

The VNCSERVERS variable is a list of display:user pairs.

Uncomment the lines below to start a VNC server on display :2

as my ‘myusername’ (adjust this to your own). You will also

need to set a VNC password; run ‘man vncpasswd’ to see how

to do that.

DO NOT RUN THIS SERVICE if your local area network is

untrusted! For a secure way of using VNC, see this URL:

https://access.redhat.com/knowledge/solutions/7027

Use “-nolisten tcp” to prevent X connections to your VNC server via TCP.

Use “-localhost” to prevent remote VNC clients connecting except when

doing so through a secure tunnel. See the “-via” option in the

`man vncviewer’ manual page.

VNCSERVERS=“2:myusername”

VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -localhost"

VNCSERVERS=“1:root 2:oracle 3:grid”
VNCSERVERARGS[1]="-geometry 1024x768"
[root@dbm1 ~]#
安装桌面环境以及VNC此操作至需要在节点一进行(vncpasswd 给root,oracle,grid三个用户设置密码,在启动即可)

[root@dbm1 apps]# unzip shell\ RAC.zip
Archive: shell RAC.zip
inflating: 5preprofile.sh
inflating: 6presysctl.sh
inflating: 1preusers.sh
inflating: 2predir.sh
inflating: 3prelimits.sh
inflating: 4prelogin.sh
[root@dbm1 apps]# sh 1preusers.sh
Now create 6 groups named ‘oinstall’,‘dba’,‘asmadmin’,‘asmdba’,‘asmoper’,‘oper’
Plus 2 users named ‘oracle’,‘grid’,Also setting the Environment
更改用户 grid 的密码 。
passwd: 所有的身份验证令牌已经成功更新。
更改用户 oracle 的密码 。
passwd: 所有的身份验证令牌已经成功更新。
The Groups and users has been created
The Environment for grid,oracle also has been set successfully
[root@dbm1 apps]# sh 2predir.sh
Now create the necessary directory for oracle,grid users and change the authention to oracle,grid users…
The necessary directory for oracle,grid users and change the authention to oracle,grid users has been finished
[root@dbm1 apps]# sh 3prelimits.sh
Now modify the /etc/security/limits.conf,but backup it named /etc/security/limits.conf.bak before
Modifing the /etc/security/limits.conf has been succeed.
[root@dbm1 apps]# sh 4prelogin.sh
Now modify the /etc/pam.d/login,but with abackup named /etc/pam.d/login.bak
Modifing the /etc/pam.d/login has been succeed.
[root@dbm1 apps]# sh 5preprofile.sh
Now modify the /etc/profile,but with a backup named /etc/profile.bak
Modifing the /etc/profile has been succeed.
[root@dbm1 apps]# sh 6presysctl.sh
Now modify the /etc/sysctl.conf,but with a backup named /etc/sysctl.bak
Modifing the /etc/sysctl.conf has been succeed.
Now make the changes take effect…
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.shmmax = 68719476736
kernel.shmall = 4294967296
net.core.rmem_default = 33554432
net.core.rmem_max = 33554432
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
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 = 1048586
net.ipv4.tcp_wmem = 262144 262144 262144
net.ipv4.tcp_rmem = 4194304 4194304 4194304
[root@dbm1 apps]#
创建用户,修改内核配置文件等

[root@dbm1 apps]# rpm -ivh cvuqdisk-1.0.9-1.rpm
Preparing… ########################################### [100%]
Using default group oinstall to install package
1:cvuqdisk ########################################### [100%]
[root@dbm1 apps]# vi /home/oracle/.bash_profile
[root@dbm1 apps]#
[root@dbm1 apps]#
[root@dbm1 apps]# cat /home/grid/.bash_profile

.bash_profile

Get the aliases and functions

if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

User specific environment and startup programs

PATH= P A T H : PATH: PATH:HOME/bin

export PATH
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
export TMP=/tmp
export TMPDIR= T M P e x p o r t O R A C L E S I D = + A S M 1 e x p o r t O R A C L E B A S E = / u 01 / a p p / g r i d e x p o r t O R A C L E H O M E = / u 01 / a p p / 11.2.0.3 / g r i d e x p o r t N L S D A T E F O R M A T = ′ y y y y : m m : d d h h 24 : m i : s s ′ e x p o r t T N S A D M I N = TMP export ORACLE_SID=+ASM1 export ORACLE_BASE=/u01/app/grid export ORACLE_HOME=/u01/app/11.2.0.3/grid export NLS_DATE_FORMAT='yyyy:mm:dd hh24:mi:ss' export TNS_ADMIN= TMPexportORACLES​ID=+ASM1exportORACLEB​ASE=/u01/app/gridexportORACLEH​OME=/u01/app/11.2.0.3/gridexportNLSD​ATEF​ORMAT=′yyyy:mm:ddhh24:mi:ss′exportTNSA​DMIN=ORACLE_HOME/network/admin
export PATH=/usr/sbin: P A T H e x p o r t P A T H = PATH export PATH= PATHexportPATH=ORACLE_HOME/bin: P A T H e x p o r t L D L I B R A R Y P A T H = PATH export LD_LIBRARY_PATH= PATHexportLDL​IBRARYP​ATH=ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH= O R A C L E H O M E / J R E : ORACLE_HOME/JRE: ORACLEH​OME/JRE:ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
export EDITOR=vi
export LANG=en_US
export NLS_LANG=american_america.ZHS16GBK
umask 022
[root@dbm1 apps]# cat /home/oracle/.bash_profile

.bash_profile

Get the aliases and functions

if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

User specific environment and startup programs

PATH= P A T H : PATH: PATH:HOME/bin

export PATH
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
export TMP=/tmp
export TMPDIR= T M P e x p o r t O R A C L E S I D = d b m 1 e x p o r t O R A C L E B A S E = / u 01 / a p p / o r a c l e e x p o r t O R A C L E H O M E = TMP export ORACLE_SID=dbm1 export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME= TMPexportORACLES​ID=dbm1exportORACLEB​ASE=/u01/app/oracleexportORACLEH​OME=ORACLE_BASE/product/11.2.0.3/dbhome_1
export ORACLE_UNQNAME=dbm
export TNS_ADMIN= O R A C L E H O M E / n e t w o r k / a d m i n e x p o r t P A T H = / u s r / s b i n : ORACLE_HOME/network/admin export PATH=/usr/sbin: ORACLEH​OME/network/adminexportPATH=/usr/sbin:PATH
export PATH= O R A C L E H O M E / b i n : ORACLE_HOME/bin: ORACLEH​OME/bin:PATH
export LD_LIBRARY_PATH= O R A C L E H O M E / l i b : / l i b : / u s r / l i b e x p o r t C L A S S P A T H = ORACLE_HOME/lib:/lib:/usr/lib export CLASSPATH= ORACLEH​OME/lib:/lib:/usr/libexportCLASSPATH=ORACLE_HOME/JRE: O R A C L E H O M E / j l i b : ORACLE_HOME/jlib: ORACLEH​OME/jlib:ORACLE_HOME/rdbms/jlib
export EDITOR=vi
export LANG=en_US
export NLS_LANG=american_america.ZHS16GBK
export NLS_DATE_FORMAT=‘yyyy:mm:dd hh24:mi:ss’
umask 022
alias sqlplus=‘rlwrap sqlplus’
alias rman=‘rlwrap rman’
[root@dbm1 apps]#

[root@dbm2 apps]# cat /home/grid/.bash_profile

.bash_profile

Get the aliases and functions

if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

User specific environment and startup programs

PATH= P A T H : PATH: PATH:HOME/bin

export PATH
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
export TMP=/tmp
export TMPDIR= T M P e x p o r t O R A C L E S I D = + A S M 2 e x p o r t O R A C L E B A S E = / u 01 / a p p / g r i d e x p o r t O R A C L E H O M E = / u 01 / a p p / 11.2.0.3 / g r i d e x p o r t N L S D A T E F O R M A T = ′ y y y y : m m : d d h h 24 : m i : s s ′ e x p o r t T N S A D M I N = TMP export ORACLE_SID=+ASM2 export ORACLE_BASE=/u01/app/grid export ORACLE_HOME=/u01/app/11.2.0.3/grid export NLS_DATE_FORMAT='yyyy:mm:dd hh24:mi:ss' export TNS_ADMIN= TMPexportORACLES​ID=+ASM2exportORACLEB​ASE=/u01/app/gridexportORACLEH​OME=/u01/app/11.2.0.3/gridexportNLSD​ATEF​ORMAT=′yyyy:mm:ddhh24:mi:ss′exportTNSA​DMIN=ORACLE_HOME/network/admin
export PATH=/usr/sbin: P A T H e x p o r t P A T H = PATH export PATH= PATHexportPATH=ORACLE_HOME/bin: P A T H e x p o r t L D L I B R A R Y P A T H = PATH export LD_LIBRARY_PATH= PATHexportLDL​IBRARYP​ATH=ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH= O R A C L E H O M E / J R E : ORACLE_HOME/JRE: ORACLEH​OME/JRE:ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
export EDITOR=vi
export LANG=en_US
export NLS_LANG=american_america.ZHS16GBK
umask 022
[root@dbm2 apps]# cat /home/oracle/.bash_profile

.bash_profile

Get the aliases and functions

if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

User specific environment and startup programs

PATH= P A T H : PATH: PATH:HOME/bin

export PATH
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
export TMP=/tmp
export TMPDIR= T M P e x p o r t O R A C L E S I D = d b m 2 e x p o r t O R A C L E B A S E = / u 01 / a p p / o r a c l e e x p o r t O R A C L E H O M E = TMP export ORACLE_SID=dbm2 export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME= TMPexportORACLES​ID=dbm2exportORACLEB​ASE=/u01/app/oracleexportORACLEH​OME=ORACLE_BASE/product/11.2.0.3/dbhome_1
export ORACLE_UNQNAME=dbm
export TNS_ADMIN= O R A C L E H O M E / n e t w o r k / a d m i n e x p o r t P A T H = / u s r / s b i n : ORACLE_HOME/network/admin export PATH=/usr/sbin: ORACLEH​OME/network/adminexportPATH=/usr/sbin:PATH
export PATH= O R A C L E H O M E / b i n : ORACLE_HOME/bin: ORACLEH​OME/bin:PATH
export LD_LIBRARY_PATH= O R A C L E H O M E / l i b : / l i b : / u s r / l i b e x p o r t C L A S S P A T H = ORACLE_HOME/lib:/lib:/usr/lib export CLASSPATH= ORACLEH​OME/lib:/lib:/usr/libexportCLASSPATH=ORACLE_HOME/JRE: O R A C L E H O M E / j l i b : ORACLE_HOME/jlib: ORACLEH​OME/jlib:ORACLE_HOME/rdbms/jlib
export EDITOR=vi
export LANG=en_US
export NLS_LANG=american_america.ZHS16GBK
export NLS_DATE_FORMAT=‘yyyy:mm:dd hh24:mi:ss’
umask 022
alias sqlplus=‘rlwrap sqlplus’
alias rman=‘rlwrap rman’
[root@dbm2 apps]#
安装cvu包,查看环境变量

[root@dbm1 apps]# scsi_id -g -u /dev/sda
3639f0e78b0450c08b1a07da9878f97e9
[root@dbm1 apps]# scsi_id -g -u /dev/sdc
369bc040e2042a20b3200865aded14057
[root@dbm1 apps]# scsi_id -g -u /dev/sdb
36a910c2e704979084c206aec0abba9c1
[root@dbm1 apps]# parted /dev/sda
(parted) P
Model: SANGFOR VIRTUAL-DISK (scsi)
Disk /dev/sda: 2199GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name 标志
1 1049kB 2000MB 1999MB ocr
2 2000MB 10.0GB 8001MB test
3 10.0GB 1000GB 990GB DATA
4 1000GB 2199GB 1199GB DATA1
Partition Table: gpt

Number Start End Size File system Name 标志
1 1049kB 1000GB 1000GB DATA2
2 1000GB 2199GB 1199GB DATA3
Partition Table: gpt

Number Start End Size File system Name 标志
1 1049kB 1000GB 1000GB FRA
2 1000GB 2199GB 1199GB FRA1

[root@dbm1 ~]#
[root@dbm1 ~]# cat /etc/udev/rules.d/90-dm.rules
KERNEL==“sdb1”, SUBSYSTEM==“block”, OWNER=“grid”, GROUP=“asmadmin”,NAME=“asmdisk1”, MODE=“0660”
KERNEL==“sdb2”, SUBSYSTEM==“block”, OWNER=“grid”, GROUP=“asmadmin”,NAME=“asmdisk2”, MODE=“0660”
KERNEL==“sdb3”, SUBSYSTEM==“block”, OWNER=“grid”, GROUP=“asmadmin”,NAME=“asmdisk3”, MODE=“0660”
KERNEL==“sdb4”, SUBSYSTEM==“block”, OWNER=“grid”, GROUP=“asmadmin”,NAME=“asmdisk4”, MODE=“0660”
KERNEL==“sdc1”, SUBSYSTEM==“block”, OWNER=“grid”, GROUP=“asmadmin”,NAME=“asmdisk5”, MODE=“0660”
KERNEL==“sdc2”, SUBSYSTEM==“block”, OWNER=“grid”, GROUP=“asmadmin”,NAME=“asmdisk6”, MODE=“0660”
KERNEL==“sda1”, SUBSYSTEM==“block”, OWNER=“grid”, GROUP=“asmadmin”,NAME=“asmdisk7”, MODE=“0660”
KERNEL==“sda2”, SUBSYSTEM==“block”, OWNER=“grid”, GROUP=“asmadmin”,NAME=“asmdisk8”, MODE=“0660”
[root@dbm1 ~]# ll /dev/asmdisk*
brw-rw---- 1 grid asmadmin 8, 17 11月 25 11:31 /dev/asmdisk1
brw-rw---- 1 grid asmadmin 8, 18 11月 25 11:31 /dev/asmdisk2
brw-rw---- 1 grid asmadmin 8, 19 11月 25 11:31 /dev/asmdisk3
brw-rw---- 1 grid asmadmin 8, 20 11月 25 11:31 /dev/asmdisk4
brw-rw---- 1 grid asmadmin 8, 33 11月 25 11:31 /dev/asmdisk5
brw-rw---- 1 grid asmadmin 8, 34 11月 25 11:31 /dev/asmdisk6
brw-rw---- 1 grid asmadmin 8, 1 11月 25 11:31 /dev/asmdisk7
brw-rw---- 1 grid asmadmin 8, 2 11月 25 11:31 /dev/asmdisk8
[root@dbm1 ~]#

[root@dbm2 ~]# cat /etc/udev/rules.d/90-dm.rules
KERNEL==“sdb1”, SUBSYSTEM==“block”, OWNER=“grid”, GROUP=“asmadmin”,NAME=“asmdisk1”, MODE=“0660”
KERNEL==“sdb2”, SUBSYSTEM==“block”, OWNER=“grid”, GROUP=“asmadmin”,NAME=“asmdisk2”, MODE=“0660”
KERNEL==“sdb3”, SUBSYSTEM==“block”, OWNER=“grid”, GROUP=“asmadmin”,NAME=“asmdisk3”, MODE=“0660”
KERNEL==“sdb4”, SUBSYSTEM==“block”, OWNER=“grid”, GROUP=“asmadmin”,NAME=“asmdisk4”, MODE=“0660”
KERNEL==“sdc1”, SUBSYSTEM==“block”, OWNER=“grid”, GROUP=“asmadmin”,NAME=“asmdisk5”, MODE=“0660”
KERNEL==“sdc2”, SUBSYSTEM==“block”, OWNER=“grid”, GROUP=“asmadmin”,NAME=“asmdisk6”, MODE=“0660”
KERNEL==“sda1”, SUBSYSTEM==“block”, OWNER=“grid”, GROUP=“asmadmin”,NAME=“asmdisk7”, MODE=“0660”
KERNEL==“sda2”, SUBSYSTEM==“block”, OWNER=“grid”, GROUP=“asmadmin”,NAME=“asmdisk8”, MODE=“0660”
[root@dbm2 ~]# ll /dev/asmdisk*
brw-rw---- 1 grid asmadmin 8, 17 11月 25 11:36 /dev/asmdisk1
brw-rw---- 1 grid asmadmin 8, 18 11月 25 11:36 /dev/asmdisk2
brw-rw---- 1 grid asmadmin 8, 19 11月 25 11:36 /dev/asmdisk3
brw-rw---- 1 grid asmadmin 8, 20 11月 25 11:36 /dev/asmdisk4
brw-rw---- 1 grid asmadmin 8, 33 11月 25 11:36 /dev/asmdisk5
brw-rw---- 1 grid asmadmin 8, 34 11月 25 11:36 /dev/asmdisk6
brw-rw---- 1 grid asmadmin 8, 1 11月 25 11:36 /dev/asmdisk7
brw-rw---- 1 grid asmadmin 8, 2 11月 25 11:36 /dev/asmdisk8
[root@dbm2 ~]#

因为是虚拟机,可以不做多路径,直接配置磁盘权限即可(俩个节点)

配置心跳解压安装包开始安装GR

验证等效性


执行root.sh俩个节点


GR安装完成

开始安装数据库软件

验证等效性
双节点实行root.sh


数据库软件安装完成

创建ASM磁盘组

asm 创建完成
DBCA建库




等到100%就ok了,后续在对数据库进行参数调优
至此RAC安装完成

这篇关于虚拟机安装Oracle RAC的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!