Is This Content Helpful?
We're glad to know this article was helpful.
Cases may arise where internal replica versions become orphaned in the geodatabase, resulting in a less than optimal geodatabase compress.
Instructions provided describe how to identify these versions and delete the orphaned versions.
Replica system versions are versions that are used behind the scenes by ArcGIS to determine the changes to synchronize for a replica. A set of system versions exists for each replica in the geodatabase. Various system versions are created and deleted by ArcGIS as the replicas are synchronized.
These versions are hidden by design, which means they are not displayed in ArcGIS and not returned by ArcObjects. They should not be manually deleted from the ArcSDE repository.
The replica system versions can be identified by the way they are named. The naming conventions for the replica system versions are as follows:
Two-way and one-way replicas:
SYNC_RECEIVE_<replica id>_<generation number>
SYNC_RECEIVE_REC_<replica id>_<generation number>
SYNC_SEND_<replica id>_<generation number>
There may be instances where replicas are unregistered and their replica system versions remain in the geodatabase. These versions may cause a less effective compress than if the versions were not orphaned in the geodatabase. The following steps describe how to identify and remove these orphaned versions.
Please note the GDB_ITEMS table is qualified with sde as the owner in this example and may need to be changed to DBO for certain SQL Server DBO schema geodatabases.
SELECT ObjectID, name from sde.GDB_ITEMS where TYPE='4ED4A58E-621F-4043-95ED-850FBA45FCBC';
SELECT id, name from sde.gdb_replicas;
SQL> select name from sde.versions order by name;
The sdeversion -o delete command can be used in versions previous to 10.3 if installed.
A full backup should always be taken prior to using troubleshooting steps in this article. No other replica system versions should be deleted from the geodatabase, as this can lead to corruption of the existing replicas.