ArcGIS Pro 2.6.8; Oracle 18c 10.7.1 EGDB:
Short Version:
I want to export a FC from prod to dev. I want to maintain the ObjectIDs from prod when exporting.
Long Version:
I have a prod FC that has ~2,100 features where the shapes are blank:
where
sde.st_isempty(shape) = 1 or sde.st_isempty(shape) is null
Select features that have blank shapes
I want to determine why the shapes are blank. I want to compare the shapes to an older copy of the FC; our dev database is an option:
Dev was created 7-8 years ago; it was an exact copy of prod at that time. So I want to compare the prod FC to the dev FC, to see if the corresponding shapes in dev are blank. If the shapes aren't blank in dev, then that tells me that something went wrong in prod at some point; maybe a user accidentally did a field calculation: SHAPE=None, etc.
I want to perform the comparison using a query in SQL Developer, using a connection to dev. However, dev can't see prod data (they're entirely different databases), and I wouldn't ask I.T. to set up a DBLINK from dev to prod just for this one thing. So querying both dev and prod in the same SQL Developer connection isn't an option. I want to export a copy from prod to dev instead.
Unfortunately, there isn't a user-defined unique ID field in the FC, which makes comparing the two FCs difficult. So I want to compare ObjectIDs instead (the ObjectID values in dev are the same as prod; the ObjectIDs weren't reset when prod was duplicated as dev).
Problem:
I want to export the prod FC to dev, but I want the ObjectIDs to be maintained so that I can make the comparison. How can I do that?
I don't want to create an OID_STATIC_COPY field in prod (using a field calculation). The FC is locked and that would be undesirable anyway.