当前位置: 首页 > 数据库 > Oracle教程 > 正文

Oracle RAC 10g for Solaris环境卸载(二)CLUSTER软件的卸载

时间:2014-10-26

上一篇中卸载了数据库,并删除了数据库软件。

在文章的开头已经提过,RAC环境的卸载不当会导致问题。正常情况下,应该首先卸载CLUSTER所做的修改,然后再卸载CLUSTERWARE。

正常情况下应该在ORA_CLS_HOME目录下执行:/install/rootdelete.sh remote nosharedhome –force,在RAC的每个节点上都应该执行这个操作,然后在其中一个节点上执行/install/rootdeinstall.sh。删除ASM实例对裸设备头的修改。

但是如果卸载的时候没有注意,很容易没有进行CLUSTER的清理就直接卸载了CLUSTER环境。

比如下面不进行清理而直接卸载CLUSTERWARE:

$ cd $ORACLE_HOME/../crs/oui/bin

$ ./runInstaller

Starting Oracle Universal Installer...

Checking installer requirements...

Checking operating system version: must be 5.8, 5.9 or 5.10.    Actual 5.8

Passed

Checking Temp space: must be greater than 150 MB.   Actual 11267 MB    Passed

Checking monitor: must be configured to display at least 256 colors.    Actual 16777216    Passed

All installer requirements met.

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2010-04-22_05-45-29PM. Please wait ...$ Oracle Universal Installer, Version10.2.0.1.0 Production

Copyright (C) 1999, 2005, Oracle. All rights reserved.

仍然点击Deinstall Products。选择CLUSTERWARE的安装目录,这里是OraCrs10g_home1,然后点击Remove进行删除:

Oracle会弹出卸载的组件详细明细,确认后,开始卸载。

Oracle会弹出一个提示,说明ClusterWare的安装目录/data/oracle/product/10.2/crs将会在卸载后被删除,如果确认删除按yes,不删除这个目录按no,cancel则取消操作。这里选择yes继续。

在删除CLUSTER的过程中也出现了告警,说明在racnode2和racnode3节点上,有些目录没有权限删除,这种警告是正常的,可以忽略。

卸载结束后,检查日志文件,文件的位置仍然是在ORACLE_BASE/oraInventory/log目录下:

INFO: Saving serialized component list for /data/oracle/product/10.2/crs

INFO: Updating XML inventory.

INFO: Saving comps.xml for /data/oracle/product/10.2/crs

INFO: Current Inventory:

Oracle Home: OraCrs10g_home1

INFO: Updating files in Oracle home '/data/oracle/product/10.2/crs' to remote nodes 'racnode2,racnode3'.

INFO: List of files to be excluded from:null

本栏目更多精彩内容:http://www.bianceng.cn/database/Oracle/

WARNING: Could not rename file '/tmp/OraInstall2010-04-22_06-34-16PM/installCopyFile.lst' to '/tmp/OraInstall2010-04-22_06-34-16PM/i

nstallCopyFile.lst.bak'.

WARNING: Could not rename file '/tmp/OraInstall2010-04-22_06-34-16PM/installRemoveFile.lst' to '/tmp/OraInstall2010-04-22_06-34-16PM

/installRemoveFile.lst.bak'.

SEVERE: java.io.FileNotFoundException: /tmp/OraInstall2010-04-22_06-34-16PM/installRemoveFile.lst (No such file or directory)

at java.io.FileInputStream.open(Native Method)

at java.io.FileInputStream.<init>(FileInputStream.java:106)

at java.io.FileInputStream.<init>(FileInputStream.java:66)

at java.io.FileReader.<init>(FileReader.java:41)

at oracle.sysman.oii.oiix.OiixFileOps.appendFilePw(OiixFileOps.java:2349)

at oracle.sysman.oii.oiix.OiixFileOps.appendFile(OiixFileOps.java:2373)

at oracle.sysman.oii.oiip.oiipg.OiipgClusterLogger.appendFilesToOH(OiipgClusterLogger.java:673)

at oracle.sysman.oii.oiip.oiipg.OiipgClusterLogger.appendFilesToOH(OiipgClusterLogger.java:626)

at oracle.sysman.oii.oiip.oiipg.OiipgClusterLogger.updateListFiles(OiipgClusterLogger.java:319)

at oracle.sysman.oii.oiif.oiifw.OiifwClusterCopyWCCE.doOperation(OiifwClusterCopyWCCE.java:435)

at oracle.sysman.oii.oiif.oiifb.OiifbCondIterator.iterate(OiifbCondIterator.java:171)

at oracle.sysman.oii.oiif.oiifw.OiifwActionsPhaseWCDE.doOperation(OiifwActionsPhaseWCDE.java:606)

at oracle.sysman.oii.oiic.OiicDeinstallSession$OiicActionsThread.run(OiicDeinstallSession.java:2431)

SEVERE: java.io.FileNotFoundException: /tmp/OraInstall2010-04-22_06-34-16PM/installDirFile.lst (No such file or directory)