SQL Server to Oracle A Database Migration Roadmap



Similar documents
Module 2: Database Architecture

SQL DATABASE PROGRAMMING (PL/SQL AND T-SQL)

Oracle Architecture, Concepts & Facilities

Migration to SQL Server With Ispirer SQLWays 6.0

Many DBA s are being required to support multiple DBMS s on multiple platforms. Many IT shops today are running a combination of Oracle and DB2 which

AV-004: Administering and Programming with ORACLE

Oracle Database Cross Platform Migration Lucy Feng, DBAK

Database Extension 1.5 ez Publish Extension Manual

Topics Advanced PL/SQL, Integration with PROIV SuperLayer and use within Glovia

Oracle 11g Database Administration

Expert Oracle. Database Architecture. Techniques and Solutions. 10gr, and 11g Programming. Oracle Database 9/, Second Edition.

Oracle Database 10g: Administration Workshop II Release 2

Oracle. Brief Course Content This course can be done in modular form as per the detail below. ORA-1 Oracle Database 10g: SQL 4 Weeks 4000/-

Oracle DBA Course Contents

ORACLE DATABASE 11G: COMPLETE

Oracle to MySQL Migration

Oracle 11g DBA Online Course - Smart Mind Online Training, Hyderabad. Oracle 11g DBA Online Training Course Content

Firebird. A really free database used in free and commercial projects

Oracle Database: SQL and PL/SQL Fundamentals NEW

An Oracle White Paper January Oracle Database 12c: Full Transportable Export/Import

Oracle 11g DBA Training Course Content

Migrating Non-Oracle Databases and their Applications to Oracle Database 12c O R A C L E W H I T E P A P E R D E C E M B E R

Oracle Database 12c Enables Quad Graphics to Quickly Migrate from Sybase to Oracle Exadata

Cross Platform Transportable Tablespaces Migration in Oracle 11g

Oracle Database 10g: New Features for Administrators

Real-time Data Replication

Oracle 11g New Features - OCP Upgrade Exam

Oracle Database Creation for Perceptive Process Design & Enterprise

SQL Server for developers. murach's TRAINING & REFERENCE. Bryan Syverson. Mike Murach & Associates, Inc. Joel Murach

D12C-AIU Oracle Database 12c: Admin, Install and Upgrade Accelerated NEW

Oracle Database 11g: New Features for Administrators DBA Release 2

An Oracle White Paper June Migrating Applications and Databases with Oracle Database 12c

A Migration Methodology of Transferring Database Structures and Data

Optimizing with Open Source Technology Postgres

Migrate Topaz databases from One Server to Another

Oracle Database 12c: Administration Workshop NEW

<Insert Picture Here> Oracle Database Directions Fred Louis Principal Sales Consultant Ohio Valley Region

COURCE TITLE DURATION. Oracle Database 11g: Administration Workshop I

Geodatabase Programming with SQL

How To Create A Table In Sql (Ahem)

Oracle Architecture. Overview

Informatica Data Replication FAQs

Rob Zoeteweij Zoeteweij Consulting

- An Oracle9i RAC Solution

Oracle Database 12c: Administration Workshop NEW. Duration: 5 Days. What you will learn

Oracle Database Public Cloud Services

UNIVERSITY AUTHORISED EDUCATION PARTNER (WDP)

Database Migration from MySQL to RDM Server

Oracle vs. SQL Server. Simon Pane & Steve Recsky First4 Database Partners Inc. September 20, 2012

Objectif. Participant. Prérequis. Pédagogie. Oracle Database 11g - New Features for Administrators Release 2. 5 Jours [35 Heures]

Beginning SQL, Differences Between Oracle and Microsoft

Oracle Database 12c Recovery Manager New Features

Migrating Critical Business Applications to APEX Successfully

Oracle Database 11 g Performance Tuning. Recipes. Sam R. Alapati Darl Kuhn Bill Padfield. Apress*

EMBL-EBI. Database Replication - Distribution

ORACLE DATABASE 12C: NEW FEATURES FOR ADMINISTRATORS GRADE CURRICULAR. Enterprise Manager Express home page versus Enterprise Manager Database Control

DBMS Questions. 3.) For which two constraints are indexes created when the constraint is added?

Oracle Application Express MS Access on Steroids

Siebel Installation Guide for Microsoft Windows. Siebel Innovation Pack 2013 Version 8.1/8.2, Rev. A April 2014

MS-40074: Microsoft SQL Server 2014 for Oracle DBAs

Database migration. from Sybase ASE to PostgreSQL. Achim Eisele and Jens Wilke. 1&1 Internet AG

Database System Architecture & System Catalog Instructor: Mourad Benchikh Text Books: Elmasri & Navathe Chap. 17 Silberschatz & Korth Chap.

MyOra 3.0. User Guide. SQL Tool for Oracle. Jayam Systems, LLC

Oracle Database 10g: Backup and Recovery 1-2

RMAN BACKUP & RECOVERY. Recovery Manager. Veeratteshwaran Sridhar

Demystified CONTENTS Acknowledgments xvii Introduction xix CHAPTER 1 Database Fundamentals CHAPTER 2 Exploring Relational Database Components

Comparing Microsoft SQL Server 2005 Replication and DataXtend Remote Edition for Mobile and Distributed Applications

Oracle Database 12c: Admin, Install and Upgrade Accelerated

SharePlex for SQL Server

Oracle Database 12c: New Features for Administrators

Conventional Files versus the Database. Files versus Database. Pros and Cons of Conventional Files. Pros and Cons of Databases. Fields (continued)

SQL Databases Course. by Applied Technology Research Center. This course provides training for MySQL, Oracle, SQL Server and PostgreSQL databases.

Ontrack PowerControls V8.1 for SQL ReadMe

Oracle Database 12c: Introduction to SQL Ed 1.1

Top 10 Oracle SQL Developer Tips and Tricks

UC BERKELEY EXTENSION

Consolidate by Migrating Your Databases to Oracle Database 11g. Fred Louis Enterprise Architect

Protecting Data Assets and Reducing Risk

news from Tom Bacon about Monday's lecture

Copyright 2014, Oracle and/or its affiliates. All rights reserved.

SQL Server Training Course Content

3.GETTING STARTED WITH ORACLE8i

Bruce Momjian June, Postgres Plus Technical Overview

Sivakumar Software Engg, Zagro Singapore Pte Ltd .

Oracle 1Z0-528 Exam Questions & Answers

4 Simple Database Features

ORACLE DATABASE 10G ENTERPRISE EDITION

<Insert Picture Here> Oracle In-Memory Database Cache Overview

Maximizing Materialized Views

Customer evaluation guide Toad for Oracle v12 Database administration

Oracle Database 11g: Administration Workshop I

CON5604 Upgrade from Siebel CRM 7.7 to 8.1 in Germany s Largest Loyalty Program Moscone West /01/14, 11:30-12:15

Oracle Migration Workbench

Oracle Database 11g R1 & R2: New Features for Administrators

Automatic Data Optimization

Transcription:

SQL Server to Oracle A Database Migration Roadmap Louis Shih Superior Court of California County of Sacramento Oracle OpenWorld 2010 San Francisco, California

Agenda Introduction Institutional Background Migration Criteria Database Migration Methodology SQL/Oracle Tool for Data Migration Questions 2

Institutional Background DataBase Migration Roadmap The Superior Court of California (SacCourt), County of Sacramento is part of the statewide justice system of 58 trial courts, Appellate Courts and the California Supreme Court. Each county operates a Superior Court that adjudicates criminal, civil, small claims, landlord-tenant, traffic, family law, and juvenile dependency and delinquency matters. SacCourt has 60 judicial officers and 760 staff who processed over 400,000 new cases filed in FY 2008-09. Our Mission is to assure justice, equality and fairness for all under the law. 3

Database Environment DataBase Migration Roadmap SQL Server SQL Server 6.5, 2000, 2005 32-bit on Window SQL Server 2008 64-bit on VMWare/Physical Hardware Oracle Oracle 10G R2, 10G R2 RAC on Sun SPARC Solaris 10 Oracle Enterprise Manager, Grid Control on Window Oracle Application Express Oracle Migration Workbench 4

Migration Objectives DataBase Migration Roadmap Validate the purpose of migration. Achieve Return of Investment. Compatibility of Hardware and Software. Accomplish Physical and Logical Model. Meet Source and Target Application/Database Criteria. Minimize Outage Time. No single best method for all cases! 5

Analyze Plan Database Architecture Cost-Effectiveness Risk Mitigation Routines Downtime Perform Data Migration Verify Migration Process DataBase Migration Roadmap Migration Success 6

Migration Methodology Recommend approaches DataBase Migration Roadmap Traditional Waterfall System Life Cycle over Rapid Application Development As-Is approach Upgrade after migration. Automate using Oracle Migration WorkBench. Create custom installation scripts. 7

SQL to Oracle Migration DataBase Migration Roadmap 1. Physical and Logical Structure 1.1 Characteristics 1.2 Data Types/Storage 1.3 Recommendations 2. Stored Procedures 3. SQL Migration 4. Database Design 5. Schema Design 6. Data Migration 7. Security 8

Map Similar Database Objects Schema objects, data types Referential integrity, constraints, rules Triggers, stored procedure, system catalogs DataBase Migration Roadmap Physical and Logical Structure Map Different Database Objects Connection types or models Temporary tables Application programming Data migration 9

Physical and Logical Structure SQL Server Oracle Instance/Database Memory Process Memory Process (Dedicated/Shared) SMON PMON MMON.. Master DB Model, Msdb, Tempdb, resource (2008) Database 1 Database 2 Master = System Tablespace Model = Template Tempdb = Undo Msdb = Agent Services System Tablespace (System, Sysaux, Temp, Undo) User 1 Tablespace User 2 Tablespace Database System = Sys Objects Sysaux = 10g Nonsys Objects Temp = Sorting Undo = Rollback, Recover 10

1.1 Characteristics DataBase Migration Roadmap Physical and Logical Structure SQL Instances/Database Case Insensitive Database Database and Database Owner (DBO) Database T-SQL Stored Procedure Triggers Complex Rules Identity Property for a Column View Oracle SGA/SID N/A Database Schema Tablespace PL/SQL Procedure, Function or Package After Triggers Before Triggers, Trigger for Each Row Sequences View, M-View 11

1.1 Characteristics (Cont.) DataBase Migration Roadmap Physical and Logical Structure SQL Transaction Logs Per Database Auto Commit Manual Exception SA Account sysconfig Oracle Transaction Logs for Entire Database Manual Commit or Rollback Default Exception System/manager Account spfile 12

Physical and Logical Structure 1.2 Data Types/Storage SQL Integer, Small Int, Tiny Int, Bit, Money, Small Money Real, Float Text Image Binary, VarBinary DateTime, Small DateTime Varchar2 (max) Varbinary (max) Oracle Number (10, 6, 3, 1, 19, 10) Float CLOB BLOB RAW Date LONG, CLOB LONG RAW, BLOB, BFILE 13

Physical and Logical Structure 1.2 Data Types/Storage (Cont.) SQL Database Devices Page Extent Segments Log Devices Data, Dump Oracle Datafile Data Block Extent and Segments Tablespace (Extent and Segments) Redo Log Files N/A 14

Physical and Logical Structure 1.3 Recommendations SQL MS Applications tend to use ASP on Clients. ASP uses ADO to communicate to DB. DB Library IIS/ASP Embedded SQL from C/C++ Stored Procedure return Multiple Sets Delphi, MS Access (Embedded SQL/C or MS Library) DBO.Database DTS/SSIS Oracle Use Oracle OLE/DB or migrate to JSP. Use Oracle OCI calls. IAS/Fusion on JAVA 2 Platform, J2EE Manual conversion Find driver support Reference Cursors (i.e. DataDirect). Use ODBC Driver. Transform to Single or Multiple Schema. Warehouse Builder 15

2. Stored Procedures Use Package for nested procedures. Use Functions for User-Defined Functions. Use Hints or CBO. Remove Create/Drop temporary tables. 16

3. SQL Migration TOP function Dynamic SQL No conversion Case statements Decode Unique identifier (GUID) ROWID or UROWID Example: select newid() vs. select sys_guid() from dual 17

4. Database Design Evaluate Constraints Entity Integrity Referential Integrity Unique Key Check Use Table Partitions. Apply Reverse Key for sequence generated columns. Apply Flashback for restoration. Use Oracle RAC, Active DataGuard for HA/DR. Use Transparent Data Encryptions and remove data encryptions. 18

4. Database Design (Cont.) Outer Joins Oracle Exceptions (i.e. no_data_found) Autonomous Transactions Records and Types Reverse Key for RAC environment 19

5. Schema Design Table (Data Types, Constraints) Numeric (10, 2) Number (10, 2) Datetime (Oracle 4712 BC, SQL 01/01/0001 12/31/9999) Views (Materialized views) Trigger (Functionality difference) Synonyms (Public or Private) Spatial Create table abc (id number (10) not null, geo dsys.sdo_geometry) vs. Create table abc (id number (10) not null, geo geography) 20

5. Schema Design (Cont.) Data Types Datetime 1/300 th of a second vs. 1/100 th million of a second Image and Text Image of data is stored as pointer vs. Image stored in BLOB and Text in CLOB User-Defined Equivalent to PL/SQL data type Table Design SQL Create table sample (datetime_col datetime not null, integer_col int null, text_col text null, varchar_col varchar2 (10) null) Oracle Create table sample (datetime_col date not null, integer_col number null, text_col long null, varchar_col varchar2 (10) null) 21

6. Data Migration SQL Loader Data Pump Stream Database Link or Transparent Gateway Create table as select. Insert as select. 22

7. Security Create user accounts in Oracle. Leverage default Role and Privs. Map user accounts to Role. 23

SQL/Oracle Tool for Migration Oracle Migration Workbench OEM/Grid Control Upgrade SQL to ver. 2005 with Transparent Gateway Oracle APEX Scripting 24

Questions LSHIH123@GMAIL.COM All Rights Reserved 2010