<<Back to Oracle ASM Main Page
How to Uninstall Oracle Grid Infrastructure for Standalone Server Cleanly
Step1> login as oracle grid infrastructure owner (oragrid)Step2> Change directory to $ORACLE_HOME/deinstall
$cd $ORACLE_HOME/deinstall
Step3> execute ./deinstall.sh and follow the instruction
$./deinstall
Step4> Answer carefully the questions on the prompt.
Step5> When prompted run the command as root user
Step6> Clean the leftovers if any manually
Deinstallation Logs
[oragrid@test1]$./deinstall
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /tmp/deinstall2018-08-31_10-52-00AM/logs/
############ ORACLE DECONFIG TOOL START ############
######################### DECONFIG CHECK OPERATION START #########################
## [START] Install check configuration ##
Checking for existence of the Oracle home location /u01/oragrid/12.2.0.1/grid
Oracle Home type selected for deinstall is: Oracle Grid Infrastructure for a Standalone Server
Oracle Base selected for deinstall is: /u01/oragrid/orabase
Checking for existence of central inventory location /u01/orainventory
Checking for existence of the Oracle Grid Infrastructure home /u01/oragrid/12.2.0.1/grid
## [END] Install check configuration ##
Traces log file: /tmp/deinstall2018-08-31_10-52-00AM/logs//crsdc_2018-08-31_10-53-16-AM.log
Network Configuration check config START
Network de-configuration trace file location: /tmp/deinstall2018-08-31_10-52-00AM/logs/netdc_check2018-08-31_10-53-17-AM.log
Specify all Oracle Restart enabled listeners 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: /tmp/deinstall2018-08-31_10-52-00AM/logs/asmcadc_check2018-08-31_10-53-39-AM.log
Automatic Storage Management (ASM) instance is detected in this Oracle home /u01/oragrid/12.2.0.1/grid.
ASM Diagnostic Destination : /u01/oragrid/orabase
ASM Diskgroups : +DG_TST_DATA,+DG_TST_FRA
ASM diskstring : AFD:*
Diskgroups will be dropped and all ASM filter driver labels will be cleared
De-configuring ASM will drop all the diskgroups and their contents at cleanup time. Also ASM filter driver labels will be cleared. This will affect all of the databases and ACFS that use this ASM instance(s).
If you want to retain the existing diskgroups and associated ASM filter driver labels 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]:
Database Check Configuration START
Database de-configuration trace file location: /tmp/deinstall2018-08-31_10-52-00AM/logs/databasedc_check2018-08-31_10-54-08-AM.log
Database Check Configuration END
######################### DECONFIG CHECK OPERATION END #########################
####################### DECONFIG CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is: /u01/oragrid/12.2.0.1/grid
Oracle Home selected for deinstall is: /u01/oragrid/12.2.0.1/grid
Inventory Location where the Oracle home registered is: /u01/orainventory
Following Oracle Restart enabled listener(s) will be de-configured: LISTENER
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: '/tmp/deinstall2018-08-31_10-52-00AM/logs/deinstall_deconfig2018-08-31_10-53-15-AM.out'
Any error messages from this session will be written to: '/tmp/deinstall2018-08-31_10-52-00AM/logs/deinstall_deconfig2018-08-31_10-53-15-AM.err'
######################## DECONFIG CLEAN OPERATION START ########################
Database de-configuration trace file location: /tmp/deinstall2018-08-31_10-52-00AM/logs/databasedc_clean2018-08-31_10-54-13-AM.log
ASM de-configuration trace file location: /tmp/deinstall2018-08-31_10-52-00AM/logs/asmcadc_clean2018-08-31_10-54-13-AM.log
ASM Clean Configuration START
ASM Clean Configuration END
Network Configuration clean config START
Network de-configuration trace file location: /tmp/deinstall2018-08-31_10-52-00AM/logs/netdc_clean2018-08-31_11-06-42-AM.log
De-configuring Oracle Restart enabled listener(s): LISTENER
De-configuring listener: LISTENER
Stopping listener: LISTENER
Listener stopped successfully.
Unregistering listener: LISTENER
Listener unregistered successfully.
Deleting listener: LISTENER
Listener deleted successfully.
Listener de-configured successfully.
De-configuring Naming Methods configuration file...
Naming Methods configuration file de-configured successfully.
De-configuring backup files...
Backup files de-configured successfully.
The network configuration has been cleaned up successfully.
Network Configuration clean config END
---------------------------------------->
Run the following command as the root user or the administrator on node "test1".
/u01/oragrid/12.2.0.1/grid/crs/install/roothas.sh -force -deconfig -paramfile "/tmp/deinstall2018-08-31_10-52-00AM/response/deinstall_OraGI12Home1.rsp"
Press Enter after you finish running the above commands
<----------------------------------------
######################### DECONFIG CLEAN OPERATION END #########################
####################### DECONFIG CLEAN OPERATION SUMMARY #######################
ASM instance was de-configured successfully from the Oracle home
Following Oracle Restart enabled listener(s) were de-configured successfully: LISTENER
The stopping and de-configuring of Oracle Restart failed. Fix the problem and rerun this tool to completely remove the Oracle Restart configuration and the software
The stopping and de-configuring of Oracle Restart failed. Fix the problem and rerun this tool to completely remove the Oracle Restart configuration and the software
Oracle Restart was already stopped and de-configured on node "test1"
Oracle Restart is stopped and de-configured successfully.
#######################################################################
############# ORACLE DECONFIG TOOL END #############
Using properties file /tmp/deinstall2018-08-31_10-52-00AM/response/deinstall_2018-08-31_10-53-15-AM.rsp
Location of logs /tmp/deinstall2018-08-31_10-52-00AM/logs/
############ ORACLE DEINSTALL TOOL START ############
####################### DEINSTALL CHECK OPERATION SUMMARY #######################
A log of this session will be written to: '/tmp/deinstall2018-08-31_10-52-00AM/logs/deinstall_deconfig2018-08-31_10-53-15-AM.out'
Any error messages from this session will be written to: '/tmp/deinstall2018-08-31_10-52-00AM/logs/deinstall_deconfig2018-08-31_10-53-15-AM.err'
######################## DEINSTALL CLEAN OPERATION START ########################
## [START] Preparing for Deinstall ##
Setting LOCAL_NODE to test1
Setting CRS_HOME to true
Setting oracle.installer.invPtrLoc to /tmp/deinstall2018-08-31_10-52-00AM/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/oragrid/12.2.0.1/grid' from the central inventory on the local node : Done
Delete directory '/u01/oragrid/12.2.0.1/grid' on the local node : Done
Delete directory '/u01/orainventory' on the local node : Done
Oracle Universal Installer cleanup completed successfully
Oracle Universal Installer clean END
## [START] Oracle install clean ##
## [END] Oracle install clean ##
######################### DEINSTALL CLEAN OPERATION END #########################
####################### DEINSTALL CLEAN OPERATION SUMMARY #######################
Successfully detached Oracle home '/u01/oragrid/12.2.0.1/grid' from the central inventory on the local node.
Successfully deleted directory '/u01/oragrid/12.2.0.1/grid' on the local node.
Failed to delete directory '/u01/orainventory' on the local node.
Failed to delete directory '/u01/oragrid/orabase' on the local node.
Oracle Universal Installer cleanup completed successfully.
Run 'rm -r /etc/oraInst.loc' as root on node(s) 'test1' at the end of the session.
Run 'rm -r /opt/ORCLfmap' as root on node(s) 'test1' at the end of the session.
Run 'rm -r /etc/oratab' as root on node(s) 'test1' at the end of the session.
Review the permissions and contents of '/u01/oragrid/orabase' on nodes(s) 'test1'.
If there are no Oracle home(s) associated with '/u01/oragrid/orabase', manually delete '/u01/oragrid/orabase' and its contents.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################
############# ORACLE DEINSTALL TOOL END #############
Root Script Execution Log
# /u01/oragrid/12.2.0.1/grid/crs/install/roothas.sh -force -deconfig -paramfile "/tmp/deinstall2018-08-31_10-52-00AM/response/deinstall_OraGI12Home1.rsp"
Using configuration parameter file: /tmp/deinstall2018-08-31_10-52-00AM/response/deinstall_OraGI12Home1.rsp
The log of current session can be found at:
/tmp/deinstall2018-08-31_10-52-00AM/logs/hadeconfig.log
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'test1'
CRS-2673: Attempting to stop 'ora.evmd' on 'test1'
CRS-2677: Stop of 'ora.evmd' on 'test1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'test1'
CRS-2677: Stop of 'ora.cssd' on 'test1' succeeded
CRS-2673: Attempting to stop 'ora.driver.afd' on 'test1'
CRS-2677: Stop of 'ora.driver.afd' on 'test1' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'test1' has completed
CRS-4133: Oracle High Availability Services has been stopped.
2018/08/31 11:09:08 CLSRSC-337: Successfully deconfigured Oracle Restart stack
Leftover Cleanup Log
# rm -r /etc/oraInst.loc
rm: remove regular file ‘/etc/oraInst.loc’? y
[root@test1 ~]# rm -r /opt/ORCLfmap
rm: descend into directory ‘/opt/ORCLfmap’? y
rm: descend into directory ‘/opt/ORCLfmap/prot1_64’? y
rm: descend into directory ‘/opt/ORCLfmap/prot1_64/bin’? y
rm: remove regular file ‘/opt/ORCLfmap/prot1_64/bin/fmputl’? y
rm: remove regular file ‘/opt/ORCLfmap/prot1_64/bin/fmputlhp’? y
rm: remove directory ‘/opt/ORCLfmap/prot1_64/bin’? y
rm: descend into directory ‘/opt/ORCLfmap/prot1_64/etc’? y
rm: remove regular file ‘/opt/ORCLfmap/prot1_64/etc/filemap.ora’? y
rm: remove directory ‘/opt/ORCLfmap/prot1_64/etc’? y
rm: remove directory ‘/opt/ORCLfmap/prot1_64/log’? y
rm: remove directory ‘/opt/ORCLfmap/prot1_64’? y
rm: remove directory ‘/opt/ORCLfmap’? y
Comments
Post a Comment