Oracle Error ORA-13368: simple polygon type has more than one exterior ring

Oracle Error Message

ORA-13368: simple polygon type has more than one exterior ring

Reason for the Error

In a polygon geometry there is more than one exterior ring.

Solution

Set the type to be multipolygon if more than one exterior ring is present in the geometry.