OracleRAC实施方案详细说明-安装前环境配置03
Oracle RAC 实施方案详细说明 - 安装前环境配置 03
成都创新互联公司是一家专业提供秦都企业网站建设,专注与网站设计、网站制作、H5技术、小程序制作等业务。10年已为秦都众多企业、政府机构等服务。创新互联专业的建站公司优惠进行中。
一:安装vbox 虚拟机
二:安装操作系统
三: RAC01 数据库服务器配置
3.1 配置网络
3.2 系统包
3.3 hosts 配置
3.4 创建用户组
3.5 创建目录并授权
3.6 设置环境变量 grid 和 oracle 用户环境变量
3.7 关闭 SELINUX
3.8 关闭防火墙
3.9 设置 Oracle 和 Grid 用户的 SHELL 限制
3.10 修改内核参数
四: RAC01 服务器完整克隆
4.1 克隆 RAC02 数据库服务器
4.2 克隆 DNS01 服务器
五:配置DNS
六:SSH 互信
七: 共享存储设置
八: 安装GI 前检查
一:安装vbox 虚拟机
Oracle VM VirtualBox 6.1.6
二:安装操作系统
三: RAC01 数据库服务器配置
3.1 配置网络
[root@ rac01 ~]# cd /etc/sysconfig/network-scripts/
[root@ rac01 network-scripts]# cat ifcfg-eth0
DEVICE="eth0"
#BOOTPROTO="dhcp"
BOOTPROTO="static"
HWADDR="08:00:27:CF:2B:A9"
NM_CONTROLLED="yes"
>
TYPE="Ethernet"
UUID="b06e0d1d-dac4-4b59-9936-12f972569376"
IPADDR="192.168.31.100"
#PREFIX="24"
NETMASK="255.255.255.0"
GATWAY="192.168.31.1"
DNS1="8.8.8.8"
[root@ rac01 network-scripts]# cat ifcfg-eth2
DEVICE="eth2"
#BOOTPROTO="dhcp"
BOOTPROTO="static"
HWADDR="08:00:27:2E:B8:A8"
NM_CONTROLLED="yes"
>
TYPE="Ethernet"
UUID="58baaab3-0e1b-4243-8b53-c1eb0b10d6d7"
IPADDR="10.10.10.100"
NETMASK="255.255.255.0"
#PREFIX="24"
#GETWAY=10.10.10.1
#DNS1="8.8.8.8"
3.2 系统包
配置 YUM
[root@ rac01 ~]# mount |grep OL
/dev/sr1 on /media/OL6.3 x86_64 Disc 1 20120626 type iso9660 (ro,nosuid,nodev,uhelper=udisks,uid=0,gid=0,iocharset=utf8,mode=0400,dmode=0500)
[root@ rac01 ~]# mount /dev/sr1 /mnt -o loop
[root@ rac01 yum.repos.d]# pwd
/etc/yum.repos.d
[root@ rac01 yum.repos.d]# vim yum.repo
[Oralin6u3]
name=local yum
baseurl=file:///mnt
gpgcheck=0
enabled=1
[root@ rac01 yum.repos.d]# yum -y install binutils-2.20.51.0.2-5.11.el6 compat-libcap1-1.10-1 compat-libstdc++-33-3.2.3-69.el6 compat-libstdc++-33-3.2.3-69.el6.i686 gcc-4.4.4-13.el6 gcc-c++-4.4.4-13.el6 glibc-2.12-1.7.el6 glibc-2.12-1.7.el6 glibc-devel-2.12-1.7.el6 glibc-devel-2.12-1.7.el6.i686 ksh libgcc-4.4.4-13.el6 libgcc-4.4.4-13.el6 libstdc++-4.4.4-13.el6 libstdc++-4.4.4-13.el6.i686 libstdc++-devel-4.4.4-13.el6 libstdc++-devel-4.4.4-13.el6.i686 libaio-0.3.107-10.el6 libaio-0.3.107-10.el6.i686 libaio-devel-0.3.107-10.el6 libaio-devel-0.3.107-10.el6.i686 make-3.81-19.el6 sysstat-9.0.4-11.el6
3.3 hosts 配置
[root@ rac01 ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
##Public Network
192.168.31.100 rac 0 1
192.168.31.200 rac 0 2
##Public Virtual IP (VIP) addresses
192.168.31.10 rac 0 1-vip
192.168.31.20 rac 0 2-vip
##Private Interconnect
10.10.10.100 rac 0 1-priv
10.10.10.200 rac 0 2-priv
##Scan ip
##192.168.31.50 rac-scan.cjc.com
3.4 创建用户组
/usr/sbin/groupadd -g 5000 dba
/usr/sbin/groupadd -g 5001 oinstall
/usr/sbin/groupadd -g 5002 oper
/usr/sbin/groupadd -g 5003 asmadmin
/usr/sbin/groupadd -g 5004 asmoper
/usr/sbin/groupadd -g 5005 asmdba
/usr/sbin/useradd -g oinstall -G asmadmin,asmdba,asmoper,dba grid
/usr/sbin/useradd -g oinstall -G dba,asmdba oracle
12C开始,还需要配置下面的用户组
/usr/sbin/groupadd -g 5006 backupdba
/usr/sbin/groupadd -g 5007 dgdba
/usr/sbin/groupadd -g 5008 kmdba
/usr/sbin/groupadd -g 5009 racdba
3.5 创建目录并授权
[root@ rac01 ~]# mkdir -p /u01/app/11.2.0/grid
[root@ rac01 ~]# mkdir -p /u01/app/grid
[root@ rac01 ~]# mkdir -p /u01/app/oracle/product/11.2.0/db_1
[root@ rac01 ~]# chown -R grid:oinstall /u01
[root@ rac01 ~]# chmod -R 775 /u01/
[root@ rac01 ~]# chown -R oracle:oinstall /u01/app/oracle
3.6 设置环境变量 grid 和 oracle 用户环境变量
[grid@ rac01 ~]$ vim .bash_profile
export ORACLE_BASE=/u01/app/grid
export ORACLE_HOME=/u01/app/11.2.0/grid
export ORACLE_SID=+ASM1
PATH=$PATH:$ORACLE_HOME/bin
[grid@ rac01 ~]$ source .bash_profile
[oracle@ rac01 ~]$ vi .bash_profile
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
export ORACLE_SID=cjcdb01
PATH=$PATH:$ORACLE_HOME/bin
[oracle@ rac01 ~]$ source .bash_profile
3.7 关闭 SELINUX
[root@ rac01 ~]# vim /etc/selinux/config
#SELINUX=enforcing
SELINUX=disabled
3.8 关闭防火墙
Linux 6
[root@ rac01 ~]# service iptables stop
[root@ rac01 ~]# chkconfig iptables off
Linux 7
[root@ rac01 ~]# systemctl stop firewalld.service
[root@ rac01 ~]# systemctl disable firewalld.service
[root@ rac01 ~]# iptables -F
[root@ rac01 ~]# iptables-save
3.9 设置 Oracle 和 Grid 用户的 SHELL 限制
[root@ rac01 ~]# vi /etc/security/limits.conf
grid soft nproc 2047
grid hard nproc 16384
grid soft nofile 131072
grid hard nofile 65536
grid soft stack 10240
grid hard stack 32768
oracle soft nproc 131072
oracle hard nproc 131072
oracle soft nofile 131072
oracle hard nofile 65536
oracle hard nofile 131072
oracle soft nofile 131072
3.10 修改内核参数
[root@ rac01 ~]# vim /etc/sysctl.conf
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.shmmni = 4096
kernel.sem = 250 32000 100 128
kernel.shmmax = 4398046511104
kernel.shmall = 1073741824
fs.file-max = 6815744
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.wmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_max = 1048576
fs.aio-max-nr = 1048576
[root@ rac01 ~]# sysctl -p
四: RAC01 服务器完整克隆
克隆RAC02 数据库服务器和 DNS01 服务器
克隆后修改网络和主机名
[root@rac01 rules.d]# pwd
/etc/udev/rules.d
[root@rac01 rules.d]# vim 70-persistent-net.rules
# PCI device 0x8086:0x1004 (e1000)
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:cf:2b:a9", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x8086:0x100e (e1000)
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:2e:b8:a8", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"
# PCI device 0x8086:0x1004 (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:63:ec:6e", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x8086:0x1004 (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:b5:91:c8", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"
[root@rac01 rules.d]# cd /etc/sysconfig/network-scripts/
[root@rac01 network-scripts]# vim ifcfg-eth0
DEVICE="eth0"
#BOOTPROTO="dhcp"
BOOTPROTO="static"
#HWADDR="08:00:27:CF:2B:A9"
HWADDR="08:00:27:63:ec:6e"
NM_CONTROLLED="yes"
>
TYPE="Ethernet"
UUID="b06e0d1d-dac4-4b59-9936-12f972569376"
IPADDR="192.168.31.200"
#PREFIX="24"
NETMASK="255.255.255.0"
GATWAY="192.168.31.1"
DNS1="8.8.8.8"
[root@rac01 network-scripts]# vim ifcfg-eth2
DEVICE="eth2"
#BOOTPROTO="dhcp"
BOOTPROTO="static"
#HWADDR="08:00:27:2E:B8:A8"
HWADDR="08:00:27:b5:91:c8"
NM_CONTROLLED="yes"
>
TYPE="Ethernet"
UUID="58baaab3-0e1b-4243-8b53-c1eb0b10d6d7"
IPADDR="10.10.10.200"
NETMASK="255.255.255.0"
#PREFIX="24"
#GETWAY=10.10.10.1
#DNS1="8.8.8.8"
[root@rac01 ~]# service network restart
更改主机名
[root@rac01 ~]# vim /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=rac02
五:配置DNS
DNS01:
1. 安装 dns, 这里直接利用 yum 安装:
[root@ dns 01 ~]# yum install bind
[root@ dns 01 ~]# yum install bind-chroot
[root@ dns 01 ~]# yum install caching-nameserver
[root@dns01 ~]# cp /etc/named.conf /root
[root@dns01 ~]# vim /etc/named.conf
options {
listen-on port 53 { any; };
listen-on-v6 port 53 { any; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { any; };
recursion yes;
......
[root@dns01 ~]# cp /etc/named.rfc1912.zones /package/
[root@dns01 ~]# vim /etc/named.rfc1912.zones
// 配置正向解析 Zone
zone "cjc.com" IN {
type master;
file "cjc.com.zone";
allow-update { none; };
};
// 配置反向解析 Zone
zone "31.168.192.in-addr.arpa" IN {
type master;
file "chen.com.zone";
allow-update { none; };
};
[root@dns01 ~]# vim /var/named/cjc.com.zone
$TTL 86400
@ IN SOA oracle.cjc.com. root.cjc.com. (
42 ; serial (d.adams)
3H ; refresh
15M ; retry
1W ; expiry
1D) ; minimum
IN NS dns.cjc.com.
dns IN A 192.168.31.90
rac1 IN A 192.168.31.100
rac2 IN A 192.168.31.200
rac-scan IN A 192.168.31.50
rac-scan IN A 192.168.31.60
rac-scan IN A 192.168.31.70
[root@dns01 ~]# vim /var/named/chen.com.zone
$TTL 86400
@ IN SOA oracle.cjc.com. root.cjc.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400) ; Minimum
IN NS dns.cjc.com.
100 IN NS rac1.
200 IN NS rac2.
90 IN PTR dns.cjc.com.
50 IN PTR rac-scan.cjc.com.
60 IN PTR rac-scan.cjc.com.
70 IN PTR rac-scan.cjc.com.
[root@dns01 ~]# chkconfig named on
[root@dns01 ~]# service named restart
[root@dns01 ~]# named-checkconf -z /etc/named.conf
zone localhost.localdomain/IN: loaded serial 0
zone localhost/IN: loaded serial 0
zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 0
zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0
zone 0.in-addr.arpa/IN: loaded serial 0
zone cjc.com/IN: loaded serial 42
zone 31.168.192.in-addr.arpa/IN: loaded serial 1997022700
RAC01 和 RAC0 2 配置 DNS
---rac1:
[root@rac0 1 ~]# vim /etc/resolv.conf
# Generated by NetworkManager
##nameserver 8.8.8.8
domain cjc.com
nameserver 192.168.31.90
options rotate
options timeout:2
options attempts:5
---rac2:
[root@rac02 ~]# vim /etc/resolv.conf
# Generated by NetworkManager
##nameserver 8.8.8.8
domain cjc.com
nameserver 192.168.31.90
options rotate
options timeout:2
options attempts:5
[root@rac02 ~]# nslookup rac-scan.cjc.com
Server: 192.168.31.90
Address: 192.168.31.90#53
Name: rac-scan.cjc.com
Address: 192.168.31.60
Name: rac-scan.cjc.com
Address: 192.168.31.70
Name: rac-scan.cjc.com
Address: 192.168.31.50
六: RAC01 和 RAC0 2 配置
6.1 SSH 互信
SSH 互信
两节点都做 (oracle 和 grid 用户 都执行)
[oracle@ rac01 ~]$ mkdir .ssh/
[oracle@ rac01 ~]$ ssh-keygen -t rsa
[oracle@ rac01 ~]$ ssh-keygen -t dsa
[oracle@ rac02 ~]$ mkdir .ssh/
[oracle@ rac02 ~]$ ssh-keygen -t rsa
[oracle@ rac02 ~]$ ssh-keygen -t dsa
[oracle@ rac0 1 ~]# ssh rac01 cat .ssh/id_rsa.pub >> .ssh/authorized_keys
[oracle@ rac0 1 ~]# ssh rac0 1 cat .ssh/id_dsa.pub >> .ssh/authorized_keys
[oracle@ rac0 1 ~]# ssh rac0 2 cat .ssh/id_rsa.pub >> .ssh/authorized_keys
[oracle@ rac0 1 ~]# ssh rac0 2 cat .ssh/id_dsa.pub >> .ssh/authorized_keys
[oracle@ rac0 1 ~]# scp .ssh/authorized_keys rac 0 2:.ssh/authorized_keys
[oracle@ rac0 1 ~]# chmod 700 .ssh
[oracle@ rac0 1 ~]# chmod 600 .ssh/authorized_keys
[oracle@ rac02 ~]# chmod 700 .ssh
[oracle@ rac02 ~]# chmod 600 .ssh/authorized_keys
验证:grid和oracle用户下分别验证ssh 本机和 另一台服务器不需要输入密码;
七 共享存储设置
共享存储:
rac01:
rac02 :
[root@rac01 ~]# fdisk -l
......
Disk /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: 0x00000000
Disk /dev/sdc: 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: 0x00000000
Disk /dev/sdd: 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: 0x00000000
Disk /dev/sde: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 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: 0x00000000
Disk /dev/sdf: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 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: 0x00000000
Disk /dev/sdg: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 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: 0x00000000
Linux 6:
[root@rac01 rules.d]#
for i in b c d e f g ;
do
echo "KERNEL==\"sd*\", BUS==\"scsi\", PROGRAM==\"/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/\$name\", RESULT==\"`/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/sd$i`\", NAME=\"asm-disk$i\", OWNER=\"grid\", GROUP=\"asmadmin\", MODE=\"0660\"" >> /etc/udev/rules.d/99-oracle-asmdevices.rules
done
[root@rac01 rules.d]# cat 99-oracle-asmdevices.rules
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="1ATA_VBOX_HARDDISK_VBd575ea40-6586892b", NAME="asm-diskb", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="1ATA_VBOX_HARDDISK_VB2d78feb9-fa74d132", NAME="asm-diskc", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="1ATA_VBOX_HARDDISK_VB6589bf92-57571e17", NAME="asm-diskd", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="1ATA_VBOX_HARDDISK_VB968e3906-ab17a31b", NAME="asm-diske", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="1ATA_VBOX_HARDDISK_VB6105e352-9c07285f", NAME="asm-diskf", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="1ATA_VBOX_HARDDISK_VB2dca41c0-f841f6a3", NAME="asm-diskg", OWNER="grid", GROUP="asmadmin", MODE="0660"
[root@rac01 rules.d]# /sbin/start_udev
[root@rac01 rules.d]# ll -rth /dev/asm-disk*
brw-rw---- 1 grid asmadmin 8, 16 May 1 22:50 /dev/asm-diskb
brw-rw---- 1 grid asmadmin 8, 64 May 1 22:50 /dev/asm-diske
brw-rw---- 1 grid asmadmin 8, 32 May 1 22:50 /dev/asm-diskc
brw-rw---- 1 grid asmadmin 8, 48 May 1 22:50 /dev/asm-diskd
brw-rw---- 1 grid asmadmin 8, 80 May 1 22:50 /dev/asm-diskf
brw-rw---- 1 grid asmadmin 8, 96 May 1 22:50 /dev/asm-diskg
[root@rac01 rules.d]# scp 99-oracle-asmdevices.rules rac02:/etc/udev/rules.d/
[root@rac02 ~]# /sbin/start_udev
Starting udev: [ OK ]
[root@rac02 ~]# ll -rth /dev/asm-disk*
brw-rw---- 1 grid asmadmin 8, 80 May 1 22:52 /dev/asm-diskf
brw-rw---- 1 grid asmadmin 8, 64 May 1 22:52 /dev/asm-diske
brw-rw---- 1 grid asmadmin 8, 48 May 1 22:52 /dev/asm-diskd
brw-rw---- 1 grid asmadmin 8, 16 May 1 22:52 /dev/asm-diskb
brw-rw---- 1 grid asmadmin 8, 32 May 1 22:52 /dev/asm-diskc
brw-rw---- 1 grid asmadmin 8, 96 May 1 22:52 /dev/asm-diskg
[root@rac01 rules.d]# fdisk -l
Disk /dev/sda: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 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: 0x0002da66
Device Boot Start End Blocks Id System
/dev/sda1 * 1 26 204800 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 26 287 2097152 82 Linux swap / Solaris
Partition 2 does not end on cylinder boundary.
/dev/sda3 287 6528 50125824 83 Linux
Liux7:
配置99-oracle-asmdevices.rules
[root@rac1 rules.d]#
for i in b c d e f g;
do
echo "KERNEL==\"sd*\", SUBSYSTEM==\"block\", PROGRAM==\"/usr/lib/udev/scsi_id --whitelisted --replace-whitespace --device=/dev/\$name\", RESULT==\"`/usr/lib/udev/scsi_id --whitelisted --replace-whitespace --device=/dev/sd$i`\", SYMLINK+=\"asm-disk$i\", OWNER=\"grid\", GROUP=\"asmadmin\", MODE=\"0660\""
done
KERNEL=="sd*", SUBSYSTEM=="block", PROGRAM=="/usr/lib/udev/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="1ATA_VBOX_HARDDISK_VB6802c4b2-e5de0e82", SYMLINK+="asm-diskb", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", SUBSYSTEM=="block", PROGRAM=="/usr/lib/udev/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="1ATA_VBOX_HARDDISK_VB77c73d38-ccb93aea", SYMLINK+="asm-diskc", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", SUBSYSTEM=="block", PROGRAM=="/usr/lib/udev/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="1ATA_VBOX_HARDDISK_VBb76a04c4-400d9984", SYMLINK+="asm-diskd", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", SUBSYSTEM=="block", PROGRAM=="/usr/lib/udev/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="1ATA_VBOX_HARDDISK_VB7b8111c0-b320bec5", SYMLINK+="asm-diske", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", SUBSYSTEM=="block", PROGRAM=="/usr/lib/udev/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="1ATA_VBOX_HARDDISK_VBe93e4bca-79f3497d", SYMLINK+="asm-diskf", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", SUBSYSTEM=="block", PROGRAM=="/usr/lib/udev/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="1ATA_VBOX_HARDDISK_VBc1ecd61e-01023485", SYMLINK+="asm-diskg", OWNER="grid", GROUP="asmadmin", MODE="0660"
[root@rac1 rules.d]# pwd
/etc/udev/rules.d
[root@rac1 rules.d]# vim 99-oracle-asmdevices.rules
[root@rac1 rules.d]# /sbin/udevadm trigger --type=devices --action=change
[root@rac1 rules.d]# udevadm control --reload-rules
[root@rac1 rules.d]# ll -rth /dev/asm-disk*
lrwxrwxrwx 1 root root 3 Apr 27 21:03 /dev/asm-diskd -> sdd
lrwxrwxrwx 1 root root 3 Apr 27 21:03 /dev/asm-diskb -> sdb
lrwxrwxrwx 1 root root 3 Apr 27 21:03 /dev/asm-diskc -> sdc
lrwxrwxrwx 1 root root 3 Apr 27 21:03 /dev/asm-diskg -> sdg
lrwxrwxrwx 1 root root 3 Apr 27 21:03 /dev/asm-diskf -> sdf
lrwxrwxrwx 1 root root 3 Apr 27 21:03 /dev/asm-diske -> sde
[root@rac1 rules.d]# ll -rth /dev/sd*
brw-rw---- 1 root disk 8, 2 Apr 27 21:03 /dev/sda2
brw-rw---- 1 root disk 8, 1 Apr 27 21:03 /dev/sda1
brw-rw---- 1 root disk 8, 0 Apr 27 21:03 /dev/sda
brw-rw---- 1 grid asmadmin 8, 48 Apr 27 21:03 /dev/sdd
brw-rw---- 1 grid asmadmin 8, 16 Apr 27 21:03 /dev/sdb
brw-rw---- 1 grid asmadmin 8, 32 Apr 27 21:03 /dev/sdc
brw-rw---- 1 grid asmadmin 8, 96 Apr 27 21:03 /dev/sdg
brw-rw---- 1 grid asmadmin 8, 80 Apr 27 21:03 /dev/sdf
brw-rw---- 1 grid asmadmin 8, 64 Apr 27 21:03 /dev/sde
八: 安装GI 前检查
安装包:
[root@rac01 ~]# cd /package/
[root@rac01 package]# ll -rth
total 3.5G
-rw-r--r-- 1 root root 1.1G May 1 23:05 p13390677_112040_Linux-x86-64_2of7.zip
-rw-r--r-- 1 root root 1.3G May 1 23:05 p13390677_112040_Linux-x86-64_1of7.zip
-rw-r--r-- 1 root root 1.2G May 1 23:06 p13390677_112040_Linux-x86-64_3of7.zip
[root@rac01 package]# unzip p13390677_112040_Linux-x86-64_3of7.zip
12c 版本开始安装包需要解压到 grid_home/oracle_home 目录下
[root@rac01 package]# chown grid.oinstall grid/ -R
[root@rac01 package]# xhost +
[grid@rac01 grid]$ vim /home/grid/pre.log
欢迎关注我的微信公众号"IT小Chen",共同学习,共同成长!!!
网站栏目:OracleRAC实施方案详细说明-安装前环境配置03
新闻来源:http://pwwzsj.com/article/geeicd.html