Create Replica From Server (Data Management Tools)
Summary
Creates a replica using a specified list of feature classes, layers, feature datasets, and tables from a remote geodatabase using a geodata service published on ArcGIS Server.
Usage
The source must be a geodata service representing a remote enterprise geodatabase. The destination can be either a local or a remote geodatabase.
Confirm that the field names in the enterprise geodatabase that the geodata service accesses do not exceed the maximum field name length supported in the database where the destination geodatabase is stored. If the destination geodatabase cannot store all the characters, the field names will be truncated. This results in field names that do not match. Subsequent replica synchronizations will not transfer edits between those fields due to the mismatched field names.
The data that will be replicated must be registered as traditional versioned but not with the option to move edits to base. The connected database user must also have write permissions to the data. For two-way and both types of one-way replicas, all datasets must have a global ID column and a high-precision spatial reference.
For check-out and one-way replicas, the child replica geodatabase can be an enterprise or file geodatabase.
For two-way and one-way child-to-parent replicas, the child geodatabase must be an enterprise geodatabase.
To use archiving for one-way replicas, the parent workspace must be connected to the default version. For one-way child-to-parent replicas, the child workspace must be connected to the default version.
The default for feature classes is to replicate all features. The default filter for tables is schema only; only the schema for the table will be replicated. If you set the Extent environment or specify replica geometry features, it will be applied as a spatial filter in which only features intersecting the extent will be replicated. Tables will also include rows that are related to rows that are part of the replica.
The Replica Geometry Features parameter can be used to define the replica geometry. You can also use the Extent environment setting to define the replica geometry.
If only the Replica Geometry Features parameter is set, only data intersecting the replica geometry features will be replicated.
If only the Extent environment is set, only data intersecting the extent will be replicated.
If both the Replica Geometry Features parameter and the Extent environment are set, the Replica Geometry Features parameter will be used.
If neither the Replica Geometry Features parameter nor the Extent environment is specified, the full extent of the data will be used.
The replica geometry features can be points, lines, or polygons.
A feature layer used for the replica geometry features can contain one or more features. If there is more than one, the geometries are merged, and only data that intersects the merged geometries will be replicated.
If filters (such as spatial, selection, or definition query) have been defined on the replica geometry features, only features that satisfy these filters will be used to define the replica geometry. See Prepare data for replication for more information.
The Re-use Schema parameter options are only available for checkout replicas.
Parameters
| Label | Explanation | Data type |
|---|---|---|
|
Geodata Service |
The geodata service representing the geodatabase from which the replica will be created. The geodatabase referenced by the geodata service must be an enterprise geodatabase. |
GeoDataServer |
|
Datasets |
The list of the feature datasets, stand-alone feature classes, tables, and stand-alone attributed relationship classes from the geodata service that will be replicated. |
String |
|
Replica Type |
Specifies the type of replica that will be created.
|
String |
|
Geodatabase to replicate data to |
The local geodatabase that will host the child replica. Geodata services are used to represent remote geodatabases. The geodatabase can be an enterprise or file geodatabase. For two-way replicas, the child geodatabase must be an enterprise geodatabase. For one-way and check-out replicas, the geodatabase can be a file or enterprise geodatabase. File geodatabases must exist before running this tool. |
Workspace ; GeoDataServer |
|
Replica Name |
The name that identifies the replica. |
String |
|
Replica Access Type (Optional) |
Specifies the type of replica access.
|
String |
|
Initial Data Sender (Optional) |
Specifies which replica will send changes when in disconnected mode. If you are working in a connected mode, this parameter is inconsequential. This ensures that the relative replica will not send updates until the changes are first received from the initial data sender.
|
String |
|
Expand Feature Classes and Tables (Optional) |
Specifies whether expanded feature classes and tables—such as those in networks, topologies, or relationship classes—will be added.
|
String |
|
Re-use Schema (Optional) |
Specifies whether a geodatabase that contains the schema of the data to be replicated will be reused. This reduces the amount of time required to replicate the data. This parameter is only available for checkout replicas.
|
String |
|
Replicate Related Data (Optional) |
Specifies whether rows related to rows existing in the replica will be replicated. For example, a feature (f1) is inside the replication filter and a related feature (f2) from another class is outside the filter. Feature f2 will be included in the replica if you choose to get related data.
|
String |
|
Replica Geometry Features (Optional) |
The features that will be used to define the area to replicate. |
Feature Layer |
|
Use archiving to track changes for 1 way replication (Optional) |
Specifies whether the archive class will be used to track changes instead of the versioning delta tables. This is only available for one-way replicas.
|
Boolean |
|
All records for tables (Optional) |
Specifies whether all records or only the schema will be copied to the child geodatabase for tables that do not have filters applied (such as selections or definition queries). Tables with applied filters will be honored.
|
Boolean |
Derived output
| Label | Explanation | Data type |
|---|---|---|
|
Out GeoData Service |
The updated geodata service. |
Workspace; GeoDataServer |
|
Replica Name |
The name of the output replica. |
String |
Environments
Current Workspace, Output CONFIG Keyword, Extent, Scratch Workspace
Licensing information
- Basic: No
- Standard: Yes
- Advanced: Yes