Patch apply failing!
DBAsupport.com Forums - Powered by vBulletin
Page 1 of 3 123 LastLast
Results 1 to 10 of 27

Thread: Patch apply failing!

Hybrid View

  1. #1
    Join Date
    Dec 2007
    Posts
    55

    Patch apply failing!

    Hi, I am trying to apply a patch to fix a bug for agent (10203)and it is failing with the errors ,HP-UX 11.1 , and read the read me doc and its not saying anything about taking down the agent but i took it down as it was complaining about agent process being busy so had to take it down any way here is the error.

    ApplySession adding interim patch '5854190' to inventory

    Verifying the update...
    Inventory check OK: Patch ID 5854190 is registered in Oracle Home inventory with proper meta-data.
    Files check OK: Files from Patch ID 5854190 are present in Oracle Home.
    Running make for target client_sharedlib
    Make failed to invoke "/usr/ccs/bin/make -f ins_rdbms.mk client_sharedlib ORACLE_HOME=/oracle/product/agent10g/agent10g"....'Make: Cannot load /oracle/product/agent10g/agent10g/bin/genoccish. Stop.

    Stop.
    '

    The following make actions have failed :

    Re-link fails on target "client_sharedlib".

    --------------------------------------------------------------------------------
    Failed to run make commands in file '/oracle/product/agent10g/agent10g/.patch_storage/5854190_May_8_2007_04_48_06/make.txt'
    Invoke these commands manually to restore the binaries in the Oracle Home.
    OPatch failed to restore OH '/oracle/product/agent10g/agent10g'. Consult OPatch document to restore the home manually before proceeding.
    --------------------------------------------------------------------------------
    The following warnings have occurred during OPatch execution:
    1) OUI-67200:Make failed to invoke "/usr/ccs/bin/make -f ins_rdbms.mk client_sharedlib ORACLE_HOME=/oracle/product/agent10g/agent10g"....'Make: Cannot load /oracle/product/agent10g/agent10g/bin/genoccish. Stop.

    Stop.
    '
    2) OUI-67124:Re-link fails on target "client_sharedlib".

    3) OUI-67200:Make failed to invoke "/usr/ccs/bin/make -f ins_rdbms.mk client_sharedlib ORACLE_HOME=/oracle/product/agent10g/agent10g"....'Make: Cannot load /oracle/product/agent10g/agent10g/bin/genoccish. Stop.

    Stop.
    -----------------------------------------------------------------

    $ opatch rollback -id 5854190
    Invoking OPatch 10.2.0.3.0

    Oracle interim Patch Installer version 10.2.0.3.0
    Copyright (c) 2005, Oracle Corporation. All rights reserved..


    Oracle Home : /oracle/product/agent10g/agent10g
    Central Inventory : /oracle/oraInventory
    from : /var/opt/oracle/oraInst.loc
    OPatch version : 10.2.0.3.0
    OUI version : 10.2.0.3.0
    OUI location : /oracle/product/agent10g/agent10g//oui
    Log file location : /oracle/product/agent10g/agent10g/cfgtoollogs/opatch/opatch2007-12-07_21-12-46PM.log

    RollbackSession rolling back interim patch '5854190' from OH '/oracle/product/agent10g/agent10g'
    RollbackSession failed: Interim patch 5854190 does not exist in this Oracle Home inventory.
    System intact, OPatch will not attempt to restore the system





    Please let me know what needs to be done ?

  2. #2
    Join Date
    Jan 2001
    Posts
    2,828
    Hi

    Post the contents of ins_rdbms.mk something strange with it i think.

    regards
    Hrishy

  3. #3
    Join Date
    Dec 2007
    Posts
    55
    Sorry, but how and where to see the contents of ins_rdbms.mk from?its an patch to be applied against $AGENT_HOME.

  4. #4
    Join Date
    Dec 2007
    Posts
    55
    Attached are the contents of ins_rdbms.mk
    Attached Files Attached Files

  5. #5
    Join Date
    Jan 2001
    Posts
    2,828
    Hi

    Try commenting this line in the mk file

    $(GENOCCISH)

    make it as
    #$(GENOCCISH)

    and try again.

    I am not very sure if the make file is right

    regards
    Hrishy

  6. #6
    Join Date
    Dec 2007
    Posts
    55
    Thank you sir!
    Last edited by monto1; 12-11-2007 at 11:52 AM.

  7. #7
    Join Date
    Dec 2007
    Posts
    55
    Hrishy after taking agent down and re-applying the patch it succeeded,thank you very much sir!

  8. #8
    Join Date
    Dec 2007
    Posts
    55
    HIi ,after applying the agent patch(5854190) i need to apply rdbms(5868695) patch, the following are the errors i am getting
    $ export ORACLE_HOME=/u01/OID
    $ export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH:.
    $ opatch lsinventory

    Oracle Interim Patch Installer version 1.0.0.0.52
    Copyright (c) 2005 Oracle Corporation. All Rights Reserved..

    We recommend you refer to the OPatch documentation under
    OPatch/docs for usage reference. We also recommend using
    the latest OPatch version. For the latest OPatch version
    and other support related issues, please refer to document
    293369.1 which is viewable from metalink.oracle.com

    Oracle Home = /u01/OID
    Location of Oracle Universal Installer components = /u01/OID/oui
    Location of OraInstaller.jar = "/u01/OID/oui/jlib"
    Oracle Universal Installer shared library = /u01/OID/oui/lib/hpunix/liboraInstaller.sl
    Location of Oracle Inventory Pointer = /var/opt/oracle/oraInst.loc
    Location of Oracle Inventory = /u01/OID/inventory
    Path to Java = /u01/OID/jre/1.4.2/bin/java
    Log file = /u01/OID/.patch_storage//*.log

    /usr/lib/dld.sl: Call to mmap() failed - TEXT /u01/OID/jre/1.4.2/lib/PA_RISC2.0/server/libjvm.sl
    /usr/lib/dld.sl: Permission denied
    sh: 29617 Abort(coredump)
    Creating log file "/u01/OID/.patch_storage/LsInventory__12-11-2007_15-47-01.log"

    /usr/lib/dld.sl: Call to mmap() failed - TEXT /u01/OID/jre/1.4.2/lib/PA_RISC2.0/server/libjvm.sl
    /usr/lib/dld.sl: Permission denied
    sh: 29624 Abort(coredump)
    Result:



    OPatch succeeded.

  9. #9
    Join Date
    Dec 2007
    Posts
    55
    I changed the permission on /u01/OID/jre/1.4.2/lib/PA_RISC2.0/server/libjvm.sl and /u01/OID/jre/1.4.2/lib/PA_RISC2.0/native_threads/libhpi.sl to 755 and now i am getting this error

    $ opatch lsinventory

    Oracle Interim Patch Installer version 1.0.0.0.52
    Copyright (c) 2005 Oracle Corporation. All Rights Reserved..

    We recommend you refer to the OPatch documentation under
    OPatch/docs for usage reference. We also recommend using
    the latest OPatch version. For the latest OPatch version
    and other support related issues, please refer to document
    293369.1 which is viewable from metalink.oracle.com

    Oracle Home = /u01/OID
    Location of Oracle Universal Installer components = /u01/OID/oui
    Location of OraInstaller.jar = "/u01/OID/oui/jlib"
    Oracle Universal Installer shared library = /u01/OID/oui/lib/hpunix/liboraInstaller.sl
    Location of Oracle Inventory Pointer = /var/opt/oracle/oraInst.loc
    Location of Oracle Inventory = /u01/OID/inventory
    Path to Java = /u01/OID/jre/1.4.2/bin/java
    Log file = /u01/OID/.patch_storage//*.log

    Creating log file "/u01/OID/.patch_storage/LsInventory__12-11-2007_16-25-29.log"

    Result:

    Error occurred during initialization of VM
    Unable to load native library: permission denied.
    Last edited by monto1; 12-11-2007 at 12:48 PM.

  10. #10
    Join Date
    Jan 2001
    Posts
    2,828
    Hi

    ./emctl stop agent

    cd $ORACLE_HOME/sysman/lib

    and then relink the agent

    make -f ins_emagent.mk agent

    and then run the root.sh script from oracle home
    $./root.sh

    and the start the agent again

    ./emctl start agent

    then try using opatch again.

    Get a help of a DBA to do this.

    regards
    Hrishy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width