Oracle 11gR2 | How to Deinstall 11g ASM Grid Infra

First graphical user interface in 1973.
Image via Wikipedia

Hay veces en la que es preciso quitar infraestructura que no usamos ya sea por que nuestro servidor se renovo y dejamos el hardware para uso de otras areas o por que se crear ambientes con versiones no compatible , hoy veremos como desinstalar el Oracle Grid Infraestructure 11gR2.

VAMOS AL PATH A BUSCAR EL DEINSTALL DEL CLUSTER

[oracle@datos0001lx grid]$ cd /u01/app/oracle/product/11.2.0/

HACEMOS LA BUSQUEDA DEL ARCHIVO DE DESINSTALACION

[oracle@datos0001lx 11.2.0]$ find . -name deinstall*
./grid/inventory/Templates/deinstall
./grid/inventory/Templates/deinstall/deinstall
./grid/deinstall
./grid/deinstall/deinstall.xml
./grid/deinstall/deinstall
./grid/deinstall/jlib/deinstall_core.jar
./grid/deinstall/jlib/deinstall_wrapper.jar
./grid/deinstall/deinstall.pl
./grid/deinstall/response/deinstall.rsp.tmpl

EJECUTAMOS LA DESINSTALACION

[oracle@datos0001lx 11.2.0]$ ./grid/deinstall/deinstall

Checking for required files and bootstrapping …
Please wait …
Location of logs /tmp/deinstall2011-11-14_02-05-51PM/logs/

############ ORACLE DEINSTALL & DECONFIG TOOL START ############ ######################### CHECK OPERATION START ######################### Install check configuration START Checking for existence of the Oracle home location /u01/app/oracle/product/11.2.0/grid Oracle Home type selected for de-install is: SIHA Oracle Base selected for de-install is: /u01/app/oracle Checking for existence of central inventory location /u01/app/oracle/oraInventory Checking for existence of the Oracle Grid Infrastructure home Install check configuration END Skipping Windows and .NET products configuration check Checking Windows and .NET products configuration END Traces log file: /tmp/deinstall2011-11-14_02-06-46PM/logs//crsdc.log Network Configuration check config START Network de-configuration trace file location: /tmp/deinstall2011-11-14_02-06-46PM/logs/netdc_check2011-11-14_02-07-03-PM.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/deinstall2011-11-14_02-06-46PM/logs/asmcadc_check2011-11-14_02-07-05-PM.log ASM configuration was not detected in this Oracle home. Was ASM configured in this Oracle home (y|n) [n]: ASM was not detected in the Oracle Home

######################### CHECK OPERATION END ######################### ####################### CHECK OPERATION SUMMARY ####################### Oracle Grid Infrastructure Home is: The cluster node(s) on which the Oracle home de-installation will be performed are:null Oracle Home selected for de-install is: /u01/app/oracle/product/11.2.0/grid Inventory Location where the Oracle home registered is: /u01/app/oracle/oraInventory Skipping Windows and .NET products configuration check Following Oracle Restart enabled listener(s) will be de-configured: LISTENER ASM was not detected in the Oracle Home Do you want to continue (y – yes, n – no)? [n]: y A log of this session will be written to: ‘/tmp/deinstall2011-11-14_02-06-46PM/logs/deinstall_deconfig2011-11-14_02-07-02-PM.out’ Any error messages from this session will be written to: ‘/tmp/deinstall2011-11-14_02-06-46PM/logs/deinstall_deconfig2011-11-14_02-07-02-PM.err’


Continuamos con la desintalación

Les comento que voy a cortar un pedazo del log , ya que el articulo solo cumple de modo informativo y dejaré las partes que nos interesan y que serán de referencia


######################## CLEAN OPERATION START ######################## ASM de-configuration trace file location: /tmp/deinstall2011-11-14_02-06-46PM/logs/asmcadc_clean2011-11-14_02-07-15-PM.log ASM Clean Configuration END Network Configuration clean config START Network de-configuration trace file location: /tmp/deinstall2011-11-14_02-06-46PM/logs/netdc_clean2011-11-14_02-07-15-PM.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 Local Net Service Names configuration file… Local Net Service Names 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 Removing Windows and .NET products configuration END Oracle Universal Installer clean START

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

.....

Failed to delete the directory ‘/u01/app/oracle/product’. The directory is not empty. The Oracle Base directory ‘/u01/app/oracle’ will not be removed on local node. The directory is not empty.

Oracle Universal Installer cleanup was successful. Oracle Universal Installer clean END Oracle install clean START Clean install operation removing temporary directory ‘/tmp/deinstall2011-11-14_02-06-46PM’ on node ‘datos0001lx’ Oracle install clean END

######################### CLEAN OPERATION END ######################### ####################### CLEAN OPERATION SUMMARY ####################### Following Oracle Restart enabled listener(s) were de-configured successfully: LISTENER Oracle Restart is stopped and de-configured successfully. Skipping Windows and .NET products configuration clean Successfully detached Oracle home ‘/u01/app/oracle/product/11.2.0/grid’ from the central inventory on the local node. Failed to delete directory ‘/u01/app/oracle/product/11.2.0/grid’ on the local node. Successfully deleted directory ‘/u01/app/oracle/oraInventory’ on the local node. Oracle Universal Installer cleanup was successful. Run ‘rm -rf /etc/oraInst.loc’ as root on node(s) ‘datos0001lx’ at the end of the session. Run ‘rm -rf /opt/ORCLfmap’ as root on node(s) ‘datos0001lx ‘ at the end of the session. Oracle deinstall tool successfully cleaned up temporary directories.

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

Verificamos que todo se ha borrado

[oracle@datos0001lx 11.2.0]$ ls 
grid

Ejecutamos como root

[root@datos0001lx grid]# cd crs/config/
config.pl config.sh relink_rac_on rootconfig.sbs rootconfig.sh

Buscamos el script rootcrs.pl

[root@datos0001lx grid]# find . -name rootcrs.pl
./crs/install/rootcrs.pl
[root@datos0001lx grid]# cd ./crs/install/

Ejecutamos la desconfiguración.

[root@datos0001lx install]# ./rootcrs.pl -deconfig -force
Using configuration parameter file: ./crsconfig_params
Usage: srvctl   []
commands: enable|disable|start|stop|status|add|remove|modify|getenv|setenv|unsetenv|config
objects: database|service|asm|diskgroup|listener|home|ons
For detailed help on each command and object and its options use:
srvctl  -h or
srvctl   -h
PRKO-2012 : nodeapps object is not supported in Oracle Restart
ACFS-9200: Supported
CRS-2613: Could not find resource ‘ora.registry.acfs’.
CRS-4000: Command Stop failed, or completed with errors.
CRS-2613: Could not find resource ‘ora.drivers.acfs’.
CRS-4000: Command Modify failed, or completed with errors.
CRS-2613: Could not find resource ‘ora.drivers.acfs’.
CRS-4000: Command Delete failed, or completed with errors.
CRS-4013: This command is not supported in a single-node configuration.
CRS-4000: Command Stop failed, or completed with errors.
You must kill crs processes or reboot the system to properly
cleanup the processes started by Oracle clusterware
error: package cvuqdisk is not installed
Successfully deconfigured Oracle clusterware stack on this node

Borramos los ultimos archivos.

[root@datos0001lx install]# rm -rf /etc/oraInst.loc
[root@datos0001lx install]# rm -rf /opt/ORCLfmap

3 thoughts on “Oracle 11gR2 | How to Deinstall 11g ASM Grid Infra

    1. Pablo:
      bajo que escenario lo harias ?
      Cual seria el estado de los procesos ?
      Cual seria el estado de la base de datos ?
      Ademas de ese rm -f como seguirias ?
      Con ello puedo responder tu pregunta.
      Saludos Cordiales.

      Like

  1. Yogurt probiotics Diarrhea in dogs is categorized as being
    either small bowel diarrhea ( it originates from the small intestine),
    or large bowel diarrhea ( it originates from the colon).
    Curiously, many with ASD also suffer from gastrointestinal issues, like abdominal cramps and constipation. * It
    can help maintain your body’s natural defenses and help maintain good feminine health.

    Like

Comments are closed.