Professional Documents
Culture Documents
Oracle
Craig Silveira
Principal Sales Consultant
North American Strategic Accounts
Craig.silveira@oracle.com
212 508 7801
Customers who migrated
y UBS PaineWebber – looking to move off Sybase
altogether due to concerns about company. POC
showed our capabilities and they are now migrating
other applications.
y Bank of America Credit Risk – looking to perform
consolidation and replatforming of db systems.
POC showed 2X perf gain with no special tuning
and on smaller hardware.
y Bank of America Trade Flow Management – wanted
to move off Sybase due to strategic direction.
Performed migration themselves. Performance
better. Now migrating more apps
y MetLife – consolidated a DB2 MF and Sybase db
into Oracle. Went live and experiencing better than
ever expected performance.
Database Architecture Comparison
Database
Instance System Server Master
Tablespace Database
Tablespace Database
Tablespace Database
Tablespace Database
RDBMS Implementation Similarities
y Similar Schema Objects (tables, views)
y Similar Data types
y Referential Integrity
y Check Constraints / Rules
y Transaction Support
y Triggers and Stored Sub Programs
y SQL Access to System Catalogs
Oracle Migration Workbench
Oracle Migration Workbench
y Wizard-driven tool
y Migrates from:
– MS SQL Server 6.5 and 7.0, 2000
– Informix Dynamic Server 7.3, 9.1,9.2,9.3,9.4
– Sybase Adaptive Server 11, 12
– MS Access 2.0, 95, 97
– MySQL on NT and Linux
– IBM UDB v6, 7.1 , 7.2 and DB2/400
y Supports database (schema & data)
y Supports triggers & stored procedures
Features
y Visual representation of the source database
and its Oracle equivalent
y Migration analysis
– Summary report
– Contextual log messages
Features
y Multiple databases are consolidated into one
database
y Automatically resolve conflicts
– Table name collisions
– Oracle reserved words
Features
y Data migration
– Default mappings to CLOBs/BLOBs
– Single table data migration
– Offline data loading
y SQL*Loader
y BCP
Schema Conversion
Sql Server Oracle
TEXT(n) LONG or CLOB
IMAGE(n) LONG RAW, BLOB or BFILE
BINARY(n) RAW(n)
VARBINARY(n) VARCHAR2(n)
DATETIME DATE
SMALLDATETIME DATE(With Check Constraint)
MONEY NUMBER(19,4)
SMALLMONEY NUMBER(10,4)
TIMESTAMP NUMBER
SYSNAME VARCHAR(30) NOT NULL
Features
y Parser
– Single-object parse
– Parse options
– Color-coded editor
– Temporary tables
Conversion Architecture
Oracle Workbench
Repository
Schema
Sql Data Oracle
Server
y Capture
– Load the Source Model
– Create the Oracle Model
y Customize
– Modify objects to produce the desired content and
structure of your new Oracle database
y Migrate
– Migrate to the Oracle database
Capture
y Load the Source Model
– ODBC/JDBC driver used to extract schema
information
– Schema information loaded into the Workbench
Repository
– No data transferred
y Create the Oracle Model
– Data type mappings
– Parser
Customize
y Source Model customization
– Modify data type mappings
– Delete objects
– Edit text (stored procedures, triggers & views)
– Edit parse options
Customize
y Oracle Model customization
– Delete/rename objects
– Edit creation options
y Tablespaces
y Users
y Tables and indexes
– Edit text (stored procedures, triggers & views)
Migrate
y Creation of the users and their tables
y Data migration
– Through the Migration Workbench
y JDBC/ODBC
– Offline data loading
y BCP/SQL*Loader
y Creation of remaining schema objects
Database Migration
y Database Migration has the following
activities
– Schema & Data Conversion
– Application Procedure Conversion
– Handling special cases which require manual
intervention
Technical Database Migration Issues
y Data Access - Differences
– SQL Differences
– MS and Oracle have some differences in SQL
syntax.
– Client side will need re-coding if an issue
y Client-Side Applications
– Most MS Applications use ODBC so limited
changes should be required unless
passthrough has been used.
Technical Database Migration Issues
y Utilities - Differences
– Bulk Loading
y Sql Server uses BCP which serves as both a
bulk loader and a restoration tool. An API can be
called from C programs
y Oracle has SQL*Loader serving as bulk loader.
- Use Import/Export for data
backup/restoration.
- For bulk loading from a C program, use array
feature of precompilers or OCI.
- SQL*Loader API in Oracle8i and Array
Interface.
Stored Procedure Migration
y Issues
y Manual Tasks
Sub Programs Migration Issues
y Temporary Tables
y T-SQL Issues
– Resultsets from Stored Sub Programs
– Dynamic T-SQL
– Error Handling
y SQL Issues
– DDL/DML
– Datetime Data type required to millisecond
– Sybase specific functions
Stored Sub Program Migration Issues
y Temporary Tables
– Sql Server uses temporary tables for:
y Query simplification and Result accumulation
– Oracle does not need temporary tables in most
cases
y The Oracle optimizer can deal with complex
queries, so a re-write can avoid a temporary
table.
y Oracle8i provides support for temporary tables
Stored Sub Program Migration Issues
AGENDA
y Database conversion
y Stored Procedure conversion
– Phase I
– Phase II
– Phase III
– Phase IV
y Perl conversion
PHASE I - Using conversion utility
Purpose of Pilot
Application X Pilot - Oracle
Application X Pilot - IBM
Application Y Pilot - Oracle
Application Y Pilot - IBM
Application Y Pilot - Benchmark Results
Application X Overview