DBAsupport.com Forums - Powered by vBulletin
Results 1 to 10 of 10

Thread: Interim patches and 'installing' OPatch

  1. #1
    Join Date
    Jan 2000
    Location
    Chester, England.
    Posts
    818

    Interim patches and 'installing' OPatch

    Help!

    I have downloaded a Security patch (3280131) for 9.2.0.4 (I'm running on 32-bit Windows 2003) but it requires the perl utlity Opatch to install it.

    I have downloaded the opatch zip file and unzipped it and it produces an opatch file , an opatch.bat Batch file and an opatch.pl file. There are no instructions as to how to 'install' opatch or indeed if you even need to.

    Is it a matter of installing it to a specific location or can you just run Opatch.pl from the command line as long as you add the full path name of the perl executable, the full patch of the opatch.pl file and the patchset to be used?

    e.g.

    C:\> \perl\5.00503\bin\MSWin32-x86\perl5 C:\oracle\patch\Opatch\opatch.pl apply C:\oracle\patch\3280131

    Stumped at this point?
    Last edited by JMac; 03-24-2004 at 10:01 AM.

  2. #2
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    dont call opatch.pl just use opatch and ensure you have the correct perl version in your path

    then go opatch appply

    it will tell you if you are wrong.

    The release notes for the patch should tell you what to do.

    Sonner oracle get rid of opatch the better as far as I concerned

  3. #3
    Join Date
    Jan 2000
    Location
    Chester, England.
    Posts
    818
    If I just use opatch I get an error "Can't exec /bin/sh at \opatch line 1"

    Which brings me back to my original question: after unzipping the downloaded Opatch zip file, what do you do with it? Do you have to install Opatch or move the Opatch files somewhere specific?

  4. #4
    Join Date
    Oct 2003
    Posts
    312
    If you follow the docs from Oracle, you will run into quite a few issues. Any way, couple things you might want to keep in mind:

    1. use the older version of perl, Oracle said to use the new one and it's a bug you won't be able to install. the older version of perl is already on your o/s so there is no need to install.

    2. set opatch on your env so that when you don't have to specify the opatch directory when you are ready to install. To set opatch env, right click on your computer -> properties -> advanced -> environement variables -> system variables -> path and add the opatch directories in here.

    3. now just go to the interim patch folder and type : opatch interim_patchnames.

    let me know if you have any questions, I have done this couple times on Linux and windows.

    SHUTDOWN ALL OF THE SERVICES

  5. #5
    Join Date
    Jan 2000
    Location
    Chester, England.
    Posts
    818
    So for the Opatch variable I'd call the Variable ... what? OPATCH?

    And
    now just go to the interim patch folder and type : opatch interim_patchnames
    so there's no need to reference perl at all?

    My perl install is at: C:\oracle\ora92\apache\perl\5.00503\bin\MSWin32-x86\perl5.00503 - Some docs I've read point you at specifying this pathname so that opatch knows where perl is and what version is used, is this not necessary?

    Is it as simple as
    (a) specifying OPATCH as a system variable - pathname to the Opatch executable from the zip file.
    (b) possibly specifying ORACLE_HOME in a similar manner
    (c) go to folder where the patch is and exeuting: opatch apply interim_patch_id ?

  6. #6
    Join Date
    Oct 2003
    Posts
    312
    your perl version is ok. DO NOT INSTALL THE NEWER VERSION.

    (a) specifying OPATCH as a system variable - pathname to the Opatch executable from the zip file.
    unzip opatch and set this directories on your environment
    (b) possibly specifying ORACLE_HOME in a similar manner
    no need
    (c) go to folder where the patch is and exeuting: opatch apply interim_patch_id ?
    yes.

    it's very simple once you install one of them. the docs make things so complicated and confused.

    email me if you are confused. williamsith@yahoo.com

  7. #7
    Join Date
    Jan 2000
    Location
    Chester, England.
    Posts
    818
    it's very simple once you install one of them. the docs make things so complicated and confused.
    You're telling me! And support aren't much clearer. Thanks, will give it a go.

  8. #8
    Join Date
    Jan 2000
    Location
    Chester, England.
    Posts
    818
    Reason Iasked about ORACLE_HOME is that I did manage to execute a opatch command (withvery lengthy pathname strings) and it failed as it said there was 'No Oracle Home to apply patch to'. Even though Oracle Home does exist (C:\oracle\ora92) and appears correctly in the registry.

  9. #9
    Join Date
    Jan 2000
    Location
    Chester, England.
    Posts
    818
    Finally got it to work (well I think so???) with a mixture of approaches.

    Even though my Oracle home is correctly set in the registry, by setting the ORACLE_HOME system variable it seems that Opatch can see it!

    I navigate to the folder where Opatch is (via the Command Prompt) and execute:

    Opatch apply \patchfile

    Opatch starts and echoes back very encouraging messages about Patching and Updating Inventory ... and then finishes with 'Opatch succeeded'.

    So, where can I find evidence that the software has been patched? V$version still shows me 9.2.0.4.0

  10. #10
    Join Date
    Oct 2003
    Posts
    312
    go to DOS and type:

    opatch lsinventory

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