Migrating Database Stored Procedures--A Case Study
- Author
- WuXiaoPeng
- Advisor
- SunJianLing
- School
- Zhejiang University
- Major
- Applied Computer Technology
- Classification
- TP311.13 Database theory and systems
- Degree
- Master's thesis
- Year
- 2005
- Downloads
- 60
- Citations
- 0
Abstract
Rapid technological development and globalization of business trends makes many existing systems can not meet the ever-changing business needs, system migration and upgrades become a hot topic in the IT industry in recent years. Which is a key part of the posterior segment database migration, especially stored procedures transplantation. The products provided by different developers a huge difference, resulting in a lot of tools on the market does not solve the problem, this article has been State Street Technology Center of Zhejiang University, a real case for the sample to study the SQL SERVER 2000 to DB2 UDB 8 the stored process of transplantation specific problems, and trying to be elaborated from three angles. Transcoding for system specifications, such as language syntax and XML generation problem; operating system support differences, such as SQL Server support and integration of COM technology; DBMS differences, such as the system tables; differences inline function causes storage transplant process issues, this article proposes the corresponding solutions, such as simulation using Java stored procedures to solve unique technical problems caused (such as simulation Windows COM technology); compiler technology and system characteristics and JDBC technology to solve the problem of XML generation. In this paper, the source code to source-level conversion solutions provides great flexibility and correctness. From test perspective conversion late, artificial generate test cases to the stored procedure is a very onerous and time-consuming task. Both improve test efficiency, shorten the software development cycle, reduce the cost of software development, which is a major obstacle. Although there have been many methods have been proposed to automatically generate test cases for a generic application, but these methods are not based on a database stored procedure. In this paper, a stored procedure automatically generate test cases. The method is based on the code-oriented path, it uses the SQL queries to stored procedures and database data bound to generate test cases. The method focuses on based legacy system migration project database. And do a stored procedure on the basis of the method, test case generation tools attempt to achieve. Finally, from the practical point of view of the project, large-scale data migration project planning, staff arrangements and conversion strategy has a certain degree of particularity, this article provides a concrete implementation of the project to provide reference data for future generations. Although this paper is mainly to solve the transplant problem to IBM DB2 from SQL Server 2000, but its theoretical and programs have a lot in common, transplantation of other database products also have a certain reference value.
Table of contents
Table of Content 2-4
Abstract 4-5
Summary 5-6
Acknowledgements 6-7
1 Introduction 7-12
1.1 Database Migration Motivation 7-9
1.2 Database Market Survey 9-10
1.3 Case Study 10-12
2 Stored Procedure Migration Technologies 12-34
2.1 Overview 12
2.2 Stored Procedures 12-17
2.2. 1 Stored Procedures in SQL Server 2000 12-14
2.2.2 Stored Procedures in DB2 14-15
2.2.3 Common things of stored procedures 15 - 16
2.2.4 Differences between stored procedures in these two products 16-17
2.3 General Migration Process 17-21
2.4 Source Code Conversion Technologies 21-26
2.4.1 JavaCC - Java Compiler 21-23
2.4.2 JJTree - parser generator 23
2.4.3 JDBC Technology 23-26
2.5 Stored Procedures Testing Technologies 26-30
2.5.1 Specification-based test case generation 26-28
2.5.2 Code-based test case generation 28-30
2.6 DB2 Migration Toolkit 30-34
3 Case Study: SSZUTC APS Project 34-58
3.1 Background 34-36
3.2 Key Issues during Database Migration 36-52
3.2.1 Source Code Conversion 36-44
3.2.2 Stored Procedure Testing 44-52
3.3 Experimental Results 52-58
3.3.1 Project Progress 52-56
3.3.2 Project Resource Allocation 56-58
4 Tools Implementation 58-70
4.1 Source Code Converter 58-60
4.2 Test Case Generator 60-70
4.2.1 The grammar of acceptable stored procedure 62-63
4.2.2 Build Syntax Tree 63-67
4.2.3 The essence of ATG for SP 67-70
5 Conclusion 70-71
Reference 71-75
Published Paper 75
Related dissertations
- The development of government website based on ASP
- Research on Database Legacy System Migration to the Integrated Web Service
- Research and Implementation of Database Virtual Laboratory
- Design and Implementation College Management Information System Based on WEB
- Design and Implementation of Youth Safety Supervisor Management Information System
- Design and Implementation of the Stock Room Shingle and Contract Registration System
- The Design and Realization of Scientific Research Information Management System Based on C#Technique
- Product Validation Test Method of Handset Solution Research
- Research on the Impact of Human Resource Management on Employees Performance
- Study on the Construction of Agricultural Information Service System
- Study on the Integration and Application of the Second Land Survey Data
- Study on Database Construction and Application Research of Township Overall Land Use Planning
- Countermeasure Research on the Development of Digital Library Integrated Retrieval System in China
- The Design and Development of Unattended Remote Measurement and Monitoring System in Steel Business
- Design and Implementation on Three-dimensional Monitoring System of Data Center
- Large Network Monitoring System Based on ARM
- The Research on Fire-fighting Based on Image Processing in Large Space
- Design and Application of the Distributed Monitoring System Based on Embedded Web
- Excogitation and Implementation of Monitor System for the Greenhouse’s Host Machine
- Design of Circuit Testing System of Vehicle Fuse Box Based on LabVIEW