You know that patch numbering has been changed since November 2015, and the new format replaces the numeric 5th digit of the bundle version with a release date in the form “YYMMDD”. Let’s say you applied PSU 160719 to your database, the exact version of your database becomes We also know that PSUs do not change the Oracle release version information that can be queried from v$version (Doc ID 861152.1), so when you query your database, you still see

On the other hand, when you list your database targets on Oracle Enterprise Manager, it shows the exact version of Oracle Database.

I wondered how EM13c gets the information, and saw that it uses different queries depending on version of the target database. So first it queries v$version and then if the database version is lower than, it runs the following query:

If the database version is greater than or equal to, and lower than, then it runs the following query:

If the target database version is greater than or equal to, then it runs the following query:

I found it interesting so I wanted to share it. One day, if you need to get the exact version of your database (including PSU), it may be worth your while.

8 Responses to “How Enterprise Manager Detects the Version of Oracle Databases”

  1. Thank you for the posting this!

    Maybe this explains why the 5th digit is not showing up in EM for databases where I have applied a bundle patch?  bundle_series=DBBP

    I’ve yet to log a SR for this.  Anyone else experienced this or know of of a fix.

    • Gokhan Atil says:

      You are welcome. I do not know if DBBP creates different records on dba_registry_history. Let’s hear what Oracle Support says.

  2. Hi,

    I also found, that physical standby databases (mounted) don’t show their PSU level. If you open them read only it will discover the PSU. Makes sense to me.


    • Gokhan Atil says:

      Yes Paul, exactly! The most dba_views are not accessible on recovery mode. This is why they detected with only v$version information.

  3. The 12c should be updated to something like:

    (SELECT version || ‘.’ || bundle_id version
    FROM dba_registry_sqlpatch
    WHERE rownum = 1),
    (SELECT version FROM v$instance)) version
    FROM dual;

  4. Gurinder Singh Wadhwa says:


    Is there any way, we can see applied PSU in Cloud COntrol 12c ?


    As mentioned above, that this will be shown in 13c, is there any patch whihc we can apply to OMS/ agent to use new sql queries to extract DB Version along with PSU.

Leave a Reply

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