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