Wednesday, February 24, 2016

ADOP failes (Clean a previous Session)









Case:
Checking for existing adop sessions.
    Session Id            :   2
    Prepare phase status  :   NOT APPLICABLE
    Apply phase status    :   ATLEAST ONE PATCH IS ALREADY APPLIED
    Cutover  phase status :   NOT APPLICABLE
    Abort phase status    :   NOT APPLICABLE
    Session status        :   FAILED
    [UNEXPECTED]The adop utility cannot be used when a previous patching cycle is incomplete
    [UNEXPECTED]Ensure there is no existing patching cycle before trying to apply more patches
    [UNEXPECTED]Unrecoverable error occurred. Exiting current adop session.

Solution:
 STEP1: Source RUN File System and run the following:
$adop phase=cleanup

The cleanup phase completed successfully.
adop exiting with status = 0 (Success)
$

Regards,
Bahaa Barghouti

How to recreate Oracle Inventory



$ export PATH=$PATH:$ORACLE_HOME/OPatch
$ opatch lsinv
Oracle Interim Patch Installer version 11.2.0.3.12
Copyright (c) 2016, Oracle Corporation.  All rights reserved.
Oracle Home       : /oracle/PROD/db/tech_st/11.2.0
Central Inventory : /oracle/oraInventory
   from           : /oracle/PROD/db/tech_st/11.2.0/oraInst.loc
OPatch version    : 11.2.0.3.12
OUI version       : 11.2.0.4.0
Log file location : /oracle/PROD/db/tech_st/11.2.0/Opatch/opatch2016-02-24_09-53-37AM_1.log
Lsinventory Output file location : /oracle/PROD/db/tech_st/11.2.0/cfgtoollogs/opatch/lsinv/lsinventory2016-02-24_09-53-37AM.txt
--------------------------------------------------------------------------------
Local Machine Information::
Hostname: bbarg-apps.ple.com
ARU platform id: 226
ARU platform description:: Linux x86-64
 Step2:cat ./oraInventory/ContentsXML/inventory.xml
           Check if your Oracle Home listed in the file if not go to next step.

     Step 3. Re-create the Oracle Inventory.
$./runInstaller -silent -attachHome ORACLE_HOME="<Your Oracle Home >" ORACLE_HOME_NAME="OraDbHome"

Now you can apply the patches successfully.

Regarda,
Bahaa Barghouti

R12.2 Adop Does Nothing, Online Patching




 Oracle ADOP do nothing and Hangs.
Case:
adop do nothing when run.



Solution:
Login by root user and run below command:



c Make sure that the hostname in your server the same as the node name in R12.2.

Regards,
Bahaa Barghouti