HPUX下删除11GRAC

[复制链接]
查看11 | 回复0 | 2012-1-4 11:57:13 | 显示全部楼层 |阅读模式
本帖最后由 oracle_mao 于 2012-2-26 18:11 编辑
1 将两个节点的数据库关闭
2 DBCA卸载数据库
数据库已删除3 卸载rdbms软件 选择Silent模式卸载3.1 节点一编辑文件NODE1#[/u01/software/database]cat my_deinstall.rspRESPONSEFILE_VERSION=2.2.1.0.0UNIX_GROUP_NAME=oinstallFROM_LOCATION="/u01/software/products.xml"ORACLE_BASE="/u01/oracle"ORACLE_HOME="/u01/oracle/11.1.0"ORACLE_HOME_NAME="OraDb11g_home1"TOPLEVEL_COMPONENT={"oracle.server","11.1.0.6.0"}DEINSTALL_LIST={"oracle.server","11.1.0.6.0"}REMOVE_HOMES="/u01/oracle/11.1.0"CLUSTER_NODES="node1","node2"3.2 执行runInstaller 然后在xmanager里执行:$cd /u01/software/database$./runInstaller -removeallfiles -silent -deinstall -responseFile /u01/software/my_deinstall.rspStarting Oracle Universal Installer...Checking Temp space: must be greater than 415 MB. Actual 1562 MBPassedChecking swap space: must be greater than 150 MB. Actual 63998 MBPassedPreparing to launch Oracle Universal Installer from /tmp/OraInstall2012-02-17_07-08-52PM. Please wait ...$ Oracle Universal Installer, Version 11.1.0.6.0 ProductionCopyright (C) 1999, 2007, Oracle. All rights reserved.Starting deinstallDeinstall in progress (Friday, February 17, 2012 7:09:04 PM GMT+08:00)Configuration assistant "Oracle Database Configuration Assistant - Deinstall" succeeded Configuration assistant "Oracle Net Configuration Assistant - Deinstall Script" succeeded ........................................................................................................................... 100% Done.Deinstall successfulEnd of install phases.(Friday, February 17, 2012 7:11:42 PM GMT+08:00)End of deinstallationsPlease check '/u01/oraInventory/logs/silentInstall2012-02-17_07-08-52PM.log' for more details.卸载成功3.3 查看日志 NODE1#[/u01/software/database]more /u01/oraInventory/logs/silentInstall2012-02-17_07-08-52PM.logsilentInstall2012-02-17_07-08-52PM.logStarting deinstallsNativeVolName:/u01/oracle/11.1.0/install/m_asNodeArray:node1,node2m_sLocalNode:node1This deinstallation was successfulEnd of deinstallations$ df -k查看已经空闲出一些位置/u01
(/dev/vg00/lvol8 ) : 51025216 total allocated Kb
31234712 free allocated Kb
19790504 used allocated Kb
39 % allocation used4 卸载Clusterware4.1 节点一执行deinstall 执行/u01/grid/deintall 将所有节点的clusterware(deinstall后不加参数)$ pwd/u01/11.2.0/grid/deinstall$ ./deinstallChecking for required files and bootstrapping ...Please wait ...Location of logs /u01/oraInventory/logs/############ ORACLE DEINSTALL & DECONFIG TOOL START ##################################### CHECK OPERATION START ########################### [START] Install check configuration ##Checking for existence of the Oracle home location /u01/11.2.0/gridOracle Home type selected for deinstall is: Oracle Grid Infrastructure for a ClusterOracle Base selected for deinstall is: /u01/oracleChecking for existence of central inventory location /u01/oraInventoryChecking for existence of the Oracle Grid Infrastructure home /u01/11.2.0/gridThe following nodes are part of this cluster: NODE1,NODE2Checking for sufficient temp space availability on node(s) : 'NODE1,NODE2'## [END] Install check configuration ##Traces log file: /u01/oraInventory/logs//crsdc.logNetwork Configuration check config STARTNetwork de-configuration trace file location: /u01/oraInventory/logs/netdc_check2012-02-17_07-57-16-PM.logSpecify all RAC listeners (do not include SCAN listener) that are to be de-configured [LISTENER]:Network Configuration check config ENDAsm Check Configuration STARTASM de-configuration trace file location: /u01/oraInventory/logs/asmcadc_check2012-02-17_07-57-19-PM.logAutomatic Storage Management (ASM) instance is detected in this Oracle home /u01/11.2.0/grid.ASM Diagnostic Destination : /u01/oracleASM Diskgroups : +DATA_SOM,+OCR_SOMASM diskstring : Diskgroups will be droppedDe-configuring ASM will drop all the diskgroups and it's contents at cleanup time. This will affect all of the databases and ACFS that use this ASM instance(s).If you want to retain the existing diskgroups or if any of the information detected is incorrect, you can modify by entering 'y'. Do youwant to modify above information (y|n) [n]: n######################### CHECK OPERATION END ################################################ CHECK OPERATION SUMMARY #######################Oracle Grid Infrastructure Home is: /u01/11.2.0/gridThe cluster node(s) on which the Oracle home deinstallation will be performed are:NODE1,NODE2Oracle Home selected for deinstall is: /u01/11.2.0/gridInventory Location where the Oracle home registered is: /u01/oraInventoryFollowing RAC listener(s) will be de-configured: LISTENERASM instance will be de-configured from this Oracle homeDo you want to continue (y - yes, n - no)? [n]: yA log of this session will be written to: '/u01/oraInventory/logs/deinstall_deconfig2012-02-17_07-57-02-PM.out'Any error messages from this session will be written to: '/u01/oraInventory/logs/deinstall_deconfig2012-02-17_07-57-02-PM.err'######################## CLEAN OPERATION START ########################ASM de-configuration trace file location: /u01/oraInventory/logs/asmcadc_clean2012-02-17_07-57-39-PM.logASM Clean Configuration STARTASM Clean Configuration ENDNetwork Configuration clean config STARTNetwork de-configuration trace file location: /u01/oraInventory/logs/netdc_clean2012-02-17_07-59-35-PM.logDe-configuring RAC listener(s): LISTENERDe-configuring listener: LISTENERStopping listener: LISTENERWarning: Failed to stop listener. Listener may not be running.Unregistering listener: LISTENERListener unregistered successfully.Listener de-configured successfully.De-configuring Naming Methods configuration file on all nodes...Naming Methods configuration file de-configured successfully.De-configuring Local Net Service Names configuration file on all nodes...Local Net Service Names configuration file de-configured successfully.De-configuring Directory Usage configuration file on all nodes...Directory Usage configuration file de-configured successfully.De-configuring backup files on all nodes...Backup files de-configured successfully.The network configuration has been cleaned up successfully.Network Configuration clean config END---------------------------------------->The deconfig command below can be executed in parallel on all the remote nodes. Execute the command onthe local node after the execution completes on all the remote nodes.Run the following command as the root user or the administrator on node "node2"./tmp/deinstall2012-02-17_07-56-43PM/perl/bin/perl -I/tmp/deinstall2012-02-17_07-56-43PM/perl/lib -I/tmp/deinstall2012-02-17_07-56-43PM/crs/install /tmp/deinstall2012-02-17_07-56-43PM/crs/install/rootcrs.pl -force-deconfig -paramfile "/tmp/deinstall2012-02-17_07-56-43PM/response/deinstall_Ora11g_gridinfrahome2.rsp"Run the following command as the root user or the administrator on node "node1"./tmp/deinstall2012-02-17_07-56-43PM/perl/bin/perl -I/tmp/deinstall2012-02-17_07-56-43PM/perl/lib -I/tmp/deinstall2012-02-17_07-56-43PM/crs/install /tmp/deinstall2012-02-17_07-56-43PM/crs/install/rootcrs.pl -force-deconfig -paramfile "/tmp/deinstall2012-02-17_07-56-43PM/response/deinstall_Ora11g_gridinfrahome2.rsp" -lastnodePress Enter after you finish running the above commands<----------------------------------------备注:这里需要在2个节点执行以root执行2个命令,然后回车在节点2上以root用户执行命令:4.2 节点二以root执行命令 NODE2#[/tmp/deinstall2012-02-17_07-56-43PM/perl/bin]cat a.sh---将要执行的命令放在文件里/tmp/deinstall2012-02-17_07-56-43PM/perl/bin/perl -I/tmp/deinstall2012-02-17_07-56-43PM/perl/lib -I/tmp/deinstall2012-02-17_07-56-43PM/crs/install /tmp/deinstall2012-02-17_07-56-43PM/crs/install/rootcrs.pl -force-deconfig -paramfile "/tmp/deinstall2012-02-17_07-56-43PM/response/deinstall_Ora11g_gridinfrahome2.rsp"NODE2#[/tmp/deinstall2012-02-17_07-56-43PM/perl/bin]./a.sh-----然后执行Using configuration parameter file: /tmp/deinstall2012-02-17_07-56-43PM/response/deinstall_Ora11g_gridinfrahome2.rspNetwork exists: 1/10.29.96.0/255.255.255.192/lan900, type staticVIP exists: /NODE1-vip/10.29.96.49/10.29.96.0/255.255.255.192/lan900, hosting node node1VIP exists: /NODE2-vip/10.29.96.50/10.29.96.0/255.255.255.192/lan900, hosting node node2GSD existsONS exists: Local port 6100, remote port 6200, EM port 2016CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'node2'CRS-2673: Attempting to stop 'ora.crsd' on 'node2'CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'node2'CRS-2673: Attempting to stop 'ora.asm' on 'node2'CRS-2677: Stop of 'ora.asm' on 'node2' succeededCRS-2792: Shutdown of Cluster Ready Services-managed resources on 'node2' has completedCRS-2677: Stop of 'ora.crsd' on 'node2' succeededCRS-2673: Attempting to stop 'ora.ctssd' on 'node2'CRS-2673: Attempting to stop 'ora.evmd' on 'node2'CRS-2673: Attempting to stop 'ora.asm' on 'node2'CRS-2673: Attempting to stop 'ora.mdnsd' on 'node2'CRS-2677: Stop of 'ora.mdnsd' on 'node2' succeededCRS-2677: Stop of 'ora.evmd' on 'node2' succeededCRS-2677: Stop of 'ora.asm' on 'node2' succeededCRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'node2'CRS-2677: Stop of 'ora.ctssd' on 'node2' succeededCRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'node2' succeededCRS-2673: Attempting to stop 'ora.cssd' on 'node2'CRS-2677: Stop of 'ora.cssd' on 'node2' succeededCRS-2673: Attempting to stop 'ora.gipcd' on 'node2'CRS-2677: Stop of 'ora.gipcd' on 'node2' succeededCRS-2673: Attempting to stop 'ora.gpnpd' on 'node2'CRS-2677: Stop of 'ora.gpnpd' on 'node2' succeededCRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'node2' has completedCRS-4133: Oracle High Availability Services has been stopped.Successfully deconfigured Oracle clusterware stack on this node4.3 节点一以root执行命令 NODE1#[/tmp/deinstall2012-02-17_07-56-43PM/perl/bin]cat a.sh---将要执行的命令放在文件里/tmp/deinstall2012-02-17_07-56-43PM/perl/bin/perl -I/tmp/deinstall2012-02-17_07-56-43PM/perl/lib -I/tmp/deinstall2012-02-17_07-56-43PM/crs/install /tmp/deinstall2012-02-17_07-56-43PM/crs/install/rootcrs.pl -force-deconfig -paramfile "/tmp/deinstall2012-02-17_07-56-43PM/response/deinstall_Ora11g_gridinfrahome2.rsp" -lastnodeNODE1#[/tmp/deinstall2012-02-17_07-56-43PM/perl/bin]./a.shUsing configuration parameter file: /tmp/deinstall2012-02-17_07-56-43PM/response/deinstall_Ora11g_gridinfrahome2.rspNetwork exists: 1/10.29.96.0/255.255.255.192/lan900, type staticVIP exists: /NODE1-vip/10.29.96.49/10.29.96.0/255.255.255.192/lan900, hosting node node1GSD existsONS exists: Local port 6100, remote port 6200, EM port 2016CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'node1'CRS-2673: Attempting to stop 'ora.crsd' on 'node1'CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'node1'CRS-2673: Attempting to stop 'ora.asm' on 'node1'CRS-2677: Stop of 'ora.asm' on 'node1' succeededCRS-2792: Shutdown of Cluster Ready Services-managed resources on 'node1' has completedCRS-2677: Stop of 'ora.crsd' on 'node1' succeededCRS-2673: Attempting to stop 'ora.ctssd' on 'node1'CRS-2673: Attempting to stop 'ora.evmd' on 'node1'CRS-2673: Attempting to stop 'ora.asm' on 'node1'CRS-2673: Attempting to stop 'ora.mdnsd' on 'node1'CRS-2677: Stop of 'ora.mdnsd' on 'node1' succeededCRS-2677: Stop of 'ora.evmd' on 'node1' succeededCRS-2677: Stop of 'ora.asm' on 'node1' succeededCRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'node1'CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'node1' succeededCRS-2677: Stop of 'ora.ctssd' on 'node1' succeededCRS-2673: Attempting to stop 'ora.cssd' on 'node1'CRS-2677: Stop of 'ora.cssd' on 'node1' succeededCRS-2673: Attempting to stop 'ora.gipcd' on 'node1'CRS-2677: Stop of 'ora.gipcd' on 'node1' succeededCRS-2673: Attempting to stop 'ora.gpnpd' on 'node1'CRS-2677: Stop of 'ora.gpnpd' on 'node1' succeededCRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'node1' has completedCRS-4133: Oracle High Availability Services has been stopped.Successfully deconfigured Oracle clusterware stack on this node然后回到刚才的界面,回车4.4 执行命令后回车结果 Setting the force flag to falseSetting the force flag to cleanup the Oracle BaseOracle Universal Installer clean STARTDetach Oracle home '/u01/11.2.0/grid' from the central inventory on the local node : DoneDelete directory '/u01/11.2.0/grid' on the local node : DoneThe Oracle Base directory '/u01/oracle' will not be removed on local node. The directory is in use by Oracle Home '/u01/grid'.Detach Oracle home '/u01/11.2.0/grid' from the central inventory on the remote nodes 'NODE2' : DoneDelete directory '/u01/11.2.0/grid' on the remote nodes 'NODE2' : DoneThe Oracle Base directory '/u01/oracle' will not be removed on node 'NODE2'. The directory is in use by Oracle Home '/u01/grid'.Oracle Universal Installer cleanup was successful.Oracle Universal Installer clean END## [START] Oracle install clean ##Clean install operation removing temporary directory '/tmp/deinstall2012-02-17_07-56-43PM' on node 'NODE1'Clean install operation removing temporary directory '/tmp/deinstall2012-02-17_07-56-43PM' on node 'NODE2'## [END] Oracle install clean ########################### CLEAN OPERATION END ################################################ CLEAN OPERATION SUMMARY #######################ASM instance was de-configured successfully from the Oracle homeFollowing RAC listener(s) were de-configured successfully: LISTENEROracle Clusterware is stopped and successfully de-configured on node "node2"Oracle Clusterware is stopped and successfully de-configured on node "node1"Oracle Clusterware is stopped and de-configured successfully.Successfully detached Oracle home '/u01/11.2.0/grid' from the central inventory on the local node.Successfully deleted directory '/u01/11.2.0/grid' on the local node.Successfully detached Oracle home '/u01/11.2.0/grid' from the central inventory on the remote nodes 'NODE2'.Successfully deleted directory '/u01/11.2.0/grid' on the remote nodes 'NODE2'.Oracle Universal Installer cleanup was successful.Run 'rm -rf /opt/ORCLfmap' as root on node(s) 'NODE1' at the end of the session.For complete clean up of Oracle Clusterware software from the system, deinstall the following old Oracle Clusterware home(s). Refer to Oracle Clusterware Install guide of respective release to perform the deinstallation./u01/grid on nodes : NODE1,NODE2Oracle deinstall tool successfully cleaned up temporary directories.#################################################################################### ORACLE DEINSTALL & DECONFIG TOOL END #############
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行