Oracle Error ORA-22858: invalid alteration of datatype

Oracle Error Message

ORA-22858: invalid alteration of datatype

Reason for the Error

An attempt was made to modify the column type to object, REF, nested table, VARRAY or LOB type.

Solution

Create a new column of the desired type and copy the current column data to the new type using the appropriate type constructor.