一、关闭数据库和资源

1、节点1

[root@node1 bin]# pwd

/u01/app/11.2.0/grid/bin

[root@node1 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

[root@node2 ~]# cd /u01/app/11.2.0/grid/bin/

[root@node2 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

[grid@node1 grid]$ cd /u01/app/11.2.0/grid/deinstall/

[grid@node1 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

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

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

[root@node2 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

[root@node1 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磁盘

[root@node1 app]# oracleasm listdisks

VOL1

VOL2

VOL3

VOL4

[root@node1 app]# oracleasm deletedisk VOL1

Clearing disk header: done

Dropping disk: done

[root@node1 app]# oracleasm deletedisk VOL2

Clearing disk header: done

Dropping disk: done

[root@node1 app]# oracleasm deletedisk VOL3

Clearing disk header: done

Dropping disk: done

[root@node1 app]# oracleasm deletedisk VOL4

Clearing disk header: done

Dropping disk: done

[root@node1 app]# oracleasm listdisks

[root@node1 app]#

[root@node2 app]# oracleasm listdisks

VOL1

VOL2

VOL3

VOL4

[root@node2 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...

[root@node2 app]# oracleasm listdisks

[root@node2 app]#

总结:卸载步骤

1、[root@node1 bin]# pwd

/u01/app/11.2.0/grid/bin

[root@node1 bin]# ./crsctl stop crs

2、[root@node2 bin]# pwd

/u01/app/11.2.0/grid/bin

[root@node2 bin]# ./crsctl stop crs

3、[grid@node1 grid]$ cd /u01/app/11.2.0/grid/deinstall/

[grid@node1 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磁盘

[root@node1 app]# oracleasm listdisks

VOL1

VOL2

VOL3

VOL4

[root@node1 app]# oracleasm deletedisk VOL1

Clearing disk header: done

Dropping disk: done

[root@node1 app]# oracleasm deletedisk VOL2

Clearing disk header: done

Dropping disk: done

[root@node1 app]# oracleasm deletedisk VOL3

Clearing disk header: done

Dropping disk: done

[root@node1 app]# oracleasm deletedisk VOL4

Clearing disk header: done

Dropping disk: done

[root@node1 app]# oracleasm listdisks

[root@node1 app]#

[root@node2 app]# oracleasm listdisks

VOL1

VOL2

VOL3

VOL4

[root@node2 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...

[root@node2 app]# oracleasm listdisks

[root@node2 app]#

Oracle卸载之正确卸载rac数据库的方法(MOS卸载方法)的更多相关文章

  1. MySQL 数据库的安装与卸载

    一.安装 (1)打开下载的 mysql 安装文件双击解压缩,运行“mysql-5.5.40-win32.msi” (2)选择安装类型, 有“Typical(默认) ”. “Complete(完全) ” ...

  2. Oracle 11gR2 RAC 数据库不能连接(ORA-12537: TNS:connection closed)的解决

        Oracle 11gR2 RAC 数据库不能连接(ORA-12537: TNS:connection closed)的解决 [oracle@rac01 ~]$ sqlplus /nolog S ...

  3. oracle rac 数据库常用命令

    oracle rac 数据库常用命令:1.所有实例和服务的状态srvclt status database -d orcl单个实例的状态:srvctl status instance -d orcl ...

  4. plsql oracle client没有正确安装(plsql连接远程数据库)

      plsql oracle client没有正确安装(plsql连接远程数据库) CreateTime--2018年4月23日16:55:11 Author:Marydon 1.情景再现 2.问题解 ...

  5. 转载:【Oracle 集群】RAC知识图文详细教程(八)--Oracle 11G RAC数据库安装

    文章导航 集群概念介绍(一) ORACLE集群概念和原理(二) RAC 工作原理和相关组件(三) 缓存融合技术(四) RAC 特殊问题和实战经验(五) ORACLE 11 G版本2 RAC在LINUX ...

  6. Oracle 11gR2 RAC 数据库不能连接(ORA-12537: TNS:connection closed)

    Oracle 11gR2 RAC 数据库不能连接(ORA-12537: TNS:connection closed)的解决 [oracle@rac01 ~]$ sqlplus /nolog SQL*P ...

  7. Oracle 12.2.0.1 RAC for rhel 7.X 数据库安装(节点1执行root.sh失败)

    说明: 最开始是用的rehat7.2安装12.2.0.1,后面安装GI节点一执行root.sh脚本失败,排查原因,最开始以为是操作系统的问题,换成rehat7.6,同样的出现问题,经过一番折腾,后面通 ...

  8. [转帖]如何获得一个Oracle RAC数据库(从Github - oracle/vagrant-boxes) --- 暂时未测试成功 公司网络太差了..

    如何获得一个Oracle RAC数据库(从Github - oracle/vagrant-boxes) 2019-11-20 16:40:36 dingdingfish 阅读数 5更多 分类专栏: 如 ...

  9. Oracle日常运维操作总结-数据库的启动和关闭

    下面是工作中对Oracle日常管理操作的一些总结,都是一些基本的oracle操作和SQL语句写法,在此梳理成手册,希望能帮助到初学者(如有梳理不准确之处,希望指出). 一.数据库的启动和关闭 1.1 ...

  10. 【Oracle 集群】11G RAC 知识图文详细教程之RAC在LINUX上使用NFS安装前准备(六)

    RAC在LINUX上使用NFS安装前准备(六) 概述:写下本文档的初衷和动力,来源于上篇的<oracle基本操作手册>.oracle基本操作手册是作者研一假期对oracle基础知识学习的汇 ...

随机推荐

  1. seqtk 的安装和使用

    seqtk 是一款针对fasta/fastq 文件进行处理的小程序,有很多的功能,速度很快,很方便: 源代码:https://github.com/lh3/seqtk 安装: git clone ht ...

  2. CentOS下添加sudo用户

    一 .sodo的使用 1.1 关于sudo Sudo是linux系统中,非root权限的用户提升自己权限来执行某些特性命令的方式,它使普通用户在不知道超级用户的密码的情况下,也可以暂时的获得root权 ...

  3. MathType有哪些功能

    随着寒流呼呼来临,期末考也不放过我们,不知道你们是在题海里遨游,还是已做好了挑战准备呢.不管你是哪种情况,现在就有一款玩转理工科的强大编辑公式强悍来袭,不管你是学生.教师,还是理科专业工作者,Math ...

  4. 详解MathType中如何插入特殊符号

    在论文写作中,经常会用到一些特殊符号,MathType公式编辑器支持插入特殊符号,并且数量繁多,可以满足用户的需求.本教程将详解MathType如何插入特殊符号. MathType中插入特殊符号的操作 ...

  5. 关于Java 枚举类型的自定义属性

    package com.cpic.test;/** * 关于枚举类型自定义属性 * */public enum Provious { ANHUI("皖", 1),BAIJING(& ...

  6. fork函数和vfork函数的区别--19

    fork()与vfock()都是创建一个进程,那他们有什么区别呢?总结有以下三点区别: 1.  fork  ():子进程拷贝父进程的数据段,代码段     vfork ( ):子进程与父进程共享数据段 ...

  7. Cocostudio学习笔记(2) Button + CheckBox

    这篇记录了两个控件的使用流程:Button 和 CheckBox. ------------------------------------------------------------------ ...

  8. swift - 表格的编辑功能(添加、删除)

    表格(tableview)的确是一个很好用的控件,现在来实现一个编辑功能的实现,包含添加和删除,删除包括长按删除和左滑删除 效果图如下: 具体代码如下: 1.创建表格(这个表格有2个区,有区头和区尾) ...

  9. 添加app第一次启动页面

    一.添加几个成员变量 @interface hDisplayView ()<UIScrollViewDelegate> { UIScrollView *_bigScrollView; NS ...

  10. CentOS5.5环境下布署LVS+keepalived

    原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 .作者信息和本声明.否则将追究法律责任.http://kerry.blog.51cto.com/172631/401253 #!/bin ...