Pular para o conteúdo

Oracle De-install Utility

Oracle De-install Utility

Remover o Oracle Database pode dar muito trabalho, e você pode esquecer de remover algo no processo. Mas o Oracle Database 11gR2 tem um utilitário para desinstalação completa do produto – que pode ser baixado a parte e sem custo, na mesma página onde são baixados os outros arquivos que fazem parte do Oracle Database: por exemplo, esta é a página de download para Linux x86-64: http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-linx8664soft-100572.html

É impressionante ver que o desinstalador é baixado como um arquivo compactado de 135MB. Bem, se o RDBMS todo são alguns Gigabytes, é compreensível que o desinstalador seja deste tamanho.

Veja na demonstração abaixo, a utilização é simples (basta indicar o ORACLE_HOME que será desinstalado) e ele funcionou sem problemas.

[oracle@nerv00 deinstall]$ ./deinstall -home /u01/app/oracle/product/11.2.0/db_1
 Location of logs /home/oracle/deinstall/./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/db_1
 Oracle Home type selected for de-install is: SIDB
 Oracle Base selected for de-install is: /u01/app/oracle
 Checking for existence of central inventory location /u01/app/oraInventory
 
 Install check configuration END
 
 Skipping Windows and .NET products configuration check
 
 Checking Windows and .NET products configuration END
 
 Network Configuration check config START
 
 Network de-configuration trace file location: /home/oracle/deinstall/./logs/netdc_check2010-10-01_08-08-10-AM.log
 
 Specify all Single Instance listeners that are to be de-configured [LISTENER]:
 
 Network Configuration check config END
 
 Database Check Configuration START
 
 Database de-configuration trace file location: /home/oracle/deinstall/./logs/databasedc_check2010-10-01_08-08-14-AM.log
 
 Use comma as separator when specifying list of values as input
 
 Specify the list of database names that are configured in this Oracle home [CATALOGO]:
 
 ###### For Database 'CATALOGO' ######
 
 Single Instance Database
 The diagnostic destination location of the database: /u01/app/oracle/diag/rdbms/catalogo
 Storage type used by the Database: FS
 Database file location: /u01/app/oracle/oradata/CATALOGO,/u01/app/oracle/flash_recovery_area/CATALOGO
 Fast recovery area location: /u01/app/oracle/flash_recovery_area/CATALOGO
 database spfile location: /u01/app/oracle/product/11.2.0/db_1/dbs/spfileCATALOGO.ora
 
 The  details of database(s) CATALOGO have been discovered automatically. Do  you still want to modify the details of CATALOGO database(s)? [n]:
 
 Database Check Configuration END
 
 Enterprise Manager Configuration Assistant START
 
 EMCA de-configuration trace file location: /home/oracle/deinstall/./logs/emcadc_check2010-10-01_08-08-57-AM.log
 
 Checking configuration for database CATALOGO
 Enterprise Manager Configuration Assistant END
 Oracle Configuration Manager check START
 OCM check log file location : /home/oracle/deinstall/./logs//ocm_check_2010-10-01_08-08-58-AM.log
 Oracle Configuration Manager check END
 
 ######################### CHECK OPERATION END #########################
 
 ####################### CHECK OPERATION SUMMARY #######################
 Oracle Home selected for de-install is: /u01/app/oracle/product/11.2.0/db_1
 Inventory Location where the Oracle home registered is: /u01/app/oraInventory
 Skipping Windows and .NET products configuration check
 Following Single Instance listener(s) will be de-configured: LISTENER
 The following databases were selected for de-configuration : CATALOGO
 Database unique name : CATALOGO
 Storage used : FS
 Will update the Enterprise Manager configuration for the following database(s): CATALOGO
 No Enterprise Manager ASM targets to update
 No Enterprise Manager listener targets to migrate
 Checking the config status for CCR
 Oracle Home exists with CCR directory, but CCR is not configured
 CCR check is finished
 Do you want to continue (y - yes, n - no)? [n]: y
 A log of this session will be written to: '/home/oracle/deinstall/./logs/deinstall_deconfig2010-10-01_08-08-09-AM.out'
 Any  error messages from this session will be written to:  '/home/oracle/deinstall/./logs/deinstall_deconfig2010-10-01_08-08-09-AM.err'
 
 ######################## CLEAN OPERATION START ########################
 
 Enterprise Manager Configuration Assistant START
 
 EMCA de-configuration trace file location: /home/oracle/deinstall/./logs/emcadc_clean2010-10-01_08-08-57-AM.log
 
 Updating Enterprise Manager Database Control configuration for database CATALOGO
 Updating Enterprise Manager ASM targets (if any)
 Updating Enterprise Manager listener targets (if any)
 Enterprise Manager Configuration Assistant END
 Database de-configuration trace file location: /home/oracle/deinstall/./logs/databasedc_clean2010-10-01_08-09-08-AM.log
 Database Clean Configuration START CATALOGO
 This operation may take few minutes.
 Database Clean Configuration END CATALOGO
 
 Network Configuration clean config START
 
 Network de-configuration trace file location: /home/oracle/deinstall/./logs/netdc_clean2010-10-01_08-11-50-AM.log
 
 De-configuring Single Instance 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 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
 
 Oracle Configuration Manager clean START
 OCM clean log file location : /home/oracle/deinstall/./logs//ocm_clean_2010-10-01_08-08-58-AM.log
 Oracle Configuration Manager clean END
 Removing Windows and .NET products configuration END
 Oracle Universal Installer clean START
 
 Detach Oracle home '/u01/app/oracle/product/11.2.0/db_1' from the central inventory on the local node : Done
 
 Delete directory '/u01/app/oracle/product/11.2.0/db_1' on the local node : Done
 
 Delete directory '/u01/app/oraInventory' on the local node : Done
 
 Delete directory '/u01/app/oracle' on the local node : Done
 
 Oracle Universal Installer cleanup was successful.
 
 Oracle Universal Installer clean END
 
 Oracle install clean START
 
 Clean install operation removing temporary directory '/tmp/deinstall2010-10-01_08-08-09AM' on node 'nerv00'
 
 Oracle install clean END
 
 ######################### CLEAN OPERATION END #########################
 
 ####################### CLEAN OPERATION SUMMARY #######################
 Updated Enterprise Manager configuration for database CATALOGO
 Successfully de-configured the following database instances : CATALOGO
 Following Single Instance listener(s) were de-configured successfully: LISTENER
 Cleaning the config for CCR
 As CCR is not configured, so skipping the cleaning of CCR configuration
 CCR clean is finished
 Skipping Windows and .NET products configuration clean
 Successfully detached Oracle home '/u01/app/oracle/product/11.2.0/db_1' from the central inventory on the local node.
 Successfully deleted directory '/u01/app/oracle/product/11.2.0/db_1' on the local node.
 Successfully deleted directory '/u01/app/oraInventory' on the local node.
 Successfully deleted directory '/u01/app/oracle' on the local node.
 Oracle Universal Installer cleanup was successful.
 
 Run 'rm -rf /etc/oraInst.loc' as root on node(s) 'nerv00' at the end of the session.
 
 Run 'rm -rf /opt/ORCLfmap' as root on node(s) 'nerv00 ' at the end of the session.
 Oracle deinstall tool successfully cleaned up temporary directories.
 #######################################################################
 
 ############# ORACLE DEINSTALL & DECONFIG TOOL END #############
 
 [oracle@nerv00 deinstall]$
Ricardo Portilho Proni

Ricardo Portilho Proni

Com 20 anos de experiência profissional, Oracle ACE Member – eleito pela Oracle Corporation um dos maiores especialistas do mundo em Oracle Database- Trabalhou em grande parte dos maiores bancos de dados Oracle do Brasil. Certificado em Oracle, SQL Server, DB2, MySQL, Sybase e Websphere. Conselheiro do GPO e do GUOB, palestrante do ENPO, GUOB Tech Day e Oracle Open World, escritor da Revista SQL Magazine e Instrutor na Nerv.

Deixe um comentário

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *

Marcações:
plugins premium WordPress