Oracle To Sql Server migration process


Published on

Published in: Technology
1 Like
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide
  • Key Aspects of a Migration The keys aspects of a migration are covered in the following lessons of this course: Planning a Migration Getting Started with Oracle Migration Workbench Performing a Migration Using Oracle Migration Workbench (Part I) Performing a Migration Using Oracle Migration Workbench (Part II) Application Migration: Overview Migrating SQL Statements Managing Transactions and Data Concurrency Migrating Stored Procedures and Triggers Testing the Migrated Oracle Database
  • The main areas of concern when migrating are: database migration(data and schema) and application migration(3GL/4GL code and SQL). There may be other items to migrate such as: DBA maintenance scripts, backup and recovery processes, user documentation, system documentation and test scripts. These are not discussed in this presentation.
  • Temporary tables - No Oracle equivalent to SQL Server or Sybase “pound” (temporary tables). Converter handles all issues and 8i provides session level global temporary tables. Results Set - Oracle is cursor based ( is optimized this way). SQL Server is streamed based (TDS). Datetime - SQL Server carries date and time to the millisecond. Note an issue any more with Oracle9i. Open Sever - No exact equivalent. Oracles’ Network Computing Architecture which uses Oracle Web Application Server is the same type of 3-tier multi-threaded listener process. More on this later.
  • Evaluation of Migration Requirements Understand your business requirements Develop a migration plan aligned with your strategic goals Include optional services such as education, performance tuning and Oracle Outsourcing, as required Assessment of Application System Delivery of application system to Oracle Assessment of the database and/or application Assessment report and statement of work Migration Migration of database and/or application Migration report Improvement and Optimization (optional) Adoption of key Oracle technology and features such as Real Application Clusters (RAC) and partitioning Performance tuning Implementation of operational procedures such as back up and recovery, database re-organization, and active monitoring Customer Acceptance Testing Perform a full system test to confirm that the migrated application behaves as expected Notify Oracle that the application is accepted or of any issues Production Application system goes live on the Oracle platform! Project Post Mortem You provide feedback to Oracle about the migration project Oracle ensures you have everything you require to make the migration a success Join the Oracle Customer Reference Program
  • What is Oracle Migration Workbench? Oracle Migration Workbench (Migration Workbench) is a wizard-driven tool that simplifies the process of migrating from third-party databases to the Oracle platform. You use Migration Workbench to migrate the entire schema including triggers and stored procedures. Oracle has made this tool available since 1988.
  • Migration Workbench Capabilities Many features of Migration Workbench simplifies the process of database migration. Using the tool, you perform the migration in stages using wizards and scripts and customize work-in-progress database objects in a repository that is separate from your production environment. To retrieve the SQL Server database information, you have an option either to connect to the SQL Server database directly or to run a script to extract that information, which you subsequently load into the repository. During the migration process, you monitor informational, warning, and error messages displayed in the Progress window. During the Assessment phase and Migration phase, you can also generate reports about the database objects to determine the amount automation Migration Workbench can achieve. Migration Workbench also parses and transforms Transact-SQL stored programs to Oracle PL/SQL. Note: Migration Workbench does not parse and transform all Transact-SQL constructs automatically. You may need to convert some stored procedures, triggers, and views manually. Details are covered in Lesson 16 Stored Procedures and Triggers Comparison . Overall, Migration Workbench makes the migration project easier to manage. By using Migration Workbench, you maximize automation of the migration process and reduce the effort and risks involved in the migration.
  • Oracle To Sql Server migration process

    1. 2. <Insert Picture Here> Database Migration SQL Server to Oracle11g
    2. 3. Key Aspects of a Migration <ul><li>What is migration? </li></ul><ul><ul><li>Conversion of an existing application environment into a new architecture by preserving data and functionality of the old architecture </li></ul></ul><ul><li>What are the key components in a migration? </li></ul><ul><ul><li>Schema (table definitions) </li></ul></ul><ul><ul><li>Data (content of tables) </li></ul></ul><ul><ul><li>Application </li></ul></ul><ul><li>What are the major steps in a migration? </li></ul><ul><ul><li>Analysis </li></ul></ul><ul><ul><li>Migration </li></ul></ul><ul><ul><li>Testing </li></ul></ul><ul><ul><li>Deployment </li></ul></ul>
    3. 4. Migration - SQL Server to Oracle11g <ul><li>Migration Process </li></ul><ul><li>Oracle Migration Workbench </li></ul><ul><li>Database Migration Verifier </li></ul>
    4. 5. Process <ul><li>Migrating Schema and objects </li></ul><ul><li>Migrating Business Logic </li></ul><ul><li>Migrating the Clients applications </li></ul>
    5. 6. Migrating Schema and Objects <ul><li>Tables and Data </li></ul><ul><li>Primary Keys </li></ul><ul><li>Check Constraints </li></ul><ul><li>Foreign Keys </li></ul><ul><li>Indexes </li></ul><ul><li>Views </li></ul><ul><li>Groups / Users </li></ul><ul><li>Databases </li></ul><ul><li>Stored Procedures </li></ul><ul><li>Triggers </li></ul><ul><li>Grants </li></ul><ul><li>Rules </li></ul><ul><li>Defaults </li></ul><ul><li>User Defined Types </li></ul>Migratable Objects in the database
    6. 7. Migrating the Business Logic <ul><li>Primarily in Transact-SQL (T/SQL) </li></ul><ul><ul><li>Triggers, Stored Procedures </li></ul></ul><ul><ul><li>Conversion to PL/SQL handled by Migration Workbench </li></ul></ul><ul><li>Extended Stored Procedures </li></ul><ul><ul><li>Callouts from the database packaged as DLL’s and written in C,C++ </li></ul></ul><ul><ul><li>Manual conversion process </li></ul></ul><ul><li>.NET CLR Stored Procedures </li></ul><ul><ul><li>Stored procedures written in a .NET language </li></ul></ul><ul><ul><li>10gR2 supports these </li></ul></ul>Business Logic in the database in SQL Server
    7. 8. <ul><li>No big issue if you don’t have any business logic on the client </li></ul><ul><li>Adapt the way how to call the business logic </li></ul><ul><li>Managing Resultsets </li></ul><ul><li>Adapt the way how to access the database </li></ul><ul><li>Error Handling </li></ul><ul><li>In some cases need some rewriting </li></ul>Migrating the Clients applications
    8. 9. Migration Tools Support 7. Production 2. Assessment 3. Migration 4. Testing 1. Evaluation 5. Optimization 6. Customer Acceptance 8. Project Support Migration Lifecycle
    9. 10. Migration - SQL Server to Oracle11g <ul><li>Migration Process </li></ul><ul><li>SQL Developer Migration Workbench </li></ul><ul><li>Database Migration Verifier </li></ul>
    10. 11. What is the SQL Developer Migration Workbench? <ul><li>SQL Developer Migration Workbench: </li></ul><ul><ul><li>Is a wizard-driven Java tool </li></ul></ul><ul><ul><li>Simplifies the process of migrating third-party databases to the Oracle platform </li></ul></ul><ul><ul><li>Migrates the entire database schema, including triggers and stored procedures </li></ul></ul>
    11. 12. Migration Workbench Capabilities <ul><li>Migration Workbench enables you to: </li></ul><ul><ul><li>Perform the migration in stages using wizards and scripts </li></ul></ul><ul><ul><li>Retrieve source database information via online capture or an offline capture </li></ul></ul><ul><ul><li>Customize work-in-progress database objects in a repository </li></ul></ul><ul><ul><li>Parses and transforms stored procedures, triggers, and views to Oracle PL/SQL </li></ul></ul><ul><ul><li>Monitor the status of the migration via reports and messages </li></ul></ul>
    12. 14. Migration Workbench UI
    13. 15. Translation Scratch Editor Statement Level Translation
    14. 16. Translation Diff Editor Matching Statements and Blocks
    15. 17. T-SQL Editor Code Folding / Syntax Highlighting
    16. 18. SQL Developer Migration Workbench Using Workbench Within Migrations <ul><li>Capture the source database structure into Source Model (online/offline) </li></ul><ul><li>Convert to Oracle Model </li></ul><ul><ul><li>Create a representation of the structure of the destination database </li></ul></ul><ul><li>Migrate the source database </li></ul><ul><ul><li>Create the schema online or offline </li></ul></ul><ul><ul><li>Transfer the data online or offline </li></ul></ul>
    17. 19. Migration - SQL Server to Oracle11g <ul><li>Migration Process </li></ul><ul><li>Oracle Migration Workbench </li></ul><ul><li>Database Migration Verifier </li></ul>
    18. 20. Database Migration Verifier <ul><li>Compares schema and data between source and migrated Oracle database </li></ul><ul><li>Supports verification of tables, indexes, function, stored procedures, and triggers, and view objects </li></ul><ul><li>Validates data in migrated Oracle database against source database </li></ul><ul><li>Generates a Verification Report of schema and data verification failures summarized by object name and type </li></ul>
    19. 21. Database Migration Verifier <ul><li>Provides command line tool interface, allowing tool to be seamlessly integrated into existing testing processes </li></ul><ul><li>Provides portable Java application implementation allowing tool to be easily moved between Windows and UNIX environments </li></ul><ul><li>Provides support for Microsoft SQL Server 2000 and Sybase Adaptive Server 12 source databases </li></ul>
    20. 22. A Q & Q U E S T I O N S A N S W E R S