パート2. VirtualBoxを使用してLinuxにOracle Database 11gリリース2 RACをインストールする方法-クラスターを上げる

ラップトップでOracle Real Application Clustersを起動するという事実にすべてが行き着きます。



私は苦しみ続けており、エンタープライズソリューションである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 :

画像



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

画像



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

画像



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

画像



"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





$










All Articles