11 Replies Latest reply: Mar 20, 2014 4:08 AM by Durmic RSS

    OMS Patch 17513525 install problem

    Durmic

      Since yesterday there is a Patch for OMS available. I'm trying to install it, but I keep getting the same problem.

       

      I have configured my ORACLE_HOME and PATH according to README:

       

      [oracle@oemcc12 17513525]$ echo $PATH
      /usr/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/oracle/bin:/u01/app/oracle/Middleware12cR3/oms/bin:/u01/app/oracle/Middleware12cR3/oms/OPatch:/tmp/ded/
      [oracle@oemcc12 17513525]$ echo $ORACLE_HOME
      /u01/app/oracle/Middleware12cR3/oms/

       

      opatchauto apply -analyze says that everything is OK, but during the apply I get following:

       

      To complete the session, please execute the following step(s):
      [Jan 16, 2014 9:38:38 AM]    Step 1. On host oemcc12.vm.net run below command(s) as user "oracle":
                                   /u01/app/oracle/Middleware12cR3/oms/OPatch/opatchauto checkApplicable -ph /tmp/ded/17513525 -oh /u01/app/oracle/Middleware12cR3/oms -invPtrLoc /u01/app/oracle/Middleware12cR3/oms/oraInst.loc

       

                                   Step 2. On host oemcc12.vm.net run below command(s) as user "oracle":
                                   NOTE: Please replace %EM_REPOS_PASSWORD% with credential for OMS repository SYSMAN user.

       

                                   /u01/app/oracle/Middleware12cR3/oms/bin/emctl register oms metadata -service swlib -debug -file /u01/app/oracle/Middleware12cR3/oms/sysman/metadata/swlib/multioms -core -sysman_pwd xxxxxx

       

                                   Step 3. On host oemcc12.vm.net run below command(s) as user "oracle":
                                   NOTE: Please replace %EM_REPOS_PASSWORD% with credential for OMS repository SYSMAN user.

       

                                   /u01/app/oracle/Middleware12cR3/oms/bin/emctl register oms metadata -service procedures -debug -file /u01/app/oracle/Middleware12cR3/oms/sysman/metadata/procedures/linuxpatch/PatchLinux.xml -core -sysman_pwd xxxx

       

                                   Step 4. On host oemcc12.vm.net run below command(s) as user "oracle":
                                   /u01/app/oracle/Middleware12cR3/oms/OPatch/opatchauto commit -id 17513525 -oh /u01/app/oracle/Middleware12cR3/oms -invPtrLoc /u01/app/oracle/Middleware12cR3/oms/oraInst.loc

       

       

       

      To continue, OPatch will do the following:                                                                                                                                                                                       [Patch and deploy patch(es) binaries]   : Apply patch(es) [ 17513525 ] to Oracle Home "/u01/app/oracle/Middleware12cR3/oms";                                                                                                                                               Apply RCU artifact with patch "/u01/app/oracle/Middleware12cR3/oms/.patch_storage/17513525_Jan_13_2014_07_45_01/original_patch";                                                                                                 Register MRS artifact "swlib";                                                                                                                                                                                                   Register MRS artifact "procedures"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       Do you want to proceed? [y|n]                                                                                                                                                                                                    y                                                                                                                                                                                                                                User Responded with: Y                                                                                                                                                                                                                                                                                                                                                                                                                                            Applying patch "17513525" to Oracle Home "/u01/app/oracle/Middleware12cR3/oms"...                                                                                                                                                Please monitor OPatch log file: /u01/app/oracle/Middleware12cR3/oms/cfgtoollogs/opatch/17513525_Jan_16_2014_09_33_25/apply2014-01-16_09-35-04AM_11.log                                                                                                                                                                                                                                                                                                            Updating repository with RCU reference file "/u01/app/oracle/Middleware12cR3/oms/.patch_storage/17513525_Jan_13_2014_07_45_01/original_patch"                                                                                                                                                                                                                                                                                                                     Registering service "swlib" with register file "/u01/app/oracle/Middleware12cR3/oms/sysman/metadata/swlib/multioms"...                                                                                                                                                                                                                                                                                                                                            Some error occurred during update MRS action. Please refer individual log file(s) for details.                                                                                                                                   Log file location: /u01/app/oracle/Middleware12cR3/oms/cfgtoollogs/opatch/2014-01-16_09-33-24AM_SystemPatch_17513525_1/emctl_register_swlib_2014-01-16_09-38-33AM.log                                                                                                                                                                                                                                                                                             To complete the session, please execute the following step(s):                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     Step 1. On host oemcc12.vm.net run below command(s) as user "oracle":                                                                                                                                                            /u01/app/oracle/Middleware12cR3/oms/OPatch/opatchauto checkApplicable -ph /tmp/ded/17513525 -oh /u01/app/oracle/Middleware12cR3/oms -invPtrLoc /u01/app/oracle/Middleware12cR3/oms/oraInst.loc                                                                                                                                                                                                                                                                    Step 2. On host oemcc12.vm.net run below command(s) as user "oracle":                                                                                                                                                            NOTE: Please replace %EM_REPOS_PASSWORD% with credential for OMS repository SYSMAN user.                                                                                                                                                                                                                                                                                                                                                                          /u01/app/oracle/Middleware12cR3/oms/bin/emctl register oms metadata -service swlib -debug -file /u01/app/oracle/Middleware12cR3/oms/sysman/metadata/swlib/multioms -core -sysman_pwd %EM_REPOS_PASSWORD%                                                                                                                                                                                                                                                          Step 3. On host oemcc12.vm.net run below command(s) as user "oracle":                                                                                                                                                            NOTE: Please replace %EM_REPOS_PASSWORD% with credential for OMS repository SYSMAN user.                                                                                                                                                                                                                                                                                                                                                                          /u01/app/oracle/Middleware12cR3/oms/bin/emctl register oms metadata -service procedures -debug -file /u01/app/oracle/Middleware12cR3/oms/sysman/metadata/procedures/linuxpatch/PatchLinux.xml -core -sysman_pwd %EM_REPOS_PASSWORD%                                                                                                                                                                                                                                                                                                                                                                                                                                                               
      Step 4. On host oemcc12.vm.net run below command(s) as user "oracle":
      /u01/app/oracle/Middleware12cR3/oms/OPatch/opatchauto commit -id 17513525 -oh /u01/app/oracle/Middleware12cR3/oms -invPtrLoc /u01/app/oracle/Middleware12cR3/oms/oraInst.loc

       


      Copying all logs to: /u01/app/oracle/Middleware12cR3/oms/cfgtoollogs/opatch/2014-01-16_09-33-24AM_SystemPatch_17513525_1

       

      Patching summary:
      Following patch(es) are successfully applied (Oracle home:patch list):
      /u01/app/oracle/Middleware12cR3/oms:17513525

       


      [ Error during Patch and deploy patch(es) binaries Phase]. Detail: Some error occurs during deploying the MRS artifact for service "{0}".
      opatchauto failed: opatchauto failed to execute some of the OMS operations. Please refer log file(s) for details.
      Log file location: /u01/app/oracle/Middleware12cR3/oms/cfgtoollogs/opatchauto/17513525/opatch_oms_2014-01-16_09-33-29AM_deploy.log

       

      Recommended actions: Please check the opatch, opatchauto, artifact log files for the failed MRS artifact action(s) and contact Oracle Support with the logs.

       

      opatchauto failed with error code 244
      [oracle@oemcc12 17513525]$ emctl start oms
      Oracle Enterprise Manager Cloud Control 12c Release 3 
      Copyright (c) 1996, 2013 Oracle Corporation.  All rights reserved.
      Starting Oracle Management Server...
      Starting WebTier...
      WebTier Successfully Started
      Oracle Management Server is Down. PBS and Console both may not be up.


      After that I can not start my OMS.

       

      Rollbacking  with opatchauto rollback -id xxxx  doesnt work. I had to rollback it with opatch rollback -id xxxx. After that I'm able to start the OMS.

       

      By execution off some steps I also get an error:

       

      [oracle@oemcc12 ~]$ /u01/app/oracle/Middleware12cR3/oms/bin/emctl register oms metadata -service swlib -debug -file /u01/app/oracle/Middleware12cR3/oms/sysman/metadata/swlib/multioms -core -sysman_pwd xxxxxx
      Oracle Enterprise Manager Cloud Control 12c Release 3 
      Copyright (c) 1996, 2013 Oracle Corporation.  All rights reserved.
      Starting output for debug mode.
      Debug logs will be written to /u01/app/oracle/Middleware12cR3/em/EMGC_OMS1/sysman/log/emctl.log
      Exception in thread "main" java.lang.NoClassDefFoundError: oracle/as/jmx/framework/PortableMBeanFactory
          at oracle.sysman.emctl.util.EmctlUtil.getReposConnUsingAdminServer(EmctlUtil.java:777)
          at oracle.sysman.emctl.util.EmctlUtil.getReposConn(EmctlUtil.java:719)
          at oracle.sysman.emctl.extensibility.EmctlMdsUtil.getReposConnection(EmctlMdsUtil.java:69)
          at oracle.sysman.emctl.extensibility.EmctlMetadataService.main(EmctlMetadataService.java:152)
      Caused by: java.lang.ClassNotFoundException: oracle.as.jmx.framework.PortableMBeanFactory
          at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
          at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
          ... 4 more

       

      [oracle@oemcc12 ~]$ /u01/app/oracle/Middleware12cR3/oms/bin/emctl register oms metadata -service procedures -debug -file /u01/app/oracle/Middleware12cR3/oms/sysman/metadata/procedures/linuxpatch/PatchLinux.xml -core -sysman_pwd xxxxxxx
      Oracle Enterprise Manager Cloud Control 12c Release 3 
      Copyright (c) 1996, 2013 Oracle Corporation.  All rights reserved.
      Starting output for debug mode.
      Debug logs will be written to /u01/app/oracle/Middleware12cR3/em/EMGC_OMS1/sysman/log/emctl.log
      Exception in thread "main" java.lang.NoClassDefFoundError: oracle/as/jmx/framework/PortableMBeanFactory
          at oracle.sysman.emctl.util.EmctlUtil.getReposConnUsingAdminServer(EmctlUtil.java:777)
          at oracle.sysman.emctl.util.EmctlUtil.getReposConn(EmctlUtil.java:719)
          at oracle.sysman.emctl.extensibility.EmctlMdsUtil.getReposConnection(EmctlMdsUtil.java:69)
          at oracle.sysman.emctl.extensibility.EmctlMetadataService.main(EmctlMetadataService.java:152)
      Caused by: java.lang.ClassNotFoundException: oracle.as.jmx.framework.PortableMBeanFactory
          at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
          at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
          ... 4 more

       

       

      Is there someone else, having the same problem...

      What could be the solution?

        • 1. Re: OMS Patch 17513525 install problem
          Courtney Llamas-Oracle

          There was an error in one of the apply steps, and so it was prompting for the steps needed to complete. You should have attempted those prior to starting up the OMS.   If you have rolled back, those steps are no longer valid.  I would suggest opening an SR to work with support so they can review the logs and determine why the patch failed in the first place. 

          • 2. Re: OMS Patch 17513525 install problem
            Durmic

            There is a bug according to ID 17269266. I can not open it at the moment, I'll just wait a little bit...


            Thanks for your reply.

            • 3. Re: OMS Patch 17513525 install problem
              MLallo

              I had the same problem when I try to install this patch and the ID 17269266 is not visible for months, How Can I solve?

              • 4. Re: OMS Patch 17513525 install problem
                Durmic

                I have no idea. I'm also waiting for the solution.

                • 5. Re: OMS Patch 17513525 install problem
                  MLallo

                  Hi Durma,

                  in my infrastructure after the error,

                   

                  It I try to reapply the patch:

                   

                  OPatchauto version : 11.1.0.10.3
                  Patch "17513525" has already been applied

                   

                  So I don't konw if the patch is successfull installed the same...from opatch lsinventory it is present and OEM works...

                  • 6. Re: OMS Patch 17513525 install problem
                    Rajesh Lathwal

                    If it is present in lsinventory output , so it means you have already applied the same.

                     

                    Thanks

                    Rajesh

                    • 7. Re: OMS Patch 17513525 install problem
                      Ansari - T-Oracle

                      What is your Opatch Auto Version ?

                      Upload /u01/app/oracle/Middleware12cR3/oms/cfgtoollogs/opatchauto/17513525/opatch_oms_2014-01-16_09-33-29AM_deploy.log

                       

                      Kindest Regards,

                      Ansari

                      • 8. Re: OMS Patch 17513525 install problem
                        Durmic

                        Hi, in the meantime i have updated my db version to 11.2.0.4.

                         

                        Now I have this:

                         

                        [oracle@oemcc12 OPatch]$ ./opatch version

                        OPatch Version: 11.1.0.10.2

                         

                         

                        [oracle@oemcc12 OPatch]$ ./opatch lsinv

                         

                        OPatch Version : 11.1.0.10.2

                          OUI  Version : 11.2.0.4.0

                        The OPatch version is not applicable for current OUI version.

                         

                        Since OUI Version starts with 11.2, Please go to 'My Oracle Support' and get right OPatch 11.2.*.*.* based on patch 6880880, release version 11.2.0.0.0 and appropriate platform.

                         

                         

                         

                         

                        OPatch succeeded.

                         

                        After installing the latest version of Opatch I can not use the opatchauto option:

                         

                        [oracle@oemcc12 OPatch]$ ls -l
                        total 140
                        drwxr-xr-x 3 oracle oinstall  4096 Dec 13 21:53 crs
                        drwxr-xr-x 2 oracle oinstall  4096 Dec 13 21:53 docs
                        -rwxr-xr-x 1 oracle oinstall 23695 Dec 13 21:53 emdpatch.pl
                        drwxr-xr-x 3 oracle oinstall  4096 Dec 13 21:53 jlib
                        drwxr-xr-x 4 oracle oinstall  4096 Dec 13 21:53 ocm
                        -rwx--x--- 1 oracle oinstall 31493 Dec 13 21:53 opatch
                        -rwxr-xr-x 1 oracle oinstall 19867 Dec 13 21:53 opatch.bat
                        -rwxr-xr-x 1 oracle oinstall 10056 Dec 13 21:53 opatchdiag
                        -rwxr-xr-x 1 oracle oinstall  9352 Dec 13 21:53 opatchdiag.bat
                        -rwxr-xr-x 1 oracle oinstall    49 Dec 13 21:53 opatch.ini
                        -rwxr-xr-x 1 oracle oinstall  2576 Dec 13 21:53 opatch.pl
                        drwxr-xr-x 4 oracle oinstall  4096 Dec 13 21:53 opatchprereqs
                        drwxr-xr-x 3 oracle oinstall  4096 Dec 13 21:53 oplan
                        -rw-rw-r-- 1 oracle oinstall  3064 Dec 17 21:38 README.txt
                        -rw-r----- 1 oracle oinstall    26 Dec 13 21:53 version.txt

                         

                        According to readme:

                        https://updates.oracle.com/Orion/Services/download?type=readme&aru=17010886#BABHIABC

                         

                        2 Prerequisites

                        Ensure that you have the latest version of OPatch 11.1 on all OMS instance platform homes. (this should be updated)

                         

                        autopatching with this versions of Opatch(11.1) and OUI(11.2.0.4) is not possible. Is there any other way to this? Do I also need to update the Opatch to 11.2?

                        In that case it's only possible to patch with "usual" opatch command.

                        To be honest, I'm not willing to experiment, since last time i lost a lot of time trying to figure this out, specially when I had a problem, that my oms can't start after patching.

                         

                        Uploading the log file is not relevant now, because I'm now using different OUI and DB Version.

                         

                        Regards!

                        • 9. Re: OMS Patch 17513525 install problem
                          Courtney Llamas-Oracle

                          EM requires 11.1 opatch version.   When running opatch you should always set your ORACLE_HOME and PATH to reflect the OH that you are patching.   Even though you can use the -oh, it's best to set the home directly to that of which you are patching.   Once your OH points to EM, the opatch version should be correct at 11.1.

                           

                          When you go back to your DB home, and run the opatch under there, it should remain the 11.2 version.

                          • 10. Re: OMS Patch 17513525 install problem
                            Durmic

                            It works now, thank you for your help.

                            I'm not sure why it worked this time. Two months ago I did the same thing, also following the readme file. Never mind, it works!

                            • 11. Re: OMS Patch 17513525 install problem
                              Durmic

                              The only difference was in PATH variable. The last time it was showing to two bin folders $ORACLE_HOME/bin (db home) and also for oms bin. This time I used only for oms.