SlideShare a Scribd company logo
1 of 25
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
DataBase Migration Roadmap
2
Institutional Background
 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.”
DataBase Migration Roadmap
3
DataBase Migration Roadmap
Database Environment
 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
DataBase Migration Roadmap
Migration Objectives
 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
DataBase Migration Roadmap
Migration Process
 Analyze
• Database Architecture
• Cost-Effectiveness
• Risk Mitigation
 Plan
• Routines
• Downtime
 Perform
• Data Migration
 Verify
• Migration Success 6
DataBase Migration Roadmap
Migration Methodology
 Recommend approaches
• 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
DataBase Migration Roadmap
SQL to Oracle Migration
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
DataBase Migration Roadmap
 Map Similar Database Objects
• Schema objects, data types
• Referential integrity, constraints, rules
• Triggers, stored procedure, system catalogs
 Map Different Database Objects
• Connection types or models
• Temporary tables
• Application programming
• Data migration
9
Physical and Logical Structure
DataBase Migration Roadmap
Physical and Logical Structure
Memory SMON
PMON
MMON
……..
Process
(Dedicated/Shared)
SystemTablespace
(System,Sysaux,
Temp,Undo)
User1Tablespace
User2Tablespace
Oracle Instance/Database
Database
MasterDB
Model,Msdb,Tempdb,
resource(2008)
Database1
Process
Memory
Master = System Tablespace
Model = Template
Tempdb = Undo
Msdb = Agent Services
System = Sys Objects
Sysaux = 10g Nonsys Objects
Temp = Sorting
Undo = Rollback, Recover
SQL Server
Database2
10
DataBase Migration Roadmap
1.1 Characteristics
SQL Oracle
Instances/Database SGA/SID
Case Insensitive N/A
Database Database
Database and Database Owner (DBO) Schema
Database Tablespace
T-SQL Stored Procedure PL/SQL Procedure, Function or
Package
Triggers After Triggers
Complex Rules Before Triggers, Trigger for Each Row
Identity Property for a Column Sequences
View View, M-View
11
Physical and Logical Structure
DataBase Migration Roadmap
1.1 Characteristics (Cont.)
SQL Oracle
Transaction Logs Per Database Transaction Logs for Entire Database
Auto Commit Manual Commit or Rollback
Manual Exception Default Exception
SA Account System/manager Account
sysconfig spfile
12
Physical and Logical Structure
DataBase Migration Roadmap
Physical and Logical Structure
1.2 Data Types/Storage
SQL Oracle
Integer, Small Int, Tiny Int, Bit, Money,
Small Money
Number (10, 6, 3, 1, 19, 10)
Real, Float Float
Text CLOB
Image BLOB
Binary, VarBinary RAW
DateTime, Small DateTime Date
Varchar2 (max) LONG, CLOB
Varbinary (max) LONG RAW, BLOB, BFILE
13
DataBase Migration Roadmap
Physical and Logical Structure
1.2 Data Types/Storage (Cont.)
SQL Oracle
Database Devices Datafile
Page Data Block
Extent Extent and Segments
Segments Tablespace (Extent and Segments)
Log Devices Redo Log Files
Data, Dump N/A
14
DataBase Migration Roadmap
Physical and Logical Structure
1.3 Recommendations
SQL Oracle
MS Applications tend to use ASP on Clients.
ASP uses ADO to communicate to DB.
Use Oracle OLE/DB or migrate to JSP.
DB Library Use Oracle OCI calls.
IIS/ASP IAS/Fusion on JAVA 2 Platform, J2EE
Embedded SQL from C/C++ Manual conversion
Stored Procedure return Multiple Sets Find driver support Reference Cursors (i.e.
DataDirect).
Delphi, MS Access (Embedded SQL/C or MS
Library)
Use ODBC Driver.
DBO.Database Transform to Single or Multiple Schema.
DTS/SSIS Warehouse Builder
15
DataBase Migration Roadmap
2. Stored Procedures
 Use Package for nested procedures.
 Use Functions for User-Defined Functions.
 Use Hints or CBO.
 Remove Create/Drop temporary tables.
16
DataBase Migration Roadmap
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
DataBase Migration Roadmap
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
DataBase Migration Roadmap
4. Database Design (Cont.)
 Outer Joins
 Oracle Exceptions (i.e. no_data_found)
 Autonomous Transactions
 Records and Types
 Reverse Key for RAC environment
19
DataBase Migration Roadmap
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
DataBase Migration Roadmap
5. Schema Design (Cont.)
 Data Types
• Datetime
1/300th of a second vs. 1/100th 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
Create table sample
(datetime_col datetime not null,
integer_col int null,
text_col text null,
varchar_col varchar2 (10) null)
Create table sample
(datetime_col date not null,
integer_col number null,
text_col long null,
varchar_col varchar2 (10) null)
21
OracleSQL
DataBase Migration Roadmap
6. Data Migration
 SQL Loader
 Data Pump
 Stream
 Database Link or Transparent Gateway
• Create table as select.
• Insert as select.
22
DataBase Migration Roadmap
7. Security
 Create user accounts in Oracle.
 Leverage default Role and Privs.
 Map user accounts to Role.
23
DataBase Migration Roadmap
SQL/Oracle Tool for Migration
 Oracle Migration Workbench
 OEM/Grid Control
 Upgrade SQL to ver. 2005 with Transparent Gateway
 Oracle APEX
 Scripting
24
Questions
DataBase Migration Roadmap
LSHIH123@GMAIL.COM
All Rights Reserved ©2010

More Related Content

What's hot

What's hot (20)

Migration From Oracle to PostgreSQL
Migration From Oracle to PostgreSQLMigration From Oracle to PostgreSQL
Migration From Oracle to PostgreSQL
 
Maximum Availability Architecture - Best Practices for Oracle Database 19c
Maximum Availability Architecture - Best Practices for Oracle Database 19cMaximum Availability Architecture - Best Practices for Oracle Database 19c
Maximum Availability Architecture - Best Practices for Oracle Database 19c
 
Oracle GoldenGate
Oracle GoldenGate Oracle GoldenGate
Oracle GoldenGate
 
Oracle RAC 19c and Later - Best Practices #OOWLON
Oracle RAC 19c and Later - Best Practices #OOWLONOracle RAC 19c and Later - Best Practices #OOWLON
Oracle RAC 19c and Later - Best Practices #OOWLON
 
Extreme Replication - Performance Tuning Oracle GoldenGate
Extreme Replication - Performance Tuning Oracle GoldenGateExtreme Replication - Performance Tuning Oracle GoldenGate
Extreme Replication - Performance Tuning Oracle GoldenGate
 
[❤PDF❤] Oracle 19c Database Administration Oracle Simplified
[❤PDF❤] Oracle 19c Database Administration Oracle Simplified [❤PDF❤] Oracle 19c Database Administration Oracle Simplified
[❤PDF❤] Oracle 19c Database Administration Oracle Simplified
 
Oracle ZDM KamaleshRamasamy Sangam2020
Oracle ZDM KamaleshRamasamy Sangam2020Oracle ZDM KamaleshRamasamy Sangam2020
Oracle ZDM KamaleshRamasamy Sangam2020
 
"Changing Role of the DBA" Skills to Have, to Obtain & to Nurture - Updated 2...
"Changing Role of the DBA" Skills to Have, to Obtain & to Nurture - Updated 2..."Changing Role of the DBA" Skills to Have, to Obtain & to Nurture - Updated 2...
"Changing Role of the DBA" Skills to Have, to Obtain & to Nurture - Updated 2...
 
UKOUG - 25 years of hints and tips
UKOUG - 25 years of hints and tipsUKOUG - 25 years of hints and tips
UKOUG - 25 years of hints and tips
 
Oracle Stream Analytics - Developer Introduction
Oracle Stream Analytics - Developer IntroductionOracle Stream Analytics - Developer Introduction
Oracle Stream Analytics - Developer Introduction
 
Oracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret InternalsOracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret Internals
 
DW Migration Webinar-March 2022.pptx
DW Migration Webinar-March 2022.pptxDW Migration Webinar-March 2022.pptx
DW Migration Webinar-March 2022.pptx
 
Big Data and Data Warehousing Together with Azure Synapse Analytics (SQLBits ...
Big Data and Data Warehousing Together with Azure Synapse Analytics (SQLBits ...Big Data and Data Warehousing Together with Azure Synapse Analytics (SQLBits ...
Big Data and Data Warehousing Together with Azure Synapse Analytics (SQLBits ...
 
Smartsheet’s Transition to Snowflake and Databricks: The Why and Immediate Im...
Smartsheet’s Transition to Snowflake and Databricks: The Why and Immediate Im...Smartsheet’s Transition to Snowflake and Databricks: The Why and Immediate Im...
Smartsheet’s Transition to Snowflake and Databricks: The Why and Immediate Im...
 
Scaling and Modernizing Data Platform with Databricks
Scaling and Modernizing Data Platform with DatabricksScaling and Modernizing Data Platform with Databricks
Scaling and Modernizing Data Platform with Databricks
 
Achieving Lakehouse Models with Spark 3.0
Achieving Lakehouse Models with Spark 3.0Achieving Lakehouse Models with Spark 3.0
Achieving Lakehouse Models with Spark 3.0
 
HA, Scalability, DR & MAA in Oracle Database 21c - Overview
HA, Scalability, DR & MAA in Oracle Database 21c - OverviewHA, Scalability, DR & MAA in Oracle Database 21c - Overview
HA, Scalability, DR & MAA in Oracle Database 21c - Overview
 
Performance Stability, Tips and Tricks and Underscores
Performance Stability, Tips and Tricks and UnderscoresPerformance Stability, Tips and Tricks and Underscores
Performance Stability, Tips and Tricks and Underscores
 
New Generation Oracle RAC Performance
New Generation Oracle RAC PerformanceNew Generation Oracle RAC Performance
New Generation Oracle RAC Performance
 
Migrating Oracle database to PostgreSQL
Migrating Oracle database to PostgreSQLMigrating Oracle database to PostgreSQL
Migrating Oracle database to PostgreSQL
 

Viewers also liked

Database migration
Database migrationDatabase migration
Database migration
Opris Monica
 
Database migration
Database migrationDatabase migration
Database migration
Opris Monica
 
Microsoft SQL Server - SQL Server Migrations Presentation
Microsoft SQL Server - SQL Server Migrations PresentationMicrosoft SQL Server - SQL Server Migrations Presentation
Microsoft SQL Server - SQL Server Migrations Presentation
Microsoft Private Cloud
 
Oracle To Sql Server migration process
Oracle To Sql Server migration processOracle To Sql Server migration process
Oracle To Sql Server migration process
harirk1986
 
Agile Methodology - Data Migration v1.0
Agile Methodology - Data Migration v1.0Agile Methodology - Data Migration v1.0
Agile Methodology - Data Migration v1.0
Julian Samuels
 

Viewers also liked (11)

Database migration
Database migrationDatabase migration
Database migration
 
Database migration
Database migrationDatabase migration
Database migration
 
Migrating Fast to Solr
Migrating Fast to SolrMigrating Fast to Solr
Migrating Fast to Solr
 
Microsoft SQL Server - SQL Server Migrations Presentation
Microsoft SQL Server - SQL Server Migrations PresentationMicrosoft SQL Server - SQL Server Migrations Presentation
Microsoft SQL Server - SQL Server Migrations Presentation
 
Oracle To Sql Server migration process
Oracle To Sql Server migration processOracle To Sql Server migration process
Oracle To Sql Server migration process
 
Database migration
Database migrationDatabase migration
Database migration
 
Agile Methodology - Data Migration v1.0
Agile Methodology - Data Migration v1.0Agile Methodology - Data Migration v1.0
Agile Methodology - Data Migration v1.0
 
Data migration
Data migrationData migration
Data migration
 
Ms sql server architecture
Ms sql server architectureMs sql server architecture
Ms sql server architecture
 
Preparing a data migration plan: A practical guide
Preparing a data migration plan: A practical guidePreparing a data migration plan: A practical guide
Preparing a data migration plan: A practical guide
 
AWS Migration Planning Roadmap
AWS Migration Planning RoadmapAWS Migration Planning Roadmap
AWS Migration Planning Roadmap
 

Similar to Presentation sql server to oracle a database migration roadmap

Data Handning with Sqlite for Android
Data Handning with Sqlite for AndroidData Handning with Sqlite for Android
Data Handning with Sqlite for Android
Jakir Hossain
 

Similar to Presentation sql server to oracle a database migration roadmap (20)

Large scale, interactive ad-hoc queries over different datastores with Apache...
Large scale, interactive ad-hoc queries over different datastores with Apache...Large scale, interactive ad-hoc queries over different datastores with Apache...
Large scale, interactive ad-hoc queries over different datastores with Apache...
 
Engineering practices in big data storage and processing
Engineering practices in big data storage and processingEngineering practices in big data storage and processing
Engineering practices in big data storage and processing
 
Oracle OpenWo2014 review part 03 three_paa_s_database
Oracle OpenWo2014 review part 03 three_paa_s_databaseOracle OpenWo2014 review part 03 three_paa_s_database
Oracle OpenWo2014 review part 03 three_paa_s_database
 
Serverless Analytics with Amazon Redshift Spectrum, AWS Glue, and Amazon Quic...
Serverless Analytics with Amazon Redshift Spectrum, AWS Glue, and Amazon Quic...Serverless Analytics with Amazon Redshift Spectrum, AWS Glue, and Amazon Quic...
Serverless Analytics with Amazon Redshift Spectrum, AWS Glue, and Amazon Quic...
 
HTAP Queries
HTAP QueriesHTAP Queries
HTAP Queries
 
Databricks Platform.pptx
Databricks Platform.pptxDatabricks Platform.pptx
Databricks Platform.pptx
 
2021 04-20 apache arrow and its impact on the database industry.pptx
2021 04-20  apache arrow and its impact on the database industry.pptx2021 04-20  apache arrow and its impact on the database industry.pptx
2021 04-20 apache arrow and its impact on the database industry.pptx
 
Using Data Lakes
Using Data LakesUsing Data Lakes
Using Data Lakes
 
Denodo Partner Connect: Technical Webinar - Ask Me Anything
Denodo Partner Connect: Technical Webinar - Ask Me AnythingDenodo Partner Connect: Technical Webinar - Ask Me Anything
Denodo Partner Connect: Technical Webinar - Ask Me Anything
 
Prague data management meetup 2018-03-27
Prague data management meetup 2018-03-27Prague data management meetup 2018-03-27
Prague data management meetup 2018-03-27
 
VMworld 2013: Virtualizing Databases: Doing IT Right
VMworld 2013: Virtualizing Databases: Doing IT Right VMworld 2013: Virtualizing Databases: Doing IT Right
VMworld 2013: Virtualizing Databases: Doing IT Right
 
Data Modeling on Azure for Analytics
Data Modeling on Azure for AnalyticsData Modeling on Azure for Analytics
Data Modeling on Azure for Analytics
 
5 Steps for Migrating Relational Databases to Next-Gen Architectures
5 Steps for Migrating Relational Databases to Next-Gen Architectures5 Steps for Migrating Relational Databases to Next-Gen Architectures
5 Steps for Migrating Relational Databases to Next-Gen Architectures
 
Sql Server 2005 Business Inteligence
Sql Server 2005 Business InteligenceSql Server 2005 Business Inteligence
Sql Server 2005 Business Inteligence
 
Data Handning with Sqlite for Android
Data Handning with Sqlite for AndroidData Handning with Sqlite for Android
Data Handning with Sqlite for Android
 
Microsoft Data Integration Pipelines: Azure Data Factory and SSIS
Microsoft Data Integration Pipelines: Azure Data Factory and SSISMicrosoft Data Integration Pipelines: Azure Data Factory and SSIS
Microsoft Data Integration Pipelines: Azure Data Factory and SSIS
 
Cerebro: Bringing together data scientists and bi users - Royal Caribbean - S...
Cerebro: Bringing together data scientists and bi users - Royal Caribbean - S...Cerebro: Bringing together data scientists and bi users - Royal Caribbean - S...
Cerebro: Bringing together data scientists and bi users - Royal Caribbean - S...
 
ETL 2.0 Data Engineering for developers
ETL 2.0 Data Engineering for developersETL 2.0 Data Engineering for developers
ETL 2.0 Data Engineering for developers
 
Oracle's history
Oracle's historyOracle's history
Oracle's history
 
Ibm datastage online training in hyderabad
Ibm datastage online training in hyderabadIbm datastage online training in hyderabad
Ibm datastage online training in hyderabad
 

More from xKinAnx

More from xKinAnx (20)

Engage for success ibm spectrum accelerate 2
Engage for success   ibm spectrum accelerate 2Engage for success   ibm spectrum accelerate 2
Engage for success ibm spectrum accelerate 2
 
Accelerate with ibm storage ibm spectrum virtualize hyper swap deep dive
Accelerate with ibm storage  ibm spectrum virtualize hyper swap deep diveAccelerate with ibm storage  ibm spectrum virtualize hyper swap deep dive
Accelerate with ibm storage ibm spectrum virtualize hyper swap deep dive
 
Software defined storage provisioning using ibm smart cloud
Software defined storage provisioning using ibm smart cloudSoftware defined storage provisioning using ibm smart cloud
Software defined storage provisioning using ibm smart cloud
 
Ibm spectrum virtualize 101
Ibm spectrum virtualize 101 Ibm spectrum virtualize 101
Ibm spectrum virtualize 101
 
Accelerate with ibm storage ibm spectrum virtualize hyper swap deep dive dee...
Accelerate with ibm storage  ibm spectrum virtualize hyper swap deep dive dee...Accelerate with ibm storage  ibm spectrum virtualize hyper swap deep dive dee...
Accelerate with ibm storage ibm spectrum virtualize hyper swap deep dive dee...
 
04 empalis -ibm_spectrum_protect_-_strategy_and_directions
04 empalis -ibm_spectrum_protect_-_strategy_and_directions04 empalis -ibm_spectrum_protect_-_strategy_and_directions
04 empalis -ibm_spectrum_protect_-_strategy_and_directions
 
Ibm spectrum scale fundamentals workshop for americas part 1 components archi...
Ibm spectrum scale fundamentals workshop for americas part 1 components archi...Ibm spectrum scale fundamentals workshop for americas part 1 components archi...
Ibm spectrum scale fundamentals workshop for americas part 1 components archi...
 
Ibm spectrum scale fundamentals workshop for americas part 2 IBM Spectrum Sca...
Ibm spectrum scale fundamentals workshop for americas part 2 IBM Spectrum Sca...Ibm spectrum scale fundamentals workshop for americas part 2 IBM Spectrum Sca...
Ibm spectrum scale fundamentals workshop for americas part 2 IBM Spectrum Sca...
 
Ibm spectrum scale fundamentals workshop for americas part 3 Information Life...
Ibm spectrum scale fundamentals workshop for americas part 3 Information Life...Ibm spectrum scale fundamentals workshop for americas part 3 Information Life...
Ibm spectrum scale fundamentals workshop for americas part 3 Information Life...
 
Ibm spectrum scale fundamentals workshop for americas part 4 Replication, Str...
Ibm spectrum scale fundamentals workshop for americas part 4 Replication, Str...Ibm spectrum scale fundamentals workshop for americas part 4 Replication, Str...
Ibm spectrum scale fundamentals workshop for americas part 4 Replication, Str...
 
Ibm spectrum scale fundamentals workshop for americas part 4 spectrum scale_r...
Ibm spectrum scale fundamentals workshop for americas part 4 spectrum scale_r...Ibm spectrum scale fundamentals workshop for americas part 4 spectrum scale_r...
Ibm spectrum scale fundamentals workshop for americas part 4 spectrum scale_r...
 
Ibm spectrum scale fundamentals workshop for americas part 5 spectrum scale_c...
Ibm spectrum scale fundamentals workshop for americas part 5 spectrum scale_c...Ibm spectrum scale fundamentals workshop for americas part 5 spectrum scale_c...
Ibm spectrum scale fundamentals workshop for americas part 5 spectrum scale_c...
 
Ibm spectrum scale fundamentals workshop for americas part 6 spectrumscale el...
Ibm spectrum scale fundamentals workshop for americas part 6 spectrumscale el...Ibm spectrum scale fundamentals workshop for americas part 6 spectrumscale el...
Ibm spectrum scale fundamentals workshop for americas part 6 spectrumscale el...
 
Ibm spectrum scale fundamentals workshop for americas part 7 spectrumscale el...
Ibm spectrum scale fundamentals workshop for americas part 7 spectrumscale el...Ibm spectrum scale fundamentals workshop for americas part 7 spectrumscale el...
Ibm spectrum scale fundamentals workshop for americas part 7 spectrumscale el...
 
Ibm spectrum scale fundamentals workshop for americas part 8 spectrumscale ba...
Ibm spectrum scale fundamentals workshop for americas part 8 spectrumscale ba...Ibm spectrum scale fundamentals workshop for americas part 8 spectrumscale ba...
Ibm spectrum scale fundamentals workshop for americas part 8 spectrumscale ba...
 
Ibm spectrum scale fundamentals workshop for americas part 5 ess gnr-usecases...
Ibm spectrum scale fundamentals workshop for americas part 5 ess gnr-usecases...Ibm spectrum scale fundamentals workshop for americas part 5 ess gnr-usecases...
Ibm spectrum scale fundamentals workshop for americas part 5 ess gnr-usecases...
 
Presentation disaster recovery in virtualization and cloud
Presentation   disaster recovery in virtualization and cloudPresentation   disaster recovery in virtualization and cloud
Presentation disaster recovery in virtualization and cloud
 
Presentation disaster recovery for oracle fusion middleware with the zfs st...
Presentation   disaster recovery for oracle fusion middleware with the zfs st...Presentation   disaster recovery for oracle fusion middleware with the zfs st...
Presentation disaster recovery for oracle fusion middleware with the zfs st...
 
Presentation differentiated virtualization for enterprise clouds, large and...
Presentation   differentiated virtualization for enterprise clouds, large and...Presentation   differentiated virtualization for enterprise clouds, large and...
Presentation differentiated virtualization for enterprise clouds, large and...
 
Presentation desktops for the cloud the view rollout
Presentation   desktops for the cloud the view rolloutPresentation   desktops for the cloud the view rollout
Presentation desktops for the cloud the view rollout
 

Recently uploaded

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Recently uploaded (20)

Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 

Presentation sql server to oracle a database migration roadmap

  • 1. SQL Server to Oracle A Database Migration Roadmap Louis Shih Superior Court of California County of Sacramento Oracle OpenWorld 2010 San Francisco, California
  • 2. Agenda  Introduction  Institutional Background  Migration Criteria  Database Migration Methodology  SQL/Oracle Tool for Data Migration  Questions DataBase Migration Roadmap 2
  • 3. Institutional Background  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.” DataBase Migration Roadmap 3
  • 4. DataBase Migration Roadmap Database Environment  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
  • 5. DataBase Migration Roadmap Migration Objectives  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
  • 6. DataBase Migration Roadmap Migration Process  Analyze • Database Architecture • Cost-Effectiveness • Risk Mitigation  Plan • Routines • Downtime  Perform • Data Migration  Verify • Migration Success 6
  • 7. DataBase Migration Roadmap Migration Methodology  Recommend approaches • 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
  • 8. DataBase Migration Roadmap SQL to Oracle Migration 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
  • 9. DataBase Migration Roadmap  Map Similar Database Objects • Schema objects, data types • Referential integrity, constraints, rules • Triggers, stored procedure, system catalogs  Map Different Database Objects • Connection types or models • Temporary tables • Application programming • Data migration 9 Physical and Logical Structure
  • 10. DataBase Migration Roadmap Physical and Logical Structure Memory SMON PMON MMON …….. Process (Dedicated/Shared) SystemTablespace (System,Sysaux, Temp,Undo) User1Tablespace User2Tablespace Oracle Instance/Database Database MasterDB Model,Msdb,Tempdb, resource(2008) Database1 Process Memory Master = System Tablespace Model = Template Tempdb = Undo Msdb = Agent Services System = Sys Objects Sysaux = 10g Nonsys Objects Temp = Sorting Undo = Rollback, Recover SQL Server Database2 10
  • 11. DataBase Migration Roadmap 1.1 Characteristics SQL Oracle Instances/Database SGA/SID Case Insensitive N/A Database Database Database and Database Owner (DBO) Schema Database Tablespace T-SQL Stored Procedure PL/SQL Procedure, Function or Package Triggers After Triggers Complex Rules Before Triggers, Trigger for Each Row Identity Property for a Column Sequences View View, M-View 11 Physical and Logical Structure
  • 12. DataBase Migration Roadmap 1.1 Characteristics (Cont.) SQL Oracle Transaction Logs Per Database Transaction Logs for Entire Database Auto Commit Manual Commit or Rollback Manual Exception Default Exception SA Account System/manager Account sysconfig spfile 12 Physical and Logical Structure
  • 13. DataBase Migration Roadmap Physical and Logical Structure 1.2 Data Types/Storage SQL Oracle Integer, Small Int, Tiny Int, Bit, Money, Small Money Number (10, 6, 3, 1, 19, 10) Real, Float Float Text CLOB Image BLOB Binary, VarBinary RAW DateTime, Small DateTime Date Varchar2 (max) LONG, CLOB Varbinary (max) LONG RAW, BLOB, BFILE 13
  • 14. DataBase Migration Roadmap Physical and Logical Structure 1.2 Data Types/Storage (Cont.) SQL Oracle Database Devices Datafile Page Data Block Extent Extent and Segments Segments Tablespace (Extent and Segments) Log Devices Redo Log Files Data, Dump N/A 14
  • 15. DataBase Migration Roadmap Physical and Logical Structure 1.3 Recommendations SQL Oracle MS Applications tend to use ASP on Clients. ASP uses ADO to communicate to DB. Use Oracle OLE/DB or migrate to JSP. DB Library Use Oracle OCI calls. IIS/ASP IAS/Fusion on JAVA 2 Platform, J2EE Embedded SQL from C/C++ Manual conversion Stored Procedure return Multiple Sets Find driver support Reference Cursors (i.e. DataDirect). Delphi, MS Access (Embedded SQL/C or MS Library) Use ODBC Driver. DBO.Database Transform to Single or Multiple Schema. DTS/SSIS Warehouse Builder 15
  • 16. DataBase Migration Roadmap 2. Stored Procedures  Use Package for nested procedures.  Use Functions for User-Defined Functions.  Use Hints or CBO.  Remove Create/Drop temporary tables. 16
  • 17. DataBase Migration Roadmap 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
  • 18. DataBase Migration Roadmap 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
  • 19. DataBase Migration Roadmap 4. Database Design (Cont.)  Outer Joins  Oracle Exceptions (i.e. no_data_found)  Autonomous Transactions  Records and Types  Reverse Key for RAC environment 19
  • 20. DataBase Migration Roadmap 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
  • 21. DataBase Migration Roadmap 5. Schema Design (Cont.)  Data Types • Datetime 1/300th of a second vs. 1/100th 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 Create table sample (datetime_col datetime not null, integer_col int null, text_col text null, varchar_col varchar2 (10) null) Create table sample (datetime_col date not null, integer_col number null, text_col long null, varchar_col varchar2 (10) null) 21 OracleSQL
  • 22. DataBase Migration Roadmap 6. Data Migration  SQL Loader  Data Pump  Stream  Database Link or Transparent Gateway • Create table as select. • Insert as select. 22
  • 23. DataBase Migration Roadmap 7. Security  Create user accounts in Oracle.  Leverage default Role and Privs.  Map user accounts to Role. 23
  • 24. DataBase Migration Roadmap SQL/Oracle Tool for Migration  Oracle Migration Workbench  OEM/Grid Control  Upgrade SQL to ver. 2005 with Transparent Gateway  Oracle APEX  Scripting 24