Oracle Solution for Error ora-13372

Solution for Oracle Error ORA-13372

ORA-13372: failure in modifying metadata for a table with spatial index

What triggered the Error:

Modifying the metadata after the index is created will cause an inconsistency between the geometry's gtype and diminfo.

What should we do to fix it:

Modify (or Prepare) metadata before creating an index on the SDO_GEOMETRY column.