Oracle Error ORA-22866: cannot replace a type with table dependents

Oracle Error Message

ORA-22866: cannot replace a type with table dependents

Reason for the Error

An attempt was made to replace a type that has table dependents.

Solution

Drop all table(s) depending on the type, then retry the operation.