9 Replies Latest reply: Dec 31, 2012 5:03 AM by 678074 RSS

    Deinstall 11.2.0.1 Grid Infrastructure after 11.2.0.2 Install

    user2220875
      Quick question.... We recently installed and upgraded GI and Databases from 11.2.0.1 to 11.2.0.2 with out-of-place install. I successfully deinstalled 11.2.0.1 database sofware using ./deinstall (1st had to unset TNS_ADMIN and remove/rename *.ora files under 11.2.0.1/network/admin). Now trying to deinstall 11.2.0.1 Grid, and getting this error:

      ERROR: Can't deconfigure Oracle Restart before removing or downgrading managed Oracle databases.

      I found in the crsdc.log that it is finding my new 11.2.0.2 GI and setting CRS_HOME to this.
      [CRSDeconfig.readPropertyValues:499] ORA_CRS_HOME = /u01/app/oracle/product/11.2.0/grid_2 (11.2.0.2)

      I have all env variables unset and am running ./deinstall from the ... 11.2.0/grid/deinstall (11.2.0.1)

      I'm guess that this is happening because my current 11.2.0.2 environment is up and active so it's detecing it. Do I have to have the 11.2.0.2 environment shutdown in order to deinstall the 11.2.0.1 G.I. ?
      And if I'm not able to do that(i.e. shutdown the env), can I just go ahead and remove the software manually instead of running 'deinstall'.
      cd /u01/app/oracle/product/11.2.0
      rm -Rf grid

      Thanks,
      Ann
        • 1. Re: Deinstall 11.2.0.1 Grid Infrastructure after 11.2.0.2 Install
          Helios-GunesEROL
          Hi;

          Please see below doc:

          6 How to Modify or Deinstall Oracle Grid Infrastructure
          http://download.oracle.com/docs/cd/E11882_01/install.112/e17212/rem_orcl.htm

          Regard
          Helios
          • 2. Re: Deinstall 11.2.0.1 Grid Infrastructure after 11.2.0.2 Install
            user2220875
            Thank you. That is the doc I have been following and it does not answer my questions. However, I was able to test my theory - by shutting down the existing 11.2.0.2 env and then running ./deinstall from the 11.2.0.1 path. It got past the previous error now it wants me to run :

            /tmp/deinstall2011-03-23_05-29-02-PM/perl/bin/perl -I/tmp/deinstall2011-03-23_05-29-02-PM/perl/lib -I/tmp/deinstall2011-03-23_05-29-02-PM/crs/install /tmp/deinstall2011-03-23_05-29-02-PM/crs/install/roothas.pl -force -delete -paramfile "/tmp/deinstall2011-03-23_05-29-02-PM/response/deinstall_noHomeName.rsp"

            I'm afraid to run this because I don't want to deinstall the 11.2.0.2 home from CRS. The documentation is not clear to me on this.
            • 3. Re: Deinstall 11.2.0.1 Grid Infrastructure after 11.2.0.2 Install
              Helios-GunesEROL
              Hi;

              Please check below notes:
              11gR2 RAC: How to re-install the Grid Infrastructure without disturbing the RDBMS installations. [ID 1276975.1]
              Oracle De-install Utility - 11g R2 [ID 886184.1]
              How to Proceed from Failed 11gR2 Grid Infrastructure (CRS) Installation [ID 942166.1]
              11gR2 Grid Infrastructure - Deinstall script rootcrs.pl failed [ID 1174384.1]

              Regard
              Helios
              • 4. Re: Deinstall 11.2.0.1 Grid Infrastructure after 11.2.0.2 Install
                user17923
                We are having the same issue with the 11.2.0.1 deinstall utility, using the -checkonly parameter. Found note 883743.1, that I am reviewing and will try to download the tool from OTN. The error is:
                ERROR: Can't deconfigure Oracle Restart before removing or downgrading managed Oracle databases.

                We are using Oracle Restart from the 11.2.0.2 Grid Infrastructure home.
                • 5. Re: Deinstall 11.2.0.1 Grid Infrastructure after 11.2.0.2 Install
                  user17923
                  I downloaded the deinstall tool and tried to run from another location. Same Error =

                  PRKU-01039: Can't deconfigure Oracle Restart before removing or downgrading managed Oracle databases.
                  Cause: A request to deconfigure Oracle Restart found one or more managed Oracle database homes, so the request was rejected.
                  Action: Run the Oracle deconfiguration tool from Oracle database homes to delete, deconfigure or downgrade Oracle database and then run the same tool from Oracle Restart home to deconfigure the Oracle Restart stack.

                  Anyone have a fix for this? Not sure I trust this tool yet. We have working ASM and database instances running from 11.2.0.2_ORACLE_HOME
                  • 6. Re: Deinstall 11.2.0.1 Grid Infrastructure after 11.2.0.2 Install
                    Srini Chavali-Oracle
                    Have you opened an SR with Support ?

                    Srini
                    • 7. Re: Deinstall 11.2.0.1 Grid Infrastructure after 11.2.0.2 Install
                      ora_tech
                      Hi,

                      Refer MOS tech note:
                      *Oracle De-install Utility - 11g R2 [ID 886184.1]*

                      thanks,
                      X A H E E R
                      • 8. Re: Deinstall 11.2.0.1 Grid Infrastructure after 11.2.0.2 Install
                        868551
                        I ran into the same issue. But I solved the problem.

                        The issue here is OHAS and CSS services are still running in background, and need to shut them down before run deinstall script:

                        1) shutdown ASM instance;
                        2) shutdown OHAS and CSS services by using the following script as root user:
                        $ORACLE_HOME/crs/install/roothas.pl -deconfig -force
                        3) make sure OHAS and CSS is down:
                        crsctl check has
                        crsctl check css
                        4) $ORACLE_HOME/deinstall/deinstall

                        Good luck!

                        Ben S.

                        Edited by: 865548 on Nov 4, 2011 9:11 AM
                        • 9. Re: Deinstall 11.2.0.1 Grid Infrastructure after 11.2.0.2 Install
                          678074
                          Grid Infrastructure

                          On all cluster nodes except the last, run the following command as the "root" user.

                          # perl $GRID_HOME/crs/install/rootcrs.pl -verbose -deconfig -force

                          On the last cluster node, run the following command as the "root" user.

                          # perl $GRID_HOME/crs/install/rootcrs.pl -verbose -deconfig -force -lastnode

                          This final command will blank the OCR configuration and voting disk.

                          You should be in a position to rerun the "root.sh" file now, but if you are using ASM, you will need to prepare your ASM disks before doing so.

                          ASM Disks

                          Once you attempt an installation, your ASM disks are marked as being used, so they can no longer be used as candidate disks. To revert them to candidate disk do the following.

                          Overwrite the header for the relevant partitions using the "dd" command.

                          # dd if=/dev/zero of=/dev/sdb1 bs=1024 count=100

                          Remove and create the ASM disk for each partition.

                          # /etc/init.d/oracleasm deletedisk DATA /dev/sdb1
                          # /etc/init.d/oracleasm createdisk DATA /dev/sdb1