Pages

Wednesday 19 February 2014

Error while uninstalling 11g agent.

I got below error while uninstalling an agent in silent mode.

[oracle@ora-test-a1 bin]$ ./runInstaller -deinstall -silent "REMOVE_HOMES={/oracle/product/agent11g}" -removeallfiles
Starting Oracle Universal Installer...

Checking swap space: must be greater than 500 MB.   Actual 49143 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2014-02-19_04-22-23AM. Please wait ...[oracle@inf-prod-int9-a1 bin]$ Oracle Universal Installer, Version 11.1.0.8.0 Production
Copyright (C) 1999, 2010, Oracle. All rights reserved.

OUI-10031:Inventory location cannot be empty.


Reason:

oraInventory was not updated at /etc/oraInst.loc. Update or create /etc/oraInst.loc with root user.  Entries should be like below.

cat /etc/oraInst.loc
inventory_loc=/oracle/product/11.2.0/oraInventory
inst_group=oinstall

and then run the uninstall agent command as below.

[oracle@ora-test-a1 bin]$ ./runInstaller -deinstall -silent "REMOVE_HOMES={/oracle/product/agent11g}" -removeallfiles
Starting Oracle Universal Installer...

Checking swap space: must be greater than 500 MB.   Actual 49143 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2014-02-19_04-30-37AM. Please wait ...[oracle@ora-test-a1 bin]$ Oracle Universal Installer, Version 11.1.0.8.0 Production
Copyright (C) 1999, 2010, Oracle. All rights reserved.

Starting deinstall


Deinstall in progress (Wednesday, February 19, 2014 4:30:40 AM PST)
Configuration assistant "Agent Deinstall Assistant" succeeded
Configuration assistant "Oracle Configuration Manager Deinstall" succeeded
............................................................... 100% Done.

Deinstall successful

End of install phases.(Wednesday, February 19, 2014 4:31:16 AM PST)
End of deinstallations
Please check '/oracle/product/11.2.0/oraInventory/logs/silentInstall2014-02-19_04-30-37AM.log' for more details.

Argument(s) Error... Illegal file format for composite patch.

While installing 11.2.0.3.8 composite PSU, I was getting following errors:

[oracle@ora-test-1 16902043]$ opatch apply
Oracle Interim Patch Installer version 11.2.0.3.0
Copyright (c) 2012, Oracle Corporation.  All rights reserved.

Argument(s) Error... Illegal file format for composite patch. There is no composite.xml file. Either this composite patch is not packaged properly, or you are applying a constituent individually.

Please check the arguments and try again.

OPatch failed with error code 135

Reason:

Patch apply was executed when current working directory was  "/16902043/16902043"

Solution:

We should be one directory level up while applying the patch:

cd /16902043


we need to execute "opatch apply" under //16902043 not under //16902043/16902043