`

Data Migration in ClearQuest

阅读更多
Document options
<!-- document.write('<tr valign="top"><td width="8"><img src="//www.ibm.com/i/c.gif" width="8" height="1" alt=""/></td><td width="16"><img alt="Set printer orientation to landscape mode" height="16" src="//www.ibm.com/i/v14/icons/printer.gif" width="16" vspace="3" /></td><td width="122"><p><b><a class="smallplainlink" href="javascript:print()">Print this page</a></b></p></td></tr>'); //--> <noscript></noscript> <!-- document.write('<tr valign="top"><td width="8"><img src="//www.ibm.com/i/c.gif" width="8" height="1" alt=""/></td><td width="16"><img src="//www.ibm.com/i/v14/icons/em.gif" height="16" width="16" vspace="3" alt="Email this page" /></td><td width="122"><p><a class="smallplainlink" href="javascript:void newWindow()"><b>E-mail this page</b></a></p></td></tr>'); //--> <noscript></noscript>
Set printer orientation to landscape mode

Print this page

Email this page

E-mail this page


Rate this page

Help us improve this content


Level: Introductory

Forrest Xia , Shanghai Globalization Lab, IBM

17 Jun 2005

If you want to move data from one ClearQuest database to another, this article can help. You'll learn how to use the Import/Export tool and the Move function in order to accomplish successfully the complicated, often frustrating task of data migration.

As an IBM® Rational® ClearQuest® user, you may need to move data from one ClearQuest database to another, which will allow you to optimize and better maintain your overall change management system. ClearQuest does provide some useful tools to help you achieve your data migration targets, but the process is inherently complicated. If you don't perform the task properly, data migration can cause problems in your system and frustrate both you and your team.

This article provides insight into two general examples of moving data within ClearQuest, illustrating how to use the provided utilities in order to move user data successfully.

Introduction

In ClearQuest, there are two ways to implement data migration. One is to use the Im

port/Export tool, and the other is to use the Move function (in the ClearQuest Maintenance tool and ClearQuest Designer).

The former method is suitable when your goal is data centralization. For example, say you have many defect records stored across several different databases, all of which have the same schema. To be able to manage them in a single, central location, you must first create a new database, and then use the ClearQuest Import/Export tool to finish the process.

Note: When you use the Import/Export tool to migrate data, you need to be aware of one issue: if there are reference dependencies in your source database that you wish to maintain, you need to pay attention to the import order. A good tip is to import reference records (such as IBM® Rational® Adminstrator Project, or RAProject, records) first, and then import your anticipant records (such as Defect).

The latter method is more suitable if you want to upgrade your back-end database. For example, let's say that you have been using Microsoft® Access as your ClearQuest back-end relational database management system (RDBMS). As the scale of your database needs increases day by day, you realize it's time to change the system to improve the performance, and you select DB2. In this scenario, you would use the Move function in the ClearQuest Maintenance tool and ClearQuest Designer to implement your data migration.



Back to top


General Steps

I. Use the ClearQuest Import/Export tool

As introduced previously, ClearQuest provides a pair of tools, Export and Import, that allow you to move records between different user databases. To move data successfully, follow these steps:

  1. Determine what records you want to move, and then determine what reference these records have.
  2. Export records and their references from the source user database.
  3. Import reference records into your target user database first, then import your intended records.
  4. After importing your records, ensure that there are no errors. If an error has occurred, refer to the import log to resolve the problem. If possible, avoid re-importing records.
  5. Finish data migration and announce to your team that the new user database is ready for use.

Example 1: Using the ClearQuest Import/ Export tool

In the following example you will learn how to use the Export/Import tool to combine defect records from two different user databases into one central user database.

Assume that you have two different ClearQuest databases called def1 and def2, and that they both have the same defect record type. Your plan is to move the defect data from these two user databases into an aggregated user database called def3, allowing you to centrally manage all of your defect data. After reviewing the data you plan to move, you find that there are some records with references to the RAProject in both of these databases.

Given this scenario, here are the steps you would follow to perform your migration:

First, you want to export the records from databases def1 and def2, respectively.

  1. Start the ClearQuest Export Tool. In Step 1, select a connection (for instance, GBDefects as shown in Figure 1), and then click Next.

Selecting a Schema Repository
Figure 1: Selecting a Schema Repository

  1. In Step 2 of the wizard, depicted in Figure 2, enter your admin account and password, select database def1, and click Next.

Selecting a database
Figure 2: Selecting a database

  1. In Step 3, select the record type that you wish to export, then click Next. In this example, shown in Figure 3, the Defect record type has been selected.

Selecting a record type
Figure 3: Selecting a record type

  1. In Step 4, select the fields you will export, and then click Next. Generally, you will export all fields, as illustrated in Figure 4.

Selecting fields to export
Figure 4: Selecting fields to export

  1. In Step 5, specify the path for exported records (c:\temp\def1\... in Figure 5), and then click Next.

Specifying the record path
Figure 5: Specifying the record path

  1. In the final step, specify some export conditions (such as the number of records in every export file), and a field delimiter (such as a comma). Once you've added your conditions, click Finish.

Specifying export conditions
Figure 6: Specifying export conditions

Now it's time to export the reference records (of your defect records). In this example, you need to export RAProject. To do this, we again invoke the ClearQuest Export Tool and repeat the first two steps.

  1. In Step 3 of the ClearQuest Export Tool, under Select a record type, select RAProject (as shown in Figure 7) and then finish the remaining steps of the export tool in the same manner as you did for the defect records.

Figure 7: Preparing to export reference records

You can now export the records of database def2 just as you did for database def1, including all relevant reference records. The wizard steps in which you specify the database name are repeated for clarity in Figures 8 and 9, following.

Selecting def2 as the database from which you will export records
Figure 8: Selecting def2 as the database from which you will export records

Specifying the path for the exported def2 records
Figure 9: Specifying the path for the exported def2 records

Now it's time to import all the records from def1 and def2 into a new database called def3. Before importing the defect records, however, you need to import the correct reference records.

  1. Start the Import tool, select the destination database (CentralDB in Figure 10), and input your admin account/password to logon (Figure 11).

Selecting the destination database
Figure 10: Selecting the destination database

Log on to the new database
Figure 11: Log on to the new database

  1. Import RAProject records first. In step 1 of the Import Tool, depicted in Figure 12, specify the record type RAProject and click Next.

Preparing to import reference records
Figure 12: Preparing to import reference records

  1. In Step 2, specify the path for record data and discarded data as shown in Figure 13, and then click Next. For more details on discarded data, refer to your ClearQuest documentation.

Specifying import paths
Figure 13: Specifying import paths

  1. In Step 3 of the tool, specify the field that contains a unique identifier for importing history or attachment data, then click Next. For the RAProject records in this example, illustrated in Figure 14, the Name field was used as the unique identifier.

Specifying the unique identifier
Figure 14: Specifying the unique identifier

  1. In Step 4, specify the proper field mappings for the Record data between the destination and the source, as shown in Figure 15, and then click Next.

Mapping the import file fields
Figure 15: Mapping the import file fields

  1. When you are mapping the History data in Step 4 of the import wizard, specify the source field to which the unique identifier is mapped. In the example depicted in Figure 16, the record type RAProject is mapped to display_name.

Mapping fields for history data
Figure 16: Mapping fields for history data

  1. When you are mapping the attachment data (Figure 17), leave the values unchanged and click Next.

Mapping attachment data
Figure 17: Mapping attachment data

  1. Click the Import New button and verify that there are no errors. If you do experience an error, ClearQuest will save the non-imported records in discarded files, so you can refer to the log to see why the error occurred, and then go back through the steps using those discarded files to resolve the problem.

Importing the reference records
Figure 18: Importing the reference records

After successfully importing the reference records, you can start to import the rest of your defect records.

  1. Start the ClearQuest Import tool and specify the record type (in this case, shown in Figure 19, Defect), and click Next.

Preparing to import your defect records
Figure 19: Preparing to import your defect records

  1. In Step 2 of the Import tool, specify the paths to your record data, history data, and attachment data (as shown in Figure 20), and click Next.

Specifying your import paths
Figure 20: Specifying your import paths
Figure 20: Specifying your import paths

Note: Because defect records have state values, you will need to specify the field that represents each of those states. More importantly, you need to specify a unique identifier for each record type's history data and attachment data. For defect records, there is a field called old_id that is specifically designed for data migration, as shown in Step 3 of the import tool.

  1. In Step 3 (Figure 21), select the field name that specifies the unique identifier for each record, and then click Next.

Specifying the unique identifier
Figure 21: Specifying the unique identifier

  1. For Record Data in Step 4 of the import tool, map the old_id destination field to the id source field (as shown in Figure 22). This is a key step that will determine whether or not you can import history data and attachment data. After ensuring that this is mapped correctly, click Next.

Correctly mapping record data
Figure 22: Correctly mapping record data

  1. When performing this step for History Data (depicted in Figure 23), map the old_id destination field to the display_name source field and click Next.

Mapping fields for history data
Figure 23: Mapping fields for history data

  1. When mapping the Attachment data (Figure 24), you should also map the old_id field to the display_name field, and then click Next.

Mapping fields for attachment data
Figure 24: Mapping fields for attachment data

  1. In Step 5 of the Import tool, click the Import New button (shown in Figure 25) and then verify whether or not any errors have occurred. If there are errors, refer to the log and review the process step-by-step to resolve any problems. If you only succeed in importing some of your records, you can refer to the log to determine which records were not imported. Then you can use discarded files as record files to import the remaining records.

Importing your defect records
Figure 25: Importing your defect records

Now repeat these steps to import the def2 database records as you just did for def1, and you have merged the two databases into one central database! You can now query the consolidated database (def3) to verify those records, as shown in Figure 26.

Querying the new database
Figure 26: Querying the new database

II. Using the Move function of the ClearQuest Maintenance tool and ClearQuest Designer

The Move function is a powerful tool, you can use it to migrate your data among different databases without knowing the relationship or references of the records. Follow these steps to migrate your data using this method:

  1. Determine your target back-end RDBMS, and then prepare proper databases (including the Schema Repository database and the User database).
  2. Move the User database with the ClearQuest Designer.
  3. Move the Schema Repository database with the ClearQuest Maintenance Tool.
  4. Complete your data migration.

In the following example, you will learn how to change the ClearQuest back-end RDBMS from Microsoft Access to IBM® DB2® using the Move function.

Example 2: Using the Move function to move your defect and schema repository databases

Let's assume that you have a defect database that uses Microsoft Access as the back-end RDBMS, and you would like to migrate the data from Microsoft Access to IBM DB2. To do this, you must first prepare two DB2 databases: in this example, one is called gbsrdb (for your schema repository), and the other is called bdefdb (for your user defect database).

For more information about how to configure DB2 databases to use with ClearQuest, please refer to the article entitled Configuring ClearQuest to use DB2 as your back-end RDBMS .

Begin by moving your user defect database with ClearQuest Designer.

  1. Start ClearQuest Designer, and click Database > Move User Database as shown in Figure 27.

Preparing to move the user defect database
Figure 27: Preparing to move the user defect database

  1. In the Move User Database dialog (depicted in Figure 28), select the user database you want to move, and click Properties.

Getting ready to specify the move properties
Figure 28: Getting ready to specify the move properties

  1. Under Vendor, select DB2, and then enter the database name, your database admin name, and your password, as shown in Figure 29. Click Move to begin the migration process.

Migrating the user database
Figure 29: Migrating the user database

  1. Check the status of the move in the Moving Database dialog window illustrated in Figure 30 to verify that your move was successful.

Verifying a successful move
Figure 30: Verifying a successful move

Having finished moving your user defect database, it's now time to use the ClearQuest Maintenance Tool to move your Schema Repository database.

  1. Start the ClearQuest Maintenance Tool. Under Existing Connections, highlight the connection you want to move, and then click Schema Repository > Move as shown in Figure 31.

Preparing to migrate the Schema Repository
Figure 31: Preparing to migrate the Schema Repository

  1. Select DB2 under Vendor, enter the name of the schema repository database and your admin information, and then click Finish to start the move process (Figure 32).

Figure 32: Finishing the move process

  1. Again, verify that your move was successful by noting the Status field in the ClearQuest Maintenance Tool - Move window shown in Figure 33.

Another successful move
Figure 33: Another successful move

It's just that simple. You have now upgraded the back-end RDBMS for your ClearQuest implementation from MS Access to IBM DB2.



Back to top


ClearQuest tools for migrating data

As you can see, you can -- with a little care -- consolidate or upgrade your databases in ClearQuest, using the Import/Export tools or the Move function, respectively. This powerful functionality will help you continue to improve your ability to manage defect and change information.

分享到:
评论

相关推荐

    Samsung Data Migration Setup.exe

    三星固态硬盘数据迁移软件官网地址:https://www.samsung.com/semiconductor/minisite/ssd/download/tools/

    SwisSQL Data Migration 6.7 破解工具

    SwisSQL Data Migration 6.7 的 破解工具 需要安装java jdk 1.6+ 输入用户名,单据generator会生产注册码 本工具只为学习研究。

    SAP Data Migration Strategy and Method数据迁移策略和方法

    本文档为您提供了一个过程,可以帮助您组织和执行从旧系统进行的数据传输。 它描述了我在不同实现中成功使用的数据迁移方法。 它基于我以前的经验。 其内容或结果不做任何保证。 本指南为您提供建议。...

    Samsung_Data_Migration_Setup_v30

    《三星数据迁移软件Samsung Data Migration v30详解》 在数字化时代,数据迁移已经成为许多用户在更换电脑或升级存储设备时的必要步骤。三星作为全球知名的电子设备制造商,为用户提供了一款高效便捷的数据迁移工具...

    Samsung_Data_Migration_Setup_4.0.0.18.exe

    Samsung_Data_Migration_Setup_4.0.0.18.exe

    Go-DM(DataMigration)是一体化数据同步任务管理平台

    Go-DM(DataMigration)是一个专门针对数据迁移和同步任务管理的一体化平台,它旨在提供高效、稳定且易于操作的数据流动解决方案。该平台的核心功能包括全量数据备份以及MariaDB和MySQL数据库的binlog增量同步,从而...

    data-migration-tool.rar

    数据迁移工具(data-migration-tool.rar)是一个用于在不同系统间移动和转换数据的应用程序,它通常采用编程语言如Java来实现。在这个压缩包中,我们可以看到三个关键组件:http-job-mgmt、http-connector和migration-...

    Samsung_Data_Migration_Setup.exe

    这款samsung data migration软件是一个专用三星固态硬盘的ssd数据迁移软件,您可以使用这款软件将电脑上的磁盘数据、硬盘数据克隆到Samsung SSD上,方便很多实用。

    Fresoar Data Migration 2.0 数据抽取(ETL) 工具

    ### Fresoar Data Migration 2.0 数据抽取(ETL) 工具知识点解析 #### 一、概述 Fresoar Data Migration 2.0(以下简称FDM 2.0)是一款专注于数据抽取、转换、加载(ETL)的专业工具。它不仅提供了强大的数据迁移...

    Core.Data.in.Swift.Data.Storage.and.Management.for.iOS.and.OSX

    Reduce your migration difficulties, integrate your Core Data app with iCloud and Watch Kit, and use Core Data in a queue-based environment. By the end of the book, you'll have built a full-featured ...

    Samsung三星DataMigration数据迁移软件v2.6版ForWinXPVistaWin7Win8Win8.1

    Samsung三星Data Migration数据迁移软件2.6版For WinXP-32/Vista-32/Vista-64/Win7-32/Win7-64/Win8-32/Win8-64/Win8.1-32/Win8.1-64(2013年12月17日发布)很多用户购买SSD是为了将其作为系统盘,但是数据迁移成了...

    SpringBatch-DataMigration SpringBatch数据迁移项目

    本项目为两个数据库,由一个数据库的表向另外一个数据库的表做数据迁移,其中数据库脚本在:/src/main/resources/sql/下面(其中data_rep中的表要求创建顺序,有依赖) 项目功能: 1.本项目运行在tomcat容器中,主要...

    Data Migration with SAP.zip

    sap press doc 解压密码:abap_developer

    all-in-one-wp-migration.7.17.zip

    《全面了解WordPress备份与恢复:All-in-One WP Migration插件详解》 在WordPress的世界里,数据的安全性至关重要。为了防止意外的数据丢失或网站崩溃,定期备份成为了一个必要且明智的操作。All-in-One WP ...

    all-in-one-wp-migration-file-extension.zip

    《全面解析WordPress迁移插件:All-in-One WP Migration File Extension》 在WordPress的世界里,数据迁移是一项常见的任务,无论是为了网站备份、迁移至新的主机,还是进行开发测试,都需要高效且可靠的工具。All-...

    Python库 | tortoise-data-migration-0.1.14.tar.gz

    《Python库Tortoise-Data-Migration:数据迁移的艺术》 在Python的开发世界中,库扮演着至关重要的角色,它们提供了丰富的功能,使得开发者能够更高效地完成各种任务。今天我们将聚焦于一个名为"Tortoise-Data-...

    SpringBatch-DataMigration-master.zip

    使用springBatch进行数据迁移的demo,数据库使用mysql,需要新建3个数据库data-rep(springBatch需要的表)、spring_batch_right(目标数据库)、spring_batch_left(数据所在数据库)

    Data Migration Tool for z/OS-开源

    《Data Migration Tool for z/OS:开源解决方案揭秘》 在当今的IT环境中,数据迁移是一项至关重要的任务,尤其是在大型机(Mainframe)领域。本文将深入探讨“Data Migration Tool for z/OS”,这是一个专为在MVS...

Global site tag (gtag.js) - Google Analytics