Kevin Kempf's Blog

November 24, 2009

Opatch: This patch is not suitable for this operating system

Filed under: 10g, Bugs, Linux, Oracle — kkempf @ 9:17 am

An imposter

Last night I was applying the October 2009 CPU/PSU to a bunch of development databases and application servers when I hit a bug which I hadn’t seen in a while.  The system was a Red Hat 5 32-bit install, nothing special there:
uname -a
Linux localhost 2.6.18-164.6.1.el5PAE #1 SMP Tue Oct 27 11:46:58 EDT 2009 i686 i686 i386 GNU/Linux
Still, during the opatch napply step of patch 8874205 for AS 10.1.2.3, I received this error:
OPatch detects your platform as 23 while this patch 8447875 supports platforms:
46 (Linux Intel)
226 (Linux x86-64)
OPatch detects your platform as 23 while this patch 8447875 supports platforms:   46 (Linux Intel)   226 (Linux x86-64)
This patch is not suitable for this operating system.
Please contact support for the correct patch.
ERROR: OPatch failed during prerequisite check.
What’s sad is that I remembered seeing this before, and just needed a refresh on the syntax to fix it.  As I recall, you can also go into the patch and change some script, but the simplest fix if you hit this is as follows:
$ export OPATCH_PLATFORM_ID=46
$ opatch napply
Worked great after this, opatch completed and the patchset went in fine.  A word of caution.  I’m sure this is a Linux specific error, and My Oracle Support confirmed this.  I’m also sure it’s there for good reason: an idiot-proofing check to make sure you’re not applying the HP-UX patch to RedHat Linux, or the like.  Before you do what I’ve shown, be extra certain that your OS is what you think it is (including whether it’s 32 or 64 bit) and also that the patch you pulled is for this same corresponding platform!
Advertisements

3 Comments

  1. thanks Kevin, saved me some headache there!

    Comment by puppykitten — December 1, 2009 @ 6:53 pm

    • Glad it helped. This bug has existed for years; not sure why Oracle hasn’t fixed it.

      Comment by kkempf — December 2, 2009 @ 11:30 am

  2. Documented in My Oracle Support Doc ID 427295.1 ‘Error “OPatch detects your platform as 23 while this patch is for Linux”‘

    But Kevin’s entry is much easier to find than that note.

    This bug appears to be specific to Application Server 10.1.2.x so I expect it will go away as 10.1.3.x takes over.

    N.B. platform 23 is Sun SPARC Solaris 64-bit.

    Comment by Anderson — June 17, 2010 @ 12:49 pm


RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Blog at WordPress.com.