Mastering your Databases
Agenda
●Your Databases in FME
– New in FME 2016.1●How to extract
differences between databases/snapshots
– Demo: ArcSDE Geodatabase versions
Your Databases in FME
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.
safe.com/transformers
New in FME 2016.1
More Formats● Portal for ArcGIS● AWS Aurora● Elasticsearch● MongoDB● IBM Cloudant● Geocouch (i.e. CouchDB
spatial)● Microsoft Azure DocumentDB
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
Consistent Parameters
Saved Database Connections
Enter connection parameters once, then save them for later.
Publish to
FME Server
SQL Made Easy
SQL Made Easy
Right-click toautomaticallygenerate scripts.
Quickly seethe table.Click ‘Run…’ toexecute SQLimmediately.
Extracting differences between ArcSDE geodatabases
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.
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.
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
Which versions do I compare?Find differences to the common ancestor.
sde.DEFAULT
WaterUpdates1
WaterUpdates2
WaterUpdates3
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.
● 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
Demo: Extract Geodatabase differences
● FME 2016.1 enables a range of database functionality, including easier SQL editing.
● Use FME to extract differences between Geodatabase versions or snapshots.
Resources
know
ledg
e.sa
fe.
com
safe.com/webinar● Tips for PostGIS, Oracle, and SQL
Server● Become a Geodatabase Power User
Thank you!
Questions?
Resources: DatabasesDatabase Ranking: http://db-engines.com/en/ranking
Knowledge Center:On Esri FME Compatibility for Retired Esri Software Releases
Notes on FME and Esri Versions and Compatibility
Database updatesIncremental Database Updates using the FME format attribute fme_db_operation
Webinars:7 Spatial Database Tips for PostGIS, Oracle, and SQL Server5 Tips to Become an Esri Geodatabase Power User