0

Can't post code because of Fed policy, so I will ask the question here.

We are working on a series of polygon feature classes that are used to define large activity areas. These polygons are modified using arcpy such that activity exclusion areas are cut out of the larger polygon. To accomplish this end we are using arcpy.da.Editor(). The code works beautifully in a file geodatabase, but when executed in Oracle Spatial, it refuses to push edits from the delta tables into the 'A' table in Oracle Spatial. My first thought to a solution here would be to access the 'SHAPE@' object in the fGDB then convert it to a string and use an "UPDATE" command in Oracle SQL via ArcSDESQLExecute to push the edits to the 'A' tables.

Can anyone else come up with a better solution? Our DBA insists that this issue is on the code side and not a quirk of Oracle.

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Sep 14, 2017 at 14:48
2
  • You're describing software operating as designed. One sure way to cause database integrity failure would be to hack the the business table with SQL outside the versioning context, so you won't find many who will encourage that procedure (and shouldn't trust any that do). Commented Sep 15, 2017 at 0:12
  • I'm confused by the terminology. The A table is one of the delta tables. If you edit in a versioned environment adds and updates are recorded in the A table. It sounds like you want to see that data in the base table. Is this correct? Commented Sep 15, 2017 at 20:39

1 Answer 1

1

I have only ever used sqlserver or postgresql, but I usually would register the feature class as versioned, write to a child version of the database, save edits, stop editing, then I would have to use the arcpy tool to Reconcile Versions. You usually want to avoid writing directly to the default version.

Edit - reconcile versions, not synchronize changes. synchronize changes is for two databases.

answered Sep 14, 2017 at 15:22
3
  • Thanks for this. What arcpy tool are you talking about that does Synchronize Changes? Commented Sep 14, 2017 at 15:25
  • Edit - you probably want ReconcileVersions_management. desktop.arcgis.com/en/arcmap/10.3/manage-data/geodatabases/… For two gdbs you could use this, along with reconcile versions. desktop.arcgis.com/en/arcmap/10.3/tools/data-management-toolbox/… Commented Sep 14, 2017 at 15:26
  • Reconcile Versions looks like it will do what we need. It might be a good idea to run this by our DBA to make sure it isn't going to break something she has set up in the GDB. Thanks for your help! Commented Sep 14, 2017 at 16:40

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.