ArcGIS Server Banner

Synchronizing disconnected replicas (ArcInfo and ArcEditor only)

Synchronizing disconnected replicas (ArcInfo and ArcEditor only)

Release 9.3 E-mail This TopicPrintable VersionGive Us feedback

About synchronizing disconnected replicas

Note: This topic was updated for 9.3.1.

For replicas in a disconnected environment, synchronization is achieved through a process of manually exchanging messages between replicas. Two types of messages can be exchanged: data change messages and acknowledgment messages. Data change messages contain data changes, while acknowledgment messages acknowlege the receipt of data change messages. Replicas that are data senders can send data change messages, while replicas that are data receivers can send acknowledgment messages. See Disconnected synchronization for more information.

NOTE: The import phase of the synchronization process occurs within a transaction. The second phase of a synchronization includes a reconcile, which also occurs in a transaction. Resources, such as undo space or logical log files, will vary with the amount of changes to be synchronized. If the import phase completes but the reconcile phase results in an error, the replica will appear as if in conflict and you can later go in and complete the reconcile manually.

Exporting data change messages

Data changes include new data changes and unacknowledged data changes. New changes are any inserts, updates, and deletes applied to the replica version since the last data change message was exported. Unacknowledged data changes include previously exported changes for which you have not received an acknowledgement. There are two commands available to export data change messages:

Exporting Acknowlegment messages

An acknowledgment message acknowledges the receipt of data changes from the relative replica. Unless the relative replica receives an acknowledgment, it will resend the data changes. Adopting the practice of regularly sending and importing acknowledgement messages prevents you from having to resend changes. The export acknowledgment message command can be used to export acknowledgment messages.

Importing messages

The import message command can import either data change messages or acknowledgment messages. Importing an acknowledgment message updates a replica's metadata so it knows what changes to include in the next export. Importing a data change message applies data changes from the relative replica and also updates the replica's metadata.

Reconcile Options

When importing a data change message, a reconcile occurs between the synchronization version and the replica version. During this reconcile, conflicts may occur. Before importing the message, you can choose a reconcile policy to define how to handle conflicts.

Learn more about Reviewing conflicts.

Reconcile policies include the following:

The default is the option that favors the parent replica. Therefore, if importing changes on the child replica, the default is in favor of the imported changes. If importing changes on the parent replica, the default is in favor of the database.

Note that the reconcile options are similar to those offered for synchronizing connected replicas.

Defining Conflicts

You can also choose between column-level and row-level conflict detection for this reconcile.

Learn more about reconciling a version.

How to

Export a data change message

  1. To activate the Export Changes wizard in ArcMap, click the Export Data Changes Message button on the Distributed Geodatabase toolbar. The wizard supports both local and remote geodatabases. Remote geodatabases are accessed in ArcMap through map services that have the geodata access capability enabled.
  2. In ArcCatalog, right-click the geodatabase you want to export data changes from and open the Distributed Geodatabase pull-right menu. Right-click geodata services published through ArcGIS Server to access remote geodatabases. Click Export Data Changes Message.
  3. Select the replica you would like to export data changes from. The replica type will be displayed.
  4. Specify the name and type of the delta database or delta XML file to be created.
  5. For one- and two-way replicas, there are three other check box options. These are grayed out for checkout replicas.
  6. One option for one- and two-way replicas is that you can switch to being a receiver once the message has been exported. Checking this will change the role of the relative replica to that of sender when it imports the message, allowing it to send replica changes and you to receive them.
  7. By combining the last two check boxes, you have four potential options:
  8. For more information regarding exporting data change messages, click the About Exporting Changes button.

Import a message

After the initial data sender exports a data change message, the relative replica must import this message for the pair to be synchronized. It is then encouraged for the receiver to send an acknowledgment message so that the data sender knows that the message was received. This keeps good communication between the replica pair during the data exchange process and makes it easier to tell if a message is late or has been lost.

NOTE: This is the same command you use to import an acknowledgment message as well as to import a data change message.

  1. To activate the Import Message wizard in ArcMap, click the Import Message button on the Distributed Geodatabase toolbar. The wizard supports both local and remote geodatabases. Remote geodatabases are accessed in ArcMap through map services that have the geodata access capability enabled.
  2. In ArcCatalog, right-click the geodatabase you want to import a message to and open the Distributed Geodatabase pull-right menu. Right-click geodata services published through ArcGIS Server to access remote geodatabases. Click Import Message.
  3. Choose the replica geodatabase you'd like to import a message to.
  4. Pick the delta file you would like to import.
  5. If you would like to generate an acknowledgment message to send in return, you can specify a delta file to export to.
  6. If the replica is a checkout, you also have the option to reconcile with the parent version once the message is imported.
  7. For more information regarding importing messages, click the About Importing Messages button.

Tip

  • The import phase of the synchronization process occurs within a transaction. The second phase of a synchronization includes a reconcile, which also occurs in a transaction. Resources, such as undo space or logical log files, will vary with the amount of changes to be synchronized. If the import phase completes but the reconcile phase results in an error, the replica will appear as if in conflict and you can later go in and complete the reconcile manually.

Export an acknowledgment message

  1. To activate the Export Acknowledgment Wizard in ArcMap, click the Export Acknowledgment Message button on the Distributed Geodatabase toolbar. The wizard supports both local and remote geodatabases. Remote geodatabases are accessed in ArcMap through map services that have the geodata access capability enabled.
  2. In ArcCatalog, right-click the geodatabase you want to export an acknowledgment message from and open the Distributed Geodatabase pull-right menu. Right-click geodata services published through ArcGIS Server to access remote geodatabases. Click Export Acknowledgment Message.
  3. Select the replica from which you would like to export the acknowledgment message. The replica type will be displayed.
  4. Specify the name of the Acknowledgment file to be created.
  5. For more information regarding exporting acknowledgment messages, click the About Exporting Acknowledgment button.

Re-export a data change message

If for some reason an exported data change message is lost in transit or needs to be re-sent, you can reexport data changes and send them again. This option is not available for checkout replicas. For checkout replicas, you can run the Export command again to achieve the same result.

NOTE: Note: Reexporting a data change message will not include the most recent edits. It will only include the edits that were sent in the original data change message.

  1. To activate the Re-Export Unacknowledged Messages wizard in ArcMap, click the Re-Export Unacknowledged Messages button on the Distributed Geodatabase toolbar. The wizard supports both local and remote geodatabases. Remote geodatabases are accessed in ArcMap through map services that have the geodata access capability enabled.
  2. In ArcCatalog, right-click the geodatabase you want to reexport data changes from and open the Distributed Geodatabase pull-right menu. Right-click geodata services published through ArcGIS Server to access remote geodatabases. Click Re-Export Unacknowledged Messages.
  3. Select the replica you would like to reexport unacknowledged messages from. The replica type will be displayed.
  4. Specify a name for the delta database or delta XML file to be created.
  5. You then have the option to include all unacknowledged changes or to include only the most recent unacknowledged changes since the last exported data change message.
  6. For more information regarding reexporting a data change message, click the About Re-Exporting button.

See Also

  • About synchronization
  • Disconnected synchronization