Merging apparatus and merging method
A merging apparatus includes a first database in which a plurality of attributes including a key attribute that is set in advance as a key for merging is set and a second database in which one or a plurality of attributes excluding the key attribute is set. Furthermore, the merging apparatus checks an attribute that is set in the first database against an attribute that is set in the second database and extracts a common attribute that is set in common in both the first database and the second database. Then, the merging apparatus merges the first database with the second database by determining whether attribute values classified under the extracted common attribute match.
Latest Fujitsu Limited Patents:
- SIGNAL RECEPTION METHOD AND APPARATUS AND SYSTEM
- COMPUTER-READABLE RECORDING MEDIUM STORING SPECIFYING PROGRAM, SPECIFYING METHOD, AND INFORMATION PROCESSING APPARATUS
- COMPUTER-READABLE RECORDING MEDIUM STORING INFORMATION PROCESSING PROGRAM, INFORMATION PROCESSING METHOD, AND INFORMATION PROCESSING APPARATUS
- COMPUTER-READABLE RECORDING MEDIUM STORING INFORMATION PROCESSING PROGRAM, INFORMATION PROCESSING METHOD, AND INFORMATION PROCESSING DEVICE
- Terminal device and transmission power control method
This application is a continuation of International Application No. PCT/JP2009/056741, filed on Mar. 31, 2009, the entire contents of which are incorporated herein by reference.
FIELDThe embodiments discussed herein are directed to a merging apparatus, a merging method, and a merging program.
BACKGROUNDIn recent years, there has been a known technology for managing a plurality of databases in a centralized manner, such as the federated configuration management database (federated CMDB), in which databases are virtually federated. For example, the federated CMDB centrally manages the location of data that is managed in existing databases in a distributed manner and provides a user with databases that are managed in a centralized manner.
Furthermore, in some cases, candidate databases for centralized management each store therein the same data; therefore, for example, the federated CMDB merges (also called matching or reconciliation) the same data stored in these candidate databases.
With a conventional federated CMDB, an administrator sets, in advance, a key attribute (called a reconcile key) functioning as a key for a merging process and merging is performed using the key attribute. Specifically, with the assumption that the key attribute is set in the database to be centrally managed, the federated CMDB merges data by determining whether the value of the key attribute matches data that is stored in a newly added database. For example, if the attribute “Internet Protocol (IP) address” is set in advance as the key attribute, the federated CMDB determines data having the same “IP address” value to be the same data and federates the determined data that is determined to be the same.
Of course, there is a database in which a key attribute is not set therein. When merging such a database, the federated CMDB merges data by, for example, by a user manually determining whether the data is the same. Furthermore, for example, after a user resets the key attribute, the federated CMDB re-merges all of the databases by using a key attribute that has been reset. Technologies for a system are disclosed in which multiple databases are federated regardless of database products or types.
Patent Document 1: Japanese National Publication of International Patent Application No. 2007-531941
Patent Document 2: Japanese Laid-open Patent Publication No. 2000-122910
However, with the conventional merging method, there is a problem in that merging cannot be easily performed. Specifically, data without using a key attribute cannot be easily merged. In such a case, a user has to determine the identical data, which is a burden for the user. Furthermore, for example, a user has to reset the key attribute, which is also a burden for the user. Furthermore, merging is performed again using a key of the key attribute that has been reset.
SUMMARYAccording to an aspect of an embodiment of the invention, a merging apparatus that merges databases that store therein, as records, each of attribute values that is classified under one or a plurality of attributes and is associated with each other, the merging apparatus includes a first database in which a plurality of attributes including a key attribute that is set in advance as a key for merging is set; a second database in which one or a plurality of attributes excluding the key attribute is set; an extracting unit that checks the attribute that is set in the first database against the attribute that is set in the second database and extracts a common attribute that is set, in common, in both the first database and the second database; and a merging unit that merges the first database with the second database by determining whether attribute values classified under the common attribute that is extracted by the extracting unit match.
The object and advantages of the embodiment will be realized and attained by means of the elements and combinations particularly pointed out in the claims.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory and are not restrictive of the embodiment, as claimed.
and
Preferred embodiments of the present invention will be explained with reference to accompanying drawings.
[a] First Embodiment
Outline of the Merging Apparatus
First, the outline of a merging apparatus according to the first embodiment will be described with reference to
The merging apparatus according to the first embodiment merges databases that store therein, as records, each of attribute values that is classified under one or a plurality of attributes and is associated with each other. In the merging apparatus, a key attribute functioning as a key for a merging process is set in advance. When merging databases in which the key attribute is set, the merging is performed using the key attribute.
As will be described below, the merging apparatus according to the first embodiment also merges databases in which the key attribute is not set. Specifically, the merging apparatus merges a first database, in which a plurality of attributes including the key attribute that is previously set as a key for the merging is set, with a second database, in which one or a plurality of attributes other than the key attribute is set. In the following, a case will be described in which the key attribute is an “IP address” unless otherwise noted.
Specifically, in the example illustrated in FIG. 1, the first database, in which the attribute “IP address” functioning as the key attribute and the attribute “name” are set, is merged with the second database, in which the attribute “IP address” is not set but the attributes “name” and “OS” are set. More specifically, as will be described below, from among the records stored in the first database and the second database, the same records are federated. In the example of “the first database” illustrated in
Specifically, with the merging apparatus according to the first embodiment, an extracting unit checks the attribute that is set in the first database against the attribute that is set in the second database. As illustrated in (1) of
Then, as illustrated in (2) of
Consequently, for example, as illustrated in the “merged database” in
By doing so, the merging apparatus according to the first embodiment easily merges a database that does not have a key attribute.
Configuration of the Merging Apparatus
In the following, the configuration of a merging apparatus 200 illustrated in
As illustrated in
In the example illustrated in
The database 101 is the existing database to which data is previously input by an administrator that manages the database 101.
In
Furthermore, each of the databases 101 is either the first database in which a plurality of attributes including a key attribute that is previously set as a key for merging is set or the second database in which one or a plurality of attributes other than the key attribute is set. For example, in the example illustrated in
The MDR 100 obtains the record stored in the database 101 and transmits, to the merging apparatus 200, the record stored in the database 101 and a registration request that requests the registration of the transmitted record when, for example, the MDR 100 is connected to the merging apparatus 200. As will be described later, each of the records transmitted from the MDR 100 to the merging apparatus 200 is merged, by the merging apparatus 200, with a record stored in the database 101 included in the MDR 100. Specifically, the database 101 in the MDR 100 is merged, by the merging apparatus 200, any of the other databases 101 in the corresponding MDR 100.
In the following, unless otherwise noted, a description will be given of a case in which the “MDR1” and the “MDR2” includes the first database and the “MDR3” includes the second database. Furthermore, in the following, unless otherwise noted, the MDR 100 that includes the first database is denoted by the “main-MDR” and the MDR 100 that includes the second database is denoted by the “sub-MDR”. In other words, the MDR1 and the MDR2 are the “main-MDR” and the MDR3 is the “sub-MDR”.
In the following, the relation between the merging apparatus 200 and the MDR 100 will be described with reference to
As illustrated in
As illustrated in
By referring back to
The FCMDB data management table 301 is connected to a registration processing unit 401, a data management unit 402, a uniqueness calculating unit 403, and a merging unit 404, which will be described later. As illustrated in
As illustrated in
The “global ID” is information for uniquely identifying each record stored in the FCMDB data management table 301. In the example illustrated in
In the FCMDB data management table 301, the record stored in the first database is stored by the registration processing unit 401. The record is stored every time, for example, a new MDR 100 is connected to the merging apparatus 200. For example, the FCMDB data management table 301 stores therein all the pieces of information illustrated in
Furthermore, in the FCMDB data management table 301, the records stored in the second database are stored by the merging unit 404. In the example illustrated in
As will be described later, from among the information stored in the FCMDB data management table 301, the sub-MDR information is deleted by the uniqueness calculating unit 403 every time a new alternate key is set, and then the sub-MDR information that is merged using a new alternate key is stored. The alternate key will be described in detail later; therefore, a description thereof is omitted here.
The type information management table 302 is connected to the data management unit 402 and the uniqueness calculating unit 403 that will be described later. Furthermore, the type information management table 302 stores therein, by associating with an attribute, information that identifies the database 101 in which the attribute is set.
For example, as illustrated in
In the example illustrated in
In the type information management table 302, information is stored by the data management unit 402. For example, in the type information management table 302, information is stored by the data management unit 402 every time a new MDR 100 is connected to the merging apparatus 200 and a new record is stored in the FCMDB data management table 301. Furthermore, as will be described later, in the type information management table 302, information is stored by the data management unit 402 every time a new record is stored in the sub-MDR information management table 305. The information stored in the type information management table 302 is used by the uniqueness calculating unit 403.
The uniqueness calculating table 303 is connected to the data management unit 402 and the uniqueness calculating unit 403 that will be described later. Furthermore, the uniqueness calculating table 303 stores therein, for each attribute, the number of duplications for each attribute value classified under the attribute. Specifically, the uniqueness calculating table 303 stores therein the number of duplications for the attribute values. For example, as illustrated in
In the example illustrated in
Furthermore, in the uniqueness calculating table 303, information is stored by the data management unit 402 every time, for example, a new MDR 100 is connected to the merging apparatus 200 and a new record is stored in the FCMDB data management table 301. Furthermore, the information stored by the uniqueness calculating table 303 is used by the uniqueness calculating unit 403.
The threshold table 304 is connected to the uniqueness calculating unit 403 and the merging unit 404 and stores therein a threshold that is used for the calculation performed by the uniqueness calculating unit 403. For example, as illustrated in
In the example illustrated in
For a record stored in a database that does not contain the key attribute, the alternate key mentioned here means a merge key that is used to expansively merge databases that is not merged using the key attribute while maintaining the merge result obtained using the key attribute if the merge result is present. The alternate key is set by the uniqueness calculating unit 403. Setting of the alternate key will be described in detail later; therefore, a description thereof is omitted here.
The “threshold of the uniqueness” is the uniqueness threshold, which will be described later, and indicates the minimum uniqueness allowable by an administrator. Furthermore, the “threshold of the uniqueness” is used by the uniqueness calculating unit 403 and is set by, for example, an administrator. In the example illustrated in
As will be described later, the uniqueness mentioned here means a value calculated by the uniqueness calculating unit 403 for each attribute and indicates that there may possibly be another record containing the same attribute value. The higher the degree of uniqueness in the attribute, the lower the possibility of another record containing the same attribute value existing. In contrast, the lower the degree of uniqueness in the attribute, the higher the possibility of another record containing the same attribute value existing.
The “threshold of the number of data” indicates the minimum value of the number of data that is used when the uniqueness is calculated by the uniqueness calculating unit 403, which will be described later. For example, in the example illustrated in
Furthermore, in the threshold table 304, the “threshold of the uniqueness” and the “threshold of the number of data” are previously stored by an administrator, and, as will be described later, the “alternate key” is input by the uniqueness calculating unit 403. From among the information stored in the threshold table 304, the “type name”, the “threshold of the uniqueness”, and the “threshold of the number of data” are used by the uniqueness calculating unit 403 and the “alternate key” is used by the merging unit 404.
The sub-MDR information management table 305 is connected to the registration processing unit 401, the data management unit 402, the uniqueness calculating unit 403, and the merging unit 404 and stores therein information on the record stored in the second database. Specifically, the sub-MDR information management table 305 stores therein information on the record to be merged using the common attribute.
For example, as illustrated in
In the example illustrated in
The “local ID” is information for identifying a record in the database 101 and is contained in, for example, the information transmitted from the MDR 100 to the merging apparatus 200.
The “reconciliation candidate” indicates the merge result of the merging performed using the alternate key. For example, as illustrated in
Furthermore, in the sub-MDR information management table 305, information other than the “reconciliation candidate” is stored by the registration processing unit 401 every time, for example, a new sub-MDR is connected to the merging apparatus 200. Furthermore, in the sub-MDR information management table 305, the “reconciliation candidate” is stored by the merging unit 404. The information stored by the sub-MDR information management table 305 is used by the data management unit 402, the uniqueness calculating unit 403, and the merging unit 404.
Referring back to
The registration processing unit 401 is connected to each of the MDRs 100, and is also connected to the FCMDB data management table 301, the sub-MDR information management table 305, and the uniqueness calculating unit 403. Furthermore, in the registration processing unit 401, the key attribute, such as the attribute “IP address”, is previously set by an administrator.
Furthermore, the registration processing unit 401 receives, each MDR 100, a record and a registration request that are stored in each database 101 in each MDR 100 when, for example, the MDR 100 is connected to the merging apparatus 200. Then, the registration processing unit 401 stores the received record in the FCMDB data management table 301 or the sub-MDR information management table 305.
Specifically, when receiving the record and the registration request from the MDR 100, the registration processing unit 401 determines whether the record is transmitted from the main-MDR or from the sub-MDR. Specifically, the registration processing unit 401 determines whether the key attribute, i.e., the attribute “IP address”, is set in the database 101 in the MDR 100 that corresponds to the transmission source. Then, if the registration processing unit 401 determines that the record is from the main-MDR, the registration processing unit 401 stores the record in the FCMDB data management table 301. If the registration processing unit 401 determines that the record is from the sub-MDR, it stores the record in the sub-MDR information management table 305.
For example, the registration processing unit 401 determines whether the received record contains a record containing an attribute value classified under the key attribute, for example, a record containing an attribute value classified into the attribute “IP address”. Then, if the registration processing unit 401 determines that the record contains the attribute value classified under the attribute “IP address”, the registration processing unit 401 stores the record in the FCMDB data management table 301. In contrast, if the registration processing unit 401 determines that the record does not contain the attribute value classified under the attribute “IP address”, it stores the record in the sub-MDR information management table 305.
A case in which the registration processing unit 401 receives a record from the main-MDR will be described with reference to
As illustrated in
In the example illustrated in
Furthermore, in the example illustrated in
A merging process performed by the registration processing unit 401 using the key attribute will be described in detail later; therefore, a description thereof is omitted here.
A case in which the registration processing unit 401 receives a record from the sub-MDR will be described with reference to
As illustrated in
Furthermore, in the example illustrated in
When the registration processing unit 401 determines that a record is from the sub-MDR and stores the record in the sub-MDR information management table 305, the registration processing unit 401 transmits, to the uniqueness calculating unit 403, information indicating that the record from the sub-MDR is stored.
Referring back to
By using the information stored in the FCMDB data management table 301 or the sub-MDR information management table 305, the data management unit 402 stores information in the type information management table 302 or the uniqueness calculating table 303. In the following, storing of information in the type information management table 302 will be described first, and then storing information in the uniqueness calculating table 303 will be described.
A case will be described in which the data management unit 402 stores information in the type information management table 302. The data management unit 402 obtains, from the FCMDB data management table 301, the “type name”, the “attribute”, and the “MDR identification information”, all of which are associated with each other. Furthermore, the data management unit 402 obtains, from the sub-MDR information management table 305, the “type name”, the “attribute”, and the “sub-MDR identification information”, all of which are associated with each other.
In the example illustrated in
The data management unit 402 stores, in an associated manner in the type information management table 302, the “type name”, the “attribute”, and the “MDR identification information” or the “type name”, the “attribute”, and the “sub-MDR identification information” obtained from the FCMDB data management table 301 or the sub-MDR information management table 305.
A description is given of a case in which the type name “server”, the attributes “IP address”, “name”, and “OS”, and the MDR identification information “MDR1”, which are associated with each other, are received from the FCMDB data management table 301. As illustrated in
In the following, a case will be described in which the type name “server”, the attributes “name”, “OS”, and “serial number”, and the sub-MDR identification information “MDR3”, which are associated with each other, are received from the sub-MDR information management table 305. As illustrated in
A case will be described in which the data management unit 402 stores information in the uniqueness calculating table 303. The data management unit 402 obtains, from the FCMDB data management table 301, the “type name”, the “attribute”, and the “attribute value”, which are associated with each other. In the example illustrated in
Furthermore, the data management unit 402 stores the obtained associated items in the uniqueness calculating table 303. Specifically, the data management unit 402 stores the obtained “type name”, the “attribute”, and the “attribute value”, which are associated with each other. For example, the data management unit 402 stores the type name “server”, the attribute “name”, and the attribute value “host-1” in an associated manner or stores the type name “server”, the attribute “name”, and the attribute value “host-2” in an associated manner.
Furthermore, every time the data management unit 402 stores a newly obtained associated item in the uniqueness calculating table 303, the data management unit 402 sets “the number of duplications” that is associated with the stored “type name”, the stored “attribute”, and the stored “attribute value”.
For example, when storing the “type name”, the “attribute”, and the “attribute value” that are not stored in the uniqueness calculating table 303, the data management unit 402 sets “1” as the number of the duplications. Then, if the obtained associated item is stored in the uniqueness calculating table 303, the data management unit 402 sets a value to which “1” is added to a value of the “the number of the duplications” that has already been associated with the obtained associated item and that has already been stored in the uniqueness calculating table 303. Specifically, if the number of duplications is “1”, “2” is set as the number of duplications.
The data management unit 402 constantly monitors, for example, the FCMDB data management table 301 and the sub-MDR information management table 305. Then, the data management unit 402 obtains information every time, for example, a new MDR 100 is connected to the merging apparatus 200 and a new record is stored in the FCMDB data management table 301 or the sub-MDR information management table 305 by the registration processing unit 401. Thereafter, the data management unit 402 stores the obtained information in the type information management table 302 or the uniqueness calculating table 303. Specifically, the data management unit 402 updates information stored in the type information management table 302 or in the uniqueness calculating table 303 every time the information stored in the FCMDB data management table 301 or the sub-MDR information management table 305 changes.
The flow of a process performed by the data management unit 402 will be described in detail later; therefore, a description thereof is omitted here.
Every time the data management unit 402 updates the type information management table 302 or the uniqueness calculating table 303, the data management unit 402 transmits information on completion of the update to the uniqueness calculating unit 403.
The uniqueness calculating unit 403 is connected to the FCMDB data management table 301, the type information management table 302, the uniqueness calculating table 303, the threshold table 304, the sub-MDR information management table 305, the registration processing unit 401, the data management unit 402, and the merging unit 404. The uniqueness calculating unit 403 is also called an extracting unit or a calculating unit. As will be described below, the uniqueness calculating unit 403 extracts the common attribute, calculates the uniqueness, and sets it as the alternate key. In the following, a description of extracting the common attribute, calculating the uniqueness, and setting the alternate key will be given in the order they are listed in this sentence.
The uniqueness calculating unit 403 performs a process, which will be described below, every time the uniqueness calculating unit 403 receives information indicating that a record for the sub-MDR is received from the registration processing unit 401 or receives information on completion of the update from the data management unit 402.
A case in which the uniqueness calculating unit 403 extracts the common attribute will be described. The uniqueness calculating unit 403 checks the attribute that is set in the first database against the attribute that is set in the second database and extracts the common attribute that is set, in common, in the first database and the second database. For example, by referring to the type information management table 302, from among the attributes stored in the type information management table 302, the uniqueness calculating unit 403 extracts the attribute in which the MDR identification information is stored in both the “main-MDR identification information” and the “sub-MDR identification information”.
In the example illustrated in
A case in which the uniqueness calculating unit 403 calculates the uniqueness will be described. The uniqueness calculating unit 403 calculates the uniqueness indicating the ratio of the number of records in which an attribute value does not match any of the attribute values contained in the other records to the number of records containing the attribute value classified under the attribute. Furthermore, the uniqueness calculating unit 403 calculates the uniqueness for each attribute extracted as the common attribute.
Specifically, the uniqueness calculating unit 403 refers to the uniqueness calculating table 303; identifies, for each attribute, the number of attribute values stored in the uniqueness calculating table 303; and calculates, for example, the sum of the corresponding number of duplications. Furthermore, the uniqueness calculating unit 403 identifies the number of attribute values associated with the number of duplications, i.e., “1”. Then, the uniqueness calculating unit 403 calculates the uniqueness by dividing the number of attribute values associated with the number of duplications, i.e., “1” by the number of attribute values.
In the example illustrated in
A case in which the uniqueness calculating unit 403 sets the alternate key will be described below. The uniqueness calculating unit 403 obtains a threshold by referring to the threshold table 304 and identifies the common attribute that satisfies the obtained threshold. Then, the uniqueness calculating unit 403 selects one common attribute that satisfies the threshold and sets it as the alternate key in the threshold table 304. In the following, a case in which the uniqueness calculating unit 403 sets the alternate key will be described by using an example case in which the attribute “name” or “OS” is detected and the uniqueness “0.8” or the uniqueness “0.1” is calculated for each attribute as the common attribute.
The uniqueness calculating unit 403 identifies the common attribute that satisfies the obtained threshold. The uniqueness calculating unit 403 refers to the “threshold of the uniqueness” stored in the threshold table 304 and reads, in the example illustrated in
Furthermore, the uniqueness calculating unit 403 refers to the “threshold of the number of data” stored in the threshold table 304 and reads, in the example illustrated in
Specifically, the uniqueness calculating unit 403 identifies the attribute “name” as the common attribute that satisfies both the “threshold of the uniqueness” and the “threshold of the number of data”.
The uniqueness calculating unit 403 selects one common attribute that satisfies the threshold. For example, if the uniqueness calculating unit 403 identifies only one common attribute that satisfies the threshold, the uniqueness calculating unit 403 selects the identified one common attribute. Furthermore, for example, if the uniqueness calculating unit 403 identifies a plurality of common attributes that satisfy the threshold, the uniqueness calculating unit 403 selects one of the identified common attributes. For example, the uniqueness calculating unit 403 selects the attribute having the greatest uniqueness.
The uniqueness calculating unit 403 sets the selected common attribute as the alternate key in the threshold table 304. Specifically, the uniqueness calculating unit 403 determines whether the “alternate key” is set in the threshold table 304. If the uniqueness calculating unit 403 determines that the “alternate key” is not set in the threshold table 304, the uniqueness calculating unit 403 sets the selected common attribute as the alternate key in the threshold table 304. For example, as in the example illustrated in
Furthermore, if the uniqueness calculating unit 403 determines that the “alternate key” is set in the threshold table 304, the uniqueness calculating unit 403 updates the threshold table 304 by allowing the selected common attribute to be the alternate key and cancels the merge result obtained using the “alternate key” obtained before the update. For example, the uniqueness calculating unit 403 accesses the sub-MDR information management table 305 and deletes the global ID if it is stored in the “reconciliation candidate”. Specifically, the merge result is deleted using the alternate key obtained before the update. Furthermore, for example, the uniqueness calculating unit 403 deletes the information on the sub-MDR stored in the FCMDB data management table 301.
When the uniqueness calculating unit 403 completes the process for setting the alternate key, the uniqueness calculating unit 403 transmits information on completion of the setting process to the merging unit 404.
The merging unit 404 is connected to the FCMDB data management table 301, the threshold table 304, the sub-MDR information management table 305, and the uniqueness calculating unit 403. The merging unit 404 merges the first database with the second database by determining whether the attribute values classified under the common attribute that is extracted by the uniqueness calculating unit 403 match. Furthermore, the merging unit 404 performs the following merging process every time the merging unit 404 receives information on completion of the setting process from the uniqueness calculating unit 403.
Specifically, by using the alternate key stored in the threshold table 304, the merging unit 404 merges the record stored in the database 101 in the sub-MDR with the record stored in the main-MDR. In the example illustrated in
For example, the merging unit 404 selects one record to be processed from the sub-MDR information management table 305, searches the FCMDB data management table 301 for a record having a matching attribute value classified under the alternate key, and determines whether a matching record is present.
If the merging unit 404 determines that a matching record is resent, the merging unit 404 performs the merging on the matching record. Specifically, the merging unit 404 stores, in the “reconciliation candidate” in the sub-MDR information management table 305, the “global ID” that identifies the determined matching record in the FCMDB data management table 301. Furthermore, the merging unit 404 federates the matching record in the FCMDB data management table 301 with the selected record.
A case will be described in which the matching record in the FCMDB data management table 301 is federated with the selected record. The description will be given of a case in which the record containing the name “host-1”, the OS “Windows”, and the serial number “SN001” stored in the database 101 in the “MDR3” is merged with the record of the global ID “GID1” illustrated in
If the merging unit 404 determines that a matching record is not present, the merging unit 404 completes the process without performing the merging. Furthermore, the merging unit 404 repeats the process until it selects all of the records.
In the following, the merging performed by the merging unit 404 will further be described with reference to
It is also possible to implement the merging apparatus 200 by installing the functions of the registration processing unit 401, the data management unit 402, the uniqueness calculating unit 403, and the merging unit 404 in an already-known information processing apparatus, such as a personal computer or a workstation.
Process Performed by the Merging Apparatus
In the following, the flow of a process performed by the merging apparatus 200 according to the first embodiment will be described.
As illustrated in
Then, the registration processing unit 401 determines whether the key attribute is present (Step S103). For example, the registration processing unit 401 determines whether the record contains the attribute value classified under the attribute “IP address”. If the registration processing unit 401 determines that the key attribute is present (Yes at Step S103), the registration processing unit 401 performs the merging using the key attribute (Step S104). The flow of the merging process using the key attribute will be described in detail later with reference to
Thereafter, when the registration processing unit 401 stores the record in the FCMDB data management table 301, the data management unit 402 updates the type information management table 302 or the uniqueness calculating table 303 (Step S105). Specifically, the data management unit 402 updates the information stored in the type information management table 302 and the uniqueness calculating table 303 every time the information stored in the FCMDB data management table 301 changes.
At Step S103, if the registration processing unit 401 determines that the key attribute is not present (No at Step S103), the registration processing unit 401 stores the received record in the sub-MDR information management table 305 (Step S106). Then, the data management unit 402 updates the type information management table 302 or the uniqueness calculating table 303 (Step S105).
Thereafter, if the data management unit 402 updates the type information management table 302 or the uniqueness calculating table 303 (Step S105), the uniqueness calculating unit 403 or the merging unit 404 in the merging apparatus 200 performs the merging using the alternate key (Step S107). The flow of a merging process using the alternate key will be described in detail later with reference to
Merging Process Using the Key Attribute
In the following, the flow of a merging process that uses the key attribute and is performed by the merging apparatus 200 according to the first embodiment will be described.
As illustrated in
Then, the registration processing unit 401 determines whether a matching record is present (Step S203). For example, if the attribute value of the attribute “IP address” of the selected record is “192.168.0.1”, the registration processing unit 401 determines whether a record containing the IP address “192.168.0.1” is present in the records that have already been stored in the FCMDB data management table 301. If the registration processing unit 401 determines that a matching record is present (Yes at Step S203), the registration processing unit 401 merges the determined matching record with the record determined to be matched (Step S204). Specifically, from among the record that have already been stored in the FCMDB data management table 301, the registration processing unit 401 merges the record containing the IP address “192.168.0.1” with the selected record as the same data.
In contrast, if the registration processing unit 401 determines that no matching record is present (No at Step S203), the registration processing unit 401 newly registers the selected record in the FCMDB data management table 301 (Step S205).
The registration processing unit 401 performs a series of processes on all of the received records.
Merging Process Using the Alternate Key
In the following, the flow of the merging process that uses the alternate key and is performed by the merging apparatus 200 according to the first embodiment will be described.
As illustrated in
Then, the uniqueness calculating unit 403 calculates the uniqueness (Step S302). For example, by referring to the uniqueness calculating table 303, the uniqueness calculating unit 403 calculates the uniqueness “0.8” for the common attribute “name” because the number of attribute values is “10” and the number of attribute values with the number of duplication being “1” is “8”.
Then, the uniqueness calculating unit 403 obtains the threshold by referring to the threshold table 304 (Step S303). For example, the uniqueness calculating unit 403 obtains the threshold of the uniqueness “0.8”. Then, the uniqueness calculating unit 403 identifies the common attribute that satisfies the obtained threshold and selects one common attribute (Step S304). For example, the uniqueness calculating unit 403 identifies common attribute “name” having the uniqueness “0.8” and selects the common attribute “name”.
Then, the uniqueness calculating unit 403 determines whether the alternate key is set in the threshold table 304 (Step S305). If the uniqueness calculating unit 403 determines that the alternate key is not set in the threshold table 304, (No at Step S305), the uniqueness calculating unit 403 sets the selected common attribute as the alternate key (Step S306).
In contrast, if the uniqueness calculating unit 403 determines that the alternate key is set in the threshold table 304 (Yes at Step S305), the uniqueness calculating unit 403 updates the selected common attribute as the alternate key (Step S307) and cancels the merge result obtained using the “alternate key” obtained before the update (Step S308). For example, the uniqueness calculating unit 403 accesses the sub-MDR information management table 305 and deletes the global ID if it is stored in the “reconciliation candidate”. Furthermore, the uniqueness calculating unit 403 deletes the information on the sub-MDR stored in the FCMDB data management table 301 because it is the merge result obtained by using the alternate key that has not been updated.
Thereafter, the merging unit 404 selects, from the sub-MDR information management table 305, one record to be processed (Step S309) and searches the FCMDB data management table 301 for the matching record having the attribute value classified under the alternate key (Step S310).
Then, the merging unit 404 determines whether only one matching record is present (Step S311). If the merging unit 404 determines that only one matching record is present (Yes at Step S311), the merging unit 404 merges a record with a record determined to be a match (Step S312). Specifically, the merging unit 404 stores, in the “reconciliation candidate” in the sub-MDR information management table 305, the “global ID” that identifies the determined matching record in the FCMDB data management table 301. Furthermore, for example, the merging unit 404 federates the matching record in the FCMDB data management table 301 with the selected record. In contrast, if the merging unit 404 determines that no matching record is present (No at Step S311), the merging unit 404 does not merge anything.
Then, the merging unit 404 determines whether all of the records are selected (Step S313). If the merging unit 404 determines that all of the records are selected (Yes at Step S313), the merging unit 404 completes the process. In contrast, if the merging unit 404 determines that not all of the records are selected (No at Step S313), the merging unit 404 repeats the processes from Step S309 until the merging unit 404 determines that all of the records are selected.
Process Performed by the Data Management Unit
In the following, the flow of a process performed by the data management unit 402 according to the first embodiment will be described with reference to
As illustrated in
Then, the data management unit 402 determines whether the obtained “type name” is present in the type information management table 302 (Step S402). For example, the data management unit 402 determines whether the type information management table 302 stores therein the type name “server”. If the data management unit 402 determines that the obtained “type name” is not present (No at Step S402), the data management unit 402 adds the obtained “type name” to the type information management table 302 (Step S403). For example, the data management unit 402 newly stores the “server” in the “type name” in the type information management table 302.
Then, if the data management unit 402 adds the “type name” or if the data management unit 402 determines that the obtained “type name” is present (Yes at Step S402), the data management unit 402 determines whether the obtained “attribute” is present in the type information management table 302 (Step S404). Specifically, the data management unit 402 determines whether the attribute “OS” classified under the type name “server” is stored. If the data management unit 402 determines that the obtained “attribute” is not present (No at Step S404), the data management unit 402 adds the obtained “attribute” to the type information management table 302 (Step S405). For example, the data management unit 402 newly stores the attribute “OS” by associating it with the type name “server” that is stored in the type information management table 302. At this time, the data management unit 402 also stores the “main-MDR identification information” or the “sub-MDR identification information”.
Then, the data management unit 402 updates the uniqueness calculating table 303 (Step S406). Specifically, the data management unit 402 stores, in the uniqueness calculating table 303, information on the attribute that is newly stored in the type information management table 302 and then completes the process. At Step 5404, if the data management unit 402 determines that the obtained “attribute” is present (Yes at Step S404), the data management unit 402 ends the process without processing anything.
When obtaining a plurality of type names at Step S401, the data management unit 402 performs the process performed at Steps S402 or S403 on all of the obtained type names. Similarly, if the data management unit 402 obtains a plurality of attributes, the data management unit 402 performs the processes performed at Steps S404 to S406 on all of the obtained attributes.
Advantage of the First Embodiment
As described above, according to the first embodiment, the merging apparatus 200 checks the attribute that is set in the first database against the attribute that is set in the second database and extracts the common attribute that is set, in common, in the first database and the second database. Then, the merging apparatus 200 merges the first database with the second database by determining whether the attribute values classified under the extracted common attribute match. Accordingly, the merging apparatus 200 can easily performs the merging on the database in which the key attribute is not set. Therefore, when, for example, a database in which the key attribute is not set is subjected to the merging, the merging can be easily performed even though the key attribute is neither manually reset nor manually merged.
Furthermore, according to the first embodiment, with the merging apparatus 200, if a plurality of common attributes are extracted by the uniqueness calculating unit 403, the merging is performed using the common attribute having the greatest uniqueness; therefore, precise merging can be performed. Specifically, by determining the common attribute functioning as the alternate key by taking into consideration the uniqueness, it is possible to prevent different records from being erroneously merged as the same records.
Furthermore, according to the first embodiment, the merging apparatus 200 identifies whether the calculated uniqueness of the common attribute is greater than a predetermined threshold and performs the merging by using only the identified common attribute having the ratio greater than the predetermined threshold; therefore, precise merging can be performed. Specifically, by using the uniqueness, it is possible to prevent different records from being erroneously merged as the same records.
[b] Second Embodiment
In the above explanation, it has been mentioned that in the method of the first embodiment all of the merge results on the sub-MDR is cancelled every time the alternate key is updated; however, the present invention is not limited thereto. It is not limited to canceling all of the merge results. For example, if the sub-MDR information management table 305 stores therein the merge result on the merging that is manually performed by an administrator, it is not limited to canceling the merge result on the merging that is manually performed.
Accordingly, in the following, instead of cancelling all of the merge results every time the alternate key is updated, a method of not cancelling, for example, the merge result on the merging that is manually performed by an administrator will be described as a second embodiment. In the following, a description of components that are identical to those of the merging apparatus 200 according to the first embodiment will be omitted.
As illustrated in
The fixed flag mentioned here is information indicating, when the alternate key is updated, whether the merge result is cancelled. In the example illustrated in
Then, as illustrated at Steps S507 and S508 in
In the second embodiment described above, a case has been described in which the fixed flag is set to be “true” only when a user manually performs the merging; however the present invention is not limited thereto. For example, after the merging apparatus 200 performs the merging, it is also possible to set the fixed flag “true” for a merge result that is selected by a user.
Advantage of the Second Embodiment
As described above, according to the second embodiment, it is possible to set a record in which the merge result remains the same even when the alternate key is updated; therefore, it is possible to prevent unwanted merging from being performed.
[c] Third Embodiment
The first and second embodiments have been described; however, the present invention is not limited to the embodiments described above and may be implemented with various kinds of embodiments other than the embodiments described above. Accordingly, in the following, another embodiment will be described.
Type Information Management Table and Uniqueness Calculating Table
For example, in the first embodiment, a case has been described in which the type information management table 302 or the uniqueness calculating table 303 is updated by the data management unit 402 every time a new MDR 100 is connected; however, the present invention is not limited thereto. For example, it is also possible for an administrator previously to store information in the type information management table 302 or the uniqueness calculating table 303 and to perform the merging process by using the alternate key.
Uniqueness
Furthermore, in the first embodiment, a case of using the uniqueness has been described; however, the present invention is not limited thereto. For example, instead of using the uniqueness, it is also possible to set the common attribute extracted by the merging apparatus 200 as the alternate key. Similarly, instead of using the threshold stored in the threshold table 304, it is also possible to set the common attribute extracted by the merging apparatus 200 as the alternate key.
System Configuration
Furthermore, the flow of the processes, the control procedures, the specific names, and the information containing various kinds of data or parameters indicated in the above specification and drawings (
The records of each device illustrated in the drawings are only for conceptually illustrating the functions thereof and are not necessarily physically configured as illustrated in the drawings. In other words, the specific shape of a separate or integrated device is not limited to the drawings; however, all or part of the device may be configured by functionally or physically separating or integrating any of the units depending on various loads or use conditions. For example, in the example illustrated in
Computer
The various processes described in the above embodiments may be implemented by programs prepared in advance and executed by a computer such as a personal computer or a workstation. Accordingly, in the following, a computer that executes a merging program having the same function performed by the apparatus in the above embodiments will be described as an example using
As illustrated in
As illustrated in
As illustrated in
The HDD 3012 stores therein an FCMDB data management table 3012a, a type information management table 3012b, a uniqueness calculating table 3012c, a threshold table 3012d, and a sub-MDR information management table 3012e. The tables 3012a to 3012e correspond to, respectively, the FCMDB data management table 301, the type information management table 302, the uniqueness calculating table 303, the threshold table 304, and the sub-MDR information management table 305 illustrated in
The CPU 3010 reads the FCMDB data management table 3012a, the type information management table 3012b, the uniqueness calculating table 3012c, the threshold table 3012d, and the sub-MDR information management table 3012e and stores them in the RAM 3013 and executes the merging program by using an FCMDB data management data 3013a, a type information management data 3013b, a uniqueness calculating data 3013c, a threshold data 3013d, and a sub-MDR information management data 3013e that are stored in the RAM 3013.
Additional
The merging program according to the embodiments may be distributed via a network, such as the Internet. Furthermore, the merging program may be stored in a computer-readable recording medium, such as a hard disk, a flexible disk (FD), a compact disk read only memory (CD-ROM), a magneto-optical (MO) disk, and a digital versatile disk (DVD). The computer then reads and executes the program from the recording medium.
All examples and conditional language recited herein are intended for pedagogical purposes to aid the reader in understanding the invention and the concepts contributed by the inventor to furthering the art, and are to be construed as being without limitation to such specifically recited examples and conditions, nor does the organization of such examples in the specification relate to a showing of the superiority and inferiority of the invention. Although the embodiments of the present invention have been described in detail, it should be understood that the various changes, substitutions, and alterations could be made hereto without departing from the spirit and scope of the invention.
Claims
1. A merging apparatus comprising:
- a memory; and
- a processor coupled to the memory, wherein the memory includes
- a first database that store therein, as records, each of attribute values that is classified under one or a plurality of attributes and that is associated with each other, in which a plurality of attributes including a key attribute that is set in advance as a key for merging is set;
- a second database that store therein, as records, each of the attribute values, in which one or a plurality of attributes excluding the key attribute is set; and
- the processor is configured to execute a process comprising
- checking the attribute that is set in the first database against the attribute that is set in the second database and extracting a common attribute that is set, in common, in both the first database and the second database; and
- merging the first database with the second database by determining whether attribute values classified under the common attribute that is extracted in the extracting match, wherein
- the merging, when a plurality of common attributes are extracted, merges the first database with the second database by using a common attribute which is selected from the plurality of common attributes, the common attribute is selected based on first record numbers and second record numbers, each of the first record numbers corresponding to one of the plurality of attributes stored in the first database and being the number of records in which an attribute value classified under the one of the plurality of attributes does not match any of the attribute values contained in the other records and classified under the one of the plurality of attributes, each of the second record numbers corresponding to one of the plurality of attributes stored in the first database and being the number of records containing the attribute value classified under the one of the plurality of attributes.
2. The merging apparatus according to claim 1, wherein the process further comprising calculating, for each attribute that is set in the first database, the ratio of the number of records in which an attribute value classified under the attribute does not match any of the attribute values contained in the other records to the number of records containing the attribute value classified under the attribute, wherein
- when a plurality of common attributes is extracted in the extracting, the merging identifies, from among the extracted common attributes, a common attribute having the highest ratio calculated in the calculating and performs merging by determining whether attribute values classified under the identified common attribute match.
3. The merging apparatus according to claim 2, wherein the merging identifies, for the common attribute, whether the ratio calculated in the calculating is greater than a predetermined threshold and performs the merging using only the identified common attribute having the ratio greater than the predetermined threshold.
4. A merging method comprising:
- checking an attribute that is set in a first database storing therein, as records, each of attribute values that is classified under one or a plurality of attributes and is associated with each other, in which a plurality of attributes including a key attribute that is set in advance as a key for merging against an attribute that is set in a second database storing therein, as records, each of the attribute values, in which one or a plurality of attributes excluding the key attribute is set and extracting a common attribute that is set, in common, in the first database and the second database; and
- merging the first database with the second database by determining whether attribute values classified under the common attribute that is extracted at the extracting match, wherein
- the merging, when a plurality of common attributes are extracted, merges the first database with the second database by using a common attribute which is selected from the plurality of common attributes, the common attribute is selected based on first record numbers and second record numbers, each of the first record numbers corresponding to one of the plurality of attributes stored in the first database and being the number of records in which an attribute value classified under the one of the plurality of attributes does not match any of the attribute values contained in the other records and classified under the one of the plurality of attributes, each of the second record numbers corresponding to one of the plurality of attributes stored in the first database and being the number of records containing the attribute value classified under the one of the plurality of attributes.
5. A computer-readable, non-transitory medium having stored therein a merging program that causes a computer to execute a process, the process comprising:
- checking an attribute that is set in a first database storing therein, as records, each of attribute values that is classified under one or a plurality of attributes and is associated with each other, in which a plurality of attributes including a key attribute that is set in advance as a key for merging against an attribute that is set in a second database storing therein, as records, each of the attribute values, in which one or a plurality of attributes excluding the key attribute is set and extracting a common attribute that is set, in common, in the first database and the second database; and
- merging the first database with the second database by determining whether attribute values classified under the common attribute that is extracted at the extracting match, wherein
- the merging, when a plurality of common attributes are extracted, merges the first database with the second database by using a common attribute which is selected from the plurality of common attributes, the common attribute is selected based on first record numbers and second record numbers, each of the first record numbers corresponding to one of the plurality of attributes stored in the first database and being the number of records in which an attribute value classified under the one of the plurality of attributes does not match any of the attribute values contained in the other records and classified under the one of the plurality of attributes, each of the second record numbers corresponding to one of the plurality of attributes stored in the first database and being the number of records containing the attribute value classified under the one of the plurality of attributes.
7289982 | October 30, 2007 | Saito et al. |
7644077 | January 5, 2010 | Picker et al. |
8073845 | December 6, 2011 | Homma et al. |
8099424 | January 17, 2012 | Kenedy et al. |
8195610 | June 5, 2012 | Traband et al. |
8412712 | April 2, 2013 | Caceres |
8682913 | March 25, 2014 | Betz |
8825471 | September 2, 2014 | Betz et al. |
20020107843 | August 8, 2002 | Biebesheimer et al. |
20030018658 | January 23, 2003 | Suermondt et al. |
20050223022 | October 6, 2005 | Weissman et al. |
20060129415 | June 15, 2006 | Thukral et al. |
20060178954 | August 10, 2006 | Thukral et al. |
20060195297 | August 31, 2006 | Kubota et al. |
20080133491 | June 5, 2008 | Iwao |
20090157689 | June 18, 2009 | Hotz |
20100161602 | June 24, 2010 | Caceres |
20100161634 | June 24, 2010 | Caceres |
20100205227 | August 12, 2010 | Weissman et al. |
7-192053 | July 1995 | JP |
2000-122910 | April 2000 | JP |
2004-78336 | March 2004 | JP |
2006-236280 | September 2006 | JP |
2007-531941 | November 2007 | JP |
- International Search Report, mailed Apr. 28, 2009, in International Application No. PCT/JP2009/056741 (6 pp.).
- Form PCT/ISA/237, mailed Apr. 28, 2009, in International Application No. PCT/JP2009/056741 (3 pp.).
Type: Grant
Filed: Sep 22, 2011
Date of Patent: Apr 7, 2015
Patent Publication Number: 20120016837
Assignee: Fujitsu Limited (Kawasaki)
Inventors: Satoshi Matsuda (Kawasaki), Kenichi Shimazaki (Kawasaki), Kazunao Muramoto (Kawasaki)
Primary Examiner: Hosain Alam
Assistant Examiner: Eliyah S Harper
Application Number: 13/240,316
International Classification: G06F 7/00 (20060101); G06F 17/30 (20060101);