Administering Your Microsoft SQL Server Geodatabase

Similar documents
Administering Your Oracle Geodatabase. Amit Kesarwani Mandar Purohit

Administering Your Oracle Geodatabase. Jim McAbee Mandar Purohit

An Introduction to Data Interoperability

Designing and Using Cached Map Services

Introduction to Geodatabase and Spatial Management in ArcGIS. Craig Gillgrass Esri

Create a personal geodatabase

Defined by coordinate Defined by coordinate. meaning, but is required for comparisons

ICIT. Brian Hiller ESRI Account Manger. What s new in ArcGIS 10

Working with Feature Layers. Russell Brennan Gary MacDougall

2. Recovery models ->

Best Practices with ArcSDE Technology. Katja Krivoruchko CA/NV/HI Technical Marketing ESRI

ArcPad An Introduction

ArcGIS Viewer for Microsoft Silverlight An Introduction

Data Interoperability An Introduction

ArcMap: Tips and Tricks

Editing Versioned Geodatabases : An Introduction

Esri Production Mapping An Introduction

Building Applications with the ArcGIS Runtime SDK for WPF

Leveraging SAP HANA and ArcGIS. Melissa Jarman Eugene Yang

Working with Metadata in ArcGIS

VMware AirWatch Database Migration Guide A sample procedure for migrating your AirWatch database

AGIC 2012 Workshop Leveraging Free RDBMS in ArcGIS

Using Python with ArcGIS

Administering your Oracle Geodatabase

Topology in the Geodatabase an Introduction. Erik Hoel Doug Morgenthaler

Data Store Management Best Practices. Bill Major Laurence Clinton

Administering your Postgres Geodatabase

ArcGIS Enterprise: Advanced Topics in Administration. Thomas Edghill & Moginraj Mohandas

Securing ArcGIS Server Services An Introduction

Automating Geodatabase Creation with Geoprocessing

VISIO DATABASE DIAGRAM SQL SERVER

Troubleshooting Performance Issues with Enterprise Geodatabases. Ben Lin, Nana Dei, Jim McAbee

Web AppBuilder Presented by

Python Scripting: Michael Potts, GISP. Geodatabase Administrator.

Esri Maps for SharePoint

Accessing and Administering your Enterprise Geodatabase through SQL and Python

Data Interoperability An Introduction

ArcGIS 9 Installation Guide: ArcSDE 64 bit for Microsoft SQL Server

emerchant API guide MSSQL quick start guide

ArcGIS Enterprise Security: An Introduction. Gregory Ponto & Jeff Smith

Perceptive TransForm E-Forms Manager

MySQL for Database Administrators Ed 4

2 Working with an Enterprise GeoDatabase

Publishing image services in ArcGIS

Understanding and using Metadata across the ArcGIS Platform. Aleta Vienneau Marten Hogeweg

Microsoft SQL Installation and Setup

Network Analyst: Performing Network Analysis

Synergetics-Standard-SQL Server 2012-DBA-7 day Contents

Esri s ArcGIS Enterprise. Today s Topics. ArcGIS Enterprise. IT4GIS Keith T. Weber, GISP GIS Director ISU GIS Training and Research Center

Esri Production Mapping: Configuring the Solution for Civilian Topographic Agencies. Sean Granata

Designing Database Solutions for Microsoft SQL Server 2012

Bomgar Vault Server Installation Guide

Design a Geodatabase. Rasu Muthurakku, Enterprise Solutions Architect / Consultant

Key Terms. Attribute join Target table Join table Spatial join

SQL Server DBA Course Content

Advanced Parcel Editing. Amy Andis Tim Hodson

Aretics T7 Installation Manual

ArcGIS Enterprise Security: An Introduction. Randall Williams Esri PSIRT

Esri s Spatial Database Engine. Today s Topics. ArcSDE. A spatial database engine that works on

Alter Schema Dbo Transfer Sql Server 2000

ArcMap Tips and Tricks

Using Python with ArcGIS

Best Practices for Designing Effective Map Services

Developing Qt Apps with the Runtime SDK

Activant Solutions Inc. SQL 2005: Server Management

High Availability and Disaster Recovery. Cherry Lin, Jonathan Quinn

ArcGIS Viewer for Flex Advanced Topics

IBM Spectrum Protect Version Introduction to Data Protection Solutions IBM

Sql Server Cannot Delete User Owns Schema

Integrating ArcGIS to Enterprise Oracle Spatial Using Direct Connect

One Schema In Sql Server 2005 Management >>>CLICK HERE<<<

Spatially Enable Your DBA PUG Miles Phillips LandWorks, Inc Feb 27, 2008

Architect your deployment using Chef

Installing SQL 2005 Express Edition

Utility Network Management in ArcGIS: Migrating Your Data to the Utility Network. John Alsup & John Long

How To Change Existing Table Schema In Sql Server 2008

Sage Installation and Administration Guide. May 2018

Understanding and Using Metadata in ArcGIS. Adam Martin Marten Hogeweg Aleta Vienneau

ArcGIS Pro SDK for.net: An Overview of the Geodatabase API. Colin Zwicker Ling Zhang Nghiep Quang

Updating your Database Skills to Microsoft SQL Server 2012

IBM Tivoli Storage Manager Version Introduction to Data Protection Solutions IBM

Installing SQL Server Developer Last updated 8/28/2010

ArcGIS Viewer for Silverlight Advanced Topics

ArcGIS for Server Michele Lundeen

SQL 2005 BACKUP AND RESTORE USER MANUAL ARCHIVE

Caching Imagery Using ArcGIS

SQL Server DBA Online Training

DOWNLOAD PDF SQL SERVER 2012 STEP BY STEP

Microsoft. Designing Database Solutions for Microsoft SQL Server 2012

Administering Your ArcGIS Enterprise Portal Bill Major Craig Cleveland

ArcSDE 8.1 Questions and Answers

System Design and Tuning

ArcGIS Server and Portal for ArcGIS An Introduction to Security

Course Description. Audience. Prerequisites. At Course Completion. : Course 40074A : Microsoft SQL Server 2014 for Oracle DBAs

SQL SERVER DBA TRAINING IN BANGALORE

SQL Server DBA Course Details

High Availability & Disaster Recovery. Witt Mathot

MS SQL Server DBA Training Course. Table of Contents

MCSA SQL SERVER 2012

Maintain Geodatabase

Transcription:

Esri International User Conference San Diego, California Technical Workshops July 25, 2012 Administering Your Microsoft SQL Server Geodatabase Thomas Dunn and Shannon Shields

Topics for this presentation News since last UC How do I... - Configure SQL Server to support geodatabases? - Create databases and geodatabases? - Choose from among spatial data storage options? - Organize my data? - Control access to my data? - Make sure that my data is safe? - Improve performance? Please submit your review of this session at esri.com/ucsessionsurveys Session offering #1912 Thank you!

News ArcGIS and Microsoft changes since last year

Connections to Geodatabases and Databases At 10.1 you can easily access spatial data in a database that is not a geodatabase through a regular connection (not just with Query Layers or the Data Interoperability Extension) At 10.1, you can easily create a geodatabase in a new or existing database using GP tools

Support at 10.1 for new Microsoft database releases SQL Server 2012 - Support for SQL Server 2008 R2-level database functionality - Support for some new features coming later Windows Azure SQL Database - Support for databases - but not geodatabases ArcGIS direct connections now support mirrored databases

Deprecations at ArcGIS 10.1 Multiple Database Model geodatabases - Existing geodatabases continue to work - Cannot create new MDM-GDBs - MDM-GDB will become a single database automatically (in the database named SDE) when the last table is removed from associated user databases SQL Server 2005 - Connections can be made earlier geodatabases via pre-10.1 application server Many command line tools are being replaced by Desktop UI and geoprocessing tools - SDESETUP is replaced by GP tool

How do I? Common questions when working with SQL Server databases and geodatabases

How do I configure SQL Server to support geodatabases?

How do I configure SQL Server to support geodatabases? Install a supported version of SQL Server Database Engine is the only required component Must use Case-Insensitive (CI) collation Can use either Windows or Mixedmode authentication The SQL Server Browser can be enabled but not required

What is the SQL Native Client? Microsoft stand-alone DLL required for connections to SQL Server - Provides support for all data types and commands - Must be installed on all client machines that connect to SQL Server Use SQL Native Client software at least as new as the SQL Server database engine - Multiple versions may be installed side-by-side - MDAC no longer supported: use SQL Native Client

SQL Native Client Location ArcGIS Client Direct Connection (SQL commands) SQL Server Client Computer SNaC giomgr SNaC App Server Connection (SDE commands) Server Computer

A note about Compatibility Level Upgrade database compatibility level after upgrading SQL Server - Sets certain database behaviors - When databases are upgraded they retain existing compatibility level Using Geography spatial type? - Upgrade compatibility to 110 when upgrading to 2012 from 2008 or 2008R2 Description of compatibility level differences http://msdn.microsoft.com/en-us/library/bb510680

Points to remember SQL Server Database Engine is only required component on the server The SQL Native Client is required by applications that send SQL commands to SQL Server, including ArcGIS Only Case-Insensitive collations

How do I create databases and geodatabases?

How do I create databases and geodatabases? A database is a SQL Server object - There can be many per SQL Server instance A geodatabase is an ArcGIS construct hosted in a database - One allowed in each database Options for creating geodatabases - Use a GP tool to create a new geodatabase from scratch - Use a GP tool to create a new geodatabase in an existing database

Choosing a geodatabase schema DBO - Owned by the DBO built-in user - Multiple logins can be DBO, so a headless login is not needed - Easier to use Windows authentication for administrator SDE - Owner is the database user named SDE - SDE user needs fewer permissions than DBO - No geodatabase users need to be DBO

Creating databases and geodatabases Demo

Points to remember Geodatabases are ArcGIS constructs stored in databases GP tools provide a simple way to create a geodatabase - Enterprise geodatabases are 500MB with a 125MB logfile For more control over database storage, first create the database using SQL Server tools, then create the geodatabase GP tool creates databases in Full Recovery mode - Change to Simple recovery if you don t want to manage backups Don t rename a database that contains a geodatabase

How do I choose from among spatial data storage options?

How do I choose from among spatial data storage options? All perform on par with one another SDEBINARY has characteristics similar to Geometry, but is stored and indexed differently Geometry and Geography can be accessed using T-SQL

How are Microsoft Spatial Types used with ArcGIS Feature Classes? SQL Server has few restrictions on how spatial type columns are used. ArcGIS feature classes use spatial data type columns in specific ways: Spatial type column appears in Business & Adds tables SQL Server creates and maintains spatial index based on parameters provided by ArcGIS All shapes in a column must have same Shape.STSrid - Controlled by check constraint created by ArcGIS and enforced with a SQL Server All shapes must be same type (point, line, polygon)

How does ArcGIS store non-simple shapes in Geometry or Geography? Some ArcGIS feature elements like parametric curves and point IDs are stored in a side table. Named SDE_GEOMETRY<registration_id> Contains rows only for each feature that has one or more of these elements Joins to only after it contains rows

What are the rules when using the Geography Spatial Type with ArcGIS? Must have SRID defined in SQL Server data dictionary (SQL Server rule) Cannot violate hemisphere rule (SQL Server 2008 rule) Cannot have Z or M dimensions (ArcGIS rule) - For performance reasons, ArcGIS uses Well-Known Binary (WKB) interface for validating shapes (hemisphere rule) - SQL Server WKB implementation uses 1999 OCG specification for WKB, which does not support Z or M

T-SQL Access to Geometry and Geography Query attributes of individual features (area, length) Perform spatial queries based on comparing shapes Combine spatial and non-spatial attributes in queries Leverage T-SQL spatial functions in definition queries and views 20-minute session: Using SQL with your Geodatabase - Was held on Tuesday 8:30am.

Points to remember Three storage types are available: SDEBINARY, Geometry and Geography In Geography, calculations are done using Great Ellipse line interpolation, while the others use Cartesian SQL Server manages spatial indexes on Geometry and Geography Microsoft spatial data types provide SQL access to spatial data

How do I organize my data? To understand how to organize you data (and grant access to your data) you must first become familiar with the basics of the SQL Server database structure

SQL Server Principals Logins = Authentication - Who is logging on? Users = Authorization - What can this person do in the database? Schemas = Containers - What are the logical groups of database objects that should be managed as a whole?

Logins SQL Server Instance Databases Users Schemas Schemas Procedures Tables and and Tables Views and Functions and Views Procedures Functions

User-schema relationship ArcGIS requires that the database user name and its default schema name are the same for users that create data - Not a SQL Server requirement Users that are DBO all create data in the DBO schema Data readers & editors need not have a same-named schema

User-schema with Windows groups A Windows group can be added as a login - Associate the login with a database user - Do not create a matching schema For logins that will create data, SQL Server automatically creates corresponding user and schema Recommendation: Data should be created through explicit Windows or SQL Server login - Associate login with data creator user - Restrict permission for creating data to those users - Use group logins for data readers or data editors

How do I control access to my Access to SQL Server objects are managed with permissions granted to logins, users, server roles and database roles data?

Limit Permissions for Most Users Admin Data Owners Data Editors Data Readers

Who is DBO? Sysadmin fixed-server role members are DBO in every database Database owner Is DBO in single database Db_owner role members are NOT DBO Have DBO-like permissions

Permissions needed to read, edit or create data Task Creator Editor Reader Required permissions CREATE TABLE, CREATE PROCEDURE and CREATE VIEW* SELECT, INSERT, UPDATE and DELETE on objects** plus EXECUTE on stored procedures used to generate sequential values SELECT on tables** * Needed to create multiversioned views on versioned data ** Including feature, SDEGEOMETRY, versioning and archiving support tables, if present

Permissions needed to manage users Task Create geodatabase user Create database role Compress geodatabase Kill geodatabase connections View all geodatabase users Required permissions Membership in sysadmin fixed server role CREATE ROLE SDE-schema: SDE user, DBO user or member of DB_OWNERS database role DBO-schema: DBO user or member of DB_OWNERS database role Membership in the processadmin fixed server role, and granted VIEW DEFINITION database permission VIEW DEFINITION database permission

Permissions needed to manage databases Task Create enterprise geodatabase Required permissions Membership in sysadmin fixed server role Upgrade geodatabase DBO user in database OR Member of DB_OWNERS fixed database role

Password Policies SQL Server uses Windows password policy - Password expiration rules - Complexity rules for strong passwords - Can be disabled Security policy is set in Windows, or the domain - Policies may vary from site to site

Managing permissions Demo

Points to remember Creating a user does not give access to data in the database it must be granted by the data owner ArcGIS tools manage permissions on all parts of a feature class, not just the business table Creating a user with the Create User tool will grant permissions sufficient for creating data

How do I make sure that my data is safe? Backups are the only way to reliably protect your data

How do I make sure that my data is safe? Backups allow you to recover from: - Media failures - User errors - Hardware failures - Natural disasters Also, backups can be used for: - Copying or moving data between servers - Setting up database mirroring or AlwaysOn Use BACKUP command or Backup task in Management Studio

Points to remember Backups are the only way to reliably protect your data 1. Decide how much time you can afford to lose when disaster strikes and data must be restored 2. Create a restore plan that will achieve that goal 3. Create a backup plan that supports your restore plan 4. Implement your plan 5. Test your recovery plan regularly by using real backup media to restore to a development system

How can I improve performance?

Common Performance Tuning Objectives Improve spatial query performance Improve Query Layer or spatial view performance Improve overall geodatabase performance

Performance Tuning Demo Tune a spatial index Prototype a query Maintain a geodatabase

Points to remember Spatial Index pitfalls - Gigantic extent - Improper tessellation settings Tune queries beforehand - Prototype, trace, examine execution plan Query Layers and spatial views - Simple is better (and faster) Perform geodatabase maintenance - Compress regularly - Update index statistics - Revisit workflows

Related Demo Theater Presentations These Demo Theater presentations start in a few minutes Working with Microsoft SQL Server Express Geodatabases - Demo Theater, Hall C, Wednesday 7/25 from 12:00 to 12:30 Using Microsoft SQL Server Profiler to Troubleshoot - Demo Theater, Hall C, Wednesday 7/25 from 12:30 to 1:00 Please submit your review of this session at esri.com/ucsessionsurveys Session offering #1912 Thank you!

Steps to evaluate UC sessions My UC Homepage > Evaluate Sessions Choose session from planner OR Search for session This is Session #1912 www.esri.com/ucsurveysessions