[root@srv1 ~]# su grid
[grid@srv1 root]$ . oraenv
ORACLE_SID = [+ASM1] ?
The Oracle base remains unchanged with value /u01/app/grid
[grid@srv1 root]$ cd /u01/app/12.1.0/grid/deinstall/
[grid@srv1 deinstall]$ ll
total 348
-rw-r--r--. 1 grid oinstall 240220 Jul 7 2014 bootstrap_files.lst
-rwxr-xr-x. 1 grid oinstall 11952 Mar 4 2014 bootstrap.pl
-rwxr-xr-x. 1 grid oinstall 10212 Jun 25 18:11 deinstall
-rwxr-xr-x. 1 grid oinstall 28591 May 19 2014 deinstall.pl
-rw-r--r--. 1 grid oinstall 8623 Apr 11 2014 deinstall.xml
drwxr-xr-x. 2 grid oinstall 4096 Jun 25 18:08 jlib
-rw-r--r--. 1 grid oinstall 401 Feb 10 2012 readme.txt
drwxr-xr-x. 2 grid oinstall 4096 Jun 25 18:07 response
-rwxr-xr-x. 1 grid oinstall 32334 Jun 7 2013 sshUserSetup.sh
drwxr-xr-x. 2 grid oinstall 4096 Jun 25 18:08 utl
[grid@srv1 deinstall]$
STEP1 :
[grid@srv1 deinstall]$ ./deinstall
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /u01/app/oraInventory/logs/
############ ORACLE DECONFIG TOOL START ############
######################### DECONFIG CHECK OPERATION START #########################
## [START] Install check configuration ##
Checking for existence of the Oracle home location /u01/app/12.1.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/12.1.0/grid
The following nodes are part of this cluster: srv1,srv2
Active Remote Nodes are srv2
Checking for sufficient temp space availability on node(s) : 'srv1,srv2'
## [END] Install check configuration ##
Traces log file: /u01/app/oraInventory/logs//crsdc_2019-05-22_05-15-26PM.log
Network Configuration check config START
Network de-configuration trace file location: /u01/app/oraInventory/logs/netdc_check2019-05-22_05-15-28-PM.log
Specify all RAC listeners (do not include SCAN listener) that are to be de-configured. Enter .(dot) to deselect all. [LISTENER]:
Network Configuration check config END
Asm Check Configuration START
ASM de-configuration trace file location: /u01/app/oraInventory/logs/asmcadc_check2019-05-22_05-15-44-PM.log
Automatic Storage Management (ASM) instance is detected in this Oracle home /u01/app/12.1.0/grid.
ASM Diagnostic Destination : /u01/app/grid
ASM Diskgroups : +CRS,+DATA,+FRA
ASM diskstring : /dev/oracleasm/disks
Diskgroups will be dropped
De-configuring ASM will drop all the diskgroups and their 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 you want to modify above information (y|n) [n]: y
Is Grid Infrastructure Storage(OCR) in ASM diskgroup (y|n) [y]: y
Enter the OCR/Voting Disk diskgroup name [+CRS]: y
Specify the ASM Diagnostic Destination [/u01/app/grid]:
Specify the diskstring [/dev/oracleasm/disks]:
Specify the diskgroups that are managed by this ASM instance [+CRS,+DATA,+FRA]:
De-configuring ASM will drop the diskgroups at cleanup time. Do you want deconfig tool to drop the diskgroups (y|n) [y]: y
Database Check Configuration START
Database de-configuration trace file location: /u01/app/oraInventory/logs/databasedc_check2019-05-22_05-16-32-PM.log
Oracle Grid Management database was found in this Grid Infrastructure home
Database Check Configuration END
######################### DECONFIG CHECK OPERATION END #########################
####################### DECONFIG CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is: /u01/app/12.1.0/grid
The following nodes are part of this cluster: srv1,srv2
Active Remote Nodes are srv2
The cluster node(s) on which the Oracle home deinstallation will be performed are:srv1,srv2
Oracle Home selected for deinstall is: /u01/app/12.1.0/grid
Inventory Location where the Oracle home registered is: /u01/app/oraInventory
Following RAC listener(s) will be de-configured: LISTENER
ASM instance will be de-configured from this Oracle home
Oracle Grid Management database was found in this Grid Infrastructure home
Oracle Grid Management database will be de-configured from this Grid Infrastructure 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_deconfig2019-05-22_05-15-00-PM.out'
Any error messages from this session will be written to: '/u01/app/oraInventory/logs/deinstall_deconfig2019-05-22_05-15-00-PM.err'
######################## DECONFIG CLEAN OPERATION START ########################
Database de-configuration trace file location: /u01/app/oraInventory/logs/databasedc_clean2019-05-22_05-16-43-PM.log
This operation may take few minutes.
ASM de-configuration trace file location: /u01/app/oraInventory/logs/asmcadc_clean2019-05-22_05-17-56-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_clean2019-05-22_05-18-19-PM.log
De-configuring RAC listener(s): LISTENER
De-configuring listener: LISTENER
Stopping listener: LISTENER
Listener stopped successfully.
Unregistering listener: LISTENER
Listener 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 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 "srv2".
/tmp/deinstall2019-05-22_05-13-41PM/perl/bin/perl -I/tmp/deinstall2019-05-22_05-13-41PM/perl/lib -I/tmp/deinstall2019-05-22_05-13-41PM/crs/install /tmp/deinstall2019-05-22_05-13-41PM/crs/install/rootcrs.pl -force -deconfig -paramfile "/tmp/deinstall2019-05-22_05-13-41PM/response/deinstall_OraGI12Home1.rsp"
Run the following command as the root user or the administrator on node "srv1".
/tmp/deinstall2019-05-22_05-13-41PM/perl/bin/perl -I/tmp/deinstall2019-05-22_05-13-41PM/perl/lib -I/tmp/deinstall2019-05-22_05-13-41PM/crs/install /tmp/deinstall2019-05-22_05-13-41PM/crs/install/rootcrs.pl -force -deconfig -paramfile "/tmp/deinstall2019-05-22_05-13-41PM/response/deinstall_OraGI12Home1.rsp" -lastnode
Press Enter after you finish running the above commands
<----------------------------------------
Run command on node 2
STEP 2 :
login as: root
root@192.168.56.72's password:
Last login: Wed May 22 16:43:33 2019 from srv1.example.com
[root@srv2 ~]# /tmp/deinstall2019-05-22_05-13-41PM/perl/bin/perl -I/tmp/deinstall2019-05-22_05-13-41PM/perl/lib -I/tmp/deinstall2019-05-22_05-13-41PM/crs/install /tmp/deinstall2019-05-22_05-13-41PM/crs/install/rootcrs.pl -force -deconfig -paramfile "/tmp/deinstall2019-05-22_05-13-41PM/response/deinstall_OraGI12Home1.rsp"
Using configuration parameter file: /tmp/deinstall2019-05-22_05-13-41PM/response/deinstall_OraGI12Home1.rsp
Network 1 exists
Subnet IPv4: 192.168.56.0/255.255.255.0/eth0, static
Subnet IPv6:
Ping Targets:
Network is enabled
Network is individually enabled on nodes:
Network is individually disabled on nodes:
VIP exists: network number 1, hosting node srv1
VIP Name: srv1-vip.example.com
VIP IPv4 Address: 192.168.56.81
VIP IPv6 Address:
VIP is enabled.
VIP is individually enabled on nodes:
VIP is individually disabled on nodes:
VIP exists: network number 1, hosting node srv2
VIP Name: srv2-vip.example.com
VIP IPv4 Address: 192.168.56.82
VIP IPv6 Address:
VIP is enabled.
VIP is individually enabled on nodes:
VIP is individually disabled on nodes:
ONS exists: Local port 6100, remote port 6200, EM port 2016, Uses SSL false
ONS is enabled
ONS is individually enabled on nodes:
ONS is individually disabled on nodes:
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'srv2'
CRS-2673: Attempting to stop 'ora.crsd' on 'srv2'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'srv2'
CRS-2673: Attempting to stop 'ora.asm' on 'srv2'
CRS-2677: Stop of 'ora.asm' on 'srv2' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'srv2' has completed
CRS-2677: Stop of 'ora.crsd' on 'srv2' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on 'srv2'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'srv2'
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'srv2'
CRS-2673: Attempting to stop 'ora.crf' on 'srv2'
CRS-2673: Attempting to stop 'ora.gpnpd' on 'srv2'
CRS-2677: Stop of 'ora.drivers.acfs' on 'srv2' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'srv2' succeeded
CRS-2673: Attempting to stop 'ora.evmd' on 'srv2'
CRS-2673: Attempting to stop 'ora.storage' on 'srv2'
CRS-2677: Stop of 'ora.mdnsd' on 'srv2' succeeded
CRS-2677: Stop of 'ora.crf' on 'srv2' succeeded
CRS-2677: Stop of 'ora.gpnpd' on 'srv2' succeeded
CRS-2677: Stop of 'ora.storage' on 'srv2' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'srv2'
CRS-2677: Stop of 'ora.evmd' on 'srv2' succeeded
CRS-2677: Stop of 'ora.asm' on 'srv2' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'srv2'
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'srv2' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'srv2'
CRS-2677: Stop of 'ora.cssd' on 'srv2' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'srv2'
CRS-2677: Stop of 'ora.gipcd' on 'srv2' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'srv2' has completed
CRS-4133: Oracle High Availability Services has been stopped.
2019/05/22 17:23:33 CLSRSC-4006: Removing Oracle Trace File Analyzer (TFA) Collector.
2019/05/22 17:24:05 CLSRSC-4007: Successfully removed Oracle Trace File Analyzer (TFA) Collector.
2019/05/22 17:24:10 CLSRSC-336: Successfully deconfigured Oracle Clusterware stack on this node
2019/05/22 17:24:14 CLSRSC-46: Error: '/u01/app/grid/crsdata/srv2/crsconfig/cluutil2.log' does not exist
2019/05/22 17:24:15 CLSRSC-46: Error: '/u01/app/grid/crsdata/srv2/crsconfig/cluutil2.log' does not exist
[root@srv2 ~]#
[root@srv2 ~]#
[root@srv2 ~]#
[root@srv2 ~]#
#################################################################################
Run command on node 1
STEP 1:
login as: root
root@192.168.56.71's password:
Last login: Wed May 22 17:18:02 2019 from 192.168.56.101
[root@srv1 ~]# /tmp/deinstall2019-05-22_05-13-41PM/perl/bin/perl -I/tmp/deinstal l2019-05-22_05-13-41PM/perl/lib -I/tmp/deinstall2019-05-22_05-13-41PM/crs/instal l /tmp/deinstall2019-05-22_05-13-41PM/crs/install/rootcrs.pl -force -deconfig - paramfile "/tmp/deinstall2019-05-22_05-13-41PM/response/deinstall_OraGI12Home1.r sp" -lastnode
Using configuration parameter file: /tmp/deinstall2019-05-22_05-13-41PM/response /deinstall_OraGI12Home1.rsp
Network 1 exists
Subnet IPv4: 192.168.56.0/255.255.255.0/eth0, static
Subnet IPv6:
Ping Targets:
Network is enabled
Network is individually enabled on nodes:
Network is individually disabled on nodes:
VIP exists: network number 1, hosting node srv1
VIP Name: srv1-vip.example.com
VIP IPv4 Address: 192.168.56.81
VIP IPv6 Address:
VIP is enabled.
VIP is individually enabled on nodes:
VIP is individually disabled on nodes:
ONS exists: Local port 6100, remote port 6200, EM port 2016, Uses SSL false
ONS is enabled
ONS is individually enabled on nodes:
ONS is individually disabled on nodes:
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'srv1'
CRS-2673: Attempting to stop 'ora.crsd' on 'srv1'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'srv1'
CRS-2673: Attempting to stop 'ora.MGMTLSNR' on 'srv1'
CRS-2673: Attempting to stop 'ora.asm' on 'srv1'
CRS-2677: Stop of 'ora.asm' on 'srv1' succeeded
CRS-2677: Stop of 'ora.MGMTLSNR' on 'srv1' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'srv1' has completed
CRS-2677: Stop of 'ora.crsd' on 'srv1' succeeded
CRS-2673: Attempting to stop 'ora.storage' on 'srv1'
CRS-2673: Attempting to stop 'ora.crf' on 'srv1'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'srv1'
CRS-2673: Attempting to stop 'ora.gpnpd' on 'srv1'
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'srv1'
CRS-2677: Stop of 'ora.storage' on 'srv1' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'srv1'
CRS-2677: Stop of 'ora.drivers.acfs' on 'srv1' succeeded
CRS-2677: Stop of 'ora.crf' on 'srv1' succeeded
CRS-2677: Stop of 'ora.mdnsd' on 'srv1' succeeded
CRS-2677: Stop of 'ora.gpnpd' on 'srv1' succeeded
CRS-2677: Stop of 'ora.asm' on 'srv1' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'srv1'
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'srv1' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on 'srv1'
CRS-2673: Attempting to stop 'ora.evmd' on 'srv1'
CRS-2677: Stop of 'ora.ctssd' on 'srv1' succeeded
CRS-2677: Stop of 'ora.evmd' on 'srv1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'srv1'
CRS-2677: Stop of 'ora.cssd' on 'srv1' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'srv1'
CRS-2677: Stop of 'ora.gipcd' on 'srv1' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'srv1' has completed
CRS-4133: Oracle High Availability Services has been stopped.
CRS-4123: Oracle High Availability Services has been started.
CRS-2672: Attempting to start 'ora.evmd' on 'srv1'
CRS-2672: Attempting to start 'ora.mdnsd' on 'srv1'
CRS-2676: Start of 'ora.mdnsd' on 'srv1' succeeded
CRS-2676: Start of 'ora.evmd' on 'srv1' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'srv1'
CRS-2676: Start of 'ora.gpnpd' on 'srv1' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'srv1'
CRS-2672: Attempting to start 'ora.gipcd' on 'srv1'
CRS-2676: Start of 'ora.cssdmonitor' on 'srv1' succeeded
CRS-2676: Start of 'ora.gipcd' on 'srv1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'srv1'
CRS-2672: Attempting to start 'ora.diskmon' on 'srv1'
CRS-2676: Start of 'ora.diskmon' on 'srv1' succeeded
CRS-2676: Start of 'ora.cssd' on 'srv1' succeeded
ASM de-configuration trace file location: /u01/app/oraInventory/logs/asmcadc_clean2019-05-22_05-29-18-PM.log
ASM Clean Configuration START
ASM Clean Configuration END
ASM with SID +ASM1 deleted successfully. Check /u01/app/oraInventory/logs/asmcadc_clean2019-05-22_05-29-18-PM.log for details.
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'srv1'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'srv1'
CRS-2673: Attempting to stop 'ora.ctssd' on 'srv1'
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'srv1'
CRS-2673: Attempting to stop 'ora.gpnpd' on 'srv1'
CRS-2677: Stop of 'ora.drivers.acfs' on 'srv1' succeeded
CRS-2677: Stop of 'ora.mdnsd' on 'srv1' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'srv1' succeeded
CRS-2673: Attempting to stop 'ora.evmd' on 'srv1'
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'srv1'
CRS-2677: Stop of 'ora.gpnpd' on 'srv1' succeeded
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'srv1' succeeded
CRS-2677: Stop of 'ora.evmd' on 'srv1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'srv1'
CRS-2677: Stop of 'ora.cssd' on 'srv1' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'srv1'
CRS-2677: Stop of 'ora.gipcd' on 'srv1' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'srv1' has completed
CRS-4133: Oracle High Availability Services has been stopped.
2019/05/22 17:32:12 CLSRSC-4006: Removing Oracle Trace File Analyzer (TFA) Collector.
2019/05/22 17:32:25 CLSRSC-4007: Successfully removed Oracle Trace File Analyzer (TFA) Collector.
2019/05/22 17:32:28 CLSRSC-336: Successfully deconfigured Oracle Clusterware stack on this node
2019/05/22 17:32:28 CLSRSC-559: Ensure that the GPnP profile data under the 'gpnp' directory in /u01/app/12.1.0/grid is deleted on each node before using the software in the current Grid Infrastructure home for reconfiguration.
2019/05/22 17:32:32 CLSRSC-46: Error: '/u01/app/grid/crsdata/srv1/crsconfig/cluutil2.log' does not exist
2019/05/22 17:32:32 CLSRSC-46: Error: '/u01/app/grid/crsdata/srv1/crsconfig/cluutil2.log' does not exist
##############################################################################
STEP 4 : Output after step 2 and step 3 ---
Press Enter after you finish running the above commands
<----------------------------------------
Press Enter after you finish running the above commands
<----------------------------------------
######################### DECONFIG CLEAN OPERATION END #########################
####################### DECONFIG CLEAN OPERATION SUMMARY #######################
Successfully de-configured Oracle Grid Management database
ASM instance was de-configured successfully from the Oracle home
Following RAC listener(s) were de-configured successfully: LISTENER
Oracle Clusterware is stopped and successfully de-configured on node "srv2"
Oracle Clusterware is stopped and successfully de-configured on node "srv1"
Oracle Clusterware is stopped and de-configured successfully.
#######################################################################
############# ORACLE DECONFIG TOOL END #############
Using properties file /tmp/deinstall2019-05-22_05-13-41PM/response/deinstall_2019-05-22_05-15-00-PM.rsp
Location of logs /u01/app/oraInventory/logs/
############ ORACLE DEINSTALL TOOL START ############
####################### DEINSTALL CHECK OPERATION SUMMARY #######################
A log of this session will be written to: '/u01/app/oraInventory/logs/deinstall_deconfig2019-05-22_05-15-00-PM.out'
Any error messages from this session will be written to: '/u01/app/oraInventory/logs/deinstall_deconfig2019-05-22_05-15-00-PM.err'
######################## DEINSTALL CLEAN OPERATION START ########################
## [START] Preparing for Deinstall ##
Setting LOCAL_NODE to srv1
Setting REMOTE_NODES to srv2
Setting CLUSTER_NODES to srv1,srv2
Setting CRS_HOME to true
Setting oracle.installer.invPtrLoc to /tmp/deinstall2019-05-22_05-13-41PM/oraInst.loc
Setting oracle.installer.local to false
## [END] Preparing for Deinstall ##
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/12.1.0/grid' from the central inventory on the local node : Done
Failed to delete the directory '/u01/app/12.1.0/grid'. The directory is in use.
Delete directory '/u01/app/12.1.0/grid' on the local node : Failed <<<<
The Oracle Base directory '/u01/app/grid' will not be removed on local node. The directory is not empty.
Detach Oracle home '/u01/app/12.1.0/grid' from the central inventory on the remote nodes 'srv2' : Done
Delete directory '/u01/app/12.1.0/grid' on the remote nodes 'srv2' : Failed <<<<
Could not remove listed directories based on '/tmp/OraInstall2019-05-22_05-32-55-PM/installRemoveDirFile.lst' from nodes 'srv2'. [PRKC-1083 : Failed to remove listed directory in "/tmp/OraInstall2019-05-22_05-32-55-PM/installRemoveDirFile.lst" to any of the given nodes "srv2 ".
Error on node srv2:/bin/rm: cannot remove `/u01/app/12.1.0/grid': Permission denied]
The Oracle Base directory '/u01/app/grid' will not be removed on node 'srv2'. The directory is not empty.
Oracle Universal Installer cleanup completed with errors.
Oracle Universal Installer clean END
## [START] Oracle install clean ##
Clean install operation removing temporary directory '/tmp/deinstall2019-05-22_05-13-41PM' on node 'srv1'
Clean install operation removing temporary directory '/tmp/deinstall2019-05-22_05-13-41PM' on node 'srv2'
## [END] Oracle install clean ##
######################### DEINSTALL CLEAN OPERATION END #########################
####################### DEINSTALL CLEAN OPERATION SUMMARY #######################
Successfully detached Oracle home '/u01/app/12.1.0/grid' from the central inventory on the local node.
Failed to delete directory '/u01/app/12.1.0/grid' on the local node.
Successfully detached Oracle home '/u01/app/12.1.0/grid' from the central inventory on the remote nodes 'srv2'.
Failed to delete directory '/u01/app/12.1.0/grid' on the remote nodes 'srv2'.
Oracle Universal Installer cleanup completed with errors.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################
############# ORACLE DEINSTALL TOOL END #############
[grid@srv1 deinstall]$
No comments:
Post a Comment