Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Oracle RAC implementation details-pre-installation environment configuration 03

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Oracle RAC implementation details-pre-installation environment configuration 03

One: install the vbox virtual machine

Two: install the operating system

Three: RAC01 database server configuration

3.1 configure the network

3.2 system package

3.3 hosts configuration

3.4 create user groups

3.5 create a directory and authorize

3.6 set environment variables grid and oracle user environment variables

3.7 turn off SELINUX

3.8 turn off the firewall

3.9 set SHELL limits for Oracle and Grid users

3.10 modify kernel parameters

Four: complete cloning of RAC01 server

4.1 Clone the RAC02 database server

4.2 Clone the DNS01 server

Five: configure DNS

Six: SSH mutual trust

Seven: shared storage settings

Eight: check before installing GI

One: install the vbox virtual machine

Oracle VM VirtualBox 6.1.6

Two: install the operating system

Three: RAC01 database server configuration

3.1 configure the network

[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 system package

Configure YUM

[root@ rac01 ~] # mount | grep OL

/ dev/sr1 on / media/OL6.3 x86 type iso9660 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 configuration

[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 create user groups

/ 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

Starting with 12C, you also need to configure the following user groups

/ 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 create a directory and authorize

[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 set environment variables grid and oracle user environment variables

[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 turn off SELINUX

[root@ rac01 ~] # vim / etc/selinux/config

# SELINUX=enforcing

SELINUX=disabled

3.8 turn off the firewall

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 set SHELL limits for Oracle and Grid users

[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 modify kernel parameters

[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

Four: complete cloning of RAC01 server

Clone RAC02 database server and DNS01 server

Modify network and hostname after cloning

[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

Change the hostname

[root@rac01 ~] # vim / etc/sysconfig/network

NETWORKING=yes

HOSTNAME=rac02

Five: configure DNS

DNS01:

1. To install dns, use the yum installation directly here:

[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

/ / configure forward parsing Zone

Zone "cjc.com" IN {

Type master

File "cjc.com.zone"

Allow-update {none;}

}

/ / configure reverse resolution of 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 and RAC0 2 configure 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

Six: RAC01 and RAC0 2 configuration

6.1 SSH mutual trust

SSH mutual trust

Do both nodes (both oracle and grid users)

[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@ rac01 ~] # 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 rac0 2:.ssh/authorized_keys

[oracle@ rac0 1 ~] # chmod 700.ssh

[oracle@ rac0 1 ~] # chmod 6000.ssh / authorized_keys

[oracle@ rac02 ~] # chmod 700.ssh

[oracle@ rac02 ~] # chmod 6000.ssh / authorized_keys

Authentication: grid and oracle users do not need to enter a password to verify ssh native and another server, respectively.

Seven shared storage settings

Shared storage:

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 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 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 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 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 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 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 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:

Configure 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

Eight: check before installing GI

Install the package:

[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

The installation package for version 12c needs to be unzipped to the grid_home/oracle_home directory

[root@rac01 package] # chown grid.oinstall grid/-R

[root@rac01 package] # xhost +

[grid@rac01 grid] $vim / home/grid/pre.log

Welcome to follow my Wechat official account "IT Little Chen" and learn and grow together!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report