Deinstall Oracle Grid Infrastucture
Before you begin first stop ohasd
logon under the user you installed the grid infrastrucure
In our case user grid
$ crsctl stop has
after that use the following command to deinstall grid infrastructure
note * everything in red are questions ask by the deinstaller
ota5070#+ASM>>/grid/home> $ORACLE_HOME/deinstall/deinstall
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /tmp/deinstall2012-05-01_10-26-56AM/logs/
############ ORACLE DEINSTALL & DECONFIG TOOL START ############
######################### CHECK OPERATION START #########################
## [START] Install check configuration ##
Checking for existence of the Oracle home location /grid/11.2.0
Oracle Home type selected for deinstall is: Oracle Grid Infrastructure for a Standalone Server
Oracle Base selected for deinstall is: /grid/home
Checking for existence of central inventory location /grid/oraInventory
Checking for existence of the Oracle Grid Infrastructure home /grid/11.2.0
Checking for sufficient temp space availability on node(s) : 'ota5070.business.finl.fortis'
## [END] Install check configuration ##
Traces log file: /tmp/deinstall2012-05-01_10-26-56AM/logs//crsdc.log
Network Configuration check config START
Network de-configuration trace file location: /tmp/deinstall2012-05-01_10-26-56AM/logs/netdc_check2012-05-01_10-27-07-AM.log
Specify all Oracle Restart enabled listeners that are to be de-configured [LISTENER]:
Network Configuration check config END
Asm Check Configuration START
ASM de-configuration trace file location: /tmp/deinstall2012-05-01_10-26-56AM/logs/asmcadc_check2012-05-01_10-27-14-AM.log
Specify the ASM Diagnostic Destination [ ]: /grid/home
Specify the diskstring []:
Specify the diskgroups that are managed by this ASM instance []: 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
######################### CHECK OPERATION END #########################
####################### CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is: /grid/11.2.0
The cluster node(s) on which the Oracle home deinstallation will be performed are:null
Oracle Home selected for deinstall is: /grid/11.2.0
Inventory Location where the Oracle home registered is: /grid/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/deinstall2012-05-01_10-26-56AM/logs/deinstall_deconfig2012-05-01_10-27-02-AM.out'
Any error messages from this session will be written to: '/tmp/deinstall2012-05-01_10-26-56AM/logs/deinstall_deconfig2012-05-01_10-27-02-AM.err'
######################## CLEAN OPERATION START ########################
ASM de-configuration trace file location: /tmp/deinstall2012-05-01_10-26-56AM/logs/asmcadc_clean2012-05-01_10-27-43-AM.log
ASM Clean Configuration START
ASM Clean Configuration END
Network Configuration clean config START
Network de-configuration trace file location: /tmp/deinstall2012-05-01_10-26-56AM/logs/netdc_clean2012-05-01_10-27-52-AM.log
De-configuring Oracle Restart enabled listener(s): LISTENER
De-configuring listener: LISTENER
Stopping listener: LISTENER
Warning: Failed to stop listener. Listener may not be running.
Deleting listener: LISTENER
Listener deleted successfully.
Listener de-configured successfully.
De-configuring Listener configuration file...
Listener configuration file 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 "ota5070".
/tmp/deinstall2012-05-01_10-26-56AM/perl/bin/perl -I/tmp/deinstall2012-05-01_10-26-56AM/perl/lib -I/tmp/deinstall2012-05-01_10-26-56AM/crs/install /tmp/deinstall2012-05-01_10-26-56AM/crs/install/roothas.pl -force -deconfig -paramfile "/tmp/deinstall2012-05-01_10-26-56AM/response/deinstall_Ora11g_gridinfrahome1.rsp"
Press Enter after you finish running the above commands
<----------------------------------------
Setting the force flag to false
Setting the force flag to cleanup the Oracle Base
Oracle Universal Installer clean START
Detach Oracle home '/grid/11.2.0' from the central inventory on the local node : Done
Delete directory '/grid/11.2.0' on the local node : Done
Delete directory '/grid/oraInventory' on the local node : Done
The Oracle Base directory '/grid/home' will not be removed on local node. The directory is not empty.
Oracle Universal Installer cleanup was successful.
Oracle Universal Installer clean END
## [START] Oracle install clean ##
Clean install operation removing temporary directory '/tmp/deinstall2012-05-01_10-26-56AM' on node 'ota5070'
## [END] Oracle install clean ##
######################### CLEAN OPERATION END #########################
####################### CLEAN OPERATION SUMMARY #######################
ASM instance was de-configured successfully from the Oracle home
Following Oracle Restart enabled listener(s) were de-configured successfully: LISTENER
Oracle Restart was already stopped and de-configured on node "ota5070"
Oracle Restart is stopped and de-configured successfully.
Successfully detached Oracle home '/grid/11.2.0' from the central inventory on the local node.
Successfully deleted directory '/grid/11.2.0' on the local node.
Successfully deleted directory '/grid/oraInventory' on the local node.
Oracle Universal Installer cleanup was successful.
Run 'rm -rf /etc/oraInst.loc' as root on node(s) 'ota5070' at the end of the session.
Run 'rm -rf /opt/ORCLfmap' as root on node(s) 'ota5070' at the end of the session.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################
############# ORACLE DEINSTALL & DECONFIG TOOL END #############
ota5070#+ASM>>/grid>
And there you have it a clean deinstall of oracle grid infrastructure.
No comments:
Post a Comment