How do i fix opatch it gives an error after patchset database upgrade

Posted on 2009-12-22
Last Modified: 2013-12-11
I just completed installing patchset and upgrade my database. when I type any opatch command I get the following error:
File Not Found Java could not be located. OPatch cannot proceed! OPatch failed with error code = 1
Could someone tell me what could be wrong and how I fix this?
Question by:sikyala
    LVL 17

    Accepted Solution

    Seems like this patch, changed the path to local Java installation.
    Have you tried upgrading Java?
    I'm not strong in DB field, but since no one is responding, I'll try to help you.
    LVL 3

    Expert Comment

    Try the following:
    opatch lsinventory jre %ORACLE_HOME%\jdk
    LVL 3

    Assisted Solution

    Not sure why the !! characters are before jre after the post but it should be:
    opatch lsinventory -jre %ORACLE_HOME%\jdk
    LVL 2

    Assisted Solution

    Looks like your JAVA_HOME environment variable is not set or it is set to a wrong directory.
    Are you you experiencing problems with other Java Tools ?
    Set it properly and this should be ok.

    In addition to setting your JAVA_HOME, you can also tell opatch the path to your jdk or jre install using -jdk or -jre option of opatch:

    opatch apply <patch number> -jdk /path_to_jdk/bin


    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Suggested Solutions

    If you have done a reformat of your hard drive and proceeded to do a successful Windows XP installation, you may notice that a choice between two operating systems when you start up the machine. Here is how to get rid of this: Click Start Clic…
    From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
    This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
    This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now