Administering your Enterprise Geodatabase using Python. Jill Penney

Similar documents
Geodatabase Programming with Python

Geodatabase Programming with Python John Yaist

Administering Your Enterprise Geodatabase using Python. Gerhard Trichtl

Geodatabase: Best Practices. Robert LeClair, Senior Instructor

Geodatabase Best Practices. Dave Crawford Erik Hoel

The File Geodatabase API. Craig Gillgrass Lance Shipman

Converting workflows from ArcSDE Command line in ArcGIS 10.3.x

Geodatabase Replication for Utilities Tom DeWitte Solution Architect ESRI Utilities Team

Geodatabase Management Pathway

Troubleshooting Replication and Geodata Services. Liz Parrish & Ben Lin

ArcGIS Enterprise: What s New. Philip Heede Shannon Kalisky Melanie Summers Sam Williamson

Innovation. The Push and Pull at ESRI. September Kevin Daugherty Cadastral/Land Records Industry Solutions Manager

Geodatabase An Introduction

Introduction to Portal for ArcGIS. Hao LEE November 12, 2015

ArcGIS Pipeline Referencing An Introduction. Anjali Bhangay William Isley

Performing Advanced Cartography with Esri Production Mapping

Geodatabase An Introduction

Working with the Geodatabase

ArcGIS Enterprise: What s New. Philip Heede Shannon Kalisky Melanie Summers Shreyas Shinde

Migrating Defense Workflows from ArcMap to ArcGIS Pro. Renee Bernstein and Jared Sellers

An ESRI Technical Paper June 2007 An Overview of Distributing Data with Geodatabases

Esri Production Mapping: Map Automation & Advanced Cartography MADHURA PHATERPEKAR JOE SHEFFIELD

Geodatabase Essentials Part One - Intro to the Geodatabase. Jonathan Murphy Colin Zwicker

EEOS 381 -Spatial Databases and GIS Applications

Introduction to Portal for ArcGIS

Using the File Geodatabase API. Lance Shipman David Sousa

Geoprocessing Tools at ArcGIS 9.2 Desktop

Geodatabase An Overview

Network Analysis Services in ArcGIS Enterprise. Deelesh Mandloi

Experiences and Directions in National Portals"

Safe to Save? Archive Options for Geodatabases. Jeff Essic North Carolina State University Libraries

DP Project Development Pvt. Ltd.

Portal for ArcGIS: An Introduction

Introduction to ArcGIS Server Development

Esri UC2013. Technical Workshop.

ESRI Survey Summit August Clint Brown Director of ESRI Software Products

Road Ahead: Linear Referencing and UPDM

ArcGIS Pro Q&A Session. NWGIS Conference, October 11, 2017 With John Sharrard, Esri GIS Solutions Engineer

ArcGIS Online Routing and Network Analysis. Deelesh Mandloi Matt Crowder

UNIT 4: USING ArcGIS. Instructor: Emmanuel K. Appiah-Adjei (PhD) Department of Geological Engineering KNUST, Kumasi

ArcGIS Earth for Enterprises DARRON PUSTAM ARCGIS EARTH CHRIS ANDREWS 3D

ESRI Quality Solution

ST-Links. SpatialKit. Version 3.0.x. For ArcMap. ArcMap Extension for Directly Connecting to Spatial Databases. ST-Links Corporation.

GIS Data Production and Editing Pathway

ArcGIS Runtime: Migrating Your Apps from ArcGIS Engine. Eric Bader Lucas Danzinger Mike Branscomb

Using CAD data in ArcGIS

CAD: Introduction to using CAD Data in ArcGIS. Kyle Williams & Jeff Reinhart

Geodatabase 101 Why, What, & How

Exelis and Esri Technologies for Defense and National Security. Cherie Muleh

ArcGIS. for Server. Understanding our World

GIS CONCEPTS ARCGIS METHODS AND. 3 rd Edition, July David M. Theobald, Ph.D. Warner College of Natural Resources Colorado State University

Introduction to ArcGIS Maps for Office. Greg Ponto Scott Ball

Steve Pietersen Office Telephone No

Network Analysis with ArcGIS Online. Deelesh Mandloi Dmitry Kudinov

Leveraging the OGC Capabilities of ArcGIS Server

ArcGIS Data Reviewer: Assessing Positional Accuracy. Roslyn Dunn

ArcGIS Enterprise: Administration Workflows STUDENT EDITION

2 Managing Distributed Data

Introduction to the 176A labs and ArcGIS Purpose of the labs

ArcGIS for Desktop. ArcGIS for Desktop is the primary authoring tool for the ArcGIS platform.

Python Raster Analysis. Kevin M. Johnston Nawajish Noman

ArcGIS Runtime: Migrating from ArcGIS Engine. Rex Hansen

Data Aggregation with InfraWorks and ArcGIS for Visualization, Analysis, and Planning

Portal for ArcGIS: An Introduction. Catherine Hynes and Derek Law

Performing Map Cartography. using Esri Production Mapping

Subwatersheds File Geodatabase Feature Class

ArcGIS Data Reviewer: Quality Assessment for Elevation Raster Datasets. Roslyn Dunn

No. of Days. ArcGIS 3: Performing Analysis ,431. Building 3D cities Using Esri City Engine ,859

No. of Days. ArcGIS Pro for GIS Professionals ,431. Building 3D cities Using Esri City Engine ,859

Leveraging ArcGIS Online Elevation and Hydrology Services. Steve Kopp, Jian Lange

ArcGIS for Local Government

Deploying and Maintaining a Multiuser Geodatabase. Student Edition

Esri Training by Microcenter Prepare to Innovate. Microcenter Course Catalog

Map Application Progression

Arcgis Enterprise Performance And Scalability Best Practices

GIS FOR PLANNING. Course Overview. Schedule. Instructor. Prerequisites. Urban Planning 792 Thursday s 5:30-8:10pm SARUP 158

Troubleshooting Replication and Geodata Service Issues

Oracle Spatial: Essentials

CHAPTER 22 GEOGRAPHIC INFORMATION SYSTEMS

No. of Days. Building 3D cities Using Esri City Engine ,859. Creating & Analyzing Surfaces Using ArcGIS Spatial Analyst 1 7 3,139

Geospatial Products V8i (SELECTseries 1)

What s New in ArcGIS 10.1 for Desktop. Karen Li Date: October 31, 2012

ArcGIS for INSPIRE. Marten Hogeweg

What s New in Collector for ArcGIS (Aurora)

INTRODUCTION TO ARCGIS Version 10.*

Esri WebGIS Highlights of What s New, and the Road Ahead

ArcGIS Pro: Analysis and Geoprocessing. Nicholas M. Giner Esri Christopher Gabris Blue Raster

Linear Referencing in Boulder County, CO. Getting Started

Introduction to the 176A labs and ArcGIS

Geog 469 GIS Workshop. Managing Enterprise GIS Geodatabases

Why GIS & Why Internet GIS?

Ready for INSPIRE.... connecting worlds. European SDI Service Center

This paper outlines the steps we took to process the repository file into a Geodatabase Utility Data Model for Bloomfield Township s analysis.

GIS Boot Camp for Education June th, 2011 Day 1. Instructor: Sabah Jabbouri Phone: (253) x 4854 Office: TC 136

ArcGIS for AutoCAD Esri International User Conference July 8 12, 2013 San Diego, California Technical Workshop

Leveraging Web GIS: An Introduction to the ArcGIS portal

Welcome to NR502 GIS Applications in Natural Resources. You can take this course for 1 or 2 credits. There is also an option for 3 credits.

Generating Scheduled Rasters using Python

Solving the European Data Puzzle Simplifying INSPIRE Challenges and Usage. con terra GmbH Dipl.-Ing. Mark Döring

D2D SALES WITH SURVEY123, OP DASHBOARD, AND MICROSOFT SSAS

Transcription:

Administering your Enterprise Geodatabase using Python Jill Penney

Assumptions Basic knowledge of python Basic knowledge enterprise geodatabases and workflows You want code Please turn off or silence cell phones

Roadmap Session is divided into three parts Part 1: What is the geodatabase Part 2: Geodatabase Creation Part 3: Version Management Demos throughout

Why Python Free Simple and easy to learn Easy to maintain Wide-acceptance Modular Cross platform Scheduling

What is the Geodatabase A physical store of geographic data - Scalable storage model supported on different platforms Core ArcGIS information model - A comprehensive model for representing and managing GIS data - Implemented as a series of simple tables A transactional model for managing GIS workflows Set of components for accessing data

Geodatabase system tables System tables store definitions, rules, and behavior for datasets Tracks contents within a geodatabase Stores some database level metadata - Versions, domains, etc. Admin operations: Version management Connection management Geodatabase upgrade System tables XML User data SQL Type

User-defined tables Stores the content of each dataset in the geodatabase - Datasets are stored in one or more tables Administrative Operations: - Granting/revoking privileges - Updating statistics/indexes - Registering as versioned - Adding global id s System tables - Enabling editor tracking XML User data SQL Type

Types of administrators Database administrator (DBA) Geodatabase administrator Data owner (aka dataset administrator) May or may not be the same person.

Types of administrators Database Database administrator (DBA) Instance level admin

Types of administrators Geodatabase Geodatabase administrator Owns the geodatabase repository

Types of administrators Data Owner Dataset administrator - Granting privileges to data - Modifying schema of data - Database statistics and index maintenance

Connections A connection file is needed to access an enterprise geodatabase Control how you are connected to the database What user is connected - Creating data - Schema changes - Administering the geodatabase Instance/database you are connected to Version, historical archive or moment in time Changing properties requires new connection files.

How to create a connection Create Database Connection geoprocessing tool - Output.sde file - Can connect to both databases and geodatabases

Demo 1 Creating Connections

Geodatabase Creation with Python

Enabling geodatabase behavior You already have an existing database Enable Enterprise Geodatabase - From an existing database you can enable geodatabase functionality Must connect as appropriate user. Run as GDB Admin.

Creating Enterprise Geodatabases Create Enterprise Geodatabase tool When you have a need for: - Creating testing or development environments - Database does not already exist Run as DBA

Creating Users Create database user tool Creates a user in enterprise geodatabase or database Cannot create geodatabase administrative user Run as DBA.

Creating Database Roles Makes it easier to assign privileges to a group Prior to creating users in the geodatabase When creating users you can assign them to a role Run as DBA.

Demo 2 How to Create a Geodatabase

Creating and Loading Data Numerous tools for creating any type of data: - Create table, Create feature class, Create Raster Dataset, etc. - Create Geometric Network, Create Topology, Create Domain, etc. Also tools for loading data: - Feature class to feature class (single) - Feature class to geodatabase (multiple) - Import XML workspace Write a custom script Run as data owner

Configuration Keywords New tool at 10.3 for managing keywords Export and import - Export Geodatabase Configuration Keyword tool - Import Geodatabase Configuration Keyword tool Workflow - Export - Edit with text editor - Import Run as GDB Admin

Managing privileges Allow other users of the geodatabase to view or edit data that you own Change privileges tool Allows multiple input datasets to be passed in Grant view only or view and edit - View = select - Edit = insert, update, delete Must be connected as data owner

Demo 3 Putting it all together Geodatabase Creation

Version administration

Parts of the version administration workflow Reconciling, posting, compressing Updating statistics and indexes on system tables Updating statistics and indexes on user data tables Managing user connections

Disconnecting user connections A user who is connected but has gone home Create a cold backup of the database Running large queries that are using up resources

Managing user connections with arcpy functions Block/allow connections - arcpy.acceptconnections - Provide boolean Finding connected users - arcpy.listusers - Returns a tuple of properties for each connected user - ID, name, machine name, connection time, connection type Disconnecting users - arcpy.disconnectuser - Use ids provided from listusers function or use ALL keyword

Disconnecting services Services connect as regular users Disconnecting all users will disconnect services ArcGIS Server logic will try to reconnect Workflow: - Block connections - Stop service - Perform administrative tasks - Allow connections - Start service

Demo 4 Connection Management

Reconciling and Posting Versions Reconcile = pulling changes from a parent to child version Post = pushing reconciled changes to parent version from child Reconcile versions tool Recommended to run as geodatabase administrator Run as GDB admin or data owner

Compressing your geodatabase Compress geoprocessing tool Run regularly - Trims states - Moves edits from delta tables Run as GDB admin

Indexes and Statistics Update after major data change events - Reconcile - Compress - Appending data - Typically not necessary after loading new data Can be done by both: - Geodatabase Admin (system tables) - Data owner (data tables) We suggest to run regularly.

Demo 5 Version Maintenance

Summary

Please Take Our Survey! Administering your Enterprise Geodatabase using Python Download the Esri Events app and go to DevSummit Select the session you attended Scroll down to the Feedback section Complete Answers, add a Comment, and Select Submit

Administering your Enterprise Geodatabase using Python Slides and Code http://esriurl.com/pygdb2017