title: 13349 Oracle error geometry -- polygon intersects itself
body: <p>I have a table in Oracle which holds data for a polygon layer. I validated it </p>
  
  <pre><code>--validate layer
  CREATE TABLE Geom_Valid_Neighbour (SDO_ROWID ROWID, STATUS VARCHAR2(2000) );   
  EXECUTE MDSYS.SDO_GEOM.VALIDATE_LAYER_WITH_CONTEXT ('OTTAWANEIGHBOUR', 'GEOMETRY', 'Geom_Valid_Neighbour'); 
  SELECT * FROM Geom_Valid_Neighbour;
  </code></pre>
  
  <p>and got the following errors:</p>
  
  <pre><code>+----------------------+----------------------------------------------------------+
  |     SDO_ROWID        |                STATUS                                    |  
  +----------------------+----------------------------------------------------------+
  |         (null)       |  Rows Processed &lt;50&gt;                                     |   
  | AAA2EHAANAAB76nAAA   |  13349 [Element &lt;1&gt;] [Ring &lt;1&gt;][Edge &lt;112&gt;][Edge &lt;109&gt;]  |   
  | AAA2EHAANAAB76rAAC   |  13349 [Element &lt;1&gt;] [Ring &lt;1&gt;][Edge &lt;51&gt;][Edge &lt;55&gt;]    |    
  +----------------------+----------------------------------------------------------+
  </code></pre>
  
  <p>What function could I use to fix the geometry of this polygon layer and how to use it?</p>