How to uninstall DB2

29 March,2012 by Jack Vamvas

After you’ve installed the DB2 server there may be a situation where you need to uninstall DB2.

These notes will help

db2_deinstall -F  - Removes a feature from a  DB2 database product in the current location. Execute the command from the DB2DIR/install directory

db2_deinstall -a  Removes all installed DB2 database products in the current location. Executes  the command from the DB2DIR/install directory

DB2DIR is the location specified in the DB2 server installation

 Example of Log created

 

DB2 Uninstall log file started at: ============================================================

Operating system information: Linux 2.6.9-67.ELsmp.#1 SMP Wed Nov 7 13:58:04 EST 2007 i686
Previously Installed Components:        
    Product Messages - English             
    Base client support                    
    IBM Software Development Kit (SDK) for Java(TM)   
    Java Help (HTML) - English             
    Replication with MQ Server             
    Run-time Environment                   
    Java support                           
    SQL procedures                         
    ICU Utilities                          
    SQL Replication Support                
    Java Common files                      
    Base server support                    
    Control Center Help (HTML) - English   
    Connect support                        
    Configuration Assistant                
    Spatial Extender client                
    Base application development tools     
    Administration Server                  
    Communication support - TCP/IP         
    Control Center                         
    Parallel Extension                     
    Replication tools                      
    Relational wrappers common             
    DB2 data source support                
    DB2 LDAP support                       
    DB2 Instance Setup wizard              
    XML Extender                           
    First Steps                            
    DB2 Web Tools                          
    Product Signature for DB2 Enterprise Server Edition   
    XML Extender samples                   
    ADT sample programs                    
    Sample database source                 
    Spatial Extender samples               
    Informix data source support           
Selected Components:                    
    Product Messages - English             
    Base client support                    
    IBM Software Development Kit (SDK) for Java(TM)   
    Java Help (HTML) - English             
    Replication with MQ Server             
    Run-time Environment                   
    Java support                           
    SQL procedures                         
    ICU Utilities                          
    SQL Replication Support                
    Java Common files                      
    Base server support                    
    Control Center Help (HTML) - English   
    Connect support                        
    Configuration Assistant                
    Spatial Extender client                
    Base application development tools     
    Administration Server                  
    Communication support - TCP/IP         
    Control Center                         
    Parallel Extension                     
    Replication tools                      
    Relational wrappers common             
    DB2 data source support                
    DB2 LDAP support                       
    DB2 Instance Setup wizard              
    XML Extender                           
    First Steps                            
    DB2 Web Tools                          
    Product Signature for DB2 Enterprise Server Edition   
    XML Extender samples                   
    ADT sample programs                    
    Sample database source                 
    Spatial Extender samples               
    Informix data source support           
Languages:                              
    English(already installed)             
Target directory:                          /opt/ibm/db2/V9.1
                                        
                                        
                                        

Preparing the system:.......Success
Stopping DB2 Fault Monitor:.......Success
Updating global registry:.......Success
Updating the db2ls link:.......Success
Executing control tasks:.......Success
Removing files for "INFORMIX_DATA_SOURCE_SUPPORT : Informix data source 
support".

Removing files for "SPATIAL_EXTENDER_SAMPLES : Spatial Extender samples".

Removing files for "DB2_SAMPLE_DATABASE : Sample database source".

Removing files for "DB2_SAMPLE_APPLICATIONS : ADT sample programs".

Removing files for "XML_EXTENDER_SAMPLES : XML Extender samples".

Removing files for "ESE_PRODUCT_SIGNATURE : Product Signature for DB2 
Enterprise Server Edition".

Removing files for "DB2_WEB_TOOLS : DB2 Web Tools".

Removing files for "FIRST_STEPS : First Steps".

Removing files for "XML_EXTENDER : XML Extender".

Removing files for "INSTANCE_SETUP_SUPPORT : DB2 Instance Setup wizard".

Removing files for "LDAP_EXPLOITATION : DB2 LDAP support".

Removing files for "DB2_DATA_SOURCE_SUPPORT : DB2 data source support".

Removing files for "RELATIONAL_WRAPPERS_COMMON : Relational wrappers common".

Removing files for "REPL_CLIENT : Replication tools".

Removing files for "DATABASE_PARTITIONING_SUPPORT : Parallel Extension".

Removing files for "CONTROL_CENTER : Control Center".

Removing files for "COMMUNICATION_SUPPORT_TCPIP : Communication support - 
TCP/IP".

Removing files for "ADMINISTRATION_SERVER : Administration Server".

Removing files for "APPLICATION_DEVELOPMENT_TOOLS : Base application 
development tools".

Removing files for "SPATIAL_EXTENDER_CLIENT_SUPPORT : Spatial Extender client".

Removing files for "CONFIGURATION_ASSISTANT : Configuration Assistant".

Removing files for "CONNECT_SUPPORT : Connect support".

Removing files for "DB2_CONTROL_CENTER_HELP_EN : Control Center Help (HTML) - 
English".

Removing files for "BASE_DB2_ENGINE : Base server support".

Removing files for "JAVA_COMMON_FILES : Java Common files".

Removing files for "REPL_SERVER : SQL Replication Support".

Removing files for "ICU_SUP : ICU Utilities".

Removing files for "SQL_PROCEDURES : SQL procedures".

Removing files for "JAVA_SUPPORT : Java support".

Removing files for "BASE_DB2_SERVER : Run-time Environment".

Removing files for "REPL_QSERVER : Replication with MQ Server".

Removing files for "DB2_JAVA_HELP_EN : Java Help (HTML) - English".

Removing files for "JDK : IBM Software Development Kit (SDK) for Java(TM)".

Removing files for "BASE_CLIENT : Base client support".

Removing files for "DB2_PRODUCT_MESSAGES_EN : Product Messages - English".

Deleting DB2 file sets:.......Success
Starting DB2 Fault Monitor:.......Success

Post Uninstall Recommendations
------------------------------

Manually remove the files that are not removed successfully if there is any in this log file.


DB2 Uninstall log file finished at: Thu Mar 29 15:12:32 2012 BST
============================================================

 

Author: Jack Vamvas(http://www.dba-db2.com)

Share:

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been saved. Comments are moderated and will not appear until approved by the author. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment on How to uninstall DB2

Comments are moderated, and will not appear until the author has approved them.


dba-db2.com | DB2 Performance Tuning | DBA DB2:Everything | FAQ | Contact | Copyright