Docsity

TAILAR: A Suite of Applications for Data Migration and Anonymization, Study Guides, Projects, Research of Applications of Computer Sciences

Toggle sidebar
bg1
1
Chapter 1 : Introduction
This project belongs to the data warehousing domain and for the first time aims at
bringing a combined set of functionalities in a single product which are unique to
different products in OLTP and OLAP domains. This project is a starting point
towards building a suite of applications that offer ease and guidance in a variety of
data migration as well as data warehousing projects carried out in an onsite/offshore
model.
In onsite/offshore delivery projects, access to data is limited to the offshore
team due to varying laws of the host country. This adds complications to the
development process especially in the business intelligence area where answering
business queries requires building a set of reports. The design and development of
these reports can be effectively performed if actual data is available but rarely access
to that data is possible. With data anonymization, this problem can be addressed. The
real data values are replaced such that the actual data is no longer identifiable. This
dummy data may then be made available to the offshore team for their development
tasks.
Often there is a requirement that an organization wants to shift its systems to
newer and better different technology. For example, earlier they were carrying out all
their data analysis and processing tasks on Oracle but as part of their IT strategy they
decide to move to a better ware housing solution built on Teradata. This is known as
migration. It involves porting existing data structures to the new platform with
transformations involved for every database object. This project will also introduce a
migration facility that will involve extraction, transformation and loading process.
A new functionality related to database usage intelligence is debuted in this
product and is called Database Analytics and Reporting. A software agent will
continue to monitor the database usage over time and predict whether the space
requirements allow creation of more databases and database objects. A set of
graphical reports will be developed that will help analyze database usage over a
period of time and aid in capacity planning or database extensions. It will also contain
a set of database utilities such as Database Explorer & Backup Utility, SQL
Conversion guide etc.
docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54

Partial preview of the text

Download TAILAR: A Suite of Applications for Data Migration and Anonymization and more Study Guides, Projects, Research Applications of Computer Sciences in PDF only on Docsity!

Chapter 1 : Introduction

This project belongs to the data warehousing domain and for the first time aims at bringing a combined set of functionalities in a single product which are unique to different products in OLTP and OLAP domains. This project is a starting point towards building a suite of applications that offer ease and guidance in a variety of data migration as well as data warehousing projects carried out in an onsite/offshore model.

In onsite/offshore delivery projects, access to data is limited to the offshore team due to varying laws of the host country. This adds complications to the development process especially in the business intelligence area where answering business queries requires building a set of reports. The design and development of these reports can be effectively performed if actual data is available but rarely access to that data is possible. With data anonymization, this problem can be addressed. The real data values are replaced such that the actual data is no longer identifiable. This dummy data may then be made available to the offshore team for their development tasks.

Often there is a requirement that an organization wants to shift its systems to newer and better different technology. For example, earlier they were carrying out all their data analysis and processing tasks on Oracle but as part of their IT strategy they decide to move to a better ware housing solution built on Teradata. This is known as migration. It involves porting existing data structures to the new platform with transformations involved for every database object. This project will also introduce a migration facility that will involve extraction, transformation and loading process.

A new functionality related to database usage intelligence is debuted in this product and is called Database Analytics and Reporting. A software agent will continue to monitor the database usage over time and predict whether the space requirements allow creation of more databases and database objects. A set of graphical reports will be developed that will help analyze database usage over a period of time and aid in capacity planning or database extensions. It will also contain a set of database utilities such as Database Explorer & Backup Utility, SQL Conversion guide etc.

1.1 Project Scope

The scope of this project includes building a set of core functionalities listed below:

  1. Data Anonymization
  2. Migration (ETL)
  3. Usage Analytics & Reporting
  4. Database Utilities

TAILAR product aims at providing an integrated set of functionalities to its users. The functionality of Anonymization aims at concealing the original data so that when it is paired with some background information, identification of real data remains no more possible. A set of rules on the basis of which Anonymization is done are dealt with keeping the information loss least and efficiency maximum. Migration on the other hand encapsulates the tasks of extracting data from data source, transforming the data and then loading it back to the target. The functionality of Analytics & Reporting helps in database capacity planning and provides reports on the usage of the databases and respective tables. Database Utilities aid the user in carrying out a few databases related tasks in an integrated environment.

1.2 Project Stakeholders

The stakeholders of this project comprise mainly of the application users, project managers and the development team.

1.3 Software Development Lifecycle

The software development lifecycle followed for TAILAR application development is Incremental and Iterative Model. Project functionalities are sliced into increments as well as iterations. Each iteration enhances the functionality selected in a particular increment. In this case, the model of the system will be designed, implemented and tested incrementally with enhancements in each iteration until the product satisfies all of its requirements. The Incremental and Iterative Model combines both the Waterfall Model and Prototyping approach, with the elements of the waterfall model and the iterative philosophy of prototyping.

1.5 Thesis Organization

The thesis has been organized in 8 chapters with Introduction being the first chapter, which introduces the nature of the project and defines its scope, the project stakeholders and at the end the project lifecycle that has been followed for the development of the TAILAR product. Chapter 2 discusses complete project plan including the functional and non- functional requirements and the complete application architecture. Chapter 3 comprehensively discusses the functional requirements with detailed use case diagrams. Chapters 4, 5, 6, 7 each discuss four TAILAR functionalities including Anonymization, Migration, Analytics & Reporting and Database Utilities. Data Anonymization concepts with detailed Anonymization technique is discussed in Chapter 4. Similarly, Chapter 5 targets the ETL process, Chapter 6 the Analytics & Reporting section and Chapter 7 the Database Utilities. The conclusion and future work is discussed in Chapter 8. Appendix A, B, C and D show the Abbreviations, Code segments, TAILAR screenshots and Coding and naming conventions respectively.

Chapter 2 : TAILAR Plan

This chapter named TAILAR PLAN discusses in detail different user requirements for TAILAR. All the functional, non-functional, connectivity and hardware/software requirements along with the complete TAILAR Architecture are comprehensively discussed as follows.

2.1 Functional Requirements

TAILAR will provide the following set of functionalities which are discussed below.

  1. Data Anonymization
  2. Migration (ETL) a. Data Extraction from Source System b. Metadata Conversion c. Data Loading into Target System
  3. Usage Analytics & Reporting a. Capacity Planning b. Database Usage Analysis
  4. Database Utilities a. DB Explorer & Backup Utility b. SQL Syntax Conversion Guide c. SQL Syntax Converter d. DB Similarity Test

2.1.1 Data Anonymization

Data anonymization de-identifies the confidential information and creates a realistic database copy that is still fully functional and no longer vulnerable. It refers to replacing the original data with dummy data values while maintaining the referential integrity as it exists in the original data. In this way, anonymized data becomes a true representation of original data and can be provided to development team. The need for anonymization arises due to varying data privacy laws in many parts of the world and access to production data is denied for offshore development. It is understandable as the data may contain confidential information but a way should exist in order to

2.1.4 Database Utilities

TAILAR will provide a number of database utilities which will include DB Explorer & Backup Utility, SQL Conversion Guide and SQL Syntax Converter. The functionality of Database exploration and then taking the backup includes the selection of a particular database object kind and then a database object, taking the backup at a user specified location.

The SQL Conversion guide will provide a feature in which the utility will help the user in identifying the incompatible keywords in the SQL Syntax that occur across different RDBMS including Teradata, Oracle and MS-SQL.

In case of SQL Syntax Converter, user will enter a specific SQL keyword and accordingly the converter will display a list of matching keywords in all other technologies including Oracle, Teradata etc.

The DB Similarity Test will compare the two databases across same server type and show the results.

2.2 Non-Functional Requirements

The non-functional requirements of the system are described in detail as follows:

2.2.1 Usability Requirements

TAILAR will serve many usability requirements including the following:

  1. Intuitive & Easy to use GUI
  2. Easy Installation support
  3. User Manual
  4. Developer Guide

2.2.2 Performance Requirements

In the development of the software product TAILAR, the following performance requirements will be under consideration.

  1. Optimized Transformation
  2. Optimized Analysis
  3. Optimized Data loading

2.3 Security Requirements

The connectivity to databases will be secured by encrypting the connection strings. The connection string will be secured through one way encryption using SHA-1 hash algorithm.

2.4 Connectivity Requirements

Following connectivity requirements should be met for the development of TAILAR:

  1. .Net Framework 2.
  2. Teradata provider for .Net
  3. SQL- provider for .Net
  4. Oracle Server provider /drivers for .Net
  5. Microsoft Enterprise Library of practices & patterns (For efficient data retrieval & operation)

2.5 Hardware/Software Requirements

The application will be developed using Microsoft .NET Framework Version 2.0. Its hardware requirements are given below:

1 2 GHZ Processor 2 2 Gigabytes of RAM 3 1 GB free space for application folder

2.6 TAILAR Architecture

The TAILAR application exposes three-tier architecture namely:

  1. Presentation Tier
  2. Business Tier
  3. Data Tier The presentation layer interacts with the business logic tier which in turn uses the data tier to fetch the data from databases. The complete TAILAR Architecture along with the interaction between tiers is shown in Figure 2-1.

iii) Data Access Layer (DAL)

The data access layer cleanly separates the data access details from the presentation layer, however, it does not enforce any business rules that may apply. For simplicity, the data access layer is divided into the following:

  1. Data Access Helper Components
  2. Business Entities

a) Data Access Helper Components (DAHC)

A Data Access Helper Component provides methods to perform the following tasks upon a database:

  1. C reate records in the database.
  2. R ead records in the database, and return business entity data to the caller.
  3. U pdate records in the database.
  4. D elete records in the database.

The methods that perform the preceding tasks are often called “CRUD” methods, where CRUD is an acronym based on the first letter of each task.

b) Business Entities

The business entities serve as objects using which the Data Access Helper Component does data manipulations with the target database. Figure 2-2 encapsulates the division of layers.

Presentation Layer

Business Logic Layer

Helper Component^ Data Access Business Entity

Data Access Layer

Figure 2-2: Architectural Layers

2.6.3 Detailed TAILAR Architecture

The detailed TAILAR architectural diagrams for each TAILAR functionality are discussed below.

i) Data Anonymization

Figure 2-3 describes the complete architecture for the functionality of Data Anonymization. This feature is modeled using the basic three-tier architecture where the real data is the input to the functionality; Anonymization is done based on Presentation layer, Business Logic Layer and the Data Access Layer. All the major processing including selecting tables to Anonymize, selecting columns, executing the process and extracting the output are done in the BLL Layer where DAL helps in all data manipulations and PL provides the user with the easy-to-use interface.

AnonymizationData

DBX (^) DBX

----T ---- --------T

----T

----T ---- --------T

----T

  • Select Column- Select Table
    • Execute- Output
  • Save Output

Business LogicLayer

Presentation Layer

Data Access Layer

REAL DATA ANONYMIZED DATA

Figure 2-3: Data Anonymization Architectural Diagram

ii) Migration

Figure 2-4 discusses the detailed architecture for the functionality of Migration which includes Extract Transform and Load operations. The data is extracted from source,

Analytics & Reporting (^) - Analyze System Parameters

  • Generate Alert Messages- Launch Capacity Planner

Business Logic Layer

Presentation Layer

Data Access Layer

Figure 2-5: Analytics & Reporting Architectural Diagram

Database Utilities - Explore Databases- Take Backups

  • Create Conversion Guides
    • Generate Scripts
      • Similarity Tests

Business Logic Layer

Presentation Layer

Data Access Layer

Figure 2-6: Database Utilities Architectural Diagram

Chapter 3 : Requirement Specification

3.1 Use Case Modeling

The complete use case modeling that has been performed for the application is comprehensively discussed in this chapter. The system use cases with their packages and their exploded package details are given underneath. Each use case along with its Description, Post-Condition, Pre-Condition, Sequence, Alternate Sequence (if applicable), Error Sequence (if applicable) and Constraints supported with figures is shown in the chapter.

Functional Requirements

The functional requirements of the system which describe different functions of the application that are developed are discussed as follows:

System Use Cases (Packages Overview)

Following are the use cases which show the overall behavior of the system. The complete system is shown in Figure 3-1, as a single TAILAR application package, which encompasses other functionalities.

TAILAR Application Package

Figure 3-1: TAILAR Application Package

The exploded view of the TAILAR application package shows further packages with distinguished set of functionalities. Packages of Data Anonymization, Data Migration, Database Usage Analytics & Reporting and Database Utilities are included in the TAILAR application package. Figure 3-2 gives the complete picture of the exploded TAILAR package.

Data MigrationPackage

Invoke MigrationWizard TAILAR User

Extract Data fromSource

<>

Convert Metadata

Load Data to Target

<>

<>

Figure 3-4: Use Cases of Database Migration Package

The exploded view of the package of Analytics & Reporting is shown in Figure 3-5. It shows two important use cases of Capacity Planning and Database Usage Analysis which are the two main feature of the Analytics & Reporting functionality.

Analytics & ReportingPackage

TAILAR User

Usage AnalysisDatabase

Capacity Planning

Figure 3-5: Use cases of Database Usage Analytics & Reporting Package

The detailed overview of the Database Utilities Package is shown in Figure 3-

  1. The four main use cases in this package include the SQL Conversion Guide, SQL Syntax Converter, Db Similarity Test and the Db Explorer & Backup Utility. TAILAR user interacts with the system and invokes these functionalities of the Database Utilities package.

Analytics & ReportingPackage

SQL Conversion Guide

TAILAR User Db Explorer & BackupUtility

Db Similarity Test

SQL Syntax Converter

Save to File

<>

Figure 3-6: Use Cases of Database System Utilities Package

3.1.1 Use Case: Anonymize Data

Description: This functionality will replace the original data values with dummy data at three different levels while maintaining the referential integrity. The detailed use case diagram is shown in Figure 3-7.

Levels of Anonymization:

  1. Entire database
  2. Single Table or Multiple tables inside a database
  3. Selected columns of a single table.

Pre-Conditions: TAILAR application is running and Data Anonymization functionality button is clicked.

Post-Conditions: Pop up message for successful completion of Anonymization process is shown to the user if no errors were encountered.

Sequence:

  1. User selects an appropriate database connection from the connection drop down list or creates a new connection.
  1. System prompts the user to enter a location to save a file.
  2. User enters a valid path name, where the table will be stored.
  3. System saves the table to the specified location.

The use case diagram for Anonymize Data is shown below:

Anonymize Data TAILAR User

Save To Database

<>

Figure 3-7: Use Case-Anonymize Data

3.1.3 Use Case: Invoke Migration Wizard

Description: This functionality aids in the data migration process. Pre-Condition: TAILAR application is running and Data Migration button is clicked. Post-Condition: Pop up message for successful completion of data migration process is shown to the user, if no errors were encountered.

Sequence:

  1. System prompts to select source from where the data is to be extracted. (See Extract Data from Source use case for details.)
  2. User selects to convert the data. (See Convert Metadata use case for details).
  3. System prompts the user to load data to a target. (See Load Data to Target use case for details.) The use case diagram for Invoke Migration Wizard process is shown in Figure 3-8.

3.1.4 Use Case: Extract Data from Source

Description: This functionality performs the process of extracting data from any source database. The detailed use case diagram is shown in Figure 3-9.

Invoke MigrationWizard

TAILAR User

Extract Data fromSource

<>

Convert Metadata

Load Data to Target

<>

<>

Figure 3-8: Use Case- Invoke Migration Wizard

Pre-Conditions: TAILAR application is running and Extract Data from Source tab is open in Data Migration wizard. Post-Conditions: Pop up message for successful completion of data extraction process is shown to the user, if no errors were encountered.

Sequence:

  1. User selects a database server. (See Create Database Connection use case for details.)
  2. User selects a particular database from which data is to be extracted. (See Select Database use case for details.)

3.1.5 Use Case: Create Database Connection

Description: This functionality performs the process of creating a connection to a database server. Pre-Conditions: TAILAR application is running, Extract Data from Source tab is open in Data Migration wizard and create database connection button is clicked. Post-Conditions: Pop up message for successful completion of creation of a database connection is shown to the user, if no errors were encountered.

Sequence: