Select to view content in your preferred language

Potential Problems Truncating/Deleting Record in an SDE layer from oracle creating Orphans

3532
1
08-21-2015 01:34 PM
keithbickers1
Deactivated User

For various reasons we have the need to delete and insert
records directly through Oracle SQL for a feature class with spatial data.  While exploring this option I have been
warned against it because there may be orphan records that are created through
ESRI that will not be created/deleted as needed when these actions are not
completed through the GIS tool.  Is this
the case? If so, are there additional updates that could also be done directly
in Oracle to account for this?

We have performed a test on a small dataset to ensure that
we can complete the insert/delete/truncate commands in Oracle and still have
the dataset be readable through ArcGIS, no issues there.  Just want to make sure we are not setting
ourselves up for issues in the future by doing this.

Thank you for your input in this matter.

0 Kudos
1 Reply
VinceAngelo
Esri Esteemed Contributor

You are setting yourself up for issues in the future, but it is possible to maintain a simple feature class exclusively from SQL.  "Simple feature class" means:

  • Table is registered with ArcSDE with a USER-set registered rowid (sdelayer -o register -C objid,USER...)
  • Feature class is NOT versioned
  • Feature class is NOT archived
  • Feature class does NOT participate in geodatabase behaviors (relationship classes, feature datasets,...)

In essense, just a stripped down, native table with geometry (SDE.ST_GEOMETRY or MMDSYS.SDO_GEOMETRY).

It's theoretically possible to not trash tables with SDE-set rowids, if you honor all the restrictions in ID allocation, but that would likely tempt you into something which would regularly corrupt your geodatabase.

- V

0 Kudos