Database consolidation tool
First Claim
Patent Images
1. A computer-implementable method for consolidating a plurality of databases, the method comprising:
- associating a child target table with a parent target table, wherein each row in the child target table includes a first foreign key pointer to a target primary key in the parent target table, wherein the parent target table provides a first administrative descriptor of each data field in the child target table;
associating a child source table with a parent source table, wherein each row in the child source table includes a second foreign key pointer to a source primary key in the parent source table, wherein the parent source table provides a second administrative descriptor of each data field in the child source table;
merging the child target table with the child source table to form a consolidated child table;
creating a temporary parent source table by copying the parent source table and adding a target row ID column used to track completion states of Foreign Key Realignment (FKR);
reading, from a foreign key table control file, a script that associates the target primary key and the source primary key with a single reference item found in both the parent target table and the temporary parent source table to produce, in an interim source/target reference table, one logical record per each reference item;
reading, from a foreign key realignment control file, a script to determine which child columns in the consolidated child table require realignment such that each same reference item has a same primary key;
reading each defined child column that requires alignment from the foreign key realignment control file;
creating a realigned consolidated child table and a common set of reference data, based on replacing each instance of the second foreign key pointer with the first foreign key pointer, in the consolidated child table, for all rows retrieved from the interim source/target reference table, wherein the first foreign key pointer is selected based on matching the first administrative descriptor with the second administrative descriptor; and
pointing each entry in the realigned consolidated child table to the parent target table.
3 Assignments
0 Petitions
Accused Products
Abstract
A method for consolidating a database in a Seibel CRM environment is presented. Bypassing the Business Object Layer (BOL) of the Seibel CRM environment, primary keys in a consolidated table are realigned such that a consolidated child table, created from two distinct databases, is able to point to reference items in a single parent table.
10 Citations
17 Claims
-
1. A computer-implementable method for consolidating a plurality of databases, the method comprising:
-
associating a child target table with a parent target table, wherein each row in the child target table includes a first foreign key pointer to a target primary key in the parent target table, wherein the parent target table provides a first administrative descriptor of each data field in the child target table; associating a child source table with a parent source table, wherein each row in the child source table includes a second foreign key pointer to a source primary key in the parent source table, wherein the parent source table provides a second administrative descriptor of each data field in the child source table; merging the child target table with the child source table to form a consolidated child table; creating a temporary parent source table by copying the parent source table and adding a target row ID column used to track completion states of Foreign Key Realignment (FKR); reading, from a foreign key table control file, a script that associates the target primary key and the source primary key with a single reference item found in both the parent target table and the temporary parent source table to produce, in an interim source/target reference table, one logical record per each reference item; reading, from a foreign key realignment control file, a script to determine which child columns in the consolidated child table require realignment such that each same reference item has a same primary key; reading each defined child column that requires alignment from the foreign key realignment control file; creating a realigned consolidated child table and a common set of reference data, based on replacing each instance of the second foreign key pointer with the first foreign key pointer, in the consolidated child table, for all rows retrieved from the interim source/target reference table, wherein the first foreign key pointer is selected based on matching the first administrative descriptor with the second administrative descriptor; and pointing each entry in the realigned consolidated child table to the parent target table. - View Dependent Claims (2, 3, 5, 6, 7, 8, 9, 10, 11)
-
-
4. The method of clam 1, further comprising:
-
migrating reference (parent) tables from the target database to the source database prior to invoking Foreign Key Realignment; storing the migrated data in temporary tables for later use by the Foreign Key Realignment application to perform lookups of matching reference data between the two databases, wherein foreign key pointers in a source customer data to source reference data can be realigned to point to corresponding target reference/admin items; and in response to completion of the Foreign Key Realignment, migrating customer data from the source database to the target database utilizing a migration tool which takes an input comprising a list of tables that are required for migration; wherein Foreign Key Realignment and migration each use a common engine, and a community of Foreign Key pointers to align and tables to migrate can be set in control files, and do not have to be individually configured.
-
-
12. A system comprising:
-
a hardware processor; a data bus coupled to the hardware processor; a memory coupled to the data bus; and a computer readable storage medium embodying computer program code, the computer program code comprising instructions executable by the hardware processor and configured to; associate a child target table with a parent target table, wherein each row in the child target table includes a first foreign key pointer to a target primary key in the parent target table; associate a child source table with a parent source table, wherein each row in the child source table includes a second foreign key pointer to a source primary key in the parent source table; merge the child target table with the child source table to form a consolidated child table; create a temporary parent source table by copying of the parent source table and adding a target row ID column used to track completion states of Foreign Key Realignment (FKR); read, from a foreign key table control file, a script that associates the target primary key and the source primary key with a single reference item found in both the parent target table and the temporary parent source table to produce, in an interim source/target reference table, one logical record per each reference item; read, from a foreign key realignment control file, a script to determine which child columns in the consolidated child table require realignment such that each same reference item has a same primary key; read each defined child column that requires alignment from the foreign key realignment control file; create a realigned consolidated child table and a common set of reference data, based on replacing each instance of the second foreign key pointer with the first foreign key pointer, in the consolidated child table, for all rows retrieved from the interim source/target reference table, wherein the first foreign key pointer is selected based on matching the first administrative descriptor with the second administrative descriptor; and point each entry in the realigned consolidated child table to the parent target table. - View Dependent Claims (13)
-
-
14. A non-transitory computer readable storage medium embodying computer program code, the computer program code comprising computer executable instructions configured to cause a data processing system to:
-
associate a child target table with a parent target table, wherein each row in the child target table includes a first foreign key pointer to a target primary key in the parent target table; associate a child source table with a parent source table, wherein each row in the child source table includes a second foreign key pointer to a source primary key in the parent source table; merge the child target table with the child source table to form a consolidated child table; create a temporary parent source table by copying the parent source table and adding a target row ID column used to track completion states of Foreign Key Realignment (FKR); read, from a foreign key table control file, a script that associates the target primary key and the source primary key with a single reference item found in both the parent target table and the parent source table to produce, in an interim source/target reference table, one logical record per each reference item; read, from a foreign key realignment control file, a script to determine which child columns in the consolidated child table require realignment such that each same reference item has a same primary key; read each defined child column that requires alignment from the foreign key realignment control file; create a realigned consolidated child table and a common set of reference data, based on replacing each instance of the second foreign key pointer with the first foreign key pointer, in the consolidated child table, for all rows retrieved from the interim source/target reference table, wherein the first foreign key pointer is selected based on matching the first administrative descriptor with the second administrative descriptor; and point each entry in the realigned consolidated child table to the parent target table. - View Dependent Claims (15, 16, 17)
-
Specification