How to fix the Oracle error ORA-22858: invalid alteration of datatype?

In this post, you’ll learn more about the Oracle ErrorORA-22858: invalid alteration of datatype with the details on why you receive this error and the possible solution to fix it.

Oracle Error Description

ORA-22858: invalid alteration of datatype

Reason for the Error ORA-22858: invalid alteration of datatype

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

How to fix the Error ORA-22858: invalid alteration of datatype ?

You can fix this error in Oracle by following the below steps

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

Tags :

Leave Your Comment