How To: Add a feature class to a one-way or two-way replica
Currently, there is no out-of-the-box tool to add a feature class to an existing replica. With ArcGIS Desktop, one must either recreate the replica or, if the workflow allows, replicate the new feature class as a separate replica.
A feature class or table can only be added to an existing replica (without recreating the replica) using ArcObjects code.
Note: This article pertains to ArcGIS versions 9.x only. Later versions of ArcGIS may contain different functionality, as well as different names and locations for menus, commands and geoprocessing tools.
Note: ArcSDE software, including the application server, command tools, and SDK with C and Java APIs, was deprecated at ArcGIS 10.2.2 and is no longer distributed. ArcGIS software features were deprecated, rather than immediately removed, to provide customers with backward compatibility and give as much advance notice as possible to adopt newer technology.
Use the instructions in How to add a feature class or table to an existing replica to add the feature class to the replica by way of ArcObjects code.
The steps below outline how the recreate the replica using the Register Existing Data option in Desktop. These steps can be applied to both one-way and two-way replicas.
- Synchronize the changes between primary and secondary replica geodatabases using the existing replica so that the data is identical in each database, then unregister the replica in both geodatabases. For two-way replicas, ensure that changes are synchronized in both directions and there are no outstanding edits before unregistering the replica.
- Create/import the new feature class into the primary geodatabase, and add the GlobalID.
- Register the newly added data as versioned.
- Copy and paste the new feature class to the secondary geodatabase using ArcCatalog.
Note: The GlobalIDs must have already been added to the feature class.
- For two-way replica or one-way full model, register the newly added data in secondary geodatabase as versioned.
- Using the primary geodatabase, add all the data that is to be replicated to a map in ArcMap.
- Click the Create Replica tool on the Distributed Geodatabase toolbar.
- Select One way replica or Two way replica and click Next.
- Select Register existing data only.
- Select the secondary geodatabase and specify a replica name.
- Click Next and click Finish.
A new replica is created that includes the new data.
- How to add a feature class or table to an existing replica (ArcObjects .NET 10.8 SDK)
- ArcMap: Working with geodatabase replicas
Last Published: 11/13/2020
Article ID: 000010345