Professional Documents
Culture Documents
Case Study
Oracle to DB2 Migration
For a leading European Energy Utility
Project Challenge
Solution Snapshot
Result
Background
The company engaged a consultant to study the problem and suggest most
suitable strategy to effectively meet expected growth rate of the customer base,
and the need for a robust, scalable, secure and affordable solution. The consultant
suggested migrating to Linux, and implementing an n-tier architecture solution
using DB2 as the database.
Solution Approach
The table below summarizes the whole project:
Development Intertec’
s eStudio, Erwin, Stored Procedure Builder of
Tools IBM, Rational Visual Test, Front Page 2000, Web
Intelligence of Business Objects
1. The Company stipulated that the reports (more than 30 in number, and
growing) must be dynamically identified, constructed, populated and
presented as Web pages.
Overall, this approach provided the best development plan and project
management [see Appendix A for initial project stage considerations].
Solution Details:
Below is a schematic of the existing Power Builder application setup:
Client Server
Database
(Oracle 7.3)
Client
Graph Report JSP
Browser Request Java
(IE or Dispatcher Beans
NS) Channel Report JSP
HTML
Database
(DB2)
We retained the PowerBuilder designed report formats and, by parsing the text
version of the report definitions, we created Java Objects with properties like
graphs/ tables, # of bars/ # of columns, etc. In order to minimize tool-relearning
strains we retained the basic look and feel of the pages for the logged in user.
The Request Dispatcher would identify the report type chosen by the user and
redirect the request to the corresponding JSP module. The JSP modules would …
ü Further identify the specific report variant and access the matching report
object
ü Interpret the report properties and build it
ü Using the Client ID, prepare a dynamic SQL query to populate the table
ü Send an HTML response to present the report.
The report formats were thoroughly refurbished to behave like web pages, as
against the plain windows of PB system. The web pages further provided options
to reformat the presented report in 10 other ways. User could simultaneously
view as many report pages as required.
We used Business Objects Designer to design the static reports of the existing PB
system and presented them using Web Intelligence. This enabled quick
customization saving lot of development time and efforts [ref. Appendix C for an
example Business Objects report].
Database Migration:
The Company has already converted their business solution process into a set of
intricate SQL Table relationships, which, from the ID of the user logged in,
systematically lead to all the information stores and report formats the user is
privileged to access. One set of tables contains parametric data to identify the
user and related report definitions and privileges. The definitions contain
mathematically derived functional relationships among the data tables
A second set of tables contains data relating to minute-by-minute Kwh of power
consumed at various metered points in the user premises. Each meter feeds a
distinct table and so the number of data tables getting defined in the table space
with identical structures is quite high.
Following table summarizes some of the important database metrices
The Database Migration was found to be a critical part of this project as the
existing Oracle 7.3 database had to be completely moved onto DB2/Linux which
includes Schemas, Tables, Views, Stored procedures, Triggers, Indexes and last
but not least, the actual data, stored in Oracle tables.
• The Schema for the existing database was extracted using Erwin, the data
modeler.
• The extracted Schema was migrated to DB2/Linux using Erwin with some
limitations in transferring Stored Procedures and some datatypes. [see
appendix B for screen shots of some ER diagrams]
• Four of the Stored Procedures (SPs) from Oracle PL/SQL were manually
transformed using Stored Procedure Builder of IBM and put into DB2/Linux.
Three other SPs were effectively transformed into middle tier Java Bean
components as they were either not table specific or involved significant
business logic.
• Data from the Oracle 7.3 has been migrated to DB2/Linux using data
migration tool developed by Intertec.
Testing processes
§ Checksum, row level and table level, for ensuring correctness of data
migration.
§ Use of Rational Visual Test for checking functionality of renovated application
Ø 17 Scenarios
Ø 3 Suite Managers
Post-Project experiences
Appendix A
List of Issues & considerations while designing
the solution strategy
ü DB admin to be considered
ü Performance tuning
ü # Programs customized
ü # New programs
ü # Changed programs
ü Cursor handling
ü Trigger issues
ü Transition strategy
ü Lessons Learnt
Appendix B
E R Diagram in the application
Zoom B
Zoom A
Appendix B (contd..)
Zoom A
Zoom B.
Appendix C
A Typical Channel Report generated using
Business Objects.