24
Mastering your Databases

Mastering your Databases

Embed Size (px)

Citation preview

Page 1: Mastering your Databases

Mastering your Databases

Page 2: Mastering your Databases

Agenda

●Your Databases in FME

– New in FME 2016.1●How to extract

differences between databases/snapshots

– Demo: ArcSDE Geodatabase versions

Page 3: Mastering your Databases

Your Databases in FME

Page 4: Mastering your Databases

Top DB Formats

1. Esri Geodatabase2. PostGIS3. Oracle4. Microsoft Access5. Microsoft SQL Server6. PostgreSQL7. Autodesk MapGuide

SDF8. Esri Legacy ArcSDE9. SpatiaLiteDid you know?

Esri Geodatabase is the 6th most-used

format in FME.

Page 5: Mastering your Databases

safe.com/transformers

Page 6: Mastering your Databases

New in FME 2016.1

Page 7: Mastering your Databases

More Formats● Portal for ArcGIS● AWS Aurora● Elasticsearch● MongoDB● IBM Cloudant● Geocouch (i.e. CouchDB

spatial)● Microsoft Azure DocumentDB

Page 8: Mastering your Databases

New Cross-Platform Formats● SAP HANA● SAP Sybase ASE● Denodo● Microsoft Azure● Microsoft Access● Microsoft SQL Server● IBM DB2 Non-spatial● IBM Informix Non-spatial

Page 9: Mastering your Databases

Consistent Parameters

Page 10: Mastering your Databases

Saved Database Connections

Enter connection parameters once, then save them for later.

Publish to

FME Server

Page 11: Mastering your Databases

SQL Made Easy

Page 12: Mastering your Databases

SQL Made Easy

Right-click toautomaticallygenerate scripts.

Quickly seethe table.Click ‘Run…’ toexecute SQLimmediately.

Page 13: Mastering your Databases

Extracting differences between ArcSDE geodatabases

Page 14: Mastering your Databases

What kinds of differences?Version Differences

• A version is a snapshot of the ArcSDE geodatabase.

• This enables multiple users to work on a geodatabase without conflict.

Historical Archives• A historical version is

a saved moment in time.

• There is always a DEFAULT historical marker.

• Historical markers are based on date/time.

Page 15: Mastering your Databases

Versions in FME1. Open reader parameters.2. Pick the version type and the

version you want to read.3. Check ‘Read Version

Differences’.4. Pick the version to compare

against.

Page 16: Mastering your Databases

You can also access parameters from the FME Workbench Navigator Pane once the reader is already in your workflow.

Transactional version to read

Creates a new version when you do the read

Baseline, i.e. SDE.DEFAULTRead Version Differences: Yes|No

Page 17: Mastering your Databases

Which versions do I compare?Find differences to the common ancestor.

sde.DEFAULT

WaterUpdates1

WaterUpdates2

WaterUpdates3

Page 18: Mastering your Databases

Incremental Updates● The fme_db_operation

attribute will specify INSERT/UPDATE/DELETE.

● Tell the output database to use this attribute.

● FME is now set up for incremental updates.

Page 19: Mastering your Databases

● Set Child Version Name to create a snapshot, which will be used as the baseline next time.

● Your approach will depend onyour replication scheme.

QAQC

WaterUpdates1

WaterUpdates2

WaterUpdates3

sde.DEFAULT

Automated Synchronization

Page 20: Mastering your Databases

Demo: Extract Geodatabase differences

Page 21: Mastering your Databases

● FME 2016.1 enables a range of database functionality, including easier SQL editing.

● Use FME to extract differences between Geodatabase versions or snapshots.

Page 22: Mastering your Databases

Resources

know

ledg

e.sa

fe.

com

safe.com/webinar● Tips for PostGIS, Oracle, and SQL

Server● Become a Geodatabase Power User

Page 23: Mastering your Databases

Thank you!

Questions?