vmware workstation7 + win7 安裝rac
宿主機:win7sp1
vmware station 7.15
redhat linux4 update7 + oracle10.2.0.1 rac安裝
注意:在安裝linux的時候,如果空間充足,儘量全部安裝軟體包,否則在接下來安裝rac的過程中會出現莫名的錯誤。
安裝完 redhat enterprise linux 4 update7以後 ,對主機做如下配置。
1:因為是用vmware-workstation 安裝的,因此要在.vmx檔案中新增如下檔案
disk.locking = "FALSE"
diskLib.dataCacheMaxSize = "0"
scsi1.sharedBus = "virrual"
diskLib.dataCacheMaxSize = "0"
scsi1.sharedBus = "virrual"
2:修改/etc/hosts檔案, 修改後的結果如下
127.0.0.1 localhost // 注意:此處必須為這種寫法,否則監聽ip地址變為127.0.0.1
172.16.10.96 rac1
172.16.10.97 rac2
172.16.10.97 rac2
172.16.10.94 rac1-vip
172.16.10.95 rac2-vip
172.16.10.95 rac2-vip
10.10.17.221 rac1-priv
10.10.17.222 rac2-priv
10.10.17.222 rac2-priv
3:建立oracle使用者、oinstall和dba組
oracle使用者的 .bash_profile 檔案最終如下
#set environment
export ORACLE_BASE=/home/oracle
export ORACLE_HOME=$ORACLE_BASE/10.2.0/db_1
export ORACLE_CRS_HOME=$ORACLE_BASE/10.2.0/crs_1
export ORACLE_SID=rac1
export PATH=/usr/sbin:$PATH
export PATH=$ORACLE_CRS_HOME/bin:$$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin/
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
ulimit -u 16384 -n 65536
umask 022
4:配置核心引數
vi /etc/sysctl.conf
新增如下內容
新增如下內容
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144
提示,上述引數中通常只有一項需要我們更改,即kernel.shmmax,該引數推薦設定為實體記憶體的一半,
由於安裝crs 的時候要求記憶體至少512M,因此我們此處也按照512*1024*1024 來設定。
由於安裝crs 的時候要求記憶體至少512M,因此我們此處也按照512*1024*1024 來設定。
5:設定oracle使用者的shell限制
vi /etc/security/limits.conf
增加如下內容
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
6:修改安全限制
vi /etc/pam.d/login
新增如下內容
session required /lib/security/pam_limits.so
7:配置Hangcheck 計時器
增加如下內容
modprobe hangcheck-timer hangcheck-tick=30 hangcheck_margin=180
8:磁碟分割槽,最終分割槽結果如下
[root@rac1 ~]# fdisk -l
Disk /dev/hda: 12.8 GB, 12884901888 bytes
255 heads, 63 sectors/track, 1566 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
255 heads, 63 sectors/track, 1566 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 637 5116671 83 Linux
/dev/hda2 638 1435 6409935 83 Linux
/dev/hda3 1436 1566 1052257+ 82 Linux swap
/dev/hda1 * 1 637 5116671 83 Linux
/dev/hda2 638 1435 6409935 83 Linux
/dev/hda3 1436 1566 1052257+ 82 Linux swap
Disk /dev/hdd: 8589 MB, 8589934592 bytes
15 heads, 63 sectors/track, 17753 cylinders
Units = cylinders of 945 * 512 = 483840 bytes
15 heads, 63 sectors/track, 17753 cylinders
Units = cylinders of 945 * 512 = 483840 bytes
Device Boot Start End Blocks Id System
/dev/hdd1 1 414 195583+ 83 Linux
/dev/hdd2 415 828 195615 83 Linux
/dev/hdd3 829 9096 3906630 83 Linux
/dev/hdd4 9097 16537 3515872+ 83 Linux
[root@rac1 ~]#
/dev/hdd1 1 414 195583+ 83 Linux
/dev/hdd2 415 828 195615 83 Linux
/dev/hdd3 829 9096 3906630 83 Linux
/dev/hdd4 9097 16537 3515872+ 83 Linux
[root@rac1 ~]#
9:安裝必要的asmlib包
[root@rac1 ~]# uname -a
Linux rac1 2.6.9-78.ELsmp #1 SMP Wed Jul 9 15:39:47 EDT 2008 i686 i686 i386 GNU/Linux
[root@rac1 ~]#
[root@rac1 ~]#
[root@rac1 ~]# uname -r
2.6.9-78.ELsmp
[root@rac1 ~]# more /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant Update 7)
[root@rac1 ~]#
[root@rac1 ~]#
[root@rac1 ~]#
[root@rac1 ~]# rpm -qa |grep oracleasm
oracleasm-2.6.9-78.ELsmp-2.0.5-1.el4
oracleasmlib-2.0.4-1.el4
oracleasm-support-2.1.7-1.el4
[root@rac1 ~]#
10:修改裸裝置服務的配置檔案: /etc/sysconfig/rawdevices 新增下面2行。
/dev/raw/raw1 /dev/hdd1
/dev/raw/raw2 /dev/hdd2
/dev/raw/raw2 /dev/hdd2
11:修改裸裝置許可權
[root@rac1 ~]# vi /etc/udev/permissions.d/50-udev.permissions
該行修改後的結果為:
# raw devices
raw*:oracle:dba:0660
raw/*:oracle:dba:0660
raw*:oracle:dba:0660
raw/*:oracle:dba:0660
配置第二個節點:
1:修改vi /etc/sysconfig/network
將hostname改為 rac2
2:修改網路卡的mac地址,並修改ip
3:在rac2節點,將oracle使用者的oracle_sid 改為 racdb2
設定ssh 等效性
(具體參考三思的筆記)
配置asm
首先在rac1 執行:
[root@rac1 ~]# /etc/init.d/oracleasm configure
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 []: dba
Start Oracle ASM library driver on boot (y/n) [n]: y
Fix permissions of Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: [ OK ]
Loading module "oracleasm": [ OK ]
Mounting ASMlib driver filesystem: [ OK ]
Scanning system for ASM disks: [ OK ]
然後切換至rac2 執行
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 []: dba
Start Oracle ASM library driver on boot (y/n) [n]: y
Fix permissions of Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: [ OK ]
Loading module "oracleasm": [ OK ]
Mounting ASMlib driver filesystem: [ OK ]
Scanning system for ASM disks: [ OK ]
然後切換至rac2 執行
[root@rac2 ~]# /etc/init.d/oracleasm configure
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 []: dba
Start Oracle ASM library driver on boot (y/n) [n]: y
Fix permissions of Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: [ OK ]
Loading module "oracleasm": [ OK ]
Mounting ASMlib driver filesystem: [ OK ]
Scanning system for ASM disks: [ OK ]
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 []: dba
Start Oracle ASM library driver on boot (y/n) [n]: y
Fix permissions of Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: [ OK ]
Loading module "oracleasm": [ OK ]
Mounting ASMlib driver filesystem: [ OK ]
Scanning system for ASM disks: [ OK ]
再切換回rac1 執行
[root@rac1 ~]# /etc/init.d/oracleasm createdisk VOL1 /dev/hdd3
Marking disk "/dev/sdd1" as an ASM disk: [ OK ]
[root@rac1 ~]# /etc/init.d/oracleasm createdisk VOL2 /dev/hdd4
Marking disk "/dev/hdd4" as an ASM disk: [ OK ]
[root@rac1 linux-patch]# /etc/init.d/oracleasm scandisks
Scanning system for ASM disks: [ OK ]
檢視一下當前的磁碟組:
Scanning system for ASM disks: [ OK ]
[root@rac1 ~]# /etc/init.d/oracleasm listdisks
VOL1
VOL2
rac2 上也檢視一下當前磁碟組:
[root@rac2 ~]# /etc/init.d/oracleasm scandisks
Scanning system for ASM disks: [ OK ]
[root@rac2 ~]# /etc/init.d/oracleasm listdisks
VOL1
VOL2
Scanning system for ASM disks: [ OK ]
[root@rac2 ~]# /etc/init.d/oracleasm listdisks
VOL1
VOL2
接下來就是安裝clusterware,如果沒大的問題,就安裝成功。
在最後階段,會提示一個錯誤,只要在rac2節點執行 $ORACLE_CRS_HOME/bin/vipca 即可
在最後階段,會提示一個錯誤,只要在rac2節點執行 $ORACLE_CRS_HOME/bin/vipca 即可
安裝過程中碰到的一些問題:
1:軟體包解除安裝
rpm -ivh ****.rpm --force --nodeps就可以了,nodeps的意思是忽視依賴關係。
如:
rpm -ivh oracleasm-2.6.9-78.ELhugemem-2.0.5-1.el4.i686.rpm --force --nodeps
rpm -ivh oracleasm-2.6.9-78.EL-debuginfo-2.0.5-1.el4.i686.rpm --force --nodeps
rpm -ivh oracleasm-2.6.9-78.EL-2.0.5-1.el4.i686.rpm --force --nodeps
rpm -ivh oracleasm-support-2.1.7-1.el4.i386.rpm --force --nodeps
2:關閉防火牆和sendmail ,否則客戶端連線不上,啟動很慢。
檢視相關的狀態
chkconfig --list iptables
chkconfig --list sendmail
chkconfig --list sendmail
關閉相關服務
chkconfig --level 23456 iptables off
chkconfig --level 23456 sendmail off
chkconfig --level 23456 sendmail off
本人安裝的rac系統在執行一個周以後,再次開啟rac2主機時,就找不到 rac2的 eth1 網路卡了 ,導致網路卡丟失,問題還沒解決。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24862808/viewspace-721801/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Mac VMware 安裝ghost版本Win7MacWin7
- vmware + 裸裝置 + crs + oracle10g RAC搭建步驟(二):安裝linuxOracleLinux
- Vmware linux redhat6.4 安裝11g(11.2.0.1) 雙節點RACLinuxRedhat
- 安裝 VMware workstation
- VMware 安裝 OpenWrt
- VMWare安裝LinuxLinux
- VMware安裝UOS
- 如何安裝vmware以及如何在vmware上安裝centOS 7.0CentOS
- debian安裝和解除安裝vmware
- rac靜默安裝
- VMware Workstation解除安裝
- VMware Tools 的安裝
- VMware安裝Linux CentOSLinuxCentOS
- VMware 下載安裝
- ArchLinux Vmware安裝指北Linux
- 安裝Vmware Workstation 16
- macos 下 vmware fusion 安裝 vmware tools教程Mac
- vmware+ocfs2+rac
- 2節點RAC安裝
- 安裝RAC 19C
- CentOS 7.6 安裝11.2.0.4 RACCentOS
- VMware Workstation 17安裝教程:安裝系統
- VMware15/16解鎖VMware安裝MacOSMac
- 【虛擬機器】VMware-VMware Tool安裝虛擬機
- vmware workstation 下安裝ubuntuUbuntu
- VMware17.5安裝教程
- Kali Linux安裝VMware ToolsLinux
- Linux 安裝 VMware Workstation ProLinux
- vmware安裝銀河麒麟
- Vmware Station安裝Arch LinuxLinux
- Windows 11.2.0.4 RAC安裝配置以及RAC新增節點Windows
- RAC安裝【AIX 7 + 11.2.0.4 + ASM】AIASM
- vmware安裝VMware Tools,並設定共享目錄
- 給VMware上的Linux系統安裝VMware ToolsLinux
- 在 Linux 上安裝 VMware 工具Linux
- 使用VMWare 安裝Centos8CentOS
- VMware 安裝 Ubuntu Server 18.04.5 LTSUbuntuServer
- vmware workstation 14 pro安裝方法
- VMware Workstation 的安裝和使用