[root@rac1?~]#?cat?/home/oracle/.bash_profile? #?.bash_profile #?Get?the?aliases?and?functions if?[?-f?~/.bashrc?];?then ????????.?~/.bashrc fi #?User?specific?environment?and?startup?programs PATH=$PATH:$HOME/bin export?PATH TMP=/tmp;?export?TMP TMPDIR=$TMP;?export?TMPDIR ORACLE_HOSTNAME=rac1;?export?ORACLE_HOSTNAME ORACLE_UNQNAME=RAC;?export?ORACLE_UNQNAME ORACLE_BASE=/u01/app/oracle;?export?ORACLE_BASE GRID_HOME=/u01/app/11.2.0.3/grid;?export?GRID_HOME DB_HOME=$ORACLE_BASE/product/11.2.0.3/db_1;?export?DB_HOME ORACLE_HOME=$DB_HOME;?export?ORACLE_HOME ORACLE_SID=RAC1;?export?ORACLE_SID ORACLE_TERM=xterm;?export?ORACLE_TERM BASE_PATH=/usr/sbin:$PATH;?export?BASE_PATH PATH=$ORACLE_HOME/bin:$BASE_PATH;?export?PATH LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib;?export?LD_LIBRARY_PATH CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib;?export?CLASSPATH alias?grid_env='.?/home/oracle/grid_env' alias?db_env='.?/home/oracle/db_env' [root@rac1?~]#?cat?/home/oracle/grid_env ORACLE_SID=+ASM1;?export?ORACLE_SID ORACLE_HOME=$GRID_HOME;?export?ORACLE_HOME PATH=$ORACLE_HOME/bin:$BASE_PATH;?export?PATH LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib;?export?LD_LIBRARY_PATH CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib;?export?CLASSPATH [root@rac1?~]#?cat?/home/oracle/db_env ORACLE_SID=RAC1;?export?ORACLE_SID ORACLE_HOME=$DB_HOME;?export?ORACLE_HOME PATH=$ORACLE_HOME/bin:$BASE_PATH;?export?PATH LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib;?export?LD_LIBRARY_PATH CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib;?export?CLASSPATH [root@rac1?~]#?cat?/etc/hosts 127.0.0.1???localhost?localhost.localdomain?localhost4?localhost4.localdomain4 ::1?????????localhost?localhost.localdomain?localhost6?localhost6.localdomain6 #public 192.168.56.7?rac2 192.168.56.9?rac1 #private 192.168.176.7?rac2-priv 192.168.176.5?rac1-priv #Virtual 192.168.56.155?rac1-vip 192.168.56.156?rac2-vip #scan 192.168.56.157?rac-scan [root@rac1?~]#
創(chuàng)新互聯(lián)是一家專注于網(wǎng)站設(shè)計(jì)制作、成都做網(wǎng)站與策劃設(shè)計(jì),貢覺網(wǎng)站建設(shè)哪家好?創(chuàng)新互聯(lián)做網(wǎng)站,專注于網(wǎng)站建設(shè)十多年,網(wǎng)設(shè)計(jì)領(lǐng)域的專業(yè)建站公司;建站業(yè)務(wù)涵蓋:貢覺等地區(qū)。貢覺做網(wǎng)站價(jià)格咨詢:18980820575
VBoxManage.exe?createhd?--filename?D:\vmfile\racdisk\asm1.vdi?--size?20480?--format?VDI?--variant?Fixed
/sbin/scsi_id?-g?-u?-d?/dev/sdb vim?/etc/udev/rules.d/99-oracle-asmdevices.rules KERNEL=="sd?1",?BUS=="scsi",?PROGRAM=="/sbin/scsi_id?-g?-u?-d?/dev/$parent",?RESULT=="1ATA_VBOX_HARDDISK_VBe4e11d02-5b820d3e",NAME="asm-disk1",?OWNER="oracle",?GROUP="dba",?MODE="0660" 注意放到同一行
/sbin/udevadm?control?--reload-rules /sbin/start_udev
設(shè)置rac2
[root@rac2?~]#?ls?/dev/sd* /dev/sda??/dev/sda1??/dev/sda2??/dev/sdb??/dev/sdb1 [root@rac2?~]#?vim?/etc/udev/rules.d/99-oracle-asmdevices.rules
[root@rac2?~]#?/sbin/partprobe?/dev/sdb1 [root@rac2?~]#?/sbin/udevadm?control?--reload-rules [root@rac2?~]#?/sbin/start_udev Starting?udev:?????????????????????????????????????????????[??OK??] [root@rac2?~]#?ls?-al?/dev/asm* brw-rw----?1?oracle?dba?8,?17?Jul?10?10:39?/dev/asm-disk1
? 重啟兩臺(tái)機(jī)器 在rac1?中進(jìn)行圖形化安裝
依次執(zhí)行,千萬不要兩臺(tái)機(jī)器同時(shí)執(zhí)行
返回圖形化,點(diǎn)擊ok繼續(xù)
安裝并創(chuàng)建數(shù)據(jù)庫