Presented By: Carlos Colón| February 27, 2016 8270 Woodland Center Blvd. Tampa, Florida 33614 | Phone: +1 813 322 3240 | www.doblerconsulting.com PLANNING.

Slides:



Advertisements
Similar presentations
Tales from the Lab: Experiences and Methodology Demand Technology User Group December 5, 2005 Ellen Friedman SRM Associates, Ltd.
Advertisements

The 4 T’s of Test Automation:
Configuration management
Performance Testing - Kanwalpreet Singh.
Upgrading the Oracle Applications: Going Beyond the Technical Upgrade Atlanta OAUG March 19, 1999 Robert Cooney.
Database Planning, Design, and Administration
Systems Implementation and Operation
Mecanismos de alta disponibilidad con Microsoft SQL Server 2008 Por: ISC Lenin López Fernández de Lara.
ITIL: Service Transition
Validata Release Coordinator Accelerated application delivery through automated end-to-end release management.
SOFTWARE PRESENTATION ODMS (OPEN SOURCE DOCUMENT MANAGEMENT SYSTEM)
Rational Unified Process
Copyright © 2009 Rolta International, Inc., All Rights Reserved a c c e l R12™ Upgrade Approach.
Database Administration
Computers: Tools for an Information Age
Microsoft Dynamics AX Technical Conference 2013
Lecture Nine Database Planning, Design, and Administration
Database Administration Chapter 16. Need for Databases  Data is used by different people, in different departments, for different reasons  Interpretation.
MSF Testing Introduction Functional Testing Performance Testing.
National Finance Center’s 2008 Customer Forum EmpowHR 9.0 Billy Dantagnan Teracore.
Microsoft ® Application Virtualization 4.6 Infrastructure Planning and Design Published: September 2008 Updated: February 2010.
November 2009 Network Disaster Recovery October 2014.
Introduction to Information System Development.
INFO 637Lecture #31 Software Engineering Process II Launching & Strategy INFO 637 Glenn Booker.
Database System Development Lifecycle © Pearson Education Limited 1995, 2005.
Overview of the Database Development Process
Ihr Logo Data Explorer - A data profiling tool. Your Logo Agenda  Introduction  Existing System  Limitations of Existing System  Proposed Solution.
Condor Technology Solutions, Inc. Grace RFTS Application Extension Phase.
Database Design for DNN Developers Sebastian Leupold.
Introduction to RUP Spring Sharif Univ. of Tech.2 Outlines What is RUP? RUP Phases –Inception –Elaboration –Construction –Transition.
Software Development *Life-Cycle Phases* Compiled by: Dharya Dharya Daisy Daisy
An Investigation of Oracle and SQL Server with respect to Integrity, and SQL Language standards Presented by: Paul Tarwireyi Supervisor: John Ebden Date:
1 Minggu 9, Pertemuan 17 Database Planning, Design, and Administration Matakuliah: T0206-Sistem Basisdata Tahun: 2005 Versi: 1.0/0.0.
MD Digital Government Summit, June 26, Maryland Project Management Oversight & System Development Life Cycle (SDLC) Robert Krauss MD Digital Government.
Computer Emergency Notification System (CENS)
Executive Invitation – Oracle Data Finder Service Oracle Corporation.
普 华 永 道 Phase 1: Project Preparation Phase 1: Project Preparation Phase Overview Phase Overview.
Module 13 Implementing Business Continuity. Module Overview Protecting and Recovering Content Working with Backup and Restore for Disaster Recovery Implementing.
Database Design and Management CPTG /23/2015Chapter 12 of 38 Functions of a Database Store data Store data School: student records, class schedules,
A Brief Documentation.  Provides basic information about connection, server, and client.
TESTING LEVELS Unit Testing Integration Testing System Testing Acceptance Testing.
1 Microsoft Project Solution Offerings and the next chapter of EPM September 17th, 2003 Brendan Giles, PMP Systemgroup Management Services.
Retail Business Processes PR 50121_07 Project Update Retail Market Subcommittee September 13, 2006 Adam Martinez Mgr, Market Operations DPO.
Database Administration
CASE (Computer-Aided Software Engineering) Tools Software that is used to support software process activities. Provides software process support by:- –
Upgrading from r4.1.4 to r7: Making a Smooth Transition Roger Suttmeier Support Distribution Manager June 14, 2006.
9 Copyright © 2009, Oracle. All rights reserved. Deploying and Reporting on ETL Jobs.
Alwayson Availability Groups
Software Quality Assurance SOFTWARE DEFECT. Defect Repair Defect Repair is a process of repairing the defective part or replacing it, as needed. For example,
Overview of RUP Lunch and Learn. Overview of RUP © 2008 Cardinal Solutions Group 2 Welcome  Introductions  What is your experience with RUP  What is.
Week 7 Lecture Part 2 Introduction to Database Administration Samuel S. ConnSamuel S. Conn, Asst Professor.
CHANGE READINESS ASSESSMENT Measuring stakeholder engagement and attitude to change.
Log Shipping, Mirroring, Replication and Clustering Which should I use? That depends on a few questions we must ask the user. We will go over these questions.
3 Copyright © 2006, Oracle. All rights reserved. Designing and Developing for Performance.
16 Copyright © 2004, Oracle. All rights reserved. Testing the Migrated Oracle Database.
9 Copyright © 2004, Oracle. All rights reserved. Getting Started with Oracle Migration Workbench.
Agenda for Today  DATABASE Definition What is DBMS? Types Of Database Most Popular Primary Database  SQL Definition What is SQL Server? Versions Of SQL.
1 DEPLOYMENT AND OPERATIONS MODULE 23 ECM SPECIALIST COURSE 1 Copyright AIIM.
11 Copyright © 2009, Oracle. All rights reserved. Enhancing ETL Performance.
SQL Database Management
Planning a Migration.
Planning an Effective Upgrade from SQL Server 2008
Dev Test on Windows Azure Solution in a Box
Kickoff Presentation Date of Presentation Presenter Name
Course: Module: Lesson # & Name Instructional Material 1 of 32 Lesson Delivery Mode: Lesson Duration: Document Name: 1. Professional Diploma in ERP Systems.
Overview Activities from additional UP disciplines are needed to bring a system into being Implementation Testing Deployment Configuration and change management.
System Analysis and Design:
Presentation transcript:

Presented By: Carlos Colón| February 27, Woodland Center Blvd. Tampa, Florida | Phone: | PLANNING AND EXECUTING A SUCCESSFUL SQL SERVER DATABASE MIGRATION

Presentation Topics ➤ Typical SQL Server Migration Plan ➤ Key Deliverables ➤ Database Migration Steps ➤ Brief Overview of SQL Server Migration Assistant Tool (SSMA) ➤ Common Problems in Database Migrations 2

What is NOT Covered ➤ Detailed SSMA Tutorial ➤ DBMS Specific Migration Information ➤ How to Build Target SQL Server System 3

Goals By the end of the presentation you will: ➤ Understand at a high level how to migrate a database to SQL Server ➤ Know how to avoid surprises by better planning ➤ Leverage SSMA as both a planning and a migration tool 4

Presenter Info 5 ➤ 20 years of experience in database development, administration, and project management ➤ B.S. in Management of Information Systems – USF ➤ Dobler Consulting lead of DBA Managed Services practice

SQL Server Migration Challenges ➤ All database migration projects are unique ➤ Differences in DBMS, configurations, SQL code, front-end applications, third-party tools, etc. ➤ Not all database system components can be migrated ➤ In most cases, logins cannot be migrated ➤ Third-party applications may not be compatible with SQL Server ➤ Embedded and dynamic SQL code has to be migrated manually ➤ Applications may require new drivers/connectors ➤ Scope of database migration project can be quite large ➤ Migration effort can include thousands of database objects and lines of code ➤ Not enough time to perform full regression/performance testing 6

Steps for Overcoming Challenges ➤ Thoroughly analyze existing database system ➤ Identify all components that must exist in target SQL Server environment ➤ Develop an approach for each component that will require manual migration ➤ Consider grouping components by categories that will implement the same approach (i.e. replace current transactional replication and failover solutions with AlwaysOn). ➤ Evaluate risks and contingency options ➤ Include adequate time for migration testing ➤ Plan to execute your database migration as many times as possible in your test environment ➤ Develop test approach to minimize risks ➤ Practice makes perfect! 7

Typical SQL Server Migration Plan I.Analysis II.Planning III.Build IV.Migrate, Test, Fix, Repeat V.Deployment VI.Support 8

Analysis Deliverables ➤ System Architecture Diagrams ➤ Map all components of AS-IS and TO-BE systems ➤ System Configurations ➤ Operating System, DBMS, Applications and Third Party tool versions ➤ For database, look for Collation, ANSI defaults, Quoted Identifier settings ➤ Hardware Specifications ➤ Identify server and storage requirements for target system ➤ Unless you are migrating to an existing SQL Server, you will need to order new hardware early in the project 9

Planning Deliverables ➤ Change/Source Code Version Management Plan ➤ Change happens, and you better be ready for it ➤ Develop a strategy to incorporate changes to source system without disrupting migration schedule ➤ Create new source code repository for migrated database objects ➤ Production Contingency/Back out Plan ➤ Get management buy-in early in the project ➤ Agree on checkpoints and who makes GO/NO-GO decisions ➤ Agree on criteria to implement contingency plan 10

Planning Deliverables ➤ Environment Plan ➤ Outline of environments to be used in migration project ➤ States what components from AS-IS and TO-BE systems will be included ➤ Document who will use the environment and when ➤ Project Schedule ➤ Leverage SSMA Migration Reports for estimating effort 11

Intro to SSMA Tool ➤ SQL Server Migration Assistant Overview ➤ Provides detailed migration assessment report with effort estimates ➤ Automates schema and data migration ➤ Available for four DBMS: Oracle, Sybase, MySQL, and Access ➤ Capable of migrating source DBMS to SQL Server 2005 or higher and to SQL Azure 12

SSMA as a Planning Tool ➤ SSMA features a Database Migration Assessment Report ➤ The report lists all database objects that will require manual effort for conversion ➤ Indicates the reason objects cannot be migrated automatically ➤ Provides rough estimates on manual effort ➤ Perform a test conversion to uncover additional issues ➤ SSMA may not catch all possible migration issues ➤ Errors may appear when loading migrated objects to SQL Server (i.e. improper use of quoted identifiers, computed columns, etc.) ➤ Do a test conversion to get a full picture of migration assessment 13

SSMA Configuration 14

SSMA Configuration 15

SSMA Configuration 16

SSMA Configuration 17

SSMA Configuration 18

SSMA Configuration 19

SSMA Configuration 20 Deprecated datatype

What Needs to be Built? 21

What Needs to be Built? 22

SSMA Migration Report 23

SSMA Migration Assessment Report 24 Right click on database

SSMA Migration Assessment Report 25

SSMA Migration Assessment Report 26 Click error to show code

How to Access Saved Report 27 Open with Excel

How to Access Saved Report 28

How to Access Saved Report 29 Develop approach for each error

SSMA Schema Migration 30 Right click on database

SSMA Schema Migration 31 Check error list

SSMA Schema Migration 32 Apply changes to SQL Server

SSMA Schema Migration 33

SSMA Schema Migration 34 Check error list

SSMA Data Migration 35

SSMA Data Migration 36 Check error list

SSMA Data Migration 37 Check error list

Develop Migration Scripts ➤ Develop scripts to execute schema migration ➤ Complete manual object migration in SQL Server ➤ Generate full set of scripts after SQL code is complete ➤ Recommended scripts: ➤ Create database scripts ➤ Create tables, views, functions, stored procedures ➤ Create triggers ➤ Create clustered indexes, primary key constraints ➤ Create non-clustered indexes ➤ Create foreign key constraints ➤ Create logins, roles, permissions ➤ Post migration scripts (i.e. computed columns) 38

Data Migration Options ➤ Easiest option is to use SSMA to perform data migration ➤ Test performance to determine best drivers to use ➤ For some DBMS source system, SSMA offers Client-Side or Server-Side migration ➤ Client-Side migration typically offers more driver options, data migration occurs on computer running SSMA ➤ Client-Side migration not recommended if running SSMA remotely ➤ Server-Side migration runs data migration on database server, but typically is more restrictive on driver options ➤ Test data migration the same way you would run it on Production! 39

Testing Converted Database Objects ➤ Develop a test approach focused on minimizing risk ➤ Full regression testing may be impractical on large systems ➤ Recommended approach is to unit test each database object ➤ Run each object on source and target system and compare output ➤ For objects where output does not match, perform additional testing and fix as needed ➤ Consider production parallel testing if possible ➤ Schedule UAT and Performance testing on target Production hardware ➤ Baseline performance of source system for critical functions and compare timings to target system ➤ Before final deployment, perform user acceptance on target Production hardware 40

Test Database Migration Cycles ➤ Schedule time to run database migration steps multiple time ➤ At a minimum, run through the database migration steps when setting up the test, QA test, and UAT environments ➤ Additional test migrations can be scheduled when refreshing test environments and when doing code drops ➤ Executing the migration steps multiple times provides more opportunities to uncover issues and to fine tune the process 41

Final Deployment ➤ Schedule a change moratorium prior to the final deployment ➤ Allows for migration scripts to be in a stable state prior to deployment ➤ Schedule one final test migration with the finalized scripts ➤ Any emergency fixes to source system can be applied to target system after final deployment ➤ All enhancements and non-critical fixes should be worked on new system ➤ Develop deployment plan ➤ Include contact information and hours when people need to be available ➤ Migration steps can take a long time, so schedule checkpoint meetings where people can get status information ➤ Consider having a dedicated person to coordinate communications 42

Contingency Plans ➤ Have a detailed plan ready to enable source system ➤ Preserve the state of source system to ensure back out plan is successful ➤ Do not make changes on SQL Server that will make back out plan harder ➤ Determine in advance the criteria for back out and who is responsible for making the decision ➤ Plan your final deployment with a back out plan in mind (do not make changes that will make backing out more difficult) ➤ Plan for an extended post-production support ➤ Some issues may arise days after the final deployment ➤ Plan to set aside time for support team to address any emergency fixes 43

Decommission Source System ➤ Before decommissioning source system consider: ➤ Script all database objects and archive in source code repository ➤ Create backups and determine retention plan ➤ Consider having a system available where source system can be restored if needed 44

Q&A 45

46