Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5726207
  • 博文数量: 745
  • 博客积分: 10075
  • 博客等级: 上将
  • 技术积分: 7716
  • 用 户 组: 普通用户
  • 注册时间: 2005-04-29 12:09
文章分类

全部博文(745)

文章存档

2019年(1)

2016年(1)

2010年(31)

2009年(88)

2008年(129)

2007年(155)

2006年(197)

2005年(143)

分类: Oracle

2009-12-18 10:52:31

接上篇。
 
在网上搜索了一下这个错误提示“OCR create keys failed, OCR error 26”,见有提供如下解决方案的:
# mkdir /var/opt/oracle
# chown -R oracle.dba /var/opt/oracle
# ./root.sh
尝试按照这种方法去执行了一下,错误依旧。按理说/var/opt/oracle这个目录在HPUX下是不需要手工去修改oracle权限的,可能在各个操作系统下不一样吧。
 
出了这个错之后,crs无法正确安装,手工启动vipca来执行后续部分也不可能成功,于是我想到把安装未成功的crs重装一次,或许是安装过程中某个过程出了什么纰漏。下面供上ORACLE官方提供的CRS卸载方法:
10g RAC: How to Clean Up After a Failed CRS Install
---------------------------------------------------
 
Not cleaning up a failed CRS install can cause problems like node reboots.
Follow these steps to clean up a failed CRS install:
1. Run the rootdelete.sh script then the rootdeinstall.sh script from the
$ORA_CRS_HOME/install directory on any nodes you are removing CRS from.  Running
these scripts should be sufficent to clean up your CRS install.  If you have
any problems with these scripts please open a service request. 
If for some reason you have to manually remove the install due to problems
with the scripts, continue to step 2:
2. Stop the Nodeapps on all nodes:
 srvctl stop nodeapps -n
3. Prevent CRS from starting when the node boots.  To do this issue the following
as root:
Sun:
 rm /etc/init.d/init.cssd
 rm /etc/init.d/init.crs
 rm /etc/init.d/init.crsd
 rm /etc/init.d/init.evmd
 rm /etc/rc3.d/K96init.crs
 rm /etc/rc3.d/S96init.crs
        rm -Rf /var/opt/oracle/scls_scr
        rm -Rf /var/opt/oracle/oprocd
 rm /etc/inittab.crs
 cp /etc/inittab.orig /etc/inittab
Linux:
        rm /etc/oracle/*
 rm -f /etc/init.d/init.cssd
 rm -f /etc/init.d/init.crs
 rm -f /etc/init.d/init.crsd
 rm -f /etc/init.d/init.evmd
 rm -f /etc/rc2.d/K96init.crs
 rm -f /etc/rc2.d/S96init.crs
 rm -f /etc/rc3.d/K96init.crs
 rm -f /etc/rc3.d/S96init.crs
 rm -f /etc/rc5.d/K96init.crs
 rm -f /etc/rc5.d/S96init.crs
        rm -Rf /etc/oracle/scls_scr
 rm -f /etc/inittab.crs
 cp /etc/inittab.orig /etc/inittab
HP-UX:
 rm /sbin/init.d/init.cssd
 rm /sbin/init.d/init.crs
 rm /sbin/init.d/init.crsd
 rm /sbin/init.d/init.evmd
        rm /sbin/rc2.d/K960init.crs
        rm /sbin/rc2.d/K001init.crs
 rm /sbin/rc3.d/K960init.crs
 rm /sbin/rc3.d/S960init.crs
        rm -Rf /var/opt/oracle/scls_scr
        rm -Rf /var/opt/oracle/oprocd
 rm /etc/inittab.crs
 cp /etc/inittab.orig /etc/inittab
IBM AIX:
 rm /etc/init.cssd
 rm /etc/init.crs
 rm /etc/init.crsd
 rm /etc/init.evmd
 rm /etc/rc.d/rc2.d/K96init.crs
 rm /etc/rc.d/rc2.d/S96init.crs
        rm -Rf /etc/oracle/scls_scr
        rm -Rf /etc/oracle/oprocd
 rm /etc/inittab.crs
 cp /etc/inittab.orig /etc/inittab
4. If they are not already down, kill off EVM, CRS, and CSS processes or reboot
   the node:
 ps -ef | grep crs 
 kill
 ps -ef | grep evm
 kill
 ps -ef | grep css 
 kill
   Do not kill any OS processes, for example icssvr_daemon process !
5. If there is no other Oracle software running (like listeners, DB's, etc...),
   you can remove the files in /var/tmp/.oracle or /tmp/.oracle.  Example:
        rm -f /var/tmp/.oracle
        or
        rm -f /tmp/.oracle
6. Remove the ocr.loc
   Usually the ocr.loc can be found at /etc/oracle
7. De-install the CRS home in the Oracle Universal Installer
8. Remove the CRS install location:
   rm -Rf /*
9. Clean out the OCR and Voting Files with dd commands.  Example:
        dd if=/dev/zero of=/dev/rdsk/V1064_vote_01_20m.dbf bs=8192 count=2560
        dd if=/dev/zero of=/dev/rdsk/ocrV1064_100m.ora bs=8192 count=12800
   If you placed the OCR and voting disk on a shared filesystem, remove them.
   If you are removing the RDBMS installation, also clean out any ASM disks if
   they have already been used.
10.If you would like to re-install CRS, follow the steps in the RAC Installation manual.
------------------------------------------------------------------------
经我归纳总结,在HPUX下卸载CRS只需要执行如下几步即可:
1,执行$ORA_CRS_HOME/install目录下的rootdelete.sh和rootdeinstall.sh两个脚本;
2,删除/var/opt/oracle/目录下所有文件;
3,删除文件/var/tmp/.oracle;
4,以文件/etc/inittab.orig覆盖文件/etc/inittab,并注释掉/etc/inittab最末三行:
h1:3:respawn:/sbin/init.d/init.evmd run >/dev/null 2>&1 h2:3:respawn:/sbin/init.d/init.cssd fatal >/dev/null 2>&1 h3:3:respawn:/sbin/init.d/init.crsd run >/dev/null 2>&1
这三行是CRS进程所需,所以一定要注释掉;
5,删除$ORA_CRS_HOME目录下所有文件以及ORACLE安装目录下oraInventory目录下所有文件;
6,如果觉得不过瘾,你可以把CRS必须的两个裸设备文件进行格式化,比如:
dd if=/dev/zero of=/dev/vg_data1/rora_ocr_raw bs=8192 count=2560
dd if=/dev/zero of=/dev/vg_data1/rora_vote_raw bs=8192 count=2560
7,ps -ef | grep crs确认已经没有任何crs进程存在。
这些步骤完成后,就可以重新安装CRS了。
阅读(1778) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~