©2010 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice ©2011 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice your infrastructure LIBERATE With HP NonStop SQL Solution for OLTP and data warehouse database applications Oracle PL/SQL to NonStop SQL/MX Migration Case Study
2 Table of Content Executive Summary Project Objectives Project Methodology Test Environment Test CasesTest ResultsSumming Up
3 Executive Summary – Customer unhappy with Oracle database induced outages – Evaluates NonStop for its superior availability – Conducts a POC using representative workloads – Ispirer, an HP Alliance Partner, modifies SQLWays to support NonStop SQL dialect – Successful migration from PL/SQL to SQL/MX 96.8% overall conversion rate, 100% conversion rate for simple SQL statements – SQLWays reduces costs of migration with automation and accelerates project timeline
Project Objectives
5 – Execute PL/SQL to SQL/MX Migration POC with representative workload – Assess costs of migration – Provide product and tool feedback – Disclaimer: This Case Study does not offer design recommendations based on Best Practices deployed in NonStop SQL/MX environments
Project Methodology
7 Project Methodology Baseline-Migrate-Verify – Customer extracts Oracle PL/SQL statements, DDL, and sample data from production – HP baselines query results on an Oracle database instance running on a Windows server – Use Ispirer SQLWays to convert the DML and DDL – Populate the NonStop SQL database with customer data – Execute converted DML against the SQL/MX database – Verify and document results
Test Environment
9 – Hardware HP Integrity NonStop NB50000c − Itanium2 1.6 GHz 8p/16c, 64GB Memory HP Proliant DL380 G6 (Oracle) − Xeon X GHz 2p/8c 48GB Memory – Software J NonStop SQL/MX Beta code for upcoming features Ispirer SQLWays 4.0+ to support NonStop SQL Oracle executing on Windows 2003 SP2
Test Cases
11 Test Cases – Convert and test 1352 simple, 49 complex SQL statements – Data Migration Connect to Oracle database and generate Create Table scripts − Modify scripts to specify location and extents Create NonStop schema using these scripts Export data from Oracle database Load data into NonStop SQL using Import tool
Test Results
13 DDL Conversion – Ispirer SQLWays used to convert the Oracle DDL Physical attributes like Location and Extents added Next SQLWays Release supports Location and Extents – 150 Tables created on NonStop – 41 Tables populated using data exported from Oracle database
14 Complex Query Conversion – Convert 49 complex queries using SQLWays – Compile converted queries on NonStop – Execute converted queries – Validate results
15 SQL Statements (1352) Conversion – 800 statements migrate “as is” – 57 statements need no conversion with SQL/MX Beta code NVL, Coalesce, Decode, Bitand, Round, Sum Over, Max Over, DATEADD, MERGE INTO – 302 statements convert automatically using SQLWays NVL2, LNNVL, Substr, Instr, Greatest, (+)=, Sysdate, Systimestamp, To_Char, To_Date, To_Timestamp, Trunc, Rownum, dual table, Time calculation, Minus – 156 statements convert using SQLWays rules based conversion Rowid, Merge Into, Rownum (Update), Stored Functions – Remaining 43 statements (3%) require application change or Java code to workaround With Clause, Lag Over, First_Value Over, Connect BY, Delete Returning, Stored Function
16 Upcoming SQL/MX Enhancements – NVL – COALESCE – DECODE – BITAND – ROUND – SUM OVER – MAX OVER – DATEADD – MERGE INTO
17 SQLWays Conversion
18 In Summary, – 100% conversion rate for DDL and simple SQL statements – 96.8% conversion rate for all SQL statements – Ispirer SQLWays reduces costs of migration with automated conversion – Ispirer SQLWays accelerates migration project timelines
Thank you. 19