私は苦しみ続けており、エンタープライズソリューションであるRACを持ち上げることは絶対にありません。
また、負荷がかかった状態でこのソリューションのフォールトトレランスを確認したいという要望もありました。
もちろん、すべての仕事の後...
インストールが完了したら、負荷のかかった状態で実行されているOracleノードを無効にする予定です。日常的によく使われる「電源オフ」方式を使用します。
オラクルの私の良き友人は、転倒した場合にデータを回復および保存するためのシステムを開発しているところなので、来週、彼と真剣な会話をすることを期待しています...
パート1(クラスタリングに向けた最初のステップ)
私の意見では、翻訳の第2部はもはや過度に詳細な記事ではありません 。
公式ソース: lab128.com
作業を行った著者に感謝します。
PSこれがすべて始まるか見てみましょうか?
パート1
Oracle Clusterwareのインストール。
必要なパッケージをインストールします。
このセクションのすべてのアクションは、スーパーユーザーが実行する必要があります。
自動構成を開始して、パッケージ "oracle-rdbms-server-11gR2-preinstall"をインストールします。このパッケージは、カーネル、必要なパラメーターの変更、Oracle Linuxアカウントの作成など、必要なすべてのインストールを実行します。
# yum install oracle-rdbms-server-11gR2-preinstall
ご注意
このコマンドをコピーして貼り付けることができない場合があります。 そのため、手動で入力する必要があります。 ゲストOSアドオンをインストールして修正します。 今のところ、これらのコマンドを手動で入力してください。
ASMLibをインストールします。
# yum install oracleasm
# yum install oracleasm-support
このコマンドを実行してASMLibを構成し、以下の例のように質問に答えます。
# 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 :
"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":
, "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", :
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", :
: Linux Main menu | System | Administration | Firewall. "Disable", "Apply"
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":
"OK", . Shared Folders :
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 :
"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":
, "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", :
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", :
: Linux Main menu | System | Administration | Firewall. "Disable", "Apply"
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":
"OK", . Shared Folders :
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 :
![画像](https://habrastorage.org/getpro/habr/post_images/659/8be/3ea/6598be3ea2c004293e83efccf2f2d016.png)
"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":
![画像](https://habrastorage.org/getpro/habr/post_images/ffd/782/997/ffd78299740c39e2cea0601efee72f28.png)
, "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", :
![画像](https://habrastorage.org/getpro/habr/post_images/883/ed7/270/883ed727065b0e665a6e07e8dadc01c1.png)
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", :
![画像](https://habrastorage.org/getpro/habr/post_images/6a0/651/9ec/6a06519ec0c7b08854d337859d848b87.png)
: Linux Main menu | System | Administration | Firewall. "Disable", "Apply"
![画像](https://habrastorage.org/getpro/habr/post_images/1ef/139/90f/1ef13990f7db47df9db633d9d6e60019.png)
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":
![画像](https://habrastorage.org/getpro/habr/post_images/568/098/08a/56809808a08ad142d1b522862407133b.png)
"OK", . Shared Folders :
![画像](https://habrastorage.org/getpro/habr/post_images/eda/17e/476/eda17e476d2a3178b670e8abac7ffc31.png)
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 :
"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":
, "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", :
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", :
: Linux Main menu | System | Administration | Firewall. "Disable", "Apply"
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":
"OK", . Shared Folders :
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 :
"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":
, "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", :
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", :
: Linux Main menu | System | Administration | Firewall. "Disable", "Apply"
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":
"OK", . Shared Folders :
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 :
![画像](https://habrastorage.org/getpro/habr/post_images/659/8be/3ea/6598be3ea2c004293e83efccf2f2d016.png)
"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":
![画像](https://habrastorage.org/getpro/habr/post_images/ffd/782/997/ffd78299740c39e2cea0601efee72f28.png)
, "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", :
![画像](https://habrastorage.org/getpro/habr/post_images/883/ed7/270/883ed727065b0e665a6e07e8dadc01c1.png)
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", :
![画像](https://habrastorage.org/getpro/habr/post_images/6a0/651/9ec/6a06519ec0c7b08854d337859d848b87.png)
: Linux Main menu | System | Administration | Firewall. "Disable", "Apply"
![画像](https://habrastorage.org/getpro/habr/post_images/1ef/139/90f/1ef13990f7db47df9db633d9d6e60019.png)
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":
![画像](https://habrastorage.org/getpro/habr/post_images/568/098/08a/56809808a08ad142d1b522862407133b.png)
"OK", . Shared Folders :
![画像](https://habrastorage.org/getpro/habr/post_images/eda/17e/476/eda17e476d2a3178b670e8abac7ffc31.png)
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 :
"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":
, "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", :
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", :
: Linux Main menu | System | Administration | Firewall. "Disable", "Apply"
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":
"OK", . Shared Folders :
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 :
"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":
, "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", :
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", :
: Linux Main menu | System | Administration | Firewall. "Disable", "Apply"
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":
"OK", . Shared Folders :
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 :
![画像](https://habrastorage.org/getpro/habr/post_images/659/8be/3ea/6598be3ea2c004293e83efccf2f2d016.png)
"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":
![画像](https://habrastorage.org/getpro/habr/post_images/ffd/782/997/ffd78299740c39e2cea0601efee72f28.png)
, "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", :
![画像](https://habrastorage.org/getpro/habr/post_images/883/ed7/270/883ed727065b0e665a6e07e8dadc01c1.png)
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", :
![画像](https://habrastorage.org/getpro/habr/post_images/6a0/651/9ec/6a06519ec0c7b08854d337859d848b87.png)
: Linux Main menu | System | Administration | Firewall. "Disable", "Apply"
![画像](https://habrastorage.org/getpro/habr/post_images/1ef/139/90f/1ef13990f7db47df9db633d9d6e60019.png)
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":
![画像](https://habrastorage.org/getpro/habr/post_images/568/098/08a/56809808a08ad142d1b522862407133b.png)
"OK", . Shared Folders :
![画像](https://habrastorage.org/getpro/habr/post_images/eda/17e/476/eda17e476d2a3178b670e8abac7ffc31.png)
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 :
"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":
, "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", :
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", :
: Linux Main menu | System | Administration | Firewall. "Disable", "Apply"
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":
"OK", . Shared Folders :
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 :
"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":
, "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", :
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", :
: Linux Main menu | System | Administration | Firewall. "Disable", "Apply"
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":
"OK", . Shared Folders :
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 :
![画像](https://habrastorage.org/getpro/habr/post_images/659/8be/3ea/6598be3ea2c004293e83efccf2f2d016.png)
"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":
![画像](https://habrastorage.org/getpro/habr/post_images/ffd/782/997/ffd78299740c39e2cea0601efee72f28.png)
, "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", :
![画像](https://habrastorage.org/getpro/habr/post_images/883/ed7/270/883ed727065b0e665a6e07e8dadc01c1.png)
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", :
![画像](https://habrastorage.org/getpro/habr/post_images/6a0/651/9ec/6a06519ec0c7b08854d337859d848b87.png)
: Linux Main menu | System | Administration | Firewall. "Disable", "Apply"
![画像](https://habrastorage.org/getpro/habr/post_images/1ef/139/90f/1ef13990f7db47df9db633d9d6e60019.png)
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":
![画像](https://habrastorage.org/getpro/habr/post_images/568/098/08a/56809808a08ad142d1b522862407133b.png)
"OK", . Shared Folders :
![画像](https://habrastorage.org/getpro/habr/post_images/eda/17e/476/eda17e476d2a3178b670e8abac7ffc31.png)
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 :
"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":
, "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", :
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", :
: Linux Main menu | System | Administration | Firewall. "Disable", "Apply"
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":
"OK", . Shared Folders :
Oracle . "/media/sf_oracle_sw" - VirtualBox . , VirtualBox "sf_" . "ls" :
$ cd /media/sf_oracle_sw
$ ls
database grid
$