managing distributed data with geodatabase …new in 10: geodatabase replication • new...

63
Managing Distributed Data with Geodatabase Replication Patrisha Wells

Upload: others

Post on 20-Jun-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Managing Distributed Data with Geodatabase Replication

Patrisha Wells

Page 2: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Outline

• General Concepts- Use Cases- Types of Replicas- Data Requirements- Replica Creation- Synchronization- Schema Changes• Geodatabase Replication API• Best Practices• What's new at 10 • Summary

Page 3: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Geodatabase Replication

• Distribute data across 2 or more geodatabases

• Geodatabases are edited independently and synchronized when needed

Page 4: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Geodatabase Replication – Use Cases

• Mobile Users and Field Crews

Page 5: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Geodatabase Replication – Use Cases

• Copies of data at different organizational levels (city, county, state)

Page 6: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Geodatabase Replication – Use Cases

• Copies of data at different geographic facilities

Page 7: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Geodatabase Replication – Use Cases

• Production and publication geodatabases

Page 8: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Geodatabase Replication - LAN and WAN

• LAN - connects to local geodatabases

• WAN – connects to remote geodatabases (geodata services on ArcGIS server)

• All replication workflows supported in both environments

Page 9: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Data Distribution in Enterprise systems

• Geodatabase replication used with other data distribution techniques

• Scenario

Web services

–– Field workers use mobile servicesField workers use mobile services

–– Field workers use Field workers use geodatabasegeodatabase replicationreplication

Region office

–– Synchronize offices with Synchronize offices with geodatabasegeodatabase replicationreplication

Main office

Page 10: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Geodatabase Replication - Concepts

• You can replicate :- A specific version- Specific datasets- A subset of features in the chosen datasets

Source

Target

Parent Parent Replica_AReplica_A

Child Child Replica_AReplica_A

Page 11: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Types of Replicas

One-way

Two-wayMultiple times

editsChild

geodatabaseParent

geodatabase

Multiple timesedits

Child geodatabase

Parentgeodatabase

Check out/ Check in

Once only

editsChild

geodatabaseParent

geodatabase

OROR

Page 12: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Check out / Check in Replication

• Child can be any geodatabase type• Parent must be an ArcSDE geodatabase

Page 13: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

One Way Replication

• Parent to child or child to parent (10)• Source geodatabase

- Must be an ArcSDE geodatabase- Use archiving to track changes (10)

• Target geodatabase- Any geodatabase type- Considered read-only

ProductionGeodatabase

Readers

ArcIMS ArcGISServer

Editors

PublicationGeodatabase

Page 14: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Two Way Replication

• Parent and child must be ArcSDE geodatabases

Page 15: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Data Type Support with Replication

• Fully supported- Simple Feature Classes and Tables, Geometric Networks,

Topologies, Representations, Relationship Classes, Annotation

• Source data can be replicated - Terrains and Network datasets

• Copied during creation - Raster datasets, Raster catalogs, Mosaic datasets

• Not Supported - Cadastral datasets, Schematics datasets, Locators

Page 16: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Replication Data Requirements

• Data must be writable

• Data must be versioned - Without option to move edits to base

• Two way and One way replicas- Data must have a Globalid column - Spatial data must be high precision

Page 17: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

GlobalID Columns

• GlobalID columns- Maintain object identity- System maintained (like ObjectIDs)- Contain registry style UUID values

{9DFACA0A-982F-4175-80E7-B553378D9E6D}

• Adding globalid columns - ArcCatalog command or GP tool- Data can be versioned

• Differ from columns of type GUID

Page 18: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Replica Creation - Versioning

• Replica versions are synchronized

• 2 way and 1 way replicas- Named version or default on

parent and child (10)• Check-out replicas

- Named versions created by the replica

ArcSDE GDB

ArcSDE GDB

Default

Parent Parent replica replica versionversion

ChildChildreplica replica versionversion

Default

Page 19: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Replica Creation – Defining data to replicate

• Filters and Relationship classes- Filters are applied first, the relationship classes

• Filters- Spatial – Area to replicate- Selections – Selection sets on feature classes and tables- QueryDef – Definition queries on layers and tables

• Relationship Classes- Additional related rows are added

Page 20: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Creating Replica with related Data

OwnerJohnMary

Incident John IncidentMary Incident

RC1RC1 RC2RC2

Child Replica Child Replica Owner Incident RC1RC1 RC2RC2

Parent Replica

John John Incident

Page 21: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Replica Creation – Full and Simple model

• Full Model- Requires feature types to match on parent and child

- Example: A complex edge must be a complex edge type on both the parent and the child

• Simple Model- Does not requires feature types to match on parent and

child - Example: A complex edge on the parent can be a simple

line on the child

Page 22: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Replicating to a remote geodatabaseRemote Machines (Amazon cloud)

Remote ArcGIS Server

Remote ArcSDE GDB

Local GDBLocal Office

11 Publish geodataserver

22 Connect to the geodata service 33 Create a replica and

then synchronize changes

Page 23: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Replica Synchronization

• Applying data changes across replicas

• Synchronize in both directions or a single direction

• Uses message exchange

• Fault tolerant

• Uses versioning (or Archiving for one way (10))

• Can synchronize as replica owner or ArcSDE user

Page 24: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

What Features are Synchronized

• 2 way and 1 way replicas - Replica filters used to find

changes to sync

- Edits related to data in the replica are synchronized (schema only filter required)

• Check-out replicas - All edits are synchronized

Page 25: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Replica Synchronization - Message Exchange

• Synchronizations are performed using message exchange

• Data Change messages- Used to send changes- Include all changes since the last

acknowledgement (default)

• Acknowledgement messages- Used after receiving changes- Acknowledges that the changes have been

received

Page 26: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Connected Synchronization

• Requires replica geodatabases to be on the same network (LAN or WAN)

• Always connected or intermittently connected• System manages message exchange• Send in one or both directions in one operation

Synchronize

Page 27: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Disconnected Synchronization

• Does not require the replica geodatabases to be on the same network

• Message exchange is performed by the end user• Involves export, file transfer and import

- File transfer can use ftp, CD through the mail, etc

TransferTransfer

Page 28: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Disconnected Synchronization

• A replica is either a Data Sender or a Data Receiver• Data Sender

- Sends data change messages to the data receiver

• Data Receiver- Accepts changes from data sender - Sends back an Acknowledgement messages

• Switch Roles- Data Sender sends Data Change message with

instructions to switch roles

Page 29: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Disconnected Synchronization

• Acknowledgement messages are not required after receiving changes

• Changes are resent if an acknowledgement is not received

• Switching roles on every data send acknowledges implicitly

Page 30: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Replica Synchronization Examples

• Connected Synchronization with a 2 way replica

SenderSender ReceiverReceiver

AAAA

TransferTransfer

TransferTransfer

• Disconnected Synchronization with a 2 way replica

Page 31: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Synchronization and Conflicts

• Choose to define conflicts by row or by attribute• Three policies for conflicting changes

- Favor the database (Automatic)- Favor the imported changes (Automatic)- Manual

- Replica is marked as in conflict- Need to resolve conflicts manually at a later time - Can send but not receive while conflicts exist- Not supported when synchronizing in both directions

Page 32: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Manual and Automated Synchronization

• Manual- Desktop commands / GP tools- Choose to synchronize when needed

• Automated- Schedule synchronizations- Use GP models and the windows scheduler- Recommended

Page 33: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Working through errors

• Designed to keep replicas consistent

• Roll back to pre-synchronize state if synchronization fails

• If a message is lost, the next message includes the lost message changes and new changes

• Replica log records error information

Page 34: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Demo 2 – Replica Synchronization Demo

Local GDBLocal Office

Remote Machines (Amazon cloud)

Remote ArcGIS Server

Remote ArcSDE GDB

11 Make Edits

22 Synchronize with geodata service

33 Edits are transferred

Page 35: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Working with Schema Changes

• Fault tolerant- Synchronization continues to succeed after schema changes- Example: If a field has been dropped, synchronization skips

that field

• Tools to apply schema changes across replicas- Subset of schema changes can be applied

Page 36: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Applying Schema Changes

• Two step process- Compare replica schemas

- Direct or through schema XML files- Schema differences file created

- Import the schema differences

• Choose the differences to apply during Import process • Some differences can’t be applied and are listed for

information only

Page 37: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Schema Changes that can be Applied

Add Change Drop

Field Y Y (Domains) Y

Domain Y Y Y

Table/FC Y Y (Domains, Add/drop field)

Y

Geo Network N N Y

Topology N N Y

Feature Dataset N N Y

Relationship Class N Y (Domains, Add/drop field)

Y

Page 38: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Replica Description and Viewing

• Replica Manager - Lists all replicas in the Geodatabase- Can get properties about each replica- Includes replica log- Allows you to unregister (delete) a replica

• Replica Footprints FeatureClass- Creates a feature class of replica information - One row per replica- Shape field includes the replica geometry

Page 39: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Geodatabase Replication – API

• Most replica functionality is in the commands/tools

• Write code when…- Integrate replication into larger applications

- Example: integrate synchronization with reconcile service- Extend the replica creation and synchronization - API only functionality

Page 40: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Geodatabase Replication – API

• API only functionality- Recommended synchronization order

- Browse changes before synchronization

- Advanced replica creation options- Example: Overlap spatial filter

- Export and Import version differences

Page 41: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Geodatabase Replication – API

Coarse Grained API(GeoDataServer object model)

Fine Grained API(Data Extraction Check out/ Check in object model; XML

Export and Import Object Model; Data Changes Object

Model; Schema Change Export and Import Object

Model)

Geodatabase DistributedLibrary

RemoteGeodatabase

LocalGeodatabase

Internet

Local

Local

Page 42: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Geodatabase Replication – Best Practices

• Anticipate future needs creating a replica

• Develop a well defined data model before creating replicas

• Automate replica creation and synchronization- GP models and windows scheduler

• Consider replicas when managing ArcSDE- See Geodatabase Replication and Compress

• Use appropriate technique on based on network speed

• Upgrade to the latest release or service pack- Get the replication patch at 10

Page 43: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Geodatabase Replication – FAQ’s

• FAQ’s- Reverse one way (kb)- Working with multiple projections (kb)- ArcGIS server and timeouts with GeoData Services (kb)- Style sheets for the ReplicaLog.dat (kb)- ArcGIS server and using it with SQL express (server doc)- Adding a feature class to a replica (SDK sample)- Relationship classes where the objectID is the primary key

and replication

Page 44: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

DBMS Replication vs Geodatabase Replication

• Geodatabase replication- Built on top of the geodatabase (DBMS independent)- Supports geodatabase specific features types

- Geometric networks, topologies etc.- Replicates a specific version- Loosely coupled

• DBMS Replication- Replicates geodatabases at the DBMS table level- Requires some internal knowledge of the geodatabase- Can replicate the entire geodatabase

Page 45: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

New in 10: Geodatabase Replication• New Functionality

- One way replication using archiving

- One way child to parent replica

- Schema mapping across replicas

- Simple check-out and two-way replicas

- Create a replica to a named version on the child

- Support for non-versioned data with Check out replicas

• Better Support for data centralization workflows

Idaho

Montana

Oregon

Central

Page 46: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema
Page 47: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema
Page 48: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema
Page 49: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Demo Title: Option 1Topic 1

Topic 2

Topic 3

Page 50: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Demo Title: Option 2Topic 1

Topic 2

Topic 3

Page 51: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Demo Title: Option 3Topic 1

Topic 2

Topic 3

Page 52: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Sample Screenshots layout

Page 53: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Using ArcGIS 10 – Editing Tools (sample diagram)

Sketch ReportSummarize

Page 54: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Shapes for Diagrams

Circle behind a group of objects (resize as needed)

Box behind a screen shot (resize as needed)

Cloud optimized for use behind diagrams (resize as needed)

ArcGISArcGIS ArcGISArcGIS ArcGISArcGIS ArcGISArcGIS ArcGISArcGIS ArcGISArcGIS ArcGISArcGIS

Page 55: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Arrows for Connecting Most Items

Arrows for Connecting Large Concepts

Arrows

Page 56: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Access the Entire Icon Library

Over 80 items added for 2010• 350 total icons available for Esri use• Browse and search from any Microsoft

Office application• Accessible if you’re connected to the Esri

Network• Also available offline• See the presenter notes below for details

Page 57: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

ArcGIS Desktop Mashups

ExplorerMap

MapMap

Web Map

Open Standards Web Map Web Map

Web Map

Browser

Web Blog Web Blog

ArcGIS DesktopAuthors

Raster Files

Mashups

Raster FilesWeb Map MapWeb Map MapWeb Map

MapWeb Map MapWeb Map

Map

A Selection of Frequently Used Icons

ArcGIS Online

Web Map

Page 58: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Globes

Layers

CD/DVD

Files

Files

Models

Internet/Cloud

Databases

Table

Page 59: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

BusinessPartner

Education

Professional Services

ProfessionalServices

Designing& Planning

Situational Awareness

GIS UserMobile GIS User

Education

Page 60: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Data Appliance

Data Server

GIS Users

Mashups

Geodatabase Web GIS

Page 61: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Title Safe Area — Please Read

This area is the title safe area (20% in from the slide edge). All text and graphics should be contained within this area to

prevent loss during transmission and reproduction.

Any information outside the title safe area runs the risk of being cropped off when captured to video.

Please note the adjusted title and body template styles adhering to the title safe area. Presenters will need to adjust their slides

accordingly as needed to reposition text and graphics.

Right-click and select Grid and GuidesCheck "Display drawing guides on screen”

Page 62: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Successful Presentation Guidelines

• Know your target audience• Use slides to lead not read

- Keep your slides uncluttered and to the point- Avoid more than two levels of bullet points

• Use title slides for each section- Make it clear where you are going

• Avoid too much animation—Keep it simple!

Additional ESRI presentation resources available on ArcZone http://arczone/resources/presentations.cfm

Page 63: Managing Distributed Data with Geodatabase …New in 10: Geodatabase Replication • New Functionality - One way replication using archiving - One way child to parent replica - Schema

Color Guidelines

Additional ESRI presentation resources available on ArcZone

http://arczone/resources/presentations.cfm

Color Swatches

Follow this guide when applying color on text

Projector Color Guidelines

Use the sRGB video mode on the projector. Most projectors have this setting.