Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: oakcli stuck situation


[root@oda1 ~]# oakcli show version -detail
Reading the metadata. It takes a while...
System Version Component Name Installed Version Supported Version
-------------- --------------- ------------------ -----------------
Controller_INT Up-to-date
Controller_EXT Up-to-date
Expander 0018 Up-to-date
SSD_SHARED 944A Up-to-date
HDD_LOCAL A720 Up-to-date
HDD_SHARED A720 Up-to-date
ILOM r101722 Up-to-date
BIOS 17110500 Up-to-date
IPMI Up-to-date
HMP Up-to-date
OAK Up-to-date
OL 5.11 Up-to-date
OVM 3.2.9 Up-to-date
GI_HOME 21359758)
DB_HOME, 21352649)



The oakcli logfiles are in: /opt/oracle/oak/log/oda1/oak/oakd.log


oakcli may get stuck for several reasons, for example, if it runs out of disk space during the upgrade. oakcli check for 10G free disk space in /u01 before cloning the Oracle Home. But an Oracle Home may be larger then 10G when, for example, some audit or log files are present.

If the update process is interrupted, the whole installation may be stuck and unrecoverable. A typical situation is:

[root@oda1 ~]# oakcli show version -detail 
Reading the metadata. It takes a while... 
unclosed token at line 5367, column 6, byte 298999 at /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/XML/ line 187
root@oda1 ~]# oakcli show vm
OAKERR:6003 OAK is in upgrade Mode

While the VMs do not start any more.

The only solution Oracle Support found for this situation was:

  1. Remove excessive new Grid_Home on both the nodes that should not be there 
    1. rm -fr /u01/app/ 
  2. Replace the central inventory ("/u01/app/oraInventory/ContentsXML/inventory.xml") on both nodes from last backup, or execute on both nodes the following commands (change nodename1,nodename2 with your ODA host nodes name): 
    1. export NEW_GI_HOME=/u01/app/ 
    2. export ORACLE_HOME=$NEW_GI_HOME 
    3. $OLD_HOME/oui/bin/runInstaller -detachHome -silent -local ORACLE_HOME=$NEW_GI_HOME 
    4. export OLD_GI_HOME=/u01/app/ 
    5. export ORACLE_HOME=$OLD_GI_HOME 
    6. $OLD_HOME/oui/bin/runInstaller -attachHome -silent -local ORACLE_HOME=$OLD_GI_HOME ORACLE_HOME_NAME=OraGrid11gR3 "CLUSTER_NODES=nodename1,nodename2" CRS=true 
  3. Rerun update --GI command. 
    1. oakcli update –patch <patch_number> –gi

Content by Label