My Oracle Support Banner

UNION Query on JSON Data Fails with ORA-00904 After Upgrade to 19c (Doc ID 2770313.1)

Last updated on APRIL 20, 2021

Applies to:

Oracle Database - Enterprise Edition - Version and later
Information in this document applies to any platform.


After upgrade to 19c, a UNION query on JSON data fails with the following error if a VPD policy exists on the JSON column:

ORA-904: invalid identifier

The two queries executed separately run fine.

The UNION query does not fail if the VPD policy is disabled.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.