正确卸载rac的方法

一、关闭数据库和资源

1、节点1

[[email protected] bin]# pwd

/u01/app/11.2.0/grid/bin

[[email protected] bin]# ./crsctl stop crs

CRS-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.LISTENER_SCAN3.lsnr‘ on ‘node1‘

CRS-2673: Attempting to stop ‘ora.oc4j‘ on ‘node1‘

CRS-2673: Attempting to stop ‘ora.GRIDDG.dg‘ on ‘node1‘

CRS-2673: Attempting to stop ‘ora.registry.acfs‘ on ‘node1‘

CRS-2673: Attempting to stop ‘ora.orcl.db‘ on ‘node1‘

CRS-2673: Attempting to stop ‘ora.LISTENER.lsnr‘ on ‘node1‘

CRS-2677: Stop of ‘ora.LISTENER_SCAN3.lsnr‘ on ‘node1‘ succeeded

CRS-2673: Attempting to stop ‘ora.scan3.vip‘ on ‘node1‘

CRS-2677: Stop of ‘ora.LISTENER.lsnr‘ on ‘node1‘ succeeded

CRS-2673: Attempting to stop ‘ora.node1.vip‘ on ‘node1‘

CRS-2677: Stop of ‘ora.registry.acfs‘ on ‘node1‘ succeeded

CRS-2677: Stop of ‘ora.orcl.db‘ on ‘node1‘ succeeded

CRS-2673: Attempting to stop ‘ora.DATA.dg‘ on ‘node1‘

CRS-2673: Attempting to stop ‘ora.FLASH.dg‘ on ‘node1‘

CRS-2677: Stop of ‘ora.DATA.dg‘ on ‘node1‘ succeeded

CRS-2677: Stop of ‘ora.FLASH.dg‘ on ‘node1‘ succeeded

CRS-2677: Stop of ‘ora.scan3.vip‘ on ‘node1‘ succeeded

CRS-2672: Attempting to start ‘ora.scan3.vip‘ on ‘node2‘

CRS-2677: Stop of ‘ora.node1.vip‘ on ‘node1‘ succeeded

CRS-2672: Attempting to start ‘ora.node1.vip‘ on ‘node2‘

CRS-2676: Start of ‘ora.scan3.vip‘ on ‘node2‘ succeeded

CRS-2672: Attempting to start ‘ora.LISTENER_SCAN3.lsnr‘ on ‘node2‘

CRS-2677: Stop of ‘ora.oc4j‘ on ‘node1‘ succeeded

CRS-2672: Attempting to start ‘ora.oc4j‘ on ‘node2‘

CRS-2676: Start of ‘ora.node1.vip‘ on ‘node2‘ succeeded

CRS-2676: Start of ‘ora.LISTENER_SCAN3.lsnr‘ on ‘node2‘ succeeded

CRS-2677: Stop of ‘ora.GRIDDG.dg‘ on ‘node1‘ succeeded

CRS-2673: Attempting to stop ‘ora.asm‘ on ‘node1‘

CRS-2677: Stop of ‘ora.asm‘ on ‘node1‘ succeeded

CRS-2676: Start of ‘ora.oc4j‘ on ‘node2‘ succeeded

CRS-2673: Attempting to stop ‘ora.ons‘ on ‘node1‘

CRS-2677: Stop of ‘ora.ons‘ on ‘node1‘ succeeded

CRS-2673: Attempting to stop ‘ora.net1.network‘ on ‘node1‘

CRS-2677: Stop of ‘ora.net1.network‘ on ‘node1‘ succeeded

CRS-2792: Shutdown of Cluster Ready Services-managed resources on ‘node1‘ has completed

CRS-2677: Stop of ‘ora.crsd‘ on ‘node1‘ succeeded

CRS-2673: Attempting to stop ‘ora.crf‘ on ‘node1‘

CRS-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-2673: Attempting to stop ‘ora.drivers.acfs‘ on ‘node1‘

CRS-2677: Stop of ‘ora.crf‘ on ‘node1‘ succeeded

CRS-2677: Stop of ‘ora.evmd‘ on ‘node1‘ succeeded

CRS-2677: Stop of ‘ora.mdnsd‘ on ‘node1‘ succeeded

CRS-2677: Stop of ‘ora.ctssd‘ on ‘node1‘ succeeded

CRS-2677: Stop of ‘ora.asm‘ on ‘node1‘ succeeded

CRS-2673: Attempting to stop ‘ora.cluster_interconnect.haip‘ on ‘node1‘

CRS-2677: Stop of ‘ora.drivers.acfs‘ on ‘node1‘ succeeded

CRS-2677: Stop of ‘ora.cluster_interconnect.haip‘ on ‘node1‘ succeeded

CRS-2673: Attempting to stop ‘ora.cssd‘ on ‘node1‘

CRS-2677: Stop of ‘ora.cssd‘ on ‘node1‘ succeeded

CRS-2673: Attempting to stop ‘ora.gipcd‘ on ‘node1‘

CRS-2677: Stop of ‘ora.gipcd‘ on ‘node1‘ succeeded

CRS-2673: Attempting to stop ‘ora.gpnpd‘ on ‘node1‘

CRS-2677: Stop of ‘ora.gpnpd‘ on ‘node1‘ succeeded

CRS-2793: Shutdown of Oracle High Availability Services-managed resources on ‘node1‘ has completed

CRS-4133: Oracle High Availability Services has been stopped.

2、节点2

[[email protected] ~]# cd /u01/app/11.2.0/grid/bin/

[[email protected] bin]# ./crsctl stop crs

CRS-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.LISTENER_SCAN3.lsnr‘ on ‘node2‘

CRS-2673: Attempting to stop ‘ora.LISTENER_SCAN2.lsnr‘ on ‘node2‘

CRS-2673: Attempting to stop ‘ora.LISTENER_SCAN1.lsnr‘ on ‘node2‘

CRS-2673: Attempting to stop ‘ora.oc4j‘ on ‘node2‘

CRS-2673: Attempting to stop ‘ora.node2.vip‘ on ‘node2‘

CRS-2673: Attempting to stop ‘ora.cvu‘ on ‘node2‘

CRS-2673: Attempting to stop ‘ora.GRIDDG.dg‘ on ‘node2‘

CRS-2673: Attempting to stop ‘ora.registry.acfs‘ on ‘node2‘

CRS-2673: Attempting to stop ‘ora.orcl.db‘ on ‘node2‘

CRS-2673: Attempting to stop ‘ora.LISTENER.lsnr‘ on ‘node2‘

CRS-2677: Stop of ‘ora.cvu‘ on ‘node2‘ succeeded

CRS-2677: Stop of ‘ora.LISTENER_SCAN3.lsnr‘ on ‘node2‘ succeeded

CRS-2673: Attempting to stop ‘ora.scan3.vip‘ on ‘node2‘

CRS-2677: Stop of ‘ora.LISTENER_SCAN1.lsnr‘ on ‘node2‘ succeeded

CRS-2673: Attempting to stop ‘ora.scan1.vip‘ on ‘node2‘

CRS-2677: Stop of ‘ora.LISTENER_SCAN2.lsnr‘ on ‘node2‘ succeeded

CRS-2673: Attempting to stop ‘ora.scan2.vip‘ on ‘node2‘

CRS-2677: Stop of ‘ora.LISTENER.lsnr‘ on ‘node2‘ succeeded

CRS-2677: Stop of ‘ora.registry.acfs‘ on ‘node2‘ succeeded

CRS-2677: Stop of ‘ora.node2.vip‘ on ‘node2‘ succeeded

CRS-2673: Attempting to stop ‘ora.node1.vip‘ on ‘node2‘

CRS-2677: Stop of ‘ora.orcl.db‘ on ‘node2‘ succeeded

CRS-2673: Attempting to stop ‘ora.DATA.dg‘ on ‘node2‘

CRS-2673: Attempting to stop ‘ora.FLASH.dg‘ on ‘node2‘

CRS-2677: Stop of ‘ora.DATA.dg‘ on ‘node2‘ succeeded

CRS-2677: Stop of ‘ora.scan2.vip‘ on ‘node2‘ succeeded

CRS-2677: Stop of ‘ora.FLASH.dg‘ on ‘node2‘ succeeded

CRS-2677: Stop of ‘ora.scan3.vip‘ on ‘node2‘ succeeded

CRS-2677: Stop of ‘ora.scan1.vip‘ on ‘node2‘ succeeded

CRS-2677: Stop of ‘ora.oc4j‘ on ‘node2‘ succeeded

CRS-2677: Stop of ‘ora.node1.vip‘ on ‘node2‘ succeeded

CRS-2677: Stop of ‘ora.GRIDDG.dg‘ on ‘node2‘ succeeded

CRS-2673: Attempting to stop ‘ora.asm‘ on ‘node2‘

CRS-2677: Stop of ‘ora.asm‘ on ‘node2‘ succeeded

CRS-2673: Attempting to stop ‘ora.ons‘ on ‘node2‘

CRS-2677: Stop of ‘ora.ons‘ on ‘node2‘ succeeded

CRS-2673: Attempting to stop ‘ora.net1.network‘ on ‘node2‘

CRS-2677: Stop of ‘ora.net1.network‘ on ‘node2‘ succeeded

CRS-2792: Shutdown of Cluster Ready Services-managed resources on ‘node2‘ has completed

CRS-2677: Stop of ‘ora.crsd‘ on ‘node2‘ succeeded

CRS-2673: Attempting to stop ‘ora.drivers.acfs‘ on ‘node2‘

CRS-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.evmd‘ on ‘node2‘ succeeded

CRS-2677: Stop of ‘ora.mdnsd‘ on ‘node2‘ succeeded

CRS-2677: Stop of ‘ora.ctssd‘ on ‘node2‘ succeeded

CRS-2677: Stop of ‘ora.asm‘ on ‘node2‘ succeeded

CRS-2673: Attempting to stop ‘ora.cluster_interconnect.haip‘ on ‘node2‘

CRS-2677: Stop of ‘ora.cluster_interconnect.haip‘ on ‘node2‘ succeeded

CRS-2673: Attempting to stop ‘ora.cssd‘ on ‘node2‘

CRS-2677: Stop of ‘ora.cssd‘ on ‘node2‘ succeeded

CRS-2673: Attempting to stop ‘ora.crf‘ on ‘node2‘

CRS-2677: Stop of ‘ora.drivers.acfs‘ on ‘node2‘ succeeded

CRS-2677: Stop of ‘ora.crf‘ on ‘node2‘ succeeded

CRS-2673: Attempting to stop ‘ora.gipcd‘ on ‘node2‘

CRS-2677: Stop of ‘ora.gipcd‘ on ‘node2‘ succeeded

CRS-2673: Attempting to stop ‘ora.gpnpd‘ on ‘node2‘

CRS-2677: Stop of ‘ora.gpnpd‘ on ‘node2‘ succeeded

CRS-2793: Shutdown of Oracle High Availability Services-managed resources on ‘node2‘ has completed

CRS-4133: Oracle High Availability Services has been stopped.

二、用deinstall卸载grid

[[email protected] grid]$ cd /u01/app/11.2.0/grid/deinstall/

[[email protected] deinstall]$ ./deinstall

Checking for required files and bootstrapping ...

Please wait ...

Location of logs /u01/app/oraInventory/logs/

############ ORACLE DEINSTALL & DECONFIG TOOL START ############

######################### CHECK OPERATION START #########################

## [START] Install check configuration ##

Checking for existence of the Oracle home location /u01/app/11.2.0/grid

Oracle Home type selected for deinstall is: Oracle Grid Infrastructure for a Cluster

Oracle Base selected for deinstall is: /u01/app/grid

Checking for existence of central inventory location /u01/app/oraInventory

Checking for existence of the Oracle Grid Infrastructure home /u01/app/11.2.0/grid

The following nodes are part of this cluster: node1,node2

Checking for sufficient temp space availability on node(s) : ‘node1,node2‘

## [END] Install check configuration ##

Traces log file: /u01/app/oraInventory/logs//crsdc.log

Enter an address or the name of the virtual IP used on node "node1"[node1-vip]

>

node1-vip

The following information can be collected by running "/sbin/ifconfig -a" on node "node1"

Enter the IP netmask of Virtual IP "192.168.100.42" on node "node1"[255.255.255.0]

>

255.255.255.0

Enter the network interface name on which the virtual IP address "192.168.100.42" is active

>

eth0

Enter an address or the name of the virtual IP used on node "node2"[node2-vip]

>

node2-vip

The following information can be collected by running "/sbin/ifconfig -a" on node "node2"

Enter the IP netmask of Virtual IP "192.168.100.44" on node "node2"[255.255.255.0]

>

Enter the network interface name on which the virtual IP address "192.168.100.44" is active[eth0]

>

eth0

Enter an address or the name of the virtual IP[]

>

Network Configuration check config START

Network de-configuration trace file location: /u01/app/oraInventory/logs/netdc_check2016-03-25_05-22-20-PM.log

Specify all RAC listeners (do not include SCAN listener) that are to be de-configured [LISTENER,LISTENER_SCAN3,LISTENER_SCAN2,LISTENER_SCAN1]:

Network Configuration check config END

Asm Check Configuration START

ASM de-configuration trace file location: /u01/app/oraInventory/logs/asmcadc_check2016-03-25_05-22-41-PM.log

ASM configuration was not detected in this Oracle home. Was ASM configured in this Oracle home (y|n) [n]: y

Specify the ASM Diagnostic Destination [ ]:

Specify the diskstring []: ORCL:*

Specify the diskgroups that are managed by this ASM instance []: DATA

De-configuring ASM will drop the diskgroups at cleanup time. Do you want deconfig tool to drop the diskgroups y|n [y]:

######################### CHECK OPERATION END #########################

####################### CHECK OPERATION SUMMARY #######################

Oracle Grid Infrastructure Home is: /u01/app/11.2.0/grid

The cluster node(s) on which the Oracle home deinstallation will be performed are:node1,node2

Oracle Home selected for deinstall is: /u01/app/11.2.0/grid

Inventory Location where the Oracle home registered is: /u01/app/oraInventory

Following RAC listener(s) will be de-configured: LISTENER,LISTENER_SCAN3,LISTENER_SCAN2,LISTENER_SCAN1

ASM instance will be de-configured from this Oracle home

Do you want to continue (y - yes, n - no)? [n]: y

A log of this session will be written to: ‘/u01/app/oraInventory/logs/deinstall_deconfig2016-03-25_05-17-01-PM.out‘

Any error messages from this session will be written to: ‘/u01/app/oraInventory/logs/deinstall_deconfig2016-03-25_05-17-01-PM.err‘

######################## CLEAN OPERATION START ########################

ASM de-configuration trace file location: /u01/app/oraInventory/logs/asmcadc_clean2016-03-25_05-25-52-PM.log

ASM Clean Configuration START

ASM Clean Configuration END

Network Configuration clean config START

Network de-configuration trace file location: /u01/app/oraInventory/logs/netdc_clean2016-03-25_05-25-59-PM.log

De-configuring RAC listener(s): LISTENER,LISTENER_SCAN3,LISTENER_SCAN2,LISTENER_SCAN1

De-configuring listener: LISTENER

Stopping listener: LISTENER

Warning: Failed to stop listener. Listener may not be running.

Listener de-configured successfully.

De-configuring listener: LISTENER_SCAN3

Stopping listener: LISTENER_SCAN3

Warning: Failed to stop listener. Listener may not be running.

Listener de-configured successfully.

De-configuring listener: LISTENER_SCAN2

Stopping listener: LISTENER_SCAN2

Warning: Failed to stop listener. Listener may not be running.

Listener de-configured successfully.

De-configuring listener: LISTENER_SCAN1

Stopping listener: LISTENER_SCAN1

Warning: Failed to stop listener. Listener may not be running.

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 on the 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/deinstall2016-03-25_05-16-50PM/perl/bin/perl -I/tmp/deinstall2016-03-25_05-16-50PM/perl/lib -I/tmp/deinstall2016-03-25_05-16-50PM/crs/install /tmp/deinstall2016-03-25_05-16-50PM/crs/install/rootcrs.pl -force -deconfig -paramfile "/tmp/deinstall2016-03-25_05-16-50PM/response/deinstall_Ora11g_gridinfrahome1.rsp"

Run the following command as the root user or the administrator on node "node1".

/tmp/deinstall2016-03-25_05-16-50PM/perl/bin/perl -I/tmp/deinstall2016-03-25_05-16-50PM/perl/lib -I/tmp/deinstall2016-03-25_05-16-50PM/crs/install /tmp/deinstall2016-03-25_05-16-50PM/crs/install/rootcrs.pl -force -deconfig -paramfile "/tmp/deinstall2016-03-25_05-16-50PM/response/deinstall_Ora11g_gridinfrahome1.rsp" -lastnode

Press Enter after you finish running the above commands

<----------------------------------------

---------------------------------------->

The deconfig command below can be executed in parallel on all the remote nodes. Execute the command on the local node after the execution completes on all the remote nodes.

Press Enter after you finish running the above commands

<----------------------------------------

注意:在集群的每一个节点执行以上脚本:

[[email protected] bin]# /tmp/deinstall2016-03-25_05-16-50PM/perl/bin/perl -I/tmp/deinstall2016-03-25_05-16-50PM/perl/lib -I/tmp/deinstall2016-03-25_05-16-50PM/crs/install /tmp/deinstall2016-03-25_05-16-50PM/crs/install/rootcrs.pl -force -deconfig -paramfile "/tmp/deinstall2016-03-25_05-16-50PM/response/deinstall_Ora11g_gridinfrahome1.rsp"

Using configuration parameter file: /tmp/deinstall2016-03-25_05-16-50PM/response/deinstall_Ora11g_gridinfrahome1.rsp

PRCR-1119 : Failed to look up CRS resources of ora.cluster_vip_net1.type type

PRCR-1068 : Failed to query resources

Cannot communicate with crsd

PRCR-1070 : Failed to check if resource ora.gsd is registered

Cannot communicate with crsd

PRCR-1070 : Failed to check if resource ora.ons is registered

Cannot communicate with crsd

CRS-4535: Cannot communicate with Cluster Ready Services

CRS-4000: Command Stop failed, or completed with errors.

CRS-4544: Unable to connect to OHAS

CRS-4000: Command Stop failed, or completed with errors.

Removing Trace File Analyzer

Successfully deconfigured Oracle clusterware stack on this node

[[email protected] bin]# /tmp/deinstall2016-03-25_05-16-50PM/perl/bin/perl -I/tmp/deinstall2016-03-25_05-16-50PM/perl/lib -I/tmp/deinstall2016-03-25_05-16-50PM/crs/install /tmp/deinstall2016-03-25_05-16-50PM/crs/install/rootcrs.pl -force -deconfig -paramfile "/tmp/deinstall2016-03-25_05-16-50PM/response/deinstall_Ora11g_gridinfrahome1.rsp" -lastnode

Using configuration parameter file: /tmp/deinstall2016-03-25_05-16-50PM/response/deinstall_Ora11g_gridinfrahome1.rsp

Adding Clusterware entries to inittab

PRCR-1068 : Failed to query resources

Cannot communicate with crsd

PRCR-1068 : Failed to query resources

Cannot communicate with crsd

PRCR-1068 : Failed to query resources

Cannot communicate with crsd

PRCR-1068 : Failed to query resources

Cannot communicate with crsd

PRCR-1119 : Failed to look up CRS resources of ora.cluster_vip_net1.type type

PRCR-1068 : Failed to query resources

Cannot communicate with crsd

PRCR-1070 : Failed to check if resource ora.gsd is registered

Cannot communicate with crsd

PRCR-1070 : Failed to check if resource ora.ons is registered

Cannot communicate with crsd

CRS-4535: Cannot communicate with Cluster Ready Services

CRS-4000: Command Stop failed, or completed with errors.

CRS-4535: Cannot communicate with Cluster Ready Services

CRS-4000: Command Delete failed, or completed with errors.

CRS-2673: Attempting to stop ‘ora.crsd‘ on ‘node1‘

CRS-2677: Stop of ‘ora.crsd‘ on ‘node1‘ succeeded

CRS-2673: Attempting to stop ‘ora.ctssd‘ on ‘node1‘

CRS-2673: Attempting to stop ‘ora.asm‘ on ‘node1‘

CRS-2677: Stop of ‘ora.asm‘ on ‘node1‘ succeeded

CRS-2673: Attempting to stop ‘ora.cluster_interconnect.haip‘ on ‘node1‘

CRS-2677: Stop of ‘ora.cluster_interconnect.haip‘ on ‘node1‘ succeeded

CRS-2677: Stop of ‘ora.ctssd‘ on ‘node1‘ succeeded

CRS-2673: Attempting to stop ‘ora.cssd‘ on ‘node1‘

CRS-2677: Stop of ‘ora.cssd‘ on ‘node1‘ succeeded

CRS-2672: Attempting to start ‘ora.cssdmonitor‘ on ‘node1‘

CRS-2676: Start of ‘ora.cssdmonitor‘ on ‘node1‘ succeeded

CRS-2672: Attempting to start ‘ora.cssd‘ on ‘node1‘

CRS-2672: Attempting to start ‘ora.diskmon‘ on ‘node1‘

CRS-2676: Start of ‘ora.diskmon‘ on ‘node1‘ succeeded

CRS-2676: Start of ‘ora.cssd‘ on ‘node1‘ succeeded

CRS-4611: Successful deletion of voting disk +GRIDDG.

ASM de-configuration trace file location: /u01/app/oraInventory/logs/asmcadc_clean2016-03-25_05-36-10-PM.log

ASM Clean Configuration START

ASM Clean Configuration END

ASM with SID +ASM1 deleted successfully. Check /u01/app/oraInventory/logs/asmcadc_clean2016-03-25_05-36-10-PM.log for details.

CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on ‘node1‘

CRS-2673: Attempting to stop ‘ora.ctssd‘ on ‘node1‘

CRS-2673: Attempting to stop ‘ora.cluster_interconnect.haip‘ on ‘node1‘

CRS-2673: Attempting to stop ‘ora.mdnsd‘ on ‘node1‘

CRS-2677: Stop of ‘ora.cluster_interconnect.haip‘ on ‘node1‘ succeeded

CRS-2677: Stop of ‘ora.mdnsd‘ on ‘node1‘ succeeded

CRS-2677: Stop of ‘ora.ctssd‘ on ‘node1‘ succeeded

CRS-2673: Attempting to stop ‘ora.cssd‘ on ‘node1‘

CRS-2677: Stop of ‘ora.cssd‘ on ‘node1‘ succeeded

CRS-2673: Attempting to stop ‘ora.gipcd‘ on ‘node1‘

CRS-2677: Stop of ‘ora.gipcd‘ on ‘node1‘ succeeded

CRS-2673: Attempting to stop ‘ora.gpnpd‘ on ‘node1‘

CRS-2677: Stop of ‘ora.gpnpd‘ on ‘node1‘ succeeded

CRS-2793: Shutdown of Oracle High Availability Services-managed resources on ‘node1‘ has completed

CRS-4133: Oracle High Availability Services has been stopped.

Removing Trace File Analyzer

Successfully deconfigured Oracle clusterware stack on this node

以上脚本执行完成后,回车继续:如下。

Setting the force flag to false

Setting the force flag to cleanup the Oracle Base

Oracle Universal Installer clean START

Detach Oracle home ‘/u01/app/11.2.0/grid‘ from the central inventory on the local node : Done

Delete directory ‘/u01/app/11.2.0/grid‘ on the local node : Done

Delete directory ‘/u01/app/grid‘ on the local node : Done

Detach Oracle home ‘/u01/app/11.2.0/grid‘ from the central inventory on the remote nodes ‘node2‘ : Done

Delete directory ‘/u01/app/11.2.0/grid‘ on the remote nodes ‘node2‘ : Done

Delete directory ‘/u01/app/grid‘ on the remote nodes ‘node2‘ : Done

Oracle Universal Installer cleanup was successful.

Oracle Universal Installer clean END

## [START] Oracle install clean ##

Clean install operation removing temporary directory ‘/tmp/deinstall2016-03-25_05-16-50PM‘ on node ‘node1‘

Clean install operation removing temporary directory ‘/tmp/deinstall2016-03-25_05-16-50PM‘ on node ‘node2‘

## [END] Oracle install clean ##

######################### CLEAN OPERATION END #########################

####################### CLEAN OPERATION SUMMARY #######################

ASM instance was de-configured successfully from the Oracle home

Following RAC listener(s) were de-configured successfully: LISTENER,LISTENER_SCAN3,LISTENER_SCAN2,LISTENER_SCAN1

Oracle 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/app/11.2.0/grid‘ from the central inventory on the local node.

Successfully deleted directory ‘/u01/app/11.2.0/grid‘ on the local node.

Successfully deleted directory ‘/u01/app/grid‘ on the local node.

Successfully detached Oracle home ‘/u01/app/11.2.0/grid‘ from the central inventory on the remote nodes ‘node2‘.

Successfully deleted directory ‘/u01/app/11.2.0/grid‘ on the remote nodes ‘node2‘.

Successfully deleted directory ‘/u01/app/grid‘ on the remote nodes ‘node2‘.

Oracle Universal Installer cleanup was successful.

Oracle deinstall tool successfully cleaned up temporary directories.

#######################################################################

############# ORACLE DEINSTALL & DECONFIG TOOL END #############

三、卸载后检查确认

1、检查每个节点上的输出日志,确认无误。

2、检查各个节点的/etc/inittab文件,ohasd的内容应该被删除了。

3、检查每个节点是否存在ora或d.bin的进程运行,有即kill掉。

4、检查/etc/oracle目录,确认这个目录下的.loc文件被命名为.orig.

5、删除$GRID_HOME和$ORACLE_HOME目录。

四、删除asm磁盘

[[email protected] app]# oracleasm listdisks

VOL1

VOL2

VOL3

VOL4

[[email protected] app]# oracleasm deletedisk VOL1

Clearing disk header: done

Dropping disk: done

[[email protected] app]# oracleasm deletedisk VOL2

Clearing disk header: done

Dropping disk: done

[[email protected] app]# oracleasm deletedisk VOL3

Clearing disk header: done

Dropping disk: done

[[email protected] app]# oracleasm deletedisk VOL4

Clearing disk header: done

Dropping disk: done

[[email protected] app]# oracleasm listdisks

[[email protected] app]#

[[email protected] app]# oracleasm listdisks

VOL1

VOL2

VOL3

VOL4

[[email protected] app]# oracleasm scandisks

Reloading disk partitions: done

Cleaning any stale ASM disks...

Cleaning disk "VOL1"

Cleaning disk "VOL2"

Cleaning disk "VOL3"

Cleaning disk "VOL4"

Scanning system for ASM disks...

[[email protected] app]# oracleasm listdisks

[[email protected] app]#

总结:卸载步骤

1、[[email protected] bin]# pwd

/u01/app/11.2.0/grid/bin

[[email protected] bin]# ./crsctl stop crs

2、[[email protected] bin]# pwd

/u01/app/11.2.0/grid/bin

[[email protected] bin]# ./crsctl stop crs

3、[[email protected] grid]$ cd /u01/app/11.2.0/grid/deinstall/

[[email protected] deinstall]$ ./deinstall

4、卸载后检查确认

1)检查每个节点上的输出日志,确认无误。

2)检查各个节点的/etc/inittab文件,ohasd的内容应该被删除了。

3)检查每个节点是否存在ora或d.bin的进程运行,有即kill掉。

4)检查/etc/oracle目录,确认这个目录下的.loc文件被命名为.orig.

5)删除$GRID_HOME和$ORACLE_HOME目录。

5、删除asm磁盘

[[email protected] app]# oracleasm listdisks

VOL1

VOL2

VOL3

VOL4

[[email protected] app]# oracleasm deletedisk VOL1

Clearing disk header: done

Dropping disk: done

[[email protected] app]# oracleasm deletedisk VOL2

Clearing disk header: done

Dropping disk: done

[[email protected] app]# oracleasm deletedisk VOL3

Clearing disk header: done

Dropping disk: done

[[email protected] app]# oracleasm deletedisk VOL4

Clearing disk header: done

Dropping disk: done

[[email protected] app]# oracleasm listdisks

[[email protected] app]#

[[email protected] app]# oracleasm listdisks

VOL1

VOL2

VOL3

VOL4

[[email protected] app]# oracleasm scandisks

Reloading disk partitions: done

Cleaning any stale ASM disks...

Cleaning disk "VOL1"

Cleaning disk "VOL2"

Cleaning disk "VOL3"

Cleaning disk "VOL4"

Scanning system for ASM disks...

[[email protected] app]# oracleasm listdisks

[[email protected] app]#

时间: 2024-10-05 11:38:11

正确卸载rac的方法的相关文章

win10、Ubuntu14.04双系统正确卸载Ubuntu的方法

参考博客:http://www.cnblogs.com/xia-Autumn/p/6294055.html 问题描述:由于python问题Ubuntu系统崩了,登录之后无法进入桌面.重装桌面时报错,无奈之下选择重装系统. 一.先判断双系统启动方式 以管理员身份运行cmd,输入命令bcdedit.找到Windows启动加载器的path那一行,如果是winload.efi就是uefi引导,若为exe就是legacy引导 或者win+r输入msinfo32找到bios模式,如果显示为传统,就表示是le

Win7、Ubuntu双系统正确卸载Ubuntu系统

来源:http://jingyan.baidu.com/article/295430f13ed7d80c7e005088.html 如果ubuntu不是以wubi方式安装的,那么卸载ubuntu时要慎重,不是直接删除ubuntu所在分区这么简单的,否则你会发现你的windows系统也进不去了.那是因为如果你安装Ubuntu的时候将GRUB写入到MBR,也就是/dev/sda,(如果你每次一开机就出现GURB菜单,说明写入到MBR ).那么你卸载ubuntu的时候就将MBR重写,去掉ubuntu的

ADODB.Connection 错误 &#39;800a0e7a&#39; 未找到提供程序。该程序可能未正确安装。解决方法!

[问题描述]调试基于ACCESS+ASP的网站程序的时候,遇到如下错误: ADODB.Connection 错误 '800a0e7a' 未找到提供程序.该程序可能未正确安装. /Inc/Function.asp,行 9 [原因分析]因为系统是64位的win7或win8.1所以会出现这个问题,解决方法如下: [解决方法]找到IIS应用程序池,“设置应用程序池默认属性”-->“常规”-->”启用 32 位应用程序”,设置为 True即可解决. ADODB.Connection 错误 '800a0e

TableViewCell reuse 重用 我认为的正确理解与使用方法

其实有点失望,因为用google搜索“uitableviewcell dequeueReusableCellWithIdentifier”出来一堆堆资深博主的文章.看了看,大部分都是在解决一个问题:使用重用时cell显示混乱的问题.该问题本身并不让我失望,失望的是博主们的解释. 首先,回顾一下UITableViewCell的重用,其基本逻辑就是tableView一开始会创建一屏幕的cell(如果有那么多)并把他们标记(Identifier),之后用户上下滑动tableView时,使用Identi

虚拟机下centos时间不正确的方便解决方法

就是用NTP了,通过外部的服务同步时间. ntpdate us.pool.ntp.org | logger -t NTP 如果没有ntpdate ,可以使用 yum install ntpdate 进行安装. 当然最好放在crontab里面,各一段时间同步一次就OK. crontab -e * * * * * /usr/sbin/ntpdate us.pool.ntp.org | logger -t NTP 每分钟同步一次,够狠吧. ===============================

Eclipse中Android公共库的正确建立及调用方法(转)

转自http://www.cnblogs.com/SkyD/archive/2011/09/01/2161502.html 引言 之前一直头痛于没有办法在多个程序中共享资源,用作公共类库的方法也是使用的导出jar再导入的办法,现在终于初步搞明白了,可算解脱了~,分享出来. 建立公共库 首先建立公共库的Android项目,名为MyCoreLib: 完成后在左侧包浏览器里右键点选我们新建的这个项目,选择Properties项: 左侧选择Android分类,右侧勾选Is Library选项: 完成后在

c#动态加载卸载DLL的方法

这篇文章介绍了c#动态加载卸载DLL的方法,有需要的朋友可以参考一下 c#中通过反射可以方便的动态加载dll程序集,但是如果你需要对dll进行更新,却发现.net类库没有提供卸载dll程序集的方法.在.net 中,加入了应用程序域的概念,应用程序域是可以卸载的.也就是说,如果需要对动态加载的dll程序集进行更新,可以通过以下方法解决: 新建一个应用程序域,在该应用程序域中动态加载DLL,然后可以卸载掉该应用程序域.该应用程序域被卸载的时候,相关资源也会被回收. 要想这样实现,就要让你程序的cur

卸载事件off()方法

卸载事件off()方法 通过.on()绑定的事件处理程序 通过off() 方法移除该绑定 根据on绑定事件的一些特性,off方法也可以通过相应的传递组合的事件名,名字空间,选择器或处理函数来移除绑定在元素上指定的事件处理函数.当有多个过滤参数时,只有与这些参数完全匹配的事件处理函数才会被移除 绑定2个事件 $("elem").on("mousedown mouseup",fn) 删除一个事件 $("elem").off("mousedo

[Python] 正确复制列表的方法

new = old[:] Python老鸟都知道以上代码是什么意思.它复制列表old到new.它对于新手来说是种困惑而且应该避免使用这种方法.不幸的是[:]标记法被广泛使用,可能是Python程序员不知道更好的列表复制法吧. 首先我们需要了解Python是如何管理对象和变量.Python没有C语言中的变量.在C语言中,变量不止是个名字,它是字节集合并真实存在于内存某个位置上.而在Python中,变量仅仅是指向对象的标签. 看看以下语句: a = [1, 2, 3] 它表示我们创建了一个指引指向列