I know that with 11g, the preferred method for deleting old binaries is to use the deinstall tool (in $11G_HOME/deinstall/de-install). However, is it possible for me to delete older binaries using this tool?
For instance, my 11g ORACLE_HOME (i.e. the one that I want to keep and use) is /opt/oracle/product/18.104.22.168/db
And I have the following binaries on one particular database server:
10.2 11.1 22.214.171.124 126.96.36.199 188.8.131.52 184.108.40.206 220.127.116.11 18.104.22.168 agent
10.2.0.3 22.214.171.124 126.96.36.199 188.8.131.52 184.108.40.206.32 220.127.116.11 18.104.22.168 22.214.171.124
As you can see, I have binaries dating to before the beginning of time (8.1.6, nice) and I’d like to be able to clean it up neatly.
I tried to deinstall (just running the checkonly, to make sure it 'sees' the older home) the 10.2 binaries using the 11g deinstall tool and got the following error:
/opt/oracle/product/126.96.36.199/db/deinstall/deinstall -home /opt/oracle/product/10.2/db -checkonly
Checking for required files and bootstrapping ...
Please wait ...
ERROR: -home must not be set for a deinstall running from within an ORACLE_HOME.
Deinstall of the current home is assumed.
Any thoughts? I absolutely don't want to deinstall the current home!
If you want to get rid of old ORACLE_HOME's then you need to use corresponding version of deinstall and should be run from that ORACLE_HOME.
The best way to remove the ORACLE_HOME is by deattaching the old ORACLE_HOME with inventroy and delete that old home.