本文主要是介绍Oracle11gR2 RAC安装实验(未完,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
1.前期环境准备
(1)关闭防火墙
[root@rac01 ~]# service iptables stop
[root@rac01 ~]# chkconfig iptables off
[root@rac01 ~]# chkconfig iptables --list
iptables 0:off 1:off 2:off 3:off 4:off 5:off 6:off
(2)修改host文件
[root@rac1 ~]# vi /etc/hosts
[root@rac1 ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
#Public IP
192.168.157.40 rac1.luo.com rac1
192.168.157.41 rac2.luo.com rac2#Private IP
192.168.110.30 rac1-priv.luo.com rac1-priv
192.168.110.31 rac2-priv.luo.com rac2-priv#Virtual IP
192.168.157.42 rac1-vip.luo.com rac1-vip
192.168.157.43 rac2-vip.luo.com rac2-vip#Scan IP
192.168.157.44 rac-scan1.luo.com rac-scan1
(3)配置内核参数
3.1修改/etc/sysctl.conf文件
[root@rac1 ~]# vi /etc/sysctl.conf
[root@rac1 ~]# /sbin/sysctl -p #让他立即生效
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
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.shmmax = 68719476736
kernel.shmall = 4294967296
fs.aio-max-nr = 1048576
fs.file-max = 6815744
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
3.2修改limits文件添加以下内容
[root@rac01 ~]# vi /etc/security/limits.conf
grid soft nproc 2047
grid hard nproc 16384
grid soft nofile 1024
grid hard nofile 65536
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
[root@rac01 ~]# vi /etc/pam.d/login
session required pam_limits.so
3.4修改/etc/profile文件
[root@rac01 ~]# vi /etc/profile
if [ $USER = "oracle" ] || [ $USER = "grid" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
umask 022
fi
[root@rac01 ~]# vi /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
3.6停止ntp服务
[root@rac1 ~]# /sbin/service ntpd status
ntpd is stopped
[root@rac1 ~]# mv /etc/ntp.conf /etc/ntp.conf.bak
(4)添加组和用户
[root@rac1 ~]# groupadd -g 501 oinstall
[root@rac1 ~]# groupadd -g 502 dba
[root@rac1 ~]# groupadd -g 503 oper
[root@rac1 ~]# groupadd -g 504 asmadmin
[root@rac1 ~]# groupadd -g 505 asmoper
[root@rac1 ~]# groupadd -g 506 asmdba
[root@rac1 ~]# useradd -g oinstall -G dba,asmdba,oper oracle
[root@rac1 ~]# useradd -g oinstall -G asmadmin,asmdba,asmoper,oper,dba grid
[root@rac1 ~]#
[root@rac1 ~]# passwd oracle
Changing password for user oracle.
New password:
BAD PASSWORD: it is based on a dictionary word
BAD PASSWORD: is too simple
Retype new password:
passwd: all authentication tokens updated successfully.
[root@rac1 ~]#
[root@rac1 ~]# passwd grid
Changing password for user grid.
New password:
BAD PASSWORD: it is too short
BAD PASSWORD: is too simple
Retype new password:
passwd: all authentication tokens updated successfully.
[root@rac1 ~]#
[root@rac1 ~]# id oracle
uid=500(oracle) gid=501(oinstall) groups=501(oinstall),502(dba),503(oper),506(asmdba)
[root@rac1 ~]# id grid
uid=501(grid) gid=501(oinstall) groups=501(oinstall),502(dba),503(oper),504(asmadmin),505(asmoper),506(asmdba)
(5)创建目录并且配置 grid 和 oracle 用户的环境变量文件
[root@rac1 ~]# mkdir -p /u01/app/oracle
[root@rac1 ~]# mkdir -p /u01/app/grid
[root@rac1 ~]# mkdir -p /u01/app/11.2.0/grid
[root@rac1 ~]# chown -R grid:oinstall /u01/app/grid
[root@rac1 ~]# chown -R grid:oinstall /u01/app/11.2.0
[root@rac1 ~]# chown -R oracle:oinstall /u01/app/oracle
[root@rac1 ~]# chmod -R 775 /u01
[root@rac1 ~]# mkdir -p /u01/app/oraInventory
[root@rac1 ~]# chown -R grid:oinstall /u01/app/oraInventory
[root@rac1 ~]# chmod -R 775 /u01/app/oraInventory
[root@rac1 ~]#
[root@rac1 ~]# vi /home/oracle/.bash_profile
[root@rac1 ~]# cat !$
cat /home/oracle/.bash_profile
# .bash_profile# Get the aliases and functions
if [ -f ~/.bashrc ]; then. ~/.bashrc
fi# User specific environment and startup programsPATH=$PATH:$HOME/binexport PATHexport ORACLE_SID=rac1
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export NLS_DATE_FORMAT="yyyy-mm-dd HH24:MI:SS"
export TMP=/tmp
export TMPDIR=$TMP
export PATH=$PATH:$ORACLE_HOME/bin
[root@rac1 ~]# vi /home/grid/.bash_profile
[root@rac1 ~]# cat !$
cat /home/grid/.bash_profile
# .bash_profile# Get the aliases and functions
if [ -f ~/.bashrc ]; then. ~/.bashrc
fi# User specific environment and startup programsPATH=$PATH:$HOME/binexport PATHexport ORACLE_SID=+ASM1
export ORACLE_BASE=/u01/app/grid
export ORACLE_HOME=/u01/app/11.2.0/grid
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export NLS_DATE_FORMAT="yyyy-mm-dd HH24:MI:SS"
export PATH=$ORACLE_HOME/bin:$PATH
(6)软件包的检查
检查以下包
rpm -qa | grep binutils-
rpm -qa | grep compat-libstdc++-
rpm -qa | grep elfutils-libelf-
rpm -qa | grep elfutils-libelf-devel-
rpm -qa | grep glibc-
rpm -qa | grep glibc-common-
rpm -qa | grep glibc-devel-
rpm -qa | grep gcc-
rpm -qa | grep gcc-c++-
rpm -qa | grep libaio-
rpm -qa | grep libaio-devel-
rpm -qa | grep libgcc-
rpm -qa | grep libstdc++-
rpm -qa | grep libstdc++-devel-
rpm -qa | grep make-
rpm -qa | grep sysstat-
rpm -qa | grep unixODBC-
rpm -qa | grep unixODBC-devel-
[root@rac1 Packages]# rpm -ivh compat-libcap1-1.10-1.x86_64.rpm
warning: compat-libcap1-1.10-1.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
Preparing... ########################################### [100%]1:compat-libcap1 ########################################### [100%]
[root@rac1 Packages]# rpm -ivh compat-libstdc++-33-3.2.3-69.el6.x86_64.rpm
warning: compat-libstdc++-33-3.2.3-69.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
Preparing... ########################################### [100%]1:compat-libstdc++-33 ########################################### [100%]
[root@rac1 Packages]# rpm -qa | grep binutils-
binutils-2.20.51.0.2-5.36.el6.x86_64
[root@rac1 Packages]# rpm -qa | grep compat-libstdc++-
compat-libstdc++-33-3.2.3-69.el6.x86_64
[root@rac1 Packages]# rpm -qa | grep elfutils-libelf-
elfutils-libelf-0.152-1.el6.x86_64
[root@rac1 Packages]# rpm -qa | grep elfutils-libelf-devel-
[root@rac1 Packages]# rpm -ivh elfutils-libelf-devel-0.152-1.el6.x86_64.rpm
warning: elfutils-libelf-devel-0.152-1.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
Preparing... ########################################### [100%]1:elfutils-libelf-devel ########################################### [100%]
[root@rac1 Packages]# rpm -qa | grep elfutils-libelf-devel-
elfutils-libelf-devel-0.152-1.el6.x86_64
[root@rac1 Packages]# rpm -qa | grep glibc-
glibc-common-2.12-1.132.el6.x86_64
glibc-headers-2.12-1.132.el6.x86_64
glibc-2.12-1.132.el6.x86_64
glibc-devel-2.12-1.132.el6.x86_64
[root@rac1 Packages]# rpm -qa | grep glibc-common-
glibc-common-2.12-1.132.el6.x86_64
[root@rac1 Packages]# rpm -qa | grep glibc-devel-
glibc-devel-2.12-1.132.el6.x86_64
[root@rac1 Packages]# rpm -qa | grep gcc-
libgcc-4.4.7-4.el6.x86_64
gcc-4.4.7-4.el6.x86_64
[root@rac1 Packages]# rpm -qa | grep gcc-c++-
[root@rac1 Packages]# rpm -ivh gcc-c++-4.4.7-4.el6.x86_64.rpm
warning: gcc-c++-4.4.7-4.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
error: Failed dependencies:libstdc++-devel = 4.4.7-4.el6 is needed by gcc-c++-4.4.7-4.el6.x86_64
[root@rac1 Packages]# rpm -ivh libstdc++-devel-4.4.7-4.el6.x86_64.rpm
warning: libstdc++-devel-4.4.7-4.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
Preparing... ########################################### [100%]1:libstdc++-devel ########################################### [100%]
[root@rac1 Packages]# rpm -ivh gcc-c++-4.4.7-4.el6.x86_64.rpm
warning: gcc-c++-4.4.7-4.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
Preparing... ########################################### [100%]1:gcc-c++ ########################################### [100%]
[root@rac1 Packages]# rpm -qa | grep gcc-c++-
gcc-c++-4.4.7-4.el6.x86_64
[root@rac1 Packages]# rpm -qa | grep libaio-
libaio-0.3.107-10.el6.x86_64
[root@rac1 Packages]# rpm -qa | grep libaio-devel-
[root@rac1 Packages]# rpm -ivh libaio-devel-0.3.107-10.el6.x86_64.rpm
warning: libaio-devel-0.3.107-10.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
Preparing... ########################################### [100%]1:libaio-devel ########################################### [100%]
[root@rac1 Packages]# rpm -qa | grep libgcc-
libgcc-4.4.7-4.el6.x86_64
[root@rac1 Packages]# rpm -qa | grep libstdc++-
libstdc++-4.4.7-4.el6.x86_64
libstdc++-devel-4.4.7-4.el6.x86_64
compat-libstdc++-33-3.2.3-69.el6.x86_64
[root@rac1 Packages]# rpm -qa | grep libstdc++-devel-
libstdc++-devel-4.4.7-4.el6.x86_64
[root@rac1 Packages]# rpm -qa | grep make-
make-3.81-20.el6.x86_64
[root@rac1 Packages]# rpm -qa | grep sysstat-
sysstat-9.0.4-22.el6.x86_64
(7)配置NTP
[root@rac1 ~]# vi /etc/sysconfig/ntpd
[root@rac1 ~]# sed -i 's/OPTIONS/#OPTIONS/g' /etc/sysconfig/ntpd
[root@rac1 ~]# cat >> /etc/sysconfig/ntpd << EOF
> OPTIONS="-x -u ntp:ntp -p /var/run/ntpd.pid"
> EOF
[root@rac1 ~]# mv /etc/ntp.conf /etc/ntp.confbak
mv: cannot stat `/etc/ntp.conf': No such file or directory
[root@rac1 ~]# cat > /etc/ntp.conf << EOF
> restrict 0.0.0.0 mask 0.0.0.0 nomodify
> server 127.127.1.0
> fudge 127.127.1.0 stratum 10
> driftfile /var/lib/ntp/drift
> broadcastdelay 0.008
> authenticate no
> keys /etc/ntp/keys
> EOF
[root@rac1 ~]# service ntpd restart
Shutting down ntpd: [FAILED]
Starting ntpd: [ OK ]
[root@rac1 ~]# chkconfig ntpd on[root@rac2 ~]# sed -i 's/OPTIONS/#OPTIONS/g' /etc/sysconfig/ntpd
[root@rac2 ~]# cat >> /etc/sysconfig/ntpd << EOF
> OPTIONS="-x -u ntp:ntp -p /var/run/ntpd.pid"
> EOF
[root@rac2 ~]# mv /etc/ntp.conf /etc/ntp.confbak
mv: cannot stat `/etc/ntp.conf': No such file or directory
[root@rac2 ~]# cat >> /etc/ntp.conf << XL
> restrict default kod nomodify notrap nopeer noquery
> restrict 182.168.8.0 mask 255.255.255.0 nomodify notrap
> restrict 127.0.0.1
> server 182.168.8.61
> server 127.127.1.0 # local clock
> fudge 127.127.1.0 stratum 10
> driftfile /var/lib/ntp/drift
> broadcastdelay 0.008
> authenticate no
> keys /etc/ntp/keys
> XL
[root@rac2 ~]# service ntpd restart
Shutting down ntpd: [FAILED]
Starting ntpd: [ OK ]
[root@rac2 ~]# chkconfig ntpd on
(8)创建共享存储
先设置虚拟机共享储存
添加磁盘
更改虚拟机配置文件添加以下内容
disk.EnableUUID="TRUE"
disk.locking = "FALSE"
scsi1.shared = "TRUE"
diskLib.dataCacheMaxSize = "0"
diskLib.dataCacheMaxReadAheadSize = "0"
diskLib.dataCacheMinReadAheadSize = "0"
diskLib.dataCachePageSize= "4096"
diskLib.maxUnsyncedWrites = "0"scsi1.present = "TRUE"
scsi1.virtualDev = "lsilogic"
scsil.sharedBus = "VIRTUAL"
scsi1:0.present = "TRUE"
scsi1:0.mode = "independent-persistent"
scsi1:0.fileName = "E:\rac\ocr_vote.vmdk"
scsi1:0.deviceType = "disk"
scsi1:0.redo = ""
scsi1:1.present = "TRUE"
scsi1:1.mode = "independent-persistent"
scsi1:1.fileName = "E:\rac\data.vmdk"
scsi1:1.deviceType = "disk"
scsi1:1.redo = ""
scsi1:2.present = "TRUE"
scsi1:2.mode = "independent-persistent"
scsi1:2.fileName = "E:\rac\fra.vmdk"
scsi1:2.deviceType = "disk"
scsi1:2.redo = ""
(9)设置共享磁盘
[root@rac1 ~]# cat /etc/issue
Oracle Linux Server release 6.5
Kernel \r on an \m[root@rac1 ~]# which scsi_id
/sbin/scsi_id
[root@rac1 ~]# vi /etc/scsi_id.config
[root@rac1 ~]# cat !$
cat /etc/scsi_id.config
options=--whitelisted --replace-whitespace[root@rac1 ~]# scsi_id --whitelisted --replace-whitespace --device=/dev/sdb
36000c29f537f2e280f42e5aea7a6e49a
[root@rac1 ~]# scsi_id --whitelisted --replace-whitespace --device=/dev/sdc
36000c297e2659b00d396bd1e722dbbc7
[root@rac1 ~]# scsi_id --whitelisted --replace-whitespace --device=/dev/sdd
36000c299a5602b61b37c1548cd4b292b
[root@rac1 ~]# scsi_id --whitelisted --replace-whitespace --device=/dev/sde
[root@rac1 ~]# 创建并配置 udev rules 文件
[root@rac1 ~]# vi /etc/udev/rules.d/99-oracle-asmdevices.rules
[root@rac1 ~]# cat !$
cat /etc/udev/rules.d/99-oracle-asmdevices.rules
KERNEL=="sd*", SUBSYSTEM=="block", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name",RESULT=="36000c29f537f2e280f42e5aea7a6e49a", NAME="asm-diskb", OWNER="grid",GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", SUBSYSTEM=="block", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name",RESULT=="36000c297e2659b00d396bd1e722dbbc7", NAME="asm-diskc", OWNER="grid",GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", SUBSYSTEM=="block", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name",RESULT=="36000c299a5602b61b37c1548cd4b292b", NAME="asm-diskd", OWNER="grid",GROUP="asmadmin", MODE="0660"
[root@rac1 ~]# scp /etc/udev/rules.d/99-oracle-asmdevices.rules rac2:/etc/udev/rules.d
The authenticity of host 'rac2 (192.168.157.41)' can't be established.
RSA key fingerprint is 6a:3f:bb:52:ad:8e:21:28:03:fe:c8:5c:ed:21:d8:5e.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'rac2,192.168.157.41' (RSA) to the list of known hosts.
root@rac2's password:
99-oracle-asmdevices.rules 100% 663 0.7KB/s 00:00
[root@rac1 ~]# start_udev
Starting udev: [ OK ]
[root@rac1 ~]# ll /dev/asm-disk*
brw-rw---- 1 grid asmadmin 8, 16 Nov 16 21:13 /dev/asm-diskb
brw-rw---- 1 grid asmadmin 8, 32 Nov 16 21:13 /dev/asm-diskc
brw-rw---- 1 grid asmadmin 8, 48 Nov 16 21:13 /dev/asm-diskd
(10)对硬盘进行分区
[root@rac1 ~]# fdisk /dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0xf1ec9211.
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)WARNING: DOS-compatible mode is deprecated. It's strongly recommended toswitch off the mode (command 'c') and change display units tosectors (command 'u').Command (m for help): pDisk /dev/sdb: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xf1ec9211Device Boot Start End Blocks Id SystemCommand (m for help): n
Command actione extendedp primary partition (1-4)
1
Invalid partition number for type `1'
Command actione extendedp primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-261, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-261, default 261):
Using default value 261Command (m for help): pDisk /dev/sdb: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xf1ec9211Device Boot Start End Blocks Id System
/dev/sdb1 1 261 2096451 83 LinuxCommand (m for help): w
The partition table has been altered!Calling ioctl() to re-read partition table.
Syncing disks.
[root@rac1 ~]# fdisk /dev/sdc
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0x52ba8af3.
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)WARNING: DOS-compatible mode is deprecated. It's strongly recommended toswitch off the mode (command 'c') and change display units tosectors (command 'u').Command (m for help): pDisk /dev/sdc: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x52ba8af3Device Boot Start End Blocks Id SystemCommand (m for help): n
Command actione extendedp primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-652, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-652, default 652):
Using default value 652Command (m for help): pDisk /dev/sdc: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x52ba8af3Device Boot Start End Blocks Id System
/dev/sdc1 1 652 5237158+ 83 LinuxCommand (m for help): w
The partition table has been altered!Calling ioctl() to re-read partition table.
Syncing disks.
[root@rac1 ~]# fdisk /dev/sd
sda sda1 sda2 sdb sdb1 sdc sdc1 sdd
[root@rac1 ~]# fdisk /dev/sdd
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0xd3baaec9.
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)WARNING: DOS-compatible mode is deprecated. It's strongly recommended toswitch off the mode (command 'c') and change display units tosectors (command 'u').Command (m for help): pDisk /dev/sdd: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xd3baaec9Device Boot Start End Blocks Id SystemCommand (m for help): n
Command actione extendedp primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-652, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-652, default 652):
Using default value 652Command (m for help): pDisk /dev/sdd: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xd3baaec9Device Boot Start End Blocks Id System
/dev/sdd1 1 652 5237158+ 83 LinuxCommand (m for help): w
The partition table has been altered!Calling ioctl() to re-read partition table.
Syncing disks.
(11)安装grid
[root@rac1 rpm]# rpm -ivh cvuqdisk-1.0.7-1.rpm
error: open of cvuqdisk-1.0.7-1.rpm failed: No such file or directory
[root@rac1 rpm]# rpm -ivh cvuqdisk-1.0.9-1.rpm
Preparing... ########################################### [100%]
Using default group oinstall to install package1:cvuqdisk ########################################### [100%]
[root@rac1 rpm]# scp cvuqdisk-1.0.9-1.rpm root@192.168.59.136:/tmp
^C[root@rac1 rpm]#
[root@rac1 rpm]#
[root@rac1 rpm]# scp cvuqdisk-1.0.9-1.rpm root@rac2:/tmp
root@rac2's password:
cvuqdisk-1.0.9-1.rpm 100% 8551 8.4KB/s 00:00
[root@rac1 ~]# rm -rf database/
[root@rac1 ~]# rm -rf grid/
[root@rac1 ~]# cd /tmp/
[root@rac1 tmp]# unzip -q /media/11.2.0.3-64bit/p10404530_112030_Linux-x86-64_1of7.zip
[root@rac1 tmp]# unzip -q /media/11.2.0.3-64bit/p10404530_112030_Linux-x86-64_2of7.zip
[root@rac1 tmp]# unzip -q /media/11.2.0.3-64bit/p10404530_112030_Linux-x86-64_3of7.zip
[root@rac1 tmp]# du -sh grid/
1.1G grid/
[root@rac1 tmp]# du -sh database/
2.5G database/
[root@rac1 tmp]# su - grid/
su: user grid/ does not exist
[root@rac1 tmp]# su - grid
[grid@rac1 ~]$ cd /tmp/grid/
[grid@rac1 grid]$ ./runcluvfy.sh stage -pre crsinst -n rac1,rac2 -verbosePerforming pre-checks for cluster services setup Checking node reachability...Check: Node reachability from node "rac1"Destination Node Reachable? ------------------------------------ ------------------------rac2 yes rac1 yes
Result: Node reachability check passed from node "rac1"Checking user equivalence...Check: User equivalence for user "grid"Node Name Status ------------------------------------ ------------------------rac2 failed rac1 failed
Result: PRVF-4007 : User equivalence check failed for user "grid"ERROR:
User equivalence unavailable on all the specified nodes
Verification cannot proceedPre-check for cluster services setup was unsuccessful on all the nodes. #可能因为没有提前设置ssh互信
这篇关于Oracle11gR2 RAC安装实验(未完的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!