Database migration
-
Upload
opris-monica -
Category
Documents
-
view
629 -
download
2
Transcript of Database migration
![Page 1: Database migration](https://reader035.fdocuments.in/reader035/viewer/2022062220/555f381ad8b42a65118b50b7/html5/thumbnails/1.jpg)
Database MigrationOracle11g toSQL Server 2008/2012
![Page 2: Database migration](https://reader035.fdocuments.in/reader035/viewer/2022062220/555f381ad8b42a65118b50b7/html5/thumbnails/2.jpg)
Key Aspects of a Migration What is migration?
Conversion of an existing application environment into a new architecture by preserving data and functionality of the old architecture
What are the key components in a migration? Schema (table definitions) Data (content of tables) Application
What are the major steps in a migration? Analysis Migration Testing Deployment
![Page 3: Database migration](https://reader035.fdocuments.in/reader035/viewer/2022062220/555f381ad8b42a65118b50b7/html5/thumbnails/3.jpg)
Migration - Oracle11g to SQL Server
Migration Process Data Migration Architecture of SSMA for
Oracle Migrating, emulating and validate data
using SSMA
![Page 4: Database migration](https://reader035.fdocuments.in/reader035/viewer/2022062220/555f381ad8b42a65118b50b7/html5/thumbnails/4.jpg)
Process1. Migrating Schema and objects2. Migrating Business Logic 3. Migrating the Clients applications
![Page 5: Database migration](https://reader035.fdocuments.in/reader035/viewer/2022062220/555f381ad8b42a65118b50b7/html5/thumbnails/5.jpg)
Migrating Schema and Objects
Migratable Objects in the database Tables and Data Primary Keys Check Constraints Foreign Keys Indexes Views Groups / Users
![Page 6: Database migration](https://reader035.fdocuments.in/reader035/viewer/2022062220/555f381ad8b42a65118b50b7/html5/thumbnails/6.jpg)
Migratable Objects in the database
• Databases • Stored Procedures• Triggers• Grants• Rules• Defaults• User Defined Types
![Page 7: Database migration](https://reader035.fdocuments.in/reader035/viewer/2022062220/555f381ad8b42a65118b50b7/html5/thumbnails/7.jpg)
Migrating the Business LogicBusiness Logic in the database in SQL Server Primarily in Transact-SQL (T/SQL)
Triggers, Stored Procedures Conversion the PL/SQL to SQL handled by SSMA
Extended Stored Procedures Callouts from the database packaged as DLL’s Manual conversion process
.NET CLR Stored Procedures Stored procedures written in a .NET language
![Page 8: Database migration](https://reader035.fdocuments.in/reader035/viewer/2022062220/555f381ad8b42a65118b50b7/html5/thumbnails/8.jpg)
Migrating the Clients applications Adapt the way how to call the business
logic Managing Result sets Adapt the way how to access the
database Error Handling In some cases need some rewriting
![Page 9: Database migration](https://reader035.fdocuments.in/reader035/viewer/2022062220/555f381ad8b42a65118b50b7/html5/thumbnails/9.jpg)
Migration Tools Support
2. Assessment
3. Migration
4. Testing
5. Optimization
6. Customer Acceptance
8. ProjectSupport
MigrationLifecycle
![Page 10: Database migration](https://reader035.fdocuments.in/reader035/viewer/2022062220/555f381ad8b42a65118b50b7/html5/thumbnails/10.jpg)
Migration - Oracle11g to SQL Server
Migration Process Data Migration Architecture of SSMA for
Oracle Migrating, emulating and validate data
using SSMA
![Page 11: Database migration](https://reader035.fdocuments.in/reader035/viewer/2022062220/555f381ad8b42a65118b50b7/html5/thumbnails/11.jpg)
What is the SSMA? The free Microsoft SQL Server Migration
Assistant (SSMA) for Oracle speeds the migration process.
SSMA converts Oracle database objects (including stored procedures) to SQL Server database objects, loads those objects into SQL Server, migrates data from Oracle to SQL Server, and then validates the migration of code and data.
![Page 12: Database migration](https://reader035.fdocuments.in/reader035/viewer/2022062220/555f381ad8b42a65118b50b7/html5/thumbnails/12.jpg)
Data Migration Architecture of SSMA Understanding this mechanism can help
you set up the proper environment for SSMA data migration. It also helps you to better control, monitor, and optimize the process.
![Page 13: Database migration](https://reader035.fdocuments.in/reader035/viewer/2022062220/555f381ad8b42a65118b50b7/html5/thumbnails/13.jpg)
Migration Capabilities SSMA enables you to:
Converts the selected Oracle objects to SQL Server syntax, and then creates a report that shows how successful the conversion was.
Converts the selected Oracle objects to SQL Server objects.
Migrates data from the Oracle database to SQL Server. Before you must convert the Oracle schemas to SQL Server schemas, and then load the objects into SQL Server.
![Page 14: Database migration](https://reader035.fdocuments.in/reader035/viewer/2022062220/555f381ad8b42a65118b50b7/html5/thumbnails/14.jpg)
Migration Capabilities Synchronizes the objects between
Oracle Metadata Explorer and SQL Server Metadata Explorer.
Creating and working with test cases, repository, and backup management system.
Parses and transforms stored procedures, triggers, and views to SQL
Monitor the status of the migration via reports and messages
![Page 15: Database migration](https://reader035.fdocuments.in/reader035/viewer/2022062220/555f381ad8b42a65118b50b7/html5/thumbnails/15.jpg)
SSMA1. Create a new SSMA project.2. Connect to the Oracle database server.3. Connect to an instance of SQL Server.4. Map Oracle database schemas to SQL Server
database schemas.
5. Create assessment reports to assess database objects for conversion and estimate the conversion time.
6. Convert Oracle database schemas into SQL Server schemas.
7. Load the converted database objects into SQL Server.
8. Migrate data to SQL Server.
![Page 16: Database migration](https://reader035.fdocuments.in/reader035/viewer/2022062220/555f381ad8b42a65118b50b7/html5/thumbnails/16.jpg)
Migration - Oracle11g to SQL Server
Migration Process Data Migration Architecture of SSMA for
Oracle Migrating, emulating and validate data
using SSMA
![Page 17: Database migration](https://reader035.fdocuments.in/reader035/viewer/2022062220/555f381ad8b42a65118b50b7/html5/thumbnails/17.jpg)
![Page 18: Database migration](https://reader035.fdocuments.in/reader035/viewer/2022062220/555f381ad8b42a65118b50b7/html5/thumbnails/18.jpg)
Migration Process available Data type Emulating Oracle System Objects Converting Nested PL/SQL Subprograms Migrating Oracle User-Defined Functions Emulating Oracle Packages Simulating Oracle Transactions
![Page 19: Database migration](https://reader035.fdocuments.in/reader035/viewer/2022062220/555f381ad8b42a65118b50b7/html5/thumbnails/19.jpg)
Migration Process Compares schema and data between source
and migrated SQL database Supports verification of tables, indexes,
function, stored procedures, and triggers, and view objects
Validates data in migrated SQL database against source database
Generates a Report of schema and data verification failures summarized by object name and type
![Page 20: Database migration](https://reader035.fdocuments.in/reader035/viewer/2022062220/555f381ad8b42a65118b50b7/html5/thumbnails/20.jpg)
Conclusions
This migration guide covers the differences between Oracle and SQL Server 2008 database platforms, and it includes the steps necessary to convert an Oracle database to SQL Server.
It explains the algorithms that SSMA for Oracle uses to perform this conversion so that you can better understand the processes that are executed when you run the SSMA Convert Schema and Migrate Data commands.
For those cases when SSMA does not handle a particular migration issue, approaches to manual conversion are included.