ORA-40499 Trying To Use BLOB For JSON

(Doc ID 2413224.1)

Last updated on JULY 06, 2018

Applies to:

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

Symptoms

On : 12.1.0.2 version, XML Database

When attempting to create a JSON table on BLOB column
the following error occurs.

ERROR
-----------------------
CREATE TABLE t(json BLOB);

Table T created.

Error starting at line : 3 in command -
ALTER TABLE t ADD CONSTRAINT ensure_json CHECK (json IS JSON STRICT)
Error report -
ORA-40499: no format defined for binary data type
40499. 00000 - "no format defined for binary data type"
*Cause: The provided JSON input was of binary type but a format was not defined.
*Action: Define a format for binary input.

Changes

 

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms