本文主要描述在HP-UNIX下安装Oracle RAC 10g失败后,进行环境清理,以进行下次安装。
欢迎转载,请注明作者、出处。
作者:张正
blog:http://space.itpub.net/26355921
QQ:176036317
如有疑问,欢迎联系。
1 删除crs
////////////////////////////////////////////////////////////////////////
histest[/oracl/crs/install]#id
uid=0(root) gid=3(sys) groups=0(root),1(other),2(bin),4(adm),5(daemon),6(mail),7(lp),20(users)
histest[/oracl/crs/install]#ls
cluster.ini envVars.properties.bak install.incl paramfile.crs.orig readme.txt rootconfig rootdeletenode.sh rootupgrade
cmdllroot.sh files10205.log make.log prepatch10205 root102.sh rootdeinstall.sh rootinstall templocal
envVars.properties install.excl paramfile.crs preupdate.sh rootaddnode.sbs rootdelete.sh rootlocaladd
histest[/oracl/crs/install]#./rootdelete.sh
Shutting down Oracle Cluster Ready Services (CRS):
Dec 13 08:44:44.213 | INF | daemon shutting down
Stopping resources. This could take several minutes.
Successfully stopped CRS resources.
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
Shutdown has begun. The daemons should exit soon.
Checking to see if Oracle CRS stack is down...
Oracle CRS stack is not running.
Oracle CRS stack is down now.
Removing script for Oracle Cluster Ready services
Updating ocr file for downgrade
Cleaning up SCR settings in '/var/opt/oracle/scls_scr'
Cleaning up Network socket directories
histest[/oracl/crs/install]#./rootdeinstall.sh
Removing contents from OCR device
2560+0 records in
2560+0 records out
$ srvctl stop nodeapps -n histest PRKC-1056 : Failed to get the hostname for node histest
PRKH-1010 : Unable to communicate with CRS services.
[Communications Error(Native: prsr_initCLSS:[3])]
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
//////////////////////////////////////////////////////////////////////
2 新建ocr和vot盘,已经有目录,直接建立
////////////////////////////////////////////////////////////////////////
histest[/]#dd if=/dev/zero of=/dev/rdsk/ocr bs=1024000 count=256//ocr和crs盘是我从存储上新分配并建立的
histest[/]#dd if=/dev/zero of=/dev/rdsk/vot bs=1024000 count=256
////////////////////////////////////////////////////////////////////////
histest[/oracl/crs/install]#id
uid=0(root) gid=3(sys) groups=0(root),1(other),2(bin),4(adm),5(daemon),6(mail),7(lp),20(users)
histest[/oracl/crs/install]#ls
cluster.ini envVars.properties.bak install.incl paramfile.crs.orig readme.txt rootconfig rootdeletenode.sh rootupgrade
cmdllroot.sh files10205.log make.log prepatch10205 root102.sh rootdeinstall.sh rootinstall templocal
envVars.properties install.excl paramfile.crs preupdate.sh rootaddnode.sbs rootdelete.sh rootlocaladd
histest[/oracl/crs/install]#./rootdelete.sh
Shutting down Oracle Cluster Ready Services (CRS):
Dec 13 08:44:44.213 | INF | daemon shutting down
Stopping resources. This could take several minutes.
Successfully stopped CRS resources.
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
Shutdown has begun. The daemons should exit soon.
Checking to see if Oracle CRS stack is down...
Oracle CRS stack is not running.
Oracle CRS stack is down now.
Removing script for Oracle Cluster Ready services
Updating ocr file for downgrade
Cleaning up SCR settings in '/var/opt/oracle/scls_scr'
Cleaning up Network socket directories
histest[/oracl/crs/install]#./rootdeinstall.sh
Removing contents from OCR device
2560+0 records in
2560+0 records out
$ srvctl stop nodeapps -n histest PRKC-1056 : Failed to get the hostname for node histest
PRKH-1010 : Unable to communicate with CRS services.
[Communications Error(Native: prsr_initCLSS:[3])]
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
//////////////////////////////////////////////////////////////////////
2 新建ocr和vot盘,已经有目录,直接建立
////////////////////////////////////////////////////////////////////////
histest[/]#dd if=/dev/zero of=/dev/rdsk/ocr bs=1024000 count=256//ocr和crs盘是我从存储上新分配并建立的
histest[/]#dd if=/dev/zero of=/dev/rdsk/vot bs=1024000 count=256
本文转自ITPUB博客84223932的博客,原文链接:安装失败,清理环境,重新安装HP-UNIX下Oracle 10g RAC,如需转载请自行联系原博主。