Oracle Solution for Error ora-13366

Solution for Oracle Error ORA-13366

ORA-13366: invalid combination of interior exterior rings

What triggered the Error:

In an Oracle Spatial geometry, interior and exterior rings are not used consistently.

What should we do to fix it:

Make sure that the interior rings corresponding to an exterior ring follow the exterior ring in the ordinate array.