International Journal of Engineering Trends and Technology (IJETT) – Volume22 Number3- April2015 Database Migration between Two Heterogeneous Systems Gaurav Singh#1, Siddhesh Satardekar#2, Yugandhara Rane#3 , Prof. Alka srivastava#4 # Department of Computer Engineering, Atharva College of Engineering, Marve Road, Malad(west), Mumbai400095,Maharshtra,India Abstract— With the development of Database Management Systems, there is suddenly a need for up gradation from an old database to a new desired database. For example, sometimes the organisation might need to migrate data from one database to another, as they might have one part of their database in oracle and another part in mysql or MS Access. That is when a Database Migrator is used to migrate the data between multiple databases. In database migration, structure development is one of the most important and major challenges. Each database has different syntax and semantics, which is a crucial problem in data migration. There are two steps to perform data migration: First is structure mapping and second is migration. Traditionally, the first step was carried out by expert programmers and the second step was done by a software. In this paper we will see the model of a new data migration approach between two heterogeneous databases. This model does data migration by creating a middle layer. Keywords— Database migration, Database, Database Migrator. I. INTRODUCTION Data migration is the process of migrating data between two database management systems [1]. We migrate the data from one platform to another platform in data migration. Data migration is done for various reasons like storage equipment replacements, data centre relocation, maintenance, upgrades, etc. We can take an example of a small company which has MySQL database which is able to handle the records and database very efficiently. But as the company expands, the database increases. So the company needs to expand to a more efficient database . This is where a Database Migrator is used. Data migration is an important issue when it is concerned with the process of updating data. Data which are migrated into new system are huge in size and are prerequisite for new system starting up and basis of decision making.[5] In Data migration, we extract data from the old database and load it into the new database. Exporting, importing or migrating data between different sources is very time consuming and complicated task, especially if these data sources store data in different formats[3]. We develop data migration tools so as to save time for migrating into a new database. It makes data migration simpler and also saves human resources. ISSN: 2231-5381 II. LITERATURE RIVEIW In data migration, the migration of data based on the structural difference of database is proposed. The difference between two database are of three types: A. Syntax Difference In various databases we use various types of languages. Therefore we need an extensive knowledge base so as to cover the grammar of the multiple databases. In data migration, the request to be send should always be written and send in the source db language and the output which we get should be saved by the use of the target database language. B. Data Model Difference Data model difference occurs when different types of data models like object oriented or relational are used. We need to map the data model of the source database and accordingly prepare an equivalent of that in the data model of our target database. For such situation we use a software layer like a wrapper. Wrapper is used for inter-converting the two structures in the needed solution. C. Semantic Defference Variant analysis and aspect toward the process of developing a database causes semantic differences between two databases. Due to this inconsistency, different entities are created for a certain issue[1]. Lets say a company which has one head office in Mumbai and one in New Delhi wants to share their data. Even if the software they used to develop the database is the same, and the language used is also same, but the title of the tables used might be different. Hence we need some extra information about the structure or the data of the databases. III. ARCHITECTURE When a database is migrated we first migrate the tables and then the actual data migration takes place. Before we start the migration a connection is established between the source and the destination. Then a list of selected items are displayed to the user from which the user selects the desired constraints. After this the actual data migration is initiated. http://www.ijettjournal.org Page 126 International Journal of Engineering Trends and Technology (IJETT) – Volume22 Number3- April2015 Programmatic data migration may involve many phases but it minimally includes Data Extraction- where data is read from the old system and Data Loading- where data is written to the new system[3]. For this purpose we use ETL Algorithmic strategy. We assume that the source data structure is not same as destination data structure. In this algorithm we first read the source data and extract it. After reading the source data various transformation rules are applied to the selected data. Transformation rules are basically transformation codes, key generation, converting data types. Once the format is done we load the tables. And database is migrated. IV. PROBLEM STATEMENT To develop a database migration tool that helps in migrating data from MS Access to SQLServer, Oracle and MySQL .The database migrator will take an existing database as an input and will convert it into desired database format which is the output. Both the database will be specified by the user. It also has various other scopes like Security, Interactivity, Time Efficiency and Flexibility. V. CONCLUSION Figure.1: The system architecture[3] Figure.1 Explains the working of the application. Today various organisations use different types of databases. If an organisation wants to shift from one database system to another database system they have to convert the entire database to work in another database system. For this database migrator is used. The purpose is to migrate a database from source database to destination database. This migrator tool converts from MySQL to Oracle, SQL server to MS Access, MS Access to Oracle. Steps: 1) The first step is the validation step, where the user is asked username and password for validating. 2) Then the user is asked for the source database which the user wants to migrate. MySQL, Oracle, SQL Server and MS Access are the source databases. After the user selects the source database the connection is made. 3) After making a connection the user is asked for the destination database. The user is also asked to select the tables and columns which are supposed to be migrated. 4) The user is provided with the facility to select either the schema of the table or rows of the table along with the constraints which are applied to the tables.[3] 5) After that the user starts the migration process. If the migration is successful a success status report is shown on the screen. If the migration is pending or cancelled the screen shows status accordingly. ISSN: 2231-5381 VI. FUTURE WORK a) Scheduling : One can migrate the data at any time. If you want to migrate the data at 5 o’clock then you can set the time. [6] b) Migration can be done in a small area network : One can migrate the data in LAN or Wi-Fi. [6] ACKNOWLEDGMENT We are extremely grateful to Ms. Alka Shrivastava for her constant guidance and support. REFERENCES [1] Ramin Ahmadi,Bagher Rahimpour Cami,Hamid Hassanpour, “Automatic Data Migration between Two Databases with Different Structure” International Journal of Applied Information Systems (IJAIS) – ISSN : 2249- http://www.ijettjournal.org Page 127 International Journal of Engineering Trends and Technology (IJETT) – Volume22 Number3- April2015 [2] [3] [4] [5] [6] [7] 0868 Foundation of Computer Science FCS,Volume 3, No.3, July 2012 – www.ijais.org Data_migration, http://en.wikipedia.org/wiki/Data_migration ) Rajesh Yadav, Prabhakar Patil, Uday Nevase, Kalpak Trivedi, Prof. Bharati Patil,”Incremental Data Migration in Multi-database Systems Using ETL Algorithm”, Rajesh Yadav et al, / (IJCSIT) International Journal of Computer Science and Information Technologies, Vol. 5 (2) , 2014, 2121-2125 Shinde Anita Vitthal, Thite Vaishali Baban, Roshni Warade, Krupali Chaudhari, “Data Migration System in Heterogeneous Database” ,International Journal of Engineering Science and Innovative Technology (IJESIT) Volume 2, Issue 2, March 2013 Tribhuvan Shweta M., Rasane Pratiksha V., Prof. M. R. Bendre, “Data Migration In Heterogeneous Databases (ETL)”,International Journal of Emerging Technology and Advanced Engineering,Volume 4, Issue 2, February 2014 Shashikant Patel, Sagar Wakchaure, Mahendra Pingale, Saba Siraj, “DATA MIGRATION SYSTEM IN HETEROGENEOUS DATABASE”, IJRET: International Journal of Research in Engineering and Technology Chadi Kari, Yoo-Ah Kim, Alexander Russell, “Data Migration in Heterogeneous Storage Systems”, 2011 31st International Conference on Distributed Computing Systems ISSN: 2231-5381 http://www.ijettjournal.org Page 128