Oracle Error ORA-22997: VARRAY | OPAQUE stored as LOB is not specified at the table level

Oracle Error Message

ORA-22997: VARRAY | OPAQUE stored as LOB is not specified at the table level

Reason for the Error

An attempt was made to specify a VARRAY|OPAQUE column to be stored as LOB at the partition/subpartition/template level. However the VARRAY|OPAQUE column was not specified to be stored as LOB at the table level when the table was created.

Solution

Specify the VARRAY | OPAQUE column to be stored as LOB at the table level when the table is created. Alternatively, do not specify the VARRAY | OPAQUE column to be stored as LOB at the partition/subpartition/template level if it is not specified at the table level when the table is created.