oracle linux 6.5安装oracle11gR2 RAC - 百度文库

¸ù¾Ý°²×°Ïòµ¼Ìáʾ£¬ÒÔrootÓû§Éí·ÝÔÚËùÓнڵãÉÏ·Ö±ðÖ´ÐÐÉÏÊöÁ½¸ö½Å±¾£¬ÒªÒ»¸ö½ÚµãÒ»¸ö½ÚµãµØÖ´ÐУ¬Ö´ÐÐorainstRoot.shʱµÄÐÅÏ¢ÈçÏ£º [root@db1 ~]# /u01/oraInventory/orainstRoot.sh [root@db1 ~]# /u01/app/grid/11.2.0/root.sh ½Å±¾Ö´ÐÐÍê±Ïºóµã¡°OK¡±

CRS-4124: Oracle High Availability Services startup failed. CRS-4000: Command Start failed, or completed with errors. ohasd failed to start: Inappropriate ioctl for device

ohasd failed to start at/u01/app/11.2.0/grid/crs/install/rootcrs.pl line 443. µÚÒ»´Î°²×°11gR2 RACµÄʱºò¾ÍÓöµ½ÁËÕâ¸ö11.0.2.1µÄ¾­µäÎÊÌ⣬ÉÏÍøÒ»²é²ÅÖªµÀÕâÊǸöbug£¬½â¾ö°ì·¨Ò²ºÜ¼òµ¥£¬

¾ÍÊÇÔÚÖ´ÐÐroot.sh֮ǰִÐÐÒÔÏÂÃüÁî

/bin/dd if=/var/tmp/.oracle/npohasd of=/dev/null bs=1024 count=1 Èç¹û³öÏÖ

/bin/dd: opening`/var/tmp/.oracle/npohasd': No such file or directory

µÄʱºòÎļþ»¹Ã»Éú³É¾Í¼ÌÐøÖ´ÐУ¬Ö±µ½ÄÜÖ´ÐÐΪֹ£¬Ò»°ã³öÏÖAdding daemon to inittabÕâÌõÐÅÏ¢µÄʱºòÖ´ÐÐddÃüÁî¡£

ÖØÐÂÖ´ÐÐroot.sh֮ǰ±ðÍüÁËɾ³ýÒÑÖ´ÐÐroot.shµÄÅäÖãº

/u01/app/grid/11.2.0/crs/install/roothas.pl -deconfig -force -verbose ÁíÍ⻹ÓÐÒ»ÖÖ½â¾ö·½·¨¾ÍÊǸü¸ÄÎļþȨÏÞ chown root:oinstall /var/tmp/.oracle/npohasd

25

×¢£ºÓÉÓÚÅäÖÃÁË/etc/hostsÀ´½âÎöSCAN£¬µ¼ÖÂδ×ßDNSÀ´½øÐÐSCANµÄ½âÎö£¬±¬³ö´Ë´íÎ󣬿ÉÒÔ¿¼ÂǺöÂÔµô£¬»òÕßɾ³ý/etc/hostsÎļþÖеÄSCAN½âÎö²¿·Ö£¬²¢ÇÒÔÙ´Îͨ¹ýnslookupÑéÖ¤DNSµÄ½âÎöÊÇ·ñÕý³£¼´¿É¡£

ÓÃrootÓû§ÔÚ/etc/rc.d/rc.localÎļþÖмÓÈë

/bin/dd if=/var/tmp/.oracle/npohasd of=/dev/null bs=1024 count=1 ·ñÔò£¬ÖØÆôºóÎÞ·¨Æô¶¯rac

26

5.3°²×°¼ì²é

ʹÓÃgridÓû§£º $crsctl start crs $crsctl check crs $crsctl start cluster $crs_stat -t ÆôÍ££º

./crsctl stop cluster ./crsctl stop crs

5.4жÔØgrid

ÊÖ¹¤·½Ê½Ð¶ÔØ 1. Í£Ö¹has

2. ɾ³ýgrid°²×°Èí¼þ rm -fr /u01/app/grid/* rm -fr /u01/oraInventory/* rm -fr /u01/grid/* rm -fr /u01/app/11.2.0 rm -rf /usr/local/bin

3. ×èÖ¹hasÆô¶¯ rm /etc/init.cssd rm /etc/init.crs rm /etc/init.crsd

rm -fr /etc/rc.d/rc2.d/K19ohasd rm -fr /etc/rc.d/rc2.d/S96ohasd rm -fr /etc/ohasd rm /etc/inittab.crs

cp /etc/inittab.orig /etc/inittab 4. ɾ³ý×¢²áÏî rm -fr /etc/ora* rm -rf /tmp/.oracle rm -fr /opt/ORCLfmap 5. Çå³ýCRSËùÔÚ´ÅÅÌÐÅÏ¢

dd if=/dev/zero of=/dev/sdb1 bs=1024k count=100 dd if=/dev/zero of=/dev/sdd1 bs=1024k count=100

жÔØ·½·¨¶þ£º

1¡¢Í¨¹ýrootÓû§½øÈëµ½gridµÄORACLE_HOME [root@db01]# source /home/grid/.bash_profile [root@db01]# cd $ORACLE_HOME/crs/install/

2¡¢Ö´ÐÐÈçÏÂÁ½¸ö½Å±¾£¨Ö»ÔÚÆäÖÐÒ»¸ö½ÚµãÖ´ÐУ¬rootÓû§£©

27

[root@db01]# ./rootcrs.pl -verbose -deconfig -force [root@db01]# ./crsconfig_params

3¡¢Çл»µ½gridÓû§£¬Ö´ÐÐdeinstall ½øÐÐжÔØ£¬°´ÕÕÌáʾÍê³É£¬Íê³ÉºóÔÙÈ¥ÁíÒ»¸ö½Úµã°´ÌáʾִÐÐÏàÓ¦½Å±¾¡£ [root@db01]# su - grid [grid@db01]$ ./deinstall

4¡¢ÓÃrootɾ³ý/etc/Ŀ¼ÏµÄoracleÏà¹ØÎļþ£¨Á½½ÚµãÖ´ÐУ© [grid@db01]$ exit

[root@db01]# rm -rf /etc/oraInst.loc 5¡¢¸ñʽ»¯ASM´ÅÅÌÍ·¡£

[root@db01] dd if=/dev/zero count=10 bs=512 of=/dev/sde1

6 ÅäÖÃASM´ÅÅÌ

Ò²¿ÉÔÚÊý¾Ý¿â°²×°ºó½øÐУ¬ÔÚ½¨¿âÇ°ÅäÖúþͿÉÒÔ¡£ ʹÓÃgridÓû§ÔËÐÐasmca [grid@node1 ~]$ asmca

-bash: asmca: command not found

//Èç¹ûÏÔʾûÓмì²âµ½Õâ¸öÃüÁ¼ì²âPATH·¾¶£¬ÊÇ·ñÓÐÉèÖà [grid@node1 ~]$ echo $PATH

/usr/lib/qt3.3/bin:/usr/kerberos/bin:/u01/11.2.0/grid/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin:/u01/11.2.0/grid2/bin [root@node1 ~]# vi /etc/profile

export PATH=$PATH:/u01/app/11.2.0/grid/bin [root@node1 ~]# source /etc/profile [grid@node1 ~]$ source /etc/profile

28

ÁªÏµ¿Í·þ£º779662525#qq.com(#Ì滻Ϊ@)