Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you completely uninstall Oracle9i from a Sun system?

Tips and Tricks

How do you completely uninstall Oracle9i from a Sun system?

by  Michael42  Posted    (Edited  )
1. Use the OUI and uninstall products.
This is done by selecting Deinstall Products and
Oracle Homes -- OraHome92 -- [x] Oracle9i Database

Then select the [Remove] button.

2. Run the script below (change as your environment requires):

[color blue]
#!/bin/sh

# Confirm
clear
echo "Purge All Oracle Files and Directories"
echo ""
echo "About to purge all Oracle directories and files from this system."
echo "Press Ctr-C to abort or Enter to continue"
echo ""
echo "IMPORTANT: Make sure you have uninstalled Oracle using Oracle installer before running!"
read pause

echo Removing Oracle directories and files...
rm -r /usr1/oracle
rm -r /var/opt/oracle

rm /usr/local/bin/dbhome
rm /usr/local/bin/oraenv
rm /usr/local/bin/coraenv
rm /var/temp/.oracle

echo .
echo Oracle Removed
[/color]
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top