Opatch utility

Hi,
i want to practice to do patching the oracle using opatch utility.
How can i do this?if any options available for this
I have installed oracle10gR2 on rhel5 in my laptop for practice purpose .PLease help me...
Regards,
S.Mugunthan.

goto the below link:
http://download.oracle.com/docs/cd/B1930601/em.102/b16227/oui1_basics.htm#CIHGIJGJ_
Opatch
From Oracle FAQ
Jump to: navigation, search
OPatch is the Oracle database's Interim (one-off) Patch Installer.
If OPatch is not installed into your Oracle Home ($ORACLE_HOME/OPatch), you may need to download it from Metalink and install it yourself.
[edit] Syntax
Syntax and options can be displayed using the -help option:
$ cd $ORACLE_HOME/OPatch
$ opatch -help
Invoking OPatch 10.2.0.4.2
Oracle Interim Patch Installer version 10.2.0.4.2
Copyright (c) 2007, Oracle Corporation.  All rights reserved.
Usage: opatch [ -help ] [ -r[eport] ] [ command ]
            command := apply
                       lsinventory
                       napply
                       nrollback
                       rollback
                       query
                       version
                       prereq
                       util
<global_arguments> := -help       Displays the help message for the command.
                       -report     Print the actions without executing.
example:
   'opatch -help'
   'opatch apply -help'
   'opatch lsinventory -help'
   'opatch napply -help'
   'opatch nrollback -help'
   'opatch rollback -help'
   'opatch prereq -help'
   'opatch util -help'
OPatch succeeded.
[edit] Listing installed patches
All patches that are installed with Oracle's OPatch Utility can be listed by invoking the opatch command with the lsinventory option. Here is an example:
$ cd $ORACLE_HOME/OPatch
$ opatch lsinventory
Invoking OPatch 10.2.0.1.0
Oracle interim Patch Installer version 10.2.0.1.0
Copyright (c) 2005, Oracle Corporation.  All rights reserved..
Installed Top-level Products (1):
Oracle Database 10g                                           10.2.0.1.0
There are 1 products installed in this Oracle Home.
There are no Interim patches installed in this Oracle Home.
OPatch succeeded.

Similar Messages

  • How to install opatch utility and upgrade the existing version of db

    Hi how to install opatch utility to the existing 9.2.0.1 database and how to upgrade to 9.2.0.6 using opatch.
    Thanks,

    First terminology:
    patch - fix for some bug
    patchset - collection of patches (many).
    Opatch utility is only for applying patches not for patchests.
    Btw specify OS for future.

  • How to use Opatch Utility

    I am new to Oracle Opatch Utility and can't seen to find the correct information on Metalink or OTN. My database system contains Oracle 11g, version 11.1.0, running on Red Hat Linux Enterprise Server4.1
    My questions are as follows:
    1. Do you run Opatch as the Oracle user? or as root?
    2. Are there any other environment variables besides the $ORACLE_HOME, that need to be set for Opatch to run properly?
    3. When I run the command ". opatch lsinventory -detail" as the oracle user, the output scrolls off the screen, and when the command terminates, it exits from the Oracle connection. Is this a normal Opatch behavior?
    Thanks in advance for any input on this subject.
    Eduardo B.

    You can check metalink doc
    OPATCH FAQ
    Doc ID: 242993.1
    which should answer many of your questions.
    you should run opatch as oracle user not root.
    usually there's patch note if you need to run opatch. you just follow what's patch not suggested.
    No, opatch lsinventory shouldn't close out the oracle OS user connection after run.
    oracle %./opatch lsinventory
    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/app/oracle/product/10.2.0/db_1
    Central Inventory : /oracle/app/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/app/oracle/product/10.2.0/db_1/oui
    Log file location : /oracle/app/oracle/product/10.2.0/db_1/cfgtoollogs/
    opatch/opatch2009-01-27_14-07-15PM.log
    Lsinventory Output file location : /oracle/app/oracle/product/10.2.0/
    db_1/cfgtoollogs/opatch/lsinv/lsinventory2009-01-27_14-07-15PM.txt
    Installed Top-level Products (2):
    Oracle Database 10g                                             10.2.0.1.0
    Oracle Database 10g Release 2 Patch Set 2                       10.2.0.3.0
    There are 2 products installed in this Oracle Home.
    Interim patches (2) :
    Patch  5556081      : applied on Thu Mar 06 11:14:13 PST 2008
       Created on 9 Nov 2006, 22:20:50 hrs PST8PDT
       Bugs fixed:
         5556081
    Patch  5557962      : applied on Thu Mar 06 11:14:03 PST 2008
       Created on 9 Nov 2006, 23:23:06 hrs PST8PDT
       Bugs fixed:
         4269423, 5557962, 5528974
    OPatch succeeded.
    oracle %

  • How to Patch on Windows (same as OPatch utility)???

    Hi All,
    I am applying a JDBC patch in oracle (using OPatch utility) with OS Sun SPARC... But I got an issue while applying the patch and oracle says that OPatch 10.2.0.4.3 has an internal bug..
    My questions is How I can apply the same patch (it's paltform independent) in Windows OS ??
    Do we need to use OPatch option or what's the altrenate utility to apply patch in windows??
    Thanks a lot...

    I am sure you need following steps.....I have struggled my way once... not tough though...
    happy patching :)))
    1) set oracle_home= < oracle home>
    2) set PATH=<oracle home>\Opatch;%PATH%
    3) run "opatch lsinventory" to know that everything is set properly
    4) go to patch directory where you have extracted patch and run "opatch apply"

  • Install Opatch Utility 6880880

    I try to apply Oracle interim patch released on March 2009. But the document syas that I have to use Opatch utility 10.2.0.4.3 or later. The current version on my DB server is 10.2.0.4.2. So I have to install Opatch Utility patch 6880880. In the README document, it says: " to install this patch, simply extract the file directly under the ORACLE_HOME". In my understanding, this Opatch utility is a java based program. As long as I extract zipped file under Oracle_Home, it will be ready to execute for Opatch usage. Am I right? Please confirm my thought and give me your advice. Thanks.

    Do exactly as the document indicates and it should work correctly.

  • Doubt on opatch utility

    I applied a patch which converted
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    to
    Oracle9i Enterprise Edition Release 9.2.0.2.1 - Production
    Now how I am using opatch lsinventory to list the patch applied
    i get nothing in the log file generated
    The log file look like this
    reating log file "F:\oracle\ora92\.patch_storage\LsInventory__11-02-2006_11-38-41.log"
    Accessing inventory ... (retry 10 times, delay 30 seconds each time)
    Invoking command """C:\Program Files\Oracle\jre\1.3.1\bin\java.exe" -classpath "C:\Program Files\Oracle\oui\lib\OraInstaller.jar;C:\Program Files\Oracle\oui\lib\srvm.jar;F:\oracle\ora92\OPatch\jlib\opatch.jar;;F:\oracle\ora92\jlib\share.jar " -Doracle.installer.invPtrLoc=N/A -Dopatch.retry=10 -Dopatch.delay=30 opatch/LsInventory "C:\Program Files\Oracle\oui" "f:\oracle\ora92" opatch.pl 1.0.0.0.55 FALSE""
    Result:
    OPatch succeeded.
    Could some one plz tell me how to use opatch utility

    Sir,
    This what i get
    C:\>perl F:\oracle\ora92\OPatch\opatch.pl -r lsinventory -all
    Oracle Interim Patch Installer version 1.0.0.0.55
    Copyright (c) 2006 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 = F:\oracle\ora92
    Location of Oracle Universal Installer components = C:\Program Files\Oracl
    Location of OraInstaller.jar = "C:\Program Files\Oracle\oui\lib"
    Oracle Universal Installer shared library = C:\Program Files\Oracle\oui\bi
    2\oraInstaller.dll
    Location of Oracle Inventory Pointer = N/A
    Location of Oracle Inventory = C:\Program Files\oracle\inventory
    Path to Java = "C:\Program Files\Oracle\jre\1.3.1\bin\java.exe"
    Log file = F:\oracle\ora92/.patch_storage/<patch ID>/*.log
    Creating log file "F:\oracle\ora92\.patch_storage\LsInventory__11-03-2006_
    11.log"
    OPatch succeeded.
    C:\>
    and log look like
    Creating log file "F:\oracle\ora92\.patch_storage\LsInventory__11-03-2006_15-40-11.log"
    Accessing inventory ... (retry 10 times, delay 30 seconds each time)
    ""C:\Program Files\Oracle\jre\1.3.1\bin\java.exe" -classpath "C:\Program Files\Oracle\oui\lib\OraInstaller.jar;C:\Program Files\Oracle\oui\lib\srvm.jar;F:\oracle\ora92\OPatch\jlib\opatch.jar;;F:\oracle\ora92\jlib\share.jar" -Doracle.installer.invPtrLoc=N/A -Dopatch.retry=10 -Dopatch.delay=30 opatch/LsHome "C:\Program Files\Oracle\oui" "f:\oracle\ora92" opatch.pl 1.0.0.0.55 FALSE"
    Retrieving $ORACLE_HOME details
    Invoking command """C:\Program Files\Oracle\jre\1.3.1\bin\java.exe" -classpath "C:\Program Files\Oracle\oui\lib\OraInstaller.jar;C:\Program Files\Oracle\oui\lib\srvm.jar;F:\oracle\ora92\OPatch\jlib\opatch.jar;;F:\oracle\ora92\jlib\share.jar" -Doracle.installer.invPtrLoc=N/A -Dopatch.retry=10 -Dopatch.delay=30 opatch/LsHome "C:\Program Files\Oracle\oui" "f:\oracle\ora92" opatch.pl 1.0.0.0.55 FALSE""
    OPatch succeeded.

  • How can install patch using OPatch utility in Linux

    I want to update Oracle patch 9352164.Currently, Oracle Patch is installed 10.2.0.4.0 but i required 10.2.0.4.4. I have downloaded 9352164 from oracle metlink site.
    I have also set environment variable path in bash_profile file.
    Environment variable Path setting
    "PATH=$PATH:$HOME/bin:/u01/app/oracle/product/10.2.0/db_1/OPatch/"
    It also shows following result against this command echo $PATH
    /u01/app/oracle/product/10.2.0/db_1/bin:/usr/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/oracle/bin:/u01/app/oracle/product/10.2.0/db_1/OPatch/
    When i run the opatch apply command under the directory 9352164 then i received following error message
    [oracle@Vm006-IS-Test 9352164]$ opatch apply
    Invoking OPatch 10.2.0.4.2
    Oracle Interim Patch Installer version 10.2.0.4.2
    Copyright (c) 2007, Oracle Corporation. All rights reserved.
    Oracle Home : /u01/app/oracle/product/10.2.0/db_1
    Central Inventory : /u01/app/oracle/oraInventory
    from : /etc/oraInst.loc
    OPatch version : 10.2.0.4.2
    OUI version : 10.2.0.4.0
    OUI location : /u01/app/oracle/product/10.2.0/db_1/oui
    Log file location : /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch2011-06-20_15-22-17PM.log
    ApplySession failed: Patch ID is null.
    System intact, OPatch will not attempt to restore the system
    OPatch failed with error code 73
    Please help out..........

    Log file location : /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch2011-06-20_15-22-17PM.log
    INFO:Starting ApplySession at Mon Jun 20 15:22:17 PKT 2011
    INFO:Starting Apply Session at Mon Jun 20 15:22:17 PKT 2011
    SEVERE:OUI-67073:ApplySession failed: Patch ID is null.
    INFO:System intact, OPatch will not attempt to restore the system
    INFO:Finishing ApplySession at Mon Jun 20 15:22:17 PKT 2011
    INFO:Total time spent waiting for user-input is 0 seconds. Finish at Mon Jun 20 15:22:17 PKT 2011
    INFO:Stack Description: java.lang.RuntimeException: Patch ID is null.
    INFO:StackTrace: oracle.opatch.PatchObject.getPatchID(PatchObject.java:543)
    INFO:StackTrace: oracle.opatch.ApplySession.loadAndInitPatchObject(ApplySession.java:1487)
    INFO:StackTrace: oracle.opatch.ApplySession.process(ApplySession.java:5191)
    INFO:StackTrace: oracle.opatch.OPatchSession.main(OPatchSession.java:1544)
    INFO:StackTrace: oracle.opatch.OPatch.main(OPatch.java:570)
    INFO:File "/u01/app/oracle/product/10.2.0/db_1/.patch_storage/patch_unzip" cannot be deleted as it does not exist

  • Patch 6880880 (Upgrade Opatch Utility)

    Hi Guys,
    I need to apply Patch 6880880. From what I understand from the documentation and some posts about this patch is that this patch is nothing but upgrading the version of hpatch/Opatch.
    When I unzip folder p6880880_101000_MSWIN-x86-64.zip, it makes a folder called Opatch (according to earlier posts I need to overwrite the existing folder OPatch folder) in the Hyperion directory .
    But I am afraid to do that because the new OPatch folder resulting from unzipping the p6880880_101000_MSWIN-x86-64.zip file doesnt contain hpatch.bat.
    I need hpatch.bat because I further need to apply couple of more patches (9976978 and 11794962) to fix some HFM security issue. And the patch 6880880 is pre-requisite for patches 9976978 and 11794962.
    Please suggest.
    Thanks

    Thanks for the reply John!
    You mean just rename old Opatch folder to Opatch_old and unzip the new folder to D:\Hyperion?. Or make a copy of old Opatch folder in some other directory and then just simply unzip the new Opatch folder and overwrite the existing?.
    Also, I hope by doing this any existing patch that has been applied in the past doest get effected?
    Thanks

  • Patch number for upgrading opatch from 10.2.0.1.0 to 10.2.0.1.1

    Please can someone tell me what is the Patch number for upgrading opatch utility from 10.2.0.1.0 to 10.2.0.1.1?
    Thanks in advance.

    Sami,
    Why don't you use the latest version of opatch (Patch 4898608 - OPatch 10.2.0.1.6)?

  • Installing Opatch tool

    Please can some one lead me in the following text, on how to install oracle tool OPATCH?
    My question : After reading the below text, I download the zip file of the OPATCH tool, I unzip the file under oracle home. When unzipping the file, it created another directory under orache home.
    But how can I do next to upgrate my oracle OPATCH from the unzipped file resulted?
    README for 4898608
    Patch Details
    Patch summary:
    README file for OPatch(10.2.0.1.4), the Oracle Interim Patching Tool.
    This patch installs the "OPatch" utility. OPatch is used for patching
    Oracle software. If you have an older version of opatch it is strongly
    recommended to back it up.
    OPatch is Oracle's only supported method of installing Interim
    patches. It updates the central and per-product inventories with the
    details of the patch.
    How to install the utility:
    To install this patch simply extract the file p4898608_10203_GENERIC.zip
    using unzip or winzip, depending upon the platform. You should extract
    the zip file directly under the ORACLE_HOME.
    Thanks

    Hi,
    Please see OPatch documentation list Doc ID: Note:293369.1. Hope it helps.
    Adith

  • Getting Error In Opatch

    Hi,
    Database: 9.2.0.8
    OS : solaris sparc
    We need to apply some intrem patch through Opatch utility. I am getting following error when doing
    opatch lsinventory
    Oracle Interim Patch Installer version 1.0.0.0.58
    Copyright (c) 2007 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 : /soft/upgrade/apps/product/9.2.0.8
    Oracle Home Inventory : /soft/upgrade/apps/product/9.2.0.8/inventory
    Central Inventory : /soft/upgrade/oraInventory
    from : /var/opt/oracle/oraInst.loc
    OUI location : /soft/upgrade/apps/product/9.2.0.8/oui
    OUI shared library : /soft/upgrade/apps/product/9.2.0.8/oui/lib/solaris/liboraInstaller.so
    Java location : /soft/upgrade/apps/product/9.2.0.8/jre/1.3.1/bin/java
    Log file location : /soft/upgrade/apps/product/9.2.0.8/.patch_storage/<patch ID>/*.log
    Creating log file "/soft/upgrade/apps/product/9.2.0.8/.patch_storage/LsInventory__11-18-2008_16-41-19.log"
    /soft/upgrade/apps/product/9.2.0.8/jre/1.3.1/bin/java[18]: /usr/bin/ls: not found
    Result:
    Error: can't find libjava.so.
    OPatch succeeded.
    I can't find anu useful information at metalink or google. Any idea about this problem?

    Hi Yogesh Yadav
    Is your LD_LIBRARY_PATH set properly in your environment?
    See that example :
    http://download.oracle.com/docs/cd/B19306_01/gateways.102/b16209/ch4.htm#i1002589
    Edited by: Hub on Nov 18, 2008 1:21 PM

  • How does opatch lsinventory works

    How does opatch lsinventory works ?

    Hi,
    Refer links:
    http://download.oracle.com/docs/cd/B19306_01/em.102/b16227/oui8_opatch.htm
    http://download.oracle.com/docs/cd/B16240_01/doc/em.102/e15294/prereq_checks.htm
    http://avdeo.com/2008/08/19/opatch-utility-oracle-rdbms-patching/
    thanks,
    X A H E E R

  • OPATCH utilty for rel 10.1.0.5  patch????

    Hello All,
    I have applied interim patches through OPATCH.
    I used OPatch utility to install CPU patch.
    For my other system (AIX 5.2)
    I wanted to apply release 10.1.0.5 patch.
    Can I use optach utilty for 10.1.0.5 patch?
    OR we use OPTACH utility for only interim patches?
    Please confirm.
    DN

    DN,
    10.1.0.5 is not a patch but patchset, you install it like a new version but in existing ORACLE_HOME, you don't need opatch utility.
    Nicolas.

  • Opatch 6880880 (Update Hpatch  to Fix Smartview Issue)

    Hello Everyone,
    I have to apply Patch 6880880 to update Hpatch version. This is nothing but upgrading the version of the opatch utility. After reading the documentation, I am just following the intial prequisite checks that are needed.
    One of the very first step is to set ORACLE_HOME to the oracle home directory.
    I did that by using following cmd:
    set ORACLE_HOME=C:\Hyperion
    Now, I am at the next step where i have to run the *<path to OPatch> optach lsinventory* command. But when I run this command this is what I get:
    C:\Hyperion\OPatch>opatch lsinventory
    File Not Found
    C:\Hyperion\oui\bin\..\..\jre\1.4.2\bin\java.exe could not be located. OPatch cannot proceed!
    I cant seem to resolve this error.
    Please help.
    Thanks
    A part of Documentation is below:
    Patch summary:
    README file for OPatch 10.2.0.5.1, the Oracle Interim Patching Tool.
    This patch installs the "OPatch" utility. OPatch is used for patching
    Oracle software. If you have an older version of opatch it is strongly
    recommended to back it up.
    OPatch is Oracle's only supported method of installing Interim
    patches. It updates the central and per-product inventories with the
    details of the patch.
    How to install the utility:
    To install this patch simply extract the file "zipped file"
    using unzip or winzip, depending upon the platform. You should extract
    the zip file directly under the ORACLE_HOME.
    To check the version of the opatch utility installed in the above step,
    go to the OPatch directory and run "opatch version"
    How to run the utility:
    OPatch tool requires JDK to be present in the Oracle Home.
    It requires JDK version of 1.4.2 or higher for proper functioning.
    It can be invoked directly using
    <path to OPatch>/opatch [<patch command>] [options]

    I applied the apply but the patch failed due to following error:
    ApplySession failed during prerequisite checks: Prerequisite check "CheckActiveFilesAndExecutables" failed.
    System intact, OPatch will not attempt to restore the system
    OPatch failed with error code = 74
    According to the patch documentation, 1st step is to Stop HFM Services, HsxServer.exe, HsvDataSource.exe, and CASSecurity.exe processes on all application servers.
    I couldnt find these processes under task manager on our HFM server. So I just stopped all the Hyperion Financial Services from services.
    I cant seem to find these processes. I dont know if just by stopping HFM services stopped all these processes automatically?.
    thanks again John

  • Inventory load failed... OPatch cannot load inventory for the given Oracle Home.OPatch failed with error code = 73

    Hi,
    I am going to apply bundle patch and my oracle database is 11.2.0.2 and platform Microsoft Windows x86. As per the read me file Oracle recommends that to use OPatch utility release 11.2.0.1.3 or later.To check the accessibility to the inventory i use %ORACLE_HOME%/OPatch/opatch lsinventory command.
    It ended up with giving below details.
    Invoking OPatch 11.2.0.1.1
    OPatch could not create/open history file for writing : ***my oracle home path***\cfgtoollogs\opatch\opatch_history.txt
    **oracle_home***\cfgtoollogs\opatch\opatch_history.txt (Access is denied)
    Oracle Interim Patch Installer version 11.2.0.1.1
    Copyright (c) 2009, Oracle Corporation.  All rights reserved.
    OPatch could not open log file, logging will not be possible
    Oracle Home       : *****
    Central Inventory : C:\Program Files\Oracle\Inventory
       from           : n/a
    OPatch version    : 11.2.0.1.1
    OUI version       : 11.2.0.2.0
    OUI location      : **ORACLE_HOME***\oui
    Log file location : **ORACLE_HOME**\cfgtoollogs\opatch\opatch2015-04-09_16-27-49PM.log
    Patch history file: **ORACLE_HOME**\cfgtoollogs\opatch\opatch_history.txt
    Inventory load failed... OPatch cannot load inventory for the given Oracle Home.
    LsInventorySession failed: LsInventory cannot create the log directory **ORACLE_HOME***\cfgtoollogs\opatch\lsinv\lsinventory2015-04-
    09_16-27-49PM.txt
    OPatch failed with error code = 73
    Can anyone please help me to solve this?
    Do I need to install latest opatch utility?

    Hi,
    this error message "  LsInventorySession failed: LsInventory cannot create the log directory **ORACLE_HOME***\cfgtoollogs\opatch\lsinv\lsinventory2015-04-
    09_16-27-49PM.txt "
    indicates that you have permission issue with your file systems : ORACLE_HOME/cfgtoollogs/opatch
    double check the owner of this file system.
    Regards,

Maybe you are looking for

  • Is it possible to embed a window in another?

    I know I kind of asked this previously, but is it possible to instead of changing the window class, embed a window or object into a current window, using Cocoa-Applescript? In the example of my application below, I'd like to fill the big empty area i

  • How do I hide the pen line I made a text pathway with?

    Hi, I drew a line with the pen then curved it into an 'S' shape, to make a text pathway.  My text is now nicely sitting in an 'S' shape but when I make the line beneath it 100% transparent the text goes transparent too. Many thanks Sophie

  • Converting to PDF crashes Word

    I'm using Acrobat Pro 9 and Word 2007. I have a document of approximately 160 pages with a Table of Contents, Figures, Tables, and lots of text. Every time I try to convert it to PDF, Word crashes. I have other similar documents that convert just fin

  • Make to order two settlement

    I have one make to order scenario, which is settled by VA88, now, we have the second make to order scenario, which requires to settle from production order. so I create a new order type and new settlement profile, besides these, any configuration dif

  • Not able to connect to SMTP server

    Hi all, I am new to java mail. I tried to send an email from my official account,gmail account,yahoo account. i get an exception as Exception reading response; and Connection reset when i enabled debug as true it says trying to connect to host "smtp.