📜 ⬆️ ⬇️

Part 2. How to install Oracle Database 11g Release 2 RAC on Linux using VirtualBox - raising a cluster

Everything goes to the fact that I still run Oracle Real Application Clusters on my laptop.

I continue to suffer and put on him absolutely no lifting Enterprise solution - RAC.
I also wanted to check the fault tolerance of this solution under load.
After all this works of course ...
After the installation is completed, I plan to disable the Oracle node that is working under load — I will use the popular in-home method “power off”.

And since my good friend at Oracle, is just developing a system for recovering and saving data in the event of a fall, I expect that next week we will have a serious conversation with him ...
')
Part 1 (first step to clustering)

Part 2 of the translation, in my opinion, is not too detailed article.

Official source: lab128.com
Thanks to the author for the work done.

PS Let's see if it all starts?

Part 1
Oracle Clusterware installation.
Install the necessary packages.


All actions in this section should be performed by the superuser.

Starting automatic configuration, installs the package “oracle-rdbms-server-11gR2-preinstall”. This package will perform all the necessary installations, including changing the kernel, the necessary parameters and create a Linux Oracle Oracle account:

# yum install oracle-rdbms-server-11gR2-preinstall

Note.
You may not be able to copy and paste this command. So you have to enter it manually. We are going to fix it by installing the Guest OS add-on. For now, just enter these commands manually.

Install ASMLib:

# yum install oracleasm
# yum install oracleasm-support

Configure ASMLib by running this command and answer the questions as in the example below:

# 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 []: oracle

Default group to own the driver interface []: oinstall
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: done
#


, . . , - . , , .

, VM, root. Devices | Install Guest Additions. DVD Autorun :
image

"OK", "Run", .

.
"kernel-uek-devel" "yum". . . : "yum install gcc". Guest Additions, VBOXADDITIONS DVD "Open Autorun Prompt" .


.
VirtualBox!

2
Oracle Clusterware .
.

, Oracle .
mkdir -p /u01
chown -R oracle:oinstall /u01
chmod -R 775 /u01/


Oracle dba vboxsf . vboxsf VirtualBox Oracle -:
# usermod -G dba,vboxsf oracle

Oracle "oracle":
# 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.
#

Secure Linux "/etc/selinux/config" , , SELINUX :
SELINUX=disabled

NTP, , . , Oracle Cluster Service (ctssd) RAC . NTP.
# service ntpd stop
Shutting down ntpd: [FAILED]
# chkconfig ntpd off
# mv /etc/ntp.conf /etc/ntp.conf.orig
# rm /var/run/ntpd.pid

YAM :
# yum clean all

, 2.8 GB:
# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg_rac1-lv_root
14493616 2865472 10891888 21% /
tmpfs 1027556 272 1027284 1% /dev/shm
/dev/sda1 495844 77056 393188 17% /boot
#


.

TCP , . , , .
, , 192.168.56.0 VirtualBox , - .
VirtualBox DHCP- , 100-254. 100 IP.
: Main menu | File | Preferences | Network, Host-only . RAC .

"/etc/hosts", :
# Private
192.168.10.1 rac1-priv.localdomain rac1-priv
192.168.10.2 rac2-priv.localdomain rac2-priv

# Public
192.168.56.71 rac1.localdomain rac1
192.168.56.72 rac2.localdomain rac2

# Virtual
192.168.56.81 rac1-vip.localdomain rac1-vip
192.168.56.82 rac2-vip.localdomain rac2-vip

# SCAN
192.168.56.91 rac-scan.localdomain rac-scan
192.168.56.92 rac-scan.localdomain rac-scan
192.168.56.93 rac-scan.localdomain rac-scan

.
SCAN hosts. DNS , 3 , IP-. , hosts . DNS, SCAN-.


Network Connections: Linux desktop Main menu | System | Preferences | Network Connections. "System eth0" , , "Edit":
image

, "Connect automatically" . "IPv6 Settings", , Method "Ignore". "Settings IPv4" , Method "Manual", "Add" Address: 192.168.56.71, Netmask: 255.255.255.0, Gateway: 0.0.0.0. "Apply", :
image

Network Connections "System eth1" , , "Edit". "Connect automatically". "IPv6 Settings", , "Ignore". "Settings IPv4" , Method "Manual", "Add" Address: 192.168.10.1, Netmask: 255.255.255.0, Gateway: 0.0.0.0. "Apply", :
image

: Linux Main menu | System | Administration | Firewall. "Disable", "Apply"
image

Oracle
Oracle:
1. VM VM;
2. -, VM ;

, , VM . . VirtualBox Shared Folders.

, Oracle , "grid" "database" . "C:\TEMP\oracle_sw" .
C:\TEMP\oracle_sw>dir -l
total 0
drwx------+ 1 Domain Users 0 Aug 5 18:10 database
drwx------+ 1 Domain Users 0 Aug 5 03:08 grid

. VirtualBox "Shared Folders" . , "plus". Oracle, "Read-only" "Auto-mount":
image

"OK", . Shared Folders :
image

Oracle . "/media/sf_oracle_sw" - VirtualBox . , VirtualBox ​​ "sf_" . "ls" :
$ cd /media/sf_oracle_sw
$ ls
database grid
$

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 []: oracle

Default group to own the driver interface []: oinstall
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: done
#


, . . , - . , , .

, VM, root. Devices | Install Guest Additions. DVD Autorun :
image

"OK", "Run", .

.
"kernel-uek-devel" "yum". . . : "yum install gcc". Guest Additions, VBOXADDITIONS DVD "Open Autorun Prompt" .


.
VirtualBox!

2
Oracle Clusterware .
.

, Oracle .
mkdir -p /u01
chown -R oracle:oinstall /u01
chmod -R 775 /u01/


Oracle dba vboxsf . vboxsf VirtualBox Oracle -:
# usermod -G dba,vboxsf oracle

Oracle "oracle":
# 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.
#

Secure Linux "/etc/selinux/config" , , SELINUX :
SELINUX=disabled

NTP, , . , Oracle Cluster Service (ctssd) RAC . NTP.
# service ntpd stop
Shutting down ntpd: [FAILED]
# chkconfig ntpd off
# mv /etc/ntp.conf /etc/ntp.conf.orig
# rm /var/run/ntpd.pid

YAM :
# yum clean all

, 2.8 GB:
# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg_rac1-lv_root
14493616 2865472 10891888 21% /
tmpfs 1027556 272 1027284 1% /dev/shm
/dev/sda1 495844 77056 393188 17% /boot
#


.

TCP , . , , .
, , 192.168.56.0 VirtualBox , - .
VirtualBox DHCP- , 100-254. 100 IP.
: Main menu | File | Preferences | Network, Host-only . RAC .

"/etc/hosts", :
# Private
192.168.10.1 rac1-priv.localdomain rac1-priv
192.168.10.2 rac2-priv.localdomain rac2-priv

# Public
192.168.56.71 rac1.localdomain rac1
192.168.56.72 rac2.localdomain rac2

# Virtual
192.168.56.81 rac1-vip.localdomain rac1-vip
192.168.56.82 rac2-vip.localdomain rac2-vip

# SCAN
192.168.56.91 rac-scan.localdomain rac-scan
192.168.56.92 rac-scan.localdomain rac-scan
192.168.56.93 rac-scan.localdomain rac-scan

.
SCAN hosts. DNS , 3 , IP-. , hosts . DNS, SCAN-.


Network Connections: Linux desktop Main menu | System | Preferences | Network Connections. "System eth0" , , "Edit":
image

, "Connect automatically" . "IPv6 Settings", , Method "Ignore". "Settings IPv4" , Method "Manual", "Add" Address: 192.168.56.71, Netmask: 255.255.255.0, Gateway: 0.0.0.0. "Apply", :
image

Network Connections "System eth1" , , "Edit". "Connect automatically". "IPv6 Settings", , "Ignore". "Settings IPv4" , Method "Manual", "Add" Address: 192.168.10.1, Netmask: 255.255.255.0, Gateway: 0.0.0.0. "Apply", :
image

: Linux Main menu | System | Administration | Firewall. "Disable", "Apply"
image

Oracle
Oracle:
1. VM VM;
2. -, VM ;

, , VM . . VirtualBox Shared Folders.

, Oracle , "grid" "database" . "C:\TEMP\oracle_sw" .
C:\TEMP\oracle_sw>dir -l
total 0
drwx------+ 1 Domain Users 0 Aug 5 18:10 database
drwx------+ 1 Domain Users 0 Aug 5 03:08 grid

. VirtualBox "Shared Folders" . , "plus". Oracle, "Read-only" "Auto-mount":
image

"OK", . Shared Folders :
image

Oracle . "/media/sf_oracle_sw" - VirtualBox . , VirtualBox ​​ "sf_" . "ls" :
$ cd /media/sf_oracle_sw
$ ls
database grid
$

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 []: oracle

Default group to own the driver interface []: oinstall
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: done
#


, . . , - . , , .

, VM, root. Devices | Install Guest Additions. DVD Autorun :
image

"OK", "Run", .

.
"kernel-uek-devel" "yum". . . : "yum install gcc". Guest Additions, VBOXADDITIONS DVD "Open Autorun Prompt" .


.
VirtualBox!

2
Oracle Clusterware .
.

, Oracle .
mkdir -p /u01
chown -R oracle:oinstall /u01
chmod -R 775 /u01/


Oracle dba vboxsf . vboxsf VirtualBox Oracle -:
# usermod -G dba,vboxsf oracle

Oracle "oracle":
# 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.
#

Secure Linux "/etc/selinux/config" , , SELINUX :
SELINUX=disabled

NTP, , . , Oracle Cluster Service (ctssd) RAC . NTP.
# service ntpd stop
Shutting down ntpd: [FAILED]
# chkconfig ntpd off
# mv /etc/ntp.conf /etc/ntp.conf.orig
# rm /var/run/ntpd.pid

YAM :
# yum clean all

, 2.8 GB:
# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg_rac1-lv_root
14493616 2865472 10891888 21% /
tmpfs 1027556 272 1027284 1% /dev/shm
/dev/sda1 495844 77056 393188 17% /boot
#


.

TCP , . , , .
, , 192.168.56.0 VirtualBox , - .
VirtualBox DHCP- , 100-254. 100 IP.
: Main menu | File | Preferences | Network, Host-only . RAC .

"/etc/hosts", :
# Private
192.168.10.1 rac1-priv.localdomain rac1-priv
192.168.10.2 rac2-priv.localdomain rac2-priv

# Public
192.168.56.71 rac1.localdomain rac1
192.168.56.72 rac2.localdomain rac2

# Virtual
192.168.56.81 rac1-vip.localdomain rac1-vip
192.168.56.82 rac2-vip.localdomain rac2-vip

# SCAN
192.168.56.91 rac-scan.localdomain rac-scan
192.168.56.92 rac-scan.localdomain rac-scan
192.168.56.93 rac-scan.localdomain rac-scan

.
SCAN hosts. DNS , 3 , IP-. , hosts . DNS, SCAN-.


Network Connections: Linux desktop Main menu | System | Preferences | Network Connections. "System eth0" , , "Edit":
image

, "Connect automatically" . "IPv6 Settings", , Method "Ignore". "Settings IPv4" , Method "Manual", "Add" Address: 192.168.56.71, Netmask: 255.255.255.0, Gateway: 0.0.0.0. "Apply", :
image

Network Connections "System eth1" , , "Edit". "Connect automatically". "IPv6 Settings", , "Ignore". "Settings IPv4" , Method "Manual", "Add" Address: 192.168.10.1, Netmask: 255.255.255.0, Gateway: 0.0.0.0. "Apply", :
image

: Linux Main menu | System | Administration | Firewall. "Disable", "Apply"
image

Oracle
Oracle:
1. VM VM;
2. -, VM ;

, , VM . . VirtualBox Shared Folders.

, Oracle , "grid" "database" . "C:\TEMP\oracle_sw" .
C:\TEMP\oracle_sw>dir -l
total 0
drwx------+ 1 Domain Users 0 Aug 5 18:10 database
drwx------+ 1 Domain Users 0 Aug 5 03:08 grid

. VirtualBox "Shared Folders" . , "plus". Oracle, "Read-only" "Auto-mount":
image

"OK", . Shared Folders :
image

Oracle . "/media/sf_oracle_sw" - VirtualBox . , VirtualBox ​​ "sf_" . "ls" :
$ cd /media/sf_oracle_sw
$ ls
database grid
$

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 []: oracle

Default group to own the driver interface []: oinstall
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: done
#


, . . , - . , , .

, VM, root. Devices | Install Guest Additions. DVD Autorun :
image

"OK", "Run", .

.
"kernel-uek-devel" "yum". . . : "yum install gcc". Guest Additions, VBOXADDITIONS DVD "Open Autorun Prompt" .


.
VirtualBox!

2
Oracle Clusterware .
.

, Oracle .
mkdir -p /u01
chown -R oracle:oinstall /u01
chmod -R 775 /u01/


Oracle dba vboxsf . vboxsf VirtualBox Oracle -:
# usermod -G dba,vboxsf oracle

Oracle "oracle":
# 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.
#

Secure Linux "/etc/selinux/config" , , SELINUX :
SELINUX=disabled

NTP, , . , Oracle Cluster Service (ctssd) RAC . NTP.
# service ntpd stop
Shutting down ntpd: [FAILED]
# chkconfig ntpd off
# mv /etc/ntp.conf /etc/ntp.conf.orig
# rm /var/run/ntpd.pid

YAM :
# yum clean all

, 2.8 GB:
# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg_rac1-lv_root
14493616 2865472 10891888 21% /
tmpfs 1027556 272 1027284 1% /dev/shm
/dev/sda1 495844 77056 393188 17% /boot
#


.

TCP , . , , .
, , 192.168.56.0 VirtualBox , - .
VirtualBox DHCP- , 100-254. 100 IP.
: Main menu | File | Preferences | Network, Host-only . RAC .

"/etc/hosts", :
# Private
192.168.10.1 rac1-priv.localdomain rac1-priv
192.168.10.2 rac2-priv.localdomain rac2-priv

# Public
192.168.56.71 rac1.localdomain rac1
192.168.56.72 rac2.localdomain rac2

# Virtual
192.168.56.81 rac1-vip.localdomain rac1-vip
192.168.56.82 rac2-vip.localdomain rac2-vip

# SCAN
192.168.56.91 rac-scan.localdomain rac-scan
192.168.56.92 rac-scan.localdomain rac-scan
192.168.56.93 rac-scan.localdomain rac-scan

.
SCAN hosts. DNS , 3 , IP-. , hosts . DNS, SCAN-.


Network Connections: Linux desktop Main menu | System | Preferences | Network Connections. "System eth0" , , "Edit":
image

, "Connect automatically" . "IPv6 Settings", , Method "Ignore". "Settings IPv4" , Method "Manual", "Add" Address: 192.168.56.71, Netmask: 255.255.255.0, Gateway: 0.0.0.0. "Apply", :
image

Network Connections "System eth1" , , "Edit". "Connect automatically". "IPv6 Settings", , "Ignore". "Settings IPv4" , Method "Manual", "Add" Address: 192.168.10.1, Netmask: 255.255.255.0, Gateway: 0.0.0.0. "Apply", :
image

: Linux Main menu | System | Administration | Firewall. "Disable", "Apply"
image

Oracle
Oracle:
1. VM VM;
2. -, VM ;

, , VM . . VirtualBox Shared Folders.

, Oracle , "grid" "database" . "C:\TEMP\oracle_sw" .
C:\TEMP\oracle_sw>dir -l
total 0
drwx------+ 1 Domain Users 0 Aug 5 18:10 database
drwx------+ 1 Domain Users 0 Aug 5 03:08 grid

. VirtualBox "Shared Folders" . , "plus". Oracle, "Read-only" "Auto-mount":
image

"OK", . Shared Folders :
image

Oracle . "/media/sf_oracle_sw" - VirtualBox . , VirtualBox ​​ "sf_" . "ls" :
$ cd /media/sf_oracle_sw
$ ls
database grid
$

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 []: oracle

Default group to own the driver interface []: oinstall
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: done
#


, . . , - . , , .

, VM, root. Devices | Install Guest Additions. DVD Autorun :
image

"OK", "Run", .

.
"kernel-uek-devel" "yum". . . : "yum install gcc". Guest Additions, VBOXADDITIONS DVD "Open Autorun Prompt" .


.
VirtualBox!

2
Oracle Clusterware .
.

, Oracle .
mkdir -p /u01
chown -R oracle:oinstall /u01
chmod -R 775 /u01/


Oracle dba vboxsf . vboxsf VirtualBox Oracle -:
# usermod -G dba,vboxsf oracle

Oracle "oracle":
# 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.
#

Secure Linux "/etc/selinux/config" , , SELINUX :
SELINUX=disabled

NTP, , . , Oracle Cluster Service (ctssd) RAC . NTP.
# service ntpd stop
Shutting down ntpd: [FAILED]
# chkconfig ntpd off
# mv /etc/ntp.conf /etc/ntp.conf.orig
# rm /var/run/ntpd.pid

YAM :
# yum clean all

, 2.8 GB:
# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg_rac1-lv_root
14493616 2865472 10891888 21% /
tmpfs 1027556 272 1027284 1% /dev/shm
/dev/sda1 495844 77056 393188 17% /boot
#


.

TCP , . , , .
, , 192.168.56.0 VirtualBox , - .
VirtualBox DHCP- , 100-254. 100 IP.
: Main menu | File | Preferences | Network, Host-only . RAC .

"/etc/hosts", :
# Private
192.168.10.1 rac1-priv.localdomain rac1-priv
192.168.10.2 rac2-priv.localdomain rac2-priv

# Public
192.168.56.71 rac1.localdomain rac1
192.168.56.72 rac2.localdomain rac2

# Virtual
192.168.56.81 rac1-vip.localdomain rac1-vip
192.168.56.82 rac2-vip.localdomain rac2-vip

# SCAN
192.168.56.91 rac-scan.localdomain rac-scan
192.168.56.92 rac-scan.localdomain rac-scan
192.168.56.93 rac-scan.localdomain rac-scan

.
SCAN hosts. DNS , 3 , IP-. , hosts . DNS, SCAN-.


Network Connections: Linux desktop Main menu | System | Preferences | Network Connections. "System eth0" , , "Edit":
image

, "Connect automatically" . "IPv6 Settings", , Method "Ignore". "Settings IPv4" , Method "Manual", "Add" Address: 192.168.56.71, Netmask: 255.255.255.0, Gateway: 0.0.0.0. "Apply", :
image

Network Connections "System eth1" , , "Edit". "Connect automatically". "IPv6 Settings", , "Ignore". "Settings IPv4" , Method "Manual", "Add" Address: 192.168.10.1, Netmask: 255.255.255.0, Gateway: 0.0.0.0. "Apply", :
image

: Linux Main menu | System | Administration | Firewall. "Disable", "Apply"
image

Oracle
Oracle:
1. VM VM;
2. -, VM ;

, , VM . . VirtualBox Shared Folders.

, Oracle , "grid" "database" . "C:\TEMP\oracle_sw" .
C:\TEMP\oracle_sw>dir -l
total 0
drwx------+ 1 Domain Users 0 Aug 5 18:10 database
drwx------+ 1 Domain Users 0 Aug 5 03:08 grid

. VirtualBox "Shared Folders" . , "plus". Oracle, "Read-only" "Auto-mount":
image

"OK", . Shared Folders :
image

Oracle . "/media/sf_oracle_sw" - VirtualBox . , VirtualBox ​​ "sf_" . "ls" :
$ cd /media/sf_oracle_sw
$ ls
database grid
$

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 []: oracle

Default group to own the driver interface []: oinstall
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: done
#


, . . , - . , , .

, VM, root. Devices | Install Guest Additions. DVD Autorun :
image

"OK", "Run", .

.
"kernel-uek-devel" "yum". . . : "yum install gcc". Guest Additions, VBOXADDITIONS DVD "Open Autorun Prompt" .


.
VirtualBox!

2
Oracle Clusterware .
.

, Oracle .
mkdir -p /u01
chown -R oracle:oinstall /u01
chmod -R 775 /u01/


Oracle dba vboxsf . vboxsf VirtualBox Oracle -:
# usermod -G dba,vboxsf oracle

Oracle "oracle":
# 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.
#

Secure Linux "/etc/selinux/config" , , SELINUX :
SELINUX=disabled

NTP, , . , Oracle Cluster Service (ctssd) RAC . NTP.
# service ntpd stop
Shutting down ntpd: [FAILED]
# chkconfig ntpd off
# mv /etc/ntp.conf /etc/ntp.conf.orig
# rm /var/run/ntpd.pid

YAM :
# yum clean all

, 2.8 GB:
# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg_rac1-lv_root
14493616 2865472 10891888 21% /
tmpfs 1027556 272 1027284 1% /dev/shm
/dev/sda1 495844 77056 393188 17% /boot
#


.

TCP , . , , .
, , 192.168.56.0 VirtualBox , - .
VirtualBox DHCP- , 100-254. 100 IP.
: Main menu | File | Preferences | Network, Host-only . RAC .

"/etc/hosts", :
# Private
192.168.10.1 rac1-priv.localdomain rac1-priv
192.168.10.2 rac2-priv.localdomain rac2-priv

# Public
192.168.56.71 rac1.localdomain rac1
192.168.56.72 rac2.localdomain rac2

# Virtual
192.168.56.81 rac1-vip.localdomain rac1-vip
192.168.56.82 rac2-vip.localdomain rac2-vip

# SCAN
192.168.56.91 rac-scan.localdomain rac-scan
192.168.56.92 rac-scan.localdomain rac-scan
192.168.56.93 rac-scan.localdomain rac-scan

.
SCAN hosts. DNS , 3 , IP-. , hosts . DNS, SCAN-.


Network Connections: Linux desktop Main menu | System | Preferences | Network Connections. "System eth0" , , "Edit":
image

, "Connect automatically" . "IPv6 Settings", , Method "Ignore". "Settings IPv4" , Method "Manual", "Add" Address: 192.168.56.71, Netmask: 255.255.255.0, Gateway: 0.0.0.0. "Apply", :
image

Network Connections "System eth1" , , "Edit". "Connect automatically". "IPv6 Settings", , "Ignore". "Settings IPv4" , Method "Manual", "Add" Address: 192.168.10.1, Netmask: 255.255.255.0, Gateway: 0.0.0.0. "Apply", :
image

: Linux Main menu | System | Administration | Firewall. "Disable", "Apply"
image

Oracle
Oracle:
1. VM VM;
2. -, VM ;

, , VM . . VirtualBox Shared Folders.

, Oracle , "grid" "database" . "C:\TEMP\oracle_sw" .
C:\TEMP\oracle_sw>dir -l
total 0
drwx------+ 1 Domain Users 0 Aug 5 18:10 database
drwx------+ 1 Domain Users 0 Aug 5 03:08 grid

. VirtualBox "Shared Folders" . , "plus". Oracle, "Read-only" "Auto-mount":
image

"OK", . Shared Folders :
image

Oracle . "/media/sf_oracle_sw" - VirtualBox . , VirtualBox ​​ "sf_" . "ls" :
$ cd /media/sf_oracle_sw
$ ls
database grid
$

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 []: oracle

Default group to own the driver interface []: oinstall
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: done
#


, . . , - . , , .

, VM, root. Devices | Install Guest Additions. DVD Autorun :
image

"OK", "Run", .

.
"kernel-uek-devel" "yum". . . : "yum install gcc". Guest Additions, VBOXADDITIONS DVD "Open Autorun Prompt" .


.
VirtualBox!

2
Oracle Clusterware .
.

, Oracle .
mkdir -p /u01
chown -R oracle:oinstall /u01
chmod -R 775 /u01/


Oracle dba vboxsf . vboxsf VirtualBox Oracle -:
# usermod -G dba,vboxsf oracle

Oracle "oracle":
# 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.
#

Secure Linux "/etc/selinux/config" , , SELINUX :
SELINUX=disabled

NTP, , . , Oracle Cluster Service (ctssd) RAC . NTP.
# service ntpd stop
Shutting down ntpd: [FAILED]
# chkconfig ntpd off
# mv /etc/ntp.conf /etc/ntp.conf.orig
# rm /var/run/ntpd.pid

YAM :
# yum clean all

, 2.8 GB:
# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg_rac1-lv_root
14493616 2865472 10891888 21% /
tmpfs 1027556 272 1027284 1% /dev/shm
/dev/sda1 495844 77056 393188 17% /boot
#


.

TCP , . , , .
, , 192.168.56.0 VirtualBox , - .
VirtualBox DHCP- , 100-254. 100 IP.
: Main menu | File | Preferences | Network, Host-only . RAC .

"/etc/hosts", :
# Private
192.168.10.1 rac1-priv.localdomain rac1-priv
192.168.10.2 rac2-priv.localdomain rac2-priv

# Public
192.168.56.71 rac1.localdomain rac1
192.168.56.72 rac2.localdomain rac2

# Virtual
192.168.56.81 rac1-vip.localdomain rac1-vip
192.168.56.82 rac2-vip.localdomain rac2-vip

# SCAN
192.168.56.91 rac-scan.localdomain rac-scan
192.168.56.92 rac-scan.localdomain rac-scan
192.168.56.93 rac-scan.localdomain rac-scan

.
SCAN hosts. DNS , 3 , IP-. , hosts . DNS, SCAN-.


Network Connections: Linux desktop Main menu | System | Preferences | Network Connections. "System eth0" , , "Edit":
image

, "Connect automatically" . "IPv6 Settings", , Method "Ignore". "Settings IPv4" , Method "Manual", "Add" Address: 192.168.56.71, Netmask: 255.255.255.0, Gateway: 0.0.0.0. "Apply", :
image

Network Connections "System eth1" , , "Edit". "Connect automatically". "IPv6 Settings", , "Ignore". "Settings IPv4" , Method "Manual", "Add" Address: 192.168.10.1, Netmask: 255.255.255.0, Gateway: 0.0.0.0. "Apply", :
image

: Linux Main menu | System | Administration | Firewall. "Disable", "Apply"
image

Oracle
Oracle:
1. VM VM;
2. -, VM ;

, , VM . . VirtualBox Shared Folders.

, Oracle , "grid" "database" . "C:\TEMP\oracle_sw" .
C:\TEMP\oracle_sw>dir -l
total 0
drwx------+ 1 Domain Users 0 Aug 5 18:10 database
drwx------+ 1 Domain Users 0 Aug 5 03:08 grid

. VirtualBox "Shared Folders" . , "plus". Oracle, "Read-only" "Auto-mount":
image

"OK", . Shared Folders :
image

Oracle . "/media/sf_oracle_sw" - VirtualBox . , VirtualBox ​​ "sf_" . "ls" :
$ cd /media/sf_oracle_sw
$ ls
database grid
$

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 []: oracle

Default group to own the driver interface []: oinstall
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: done
#


, . . , - . , , .

, VM, root. Devices | Install Guest Additions. DVD Autorun :
image

"OK", "Run", .

.
"kernel-uek-devel" "yum". . . : "yum install gcc". Guest Additions, VBOXADDITIONS DVD "Open Autorun Prompt" .


.
VirtualBox!

2
Oracle Clusterware .
.

, Oracle .
mkdir -p /u01
chown -R oracle:oinstall /u01
chmod -R 775 /u01/


Oracle dba vboxsf . vboxsf VirtualBox Oracle -:
# usermod -G dba,vboxsf oracle

Oracle "oracle":
# 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.
#

Secure Linux "/etc/selinux/config" , , SELINUX :
SELINUX=disabled

NTP, , . , Oracle Cluster Service (ctssd) RAC . NTP.
# service ntpd stop
Shutting down ntpd: [FAILED]
# chkconfig ntpd off
# mv /etc/ntp.conf /etc/ntp.conf.orig
# rm /var/run/ntpd.pid

YAM :
# yum clean all

, 2.8 GB:
# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg_rac1-lv_root
14493616 2865472 10891888 21% /
tmpfs 1027556 272 1027284 1% /dev/shm
/dev/sda1 495844 77056 393188 17% /boot
#


.

TCP , . , , .
, , 192.168.56.0 VirtualBox , - .
VirtualBox DHCP- , 100-254. 100 IP.
: Main menu | File | Preferences | Network, Host-only . RAC .

"/etc/hosts", :
# Private
192.168.10.1 rac1-priv.localdomain rac1-priv
192.168.10.2 rac2-priv.localdomain rac2-priv

# Public
192.168.56.71 rac1.localdomain rac1
192.168.56.72 rac2.localdomain rac2

# Virtual
192.168.56.81 rac1-vip.localdomain rac1-vip
192.168.56.82 rac2-vip.localdomain rac2-vip

# SCAN
192.168.56.91 rac-scan.localdomain rac-scan
192.168.56.92 rac-scan.localdomain rac-scan
192.168.56.93 rac-scan.localdomain rac-scan

.
SCAN hosts. DNS , 3 , IP-. , hosts . DNS, SCAN-.


Network Connections: Linux desktop Main menu | System | Preferences | Network Connections. "System eth0" , , "Edit":
image

, "Connect automatically" . "IPv6 Settings", , Method "Ignore". "Settings IPv4" , Method "Manual", "Add" Address: 192.168.56.71, Netmask: 255.255.255.0, Gateway: 0.0.0.0. "Apply", :
image

Network Connections "System eth1" , , "Edit". "Connect automatically". "IPv6 Settings", , "Ignore". "Settings IPv4" , Method "Manual", "Add" Address: 192.168.10.1, Netmask: 255.255.255.0, Gateway: 0.0.0.0. "Apply", :
image

: Linux Main menu | System | Administration | Firewall. "Disable", "Apply"
image

Oracle
Oracle:
1. VM VM;
2. -, VM ;

, , VM . . VirtualBox Shared Folders.

, Oracle , "grid" "database" . "C:\TEMP\oracle_sw" .
C:\TEMP\oracle_sw>dir -l
total 0
drwx------+ 1 Domain Users 0 Aug 5 18:10 database
drwx------+ 1 Domain Users 0 Aug 5 03:08 grid

. VirtualBox "Shared Folders" . , "plus". Oracle, "Read-only" "Auto-mount":
image

"OK", . Shared Folders :
image

Oracle . "/media/sf_oracle_sw" - VirtualBox . , VirtualBox ​​ "sf_" . "ls" :
$ cd /media/sf_oracle_sw
$ ls
database grid
$

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 []: oracle

Default group to own the driver interface []: oinstall
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: done
#


, . . , - . , , .

, VM, root. Devices | Install Guest Additions. DVD Autorun :
image

"OK", "Run", .

.
"kernel-uek-devel" "yum". . . : "yum install gcc". Guest Additions, VBOXADDITIONS DVD "Open Autorun Prompt" .


.
VirtualBox!

2
Oracle Clusterware .
.

, Oracle .
mkdir -p /u01
chown -R oracle:oinstall /u01
chmod -R 775 /u01/


Oracle dba vboxsf . vboxsf VirtualBox Oracle -:
# usermod -G dba,vboxsf oracle

Oracle "oracle":
# 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.
#

Secure Linux "/etc/selinux/config" , , SELINUX :
SELINUX=disabled

NTP, , . , Oracle Cluster Service (ctssd) RAC . NTP.
# service ntpd stop
Shutting down ntpd: [FAILED]
# chkconfig ntpd off
# mv /etc/ntp.conf /etc/ntp.conf.orig
# rm /var/run/ntpd.pid

YAM :
# yum clean all

, 2.8 GB:
# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg_rac1-lv_root
14493616 2865472 10891888 21% /
tmpfs 1027556 272 1027284 1% /dev/shm
/dev/sda1 495844 77056 393188 17% /boot
#


.

TCP , . , , .
, , 192.168.56.0 VirtualBox , - .
VirtualBox DHCP- , 100-254. 100 IP.
: Main menu | File | Preferences | Network, Host-only . RAC .

"/etc/hosts", :
# Private
192.168.10.1 rac1-priv.localdomain rac1-priv
192.168.10.2 rac2-priv.localdomain rac2-priv

# Public
192.168.56.71 rac1.localdomain rac1
192.168.56.72 rac2.localdomain rac2

# Virtual
192.168.56.81 rac1-vip.localdomain rac1-vip
192.168.56.82 rac2-vip.localdomain rac2-vip

# SCAN
192.168.56.91 rac-scan.localdomain rac-scan
192.168.56.92 rac-scan.localdomain rac-scan
192.168.56.93 rac-scan.localdomain rac-scan

.
SCAN hosts. DNS , 3 , IP-. , hosts . DNS, SCAN-.


Network Connections: Linux desktop Main menu | System | Preferences | Network Connections. "System eth0" , , "Edit":
image

, "Connect automatically" . "IPv6 Settings", , Method "Ignore". "Settings IPv4" , Method "Manual", "Add" Address: 192.168.56.71, Netmask: 255.255.255.0, Gateway: 0.0.0.0. "Apply", :
image

Network Connections "System eth1" , , "Edit". "Connect automatically". "IPv6 Settings", , "Ignore". "Settings IPv4" , Method "Manual", "Add" Address: 192.168.10.1, Netmask: 255.255.255.0, Gateway: 0.0.0.0. "Apply", :
image

: Linux Main menu | System | Administration | Firewall. "Disable", "Apply"
image

Oracle
Oracle:
1. VM VM;
2. -, VM ;

, , VM . . VirtualBox Shared Folders.

, Oracle , "grid" "database" . "C:\TEMP\oracle_sw" .
C:\TEMP\oracle_sw>dir -l
total 0
drwx------+ 1 Domain Users 0 Aug 5 18:10 database
drwx------+ 1 Domain Users 0 Aug 5 03:08 grid

. VirtualBox "Shared Folders" . , "plus". Oracle, "Read-only" "Auto-mount":
image

"OK", . Shared Folders :
image

Oracle . "/media/sf_oracle_sw" - VirtualBox . , VirtualBox ​​ "sf_" . "ls" :
$ cd /media/sf_oracle_sw
$ ls
database grid
$

Source: https://habr.com/ru/post/162277/


All Articles