3 Replies Latest reply: Oct 24, 2006 9:34 AM by Daljit RSS

    uninstall oracle 10g from Linux Red hat

    445547
      is any body know the standard procedure to uninstall oracle 10g from linux red hat.
        • 1. Re: uninstall oracle 10g from Linux Red hat
          392393
          The correct answer is "Undo the changes you made during the install"

          By this I mean:
          Stop all of the processes
          Delete the ORACLE_BASE directory (usually the one one level up from ORACLE_HOME)
          Delete the oraInventory directory if it isn't inside ORACLE_BASE
          Delete /etc/oratab, /etc/oraInst.loc
          Delete /user/local/bin/coraenv, /user/local/bin/oraenv, /user/local/bin/dbhome
          Undo any environment settings you may have modified (in .bash_profile and bashrc)

          That should be just about it. That's how I usually clean out my system between installs.

          ~Jer
          • 2. Re: uninstall oracle 10g from Linux Red hat
            445547
            Should i run the oui first? and then delete the remaining files manually? And where is the standard location of OUI in Linux Redhat
            • 3. Re: uninstall oracle 10g from Linux Red hat
              Daljit
              You don't need to run OUI, you can do this manually also. Here are the steps which I follow:

              Stop all the databases and listener on the box either manually or using your startup script (/etc/init.d/oracle stop).

              $ORACLE_HOME/bin/localconfig delete

              rm -rf /etc/ora*

              rm -rf $ORACLE_HOME

              rm -rf $ORACLE_BASE

              rm -rf /tmp/.oracle
              rm -rf /var/tmp/.oracle

              This should be enough to remove the whole software from the box, you can drop the OS users and their home directories also if you want.

              Daljit Singh