ORA-02342: replacement type has compilation errors Cause: The use of the ALTER...REPLACE statement on a valid type caused a compilation error. Action: Use the ALTER...REPLACE statement to replace the type with a valid type which does not cause compilation errors.