Patching my databases with the July 2018 PSU, BP and RU

Patching my databases with the July 2018 PSU, BP and RUAs usual I download the patch bundlesΒ  and apply them to our Hands-On Lab environment as quickly as possible. First of all for the simple reason that I don’t want to trap into issues which are fixed already. Second for the reason that I always tell you: YOU MUST PATCH! But if I’m saying this over and over again, then I can’t have my own environments unpatched. And at third, because I want to learn if anything is not working correctly or has changed (see below).

Of course my tiny single instance environments are not comparable to your critical production sites. And I don’t have to complete any extra tests. Or include the patch into a Rapid Home Provisioning rollout plan. So for me it’s a fairly simple task whereas for you it usually involves more work.

Patching my databases with the July 2018 PSU, BP and RU

As you can see from my previous blog post, I figured out already which patches I need to download, I learned about the July 2018 Risk Matrix scores, and I checked the READMEs as well.

Then as next step, I will have to verify the prerequisites including OPatch, and afterwards apply the patch bundles. I don’t patch OJVM as I didn’t include it in any of my databases.


For the Oracle PSU I must ensure OPatch utility version is installed. In my case it is already. Hence, no action needed here. But for Oracle there’s a change.

Important change:
Different from previous runs where I simply used the 12.2/18c OPatch as you could see in April 2018 to patch also my Oracle databases, this will fail now since the OPatch version.
When you invoke it from a different home, you’ll see the below error pattern.
Thus, you MUST install the version of OPatch into your homes now as well.

$OH18/OPatch/datapatch -verbose
Queryable inventory could not determine the current opatch status.
Execute 'select dbms_sqlpatch.verify_queryable_inventory from dual'
and/or check the invocation log
for the complete error.
Prereq check failed, exiting without installing any patches.
SQL> select dbms_sqlpatch.verify_queryable_inventory from dual;

ORA-20001: Latest xml inventory is not loaded into table

As far as I can see, there reason seem to be the 3 directories OPatch creates in the database (see DBA_DIRECTORIES). But I didn’t went into details as my shortcut most likely wasn’t meant to work anyways. Hence, I can’t blame anybody πŸ™‚

For Oracle 18.3.0 the OPatch requirement is now OPatch utility version As my current version is Opatch I will need to update it via patch 6880880.

Patching my databases with the July 2018 PSU, BP and RU

In the README I find the following install instructions:

  1. Please take a backup of ORACLE_HOME/OPatch into a dedicated backup location.
  2. Please make sure no directory ORACLE_HOME/OPatch exist.
  3. Please unzip the OPatch downloaded zip into ORACLE_HOME directory

This is not complicated.

. cdb2
tar -czf opatch_old_del_later.tar OPatch
rm -rf OPatch
cp /media/sf_TEMP/ .
cd OPatch

Afterwards I verify the version – and this looks good.

[CDB2] oracle@localhost:/u01/app/oracle/product/18/OPatch
$ ./opatch version
OPatch Version:

OPatch succeeded.

Good thing: I can use this version also for the patching but I will have to install it this time separately into my home as well.

Patching Oracle with the July 2018 Patch Set Update

As I don’t have an Engineered System unfortunately, I patch my single instance environment with the July PSU.

And as I showed the task in step-by-step instructions already in April, I recorded a short 3 min video this time:


Patching Oracle with the July 2018 Bundle Patch

Please find all the steps in the README. As noted above it is now important to have the OPatch utility installed into the same Oracle Home as otherwise the inventory can’t be queried within the database.


Patching Oracle 18.1.0 with the July 2018 Update

I have applied the 18.2.0 Update already a few weeks ago to my Oracle 18.1.0 environment. But for this exercise I use a standard 18.1.0 environment. For most of you this task won’t be necessary as you’ll start off with Oracle 18.3.0 on premises anyway, and hence don’t have to apply the July 2018 Update (RU).

All the necessary steps are similar to Oracle patching. You can find them in the README.

In brief:

$ORACLE_HOME/OPatch/opatch version

$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /media/sf_TEMP/p28090523_180000_Linux-x86-64/28090523

cd /media/sf_TEMP/p28090523_180000_Linux-x86-64/28090523

$ORACLE_HOME/OPatch/opatch apply

$ORACLE_HOME/OPatch/datapatch -verbose

But please see the short video below:



Share this:

38 thoughts on “Patching my databases with the July 2018 PSU, BP and RU

  1. Hi Mike,

    First of all thanks for your blogs, they are always handy πŸ™‚

    Let’s go to the questions, shall we ?

    I used to find the client-installation patchset in the full RDBMS patcheset.

    Do you happen to know where I can find the RU ( – July 17, 2018) for OCI Client on linux x64 ?



  2. is there any way to clean up the sql_patch dictionary views in the database if cloned from non patched home.

    i.e. we have an oracle home with DATABASE BUNDLE PATCH: (23144544) and there is cloned databases from the same version

    now i updated the cloned database rdbms home to july 2018 but i’m getting the below error

    Connecting to database…OK
    Bootstrapping registry and package to current versions…done
    Determining current state…done

    Current state of SQL patches:
    Patch 23177536 (Database PSU, Oracle JavaVM Component (JUL2016)):
    Installed in the SQL registry only
    Bundle series DBBP:
    ID 180717 in the binary registry and ID 160719 in the SQL registry

    Adding patches to installation queue and performing prereq checks…
    Installation queue:
    The following patches will be rolled back:
    23177536 (Database PSU, Oracle JavaVM Component (JUL2016))
    The following patches will be applied:

    Error: prereq checks failed!
    patch 23177536: Archived patch directory is empty
    Prereq check failed, exiting without installing any patches.

    Please refer to MOS Note 1609718.1 and/or the invocation log
    for information on how to resolve the above errors.

    SQL Patching tool complete on Thu Jul 19 11:39:38 2018

    • Samer,

      this is a typical and known issue. When you clone often the patch directory for the previous patch is not present anymore. The workaround I know: copy this directory to the new home, then it can be rolled back.

      Please see here:
      And ignore the first workaround which is complete nonsense as nobody can rollback a patch before cloning in PROD.


      PS: And yes, I know this is a “questionable design”. Yes …

  3. Hi πŸ™‚
    1. Please take a backup of ORACLE_HOME/OPatch into a dedicated backup location.
    rm -rf OPatch

    Good approach πŸ™‚

    • Don’t be so picky, Arek. It’s a burn&destroy testing environment in my case πŸ˜‰
      But for your convenience I added a “tar -czf opatch.tar OPatch” πŸ˜‰


      PS: I don’t really understand the idea of backing up the opatch directory. I can always install almost any version.

  4. Any video on how to apply “this” (Patching Oracle with the July 2018 Bundle Patch) to a ASM GRID RAC infrastructure? The information given in the readme are confusing and outdated.

  5. Mike,
    We perform out-of-place patching.
    We had to rollback the July 2018 PSU( + Jul 2018 PSU) and apply Jan 2018 PSU( + Jan 2018 PSU).
    We shutdown the database from Home with Jul 2018 PSU and started one instance in upgrade mode from Jan 2018 PSU ORACLE_HOME. It did not work.
    Datapatch was able to rollback July PSU but did not install Jan PSU. Is this expected ?
    I found that in the Bundle_id column the value was 180116 for the entry for ROLLBACK of Jul PSU.

    SQL> /

    ———- ———- ——————– ———- ————— ———- —————————— ———- —————————————————————————
    28163133 0 0 NB APPLY 1 DBRU 180717 01-AUG-18 PM
    28163133 22313390 NB APPLY 2 DBRU 180717 01-AUG-18 PM
    28163133 22313390 NB ROLLBACK 3 DBRU 180116 21-AUG-18 AM

    Could you please let me know the best way to achieve this? Thanks

    • Sunil,

      sorry to read this. And I feel bad when I see such messages.
      Unfortunately I can’t diagnose such issue – you will have to log an SR but I’m always happy to read about the solution.

      I was away the past two weeks – I hope you could solve it in between.


  6. Mike,

    We rolled back the July 2018 RU from current home and stopped the database,

    We then started the database from new home( + Jan 2018 RU) and executed Datapatch.

    This way, it complained about Database Vault and OLS is not present. We did not install these to start with.
    Not sure why did Datapatch complain about the components those were never installed in the first place.
    Worked with Oracle Support and they asked us to create Database Vault schema (and its metadata) and enable OLS (using Doc ID 2176049.1)

    • Argh … I think the reason is that datapatch is not component agnostic. Meaning, if a patch contained a specific fix for lets say DV and you had no DV present, it failed. I thought this had been fixed and included. But when I read your message I have my doubts.

      What should I say πŸ™

      But I checked the note you are referring to: 2176049.1
      And I disagree with the content. There’s no such thing as a mandatory DV. None of my databases in my test envs has DV installed.

      I read it now 3 times and maybe I don’t get the point.

      I think the problem is NOT the non-existence of DV or OLS but the fact that datapatch has changes for a component which is not present but does not recognize the component isn’t present.


  7. Mike,
    I am putting together instructions on applying the July 2018 QFSDP to Exadata and noticed that the OJVM patching instructions (README.html) for and databases just says:

    “README is being worked”

    The README paths are:

    The README.html for 18.3 has complete instructions in the same patch. I have opened a SR. See what support says.


  8. Hello Mike,

    I recently applied Q3 2018 PSU to a standalone database with Oracle Restart configuration. The initial attempt failed as I had not stopped database and a DBA had left a sqlplus process open. Upon subsequent opatch auto run, while the grid home got patched correctly, the database home is still showing old OCW patch. Any idea how I can get only OCW patched? Below are opatch details (post patching)
    Grid Home:
    $ $ORACLE_HOME/OPatch/opatch lspatches
    27959254;ACFS Patch Set Update : (27959254)
    27441052;OCW PATCH SET UPDATE: (27441052)
    27734982;Database Patch Set Update : (27734982)

    OPatch succeeded.

    Database Home:
    $ $ORACLE_HOME/OPatch/opatch lspatches
    27734982;Database Patch Set Update : (27734982)
    23054319;OCW Patch Set Update : (23054319)

    OPatch succeeded.

    • Narendra,

      apply the OCW patch again to the database home (after stopping all services).
      This should do the trick.

      I guess that there were services up and hence files and the inventory couldn’t be changed.
      I’d guess as well that the patch apply didn’t succeed and got rolled back for the subcomponent OCW.


  9. Thanks Mike.
    This is where I am struggling. According to support note Doc ID 1595371.1, it seems OCW patch can not be separately downloaded and when I tried applying patch 27967757 again, it still did not appear to have updated DB home with correct patch for OCW. Am I missing anything?

    • Narendra,

      but you can install it separately even if it’s not available as a separate download.
      You need to enter the 27441052 subdirectory and install the patch.

      Otherwise please open an SR and check with Oracle Support.


  10. Hi Mike,
    Do we need to Apply OCW, DBWLM and ACFS patches coming with GI PSU to our grid home? As i have single Grid home and single Oracle Instance hosted on single server.

    • Abbraham,

      OCW of course for sure as this is Oracle Clusterware.
      DBWLM is Workload Management (or Quality of Service). I honestly doubt that you are using it.
      ACFS: depends if you are using ACFS or not.


      • Mike,
        opatchauto wont let me install individual patches, do i need to apply the patches manually then using opatch as mentioned in below note?

        Example: Manually Apply a 12c GI PSU/Interim or DB Interim Patch in Standalone Environment (Doc ID 1595408.1)


  11. Mike,
    After applying July 2018 patch to Exadata, we were hit by bug 28571483 (Doc ID 28571483.8). ASM instance crashed on all cluster nodes taking down databases with it. We had to apply interim patch 28571483 to fix the issue.


  12. Is there a change in how DST patches are built for oracle 18 both DST V32 and DST V33 had dependencies on DBRU’s 18.3 and 18.4 respectively.

    Is this supposed to be how they will be built in future, what if we want to skip a RU but need the next DST Patch?

    • Would you please mind to drop me the patch numbers for DST V32 and DST V33.
      I just realize that the owner of:
      Updated DST Transitions and New Time Zones in Oracle RDBMS and OJVM Time Zone File Patches (Doc ID 412160.1)
      may not have recognized that there is a new version available.


      • DST V32 p28125601 and DSTV33 p28852325, DBRU 18.4 p28655784

        excerpt from log below:
        Prerequisite check “CheckPatchApplyDependents” failed.
        The details are:
        Interim patch 28852325 requires prerequisite patch(es) [ 28655784 ] which are not present in the Oracle Home.
        Apply prerequisite patch(es) [ 28655784 ] before applying interim patch 28852325 .

        Same thing happens when u apply DSTV32 without the 18.3 RU.

        The other issue is 18.4RU is a Superset of 18.3RU and when u apply 18.3RU then apply 18.4 RU it makes 18.3 inactive and then u cannot applu DST V32 after.

        If you apply DSTV32 after applying 18.3RU and then want to apply 18.4RU it conflicts which it should not, have a SR going no response on it yet.

        • Amit,

          thanks a lot for sharing. I mailed the people responsible for the DST notes yesterday and asked them to update the note. Glad that you have found the patch numbers. I will download and try by myself later on.

          Could you please share the SR number with me? I’m highly interested!


    • Amit,

      I verified the issue you are seeing – I see exactly the same as you. And I think this is a bug. There’s no reason for binding a time zone patch to a specific RU – it would fail for an RUR for instance as well. This makes no sense and was handled differently until where we had RUs already.

      Please follow up with the SR and escalate it if necessary. I will drop the owner an email as well.

      Thanks for bringing this to my attention.


Leave a Reply

Your email address will not be published. Required fields are marked *

* Checkbox to comply with GDPR is required


I agree

This site uses Akismet to reduce spam. Learn how your comment data is processed.