Summary of the invention
In view of this, the invention provides a kind of method, system and receiving port module of Data Migration, to overcome in prior art not by the problem of the method in Hisoon real-time data base in the Data Migration in the PI real-time data base.
For achieving the above object, the invention provides following technical scheme:
A kind of data migration method, be applied to the second receiving port module in the data mover system between PI real-time data base and Hisoon real-time data base, and described method comprises:
Reception is from the first data message of the first receiving port module, and described the first data message comprises the second Data Identification in the first Data Identification in the PI real-time data base and the Hisoon real-time data base corresponding with described the first Data Identification;
Judge described the second Data Identification whether with described Hisoon real-time data base in the Data Identification of each data be complementary;
When in the 3rd Data Identification and described Hisoon real-time data base, the Data Identification of each data does not mate in judging described the second Data Identification, create the variable with described the 3rd Data Identification name in described Hisoon real-time data base;
Reception is from the second data message of described the first receiving port, described the second data message comprises that described the first receiving port is according to described the first data message, the data to be migrated that gather from described PI real-time data base, the Data Identification corresponding with described data to be migrated, described and described Data Identification corresponding to data to be migrated comprises: with the first Data Identification in PI real-time data base corresponding to described data to be migrated and/or with Hisoon real-time data base corresponding to described data to be migrated in the second Data Identification;
Determine according to described the first data message and described the second data message the positional information that described data to be migrated are stored to described Hisoon real-time data base;
Described data to be migrated are stored to the position corresponding with described positional information.
Wherein, described and described Data Identification corresponding to data to be migrated be with PI real-time data base corresponding to described data to be migrated in the first Data Identification, describedly determine according to described the first data message and described the second data message the positional information that described data to be migrated are stored to described Hisoon real-time data base and comprise:
Determine the second Data Identification in Hisoon real-time data base corresponding to described data to be migrated according to described the first data message and described the second data message, the Data Identification in Hisoon real-time data base corresponding to described data to be migrated is described positional information.
Wherein, create the variable with described the 3rd Data Identification name in described Hisoon real-time data base after, also comprise:
Obtain the coding ID that described Hisoon real-time data base is the data allocations that described the second Data Identification is corresponding;
Accordingly, describedly determine according to described the first data message and described the second data message the positional information that described data to be migrated are stored to described Hisoon real-time data base and comprise:
Determine the coding ID of described data to be migrated data corresponding with it at described Hisoon real-time data base according to described the first data message and described the second data message, described coding ID is described positional information.
A kind of receiving port module, be applied to the second receiving port module in the data mover system between PI real-time data base and Hisoon real-time data base, and described receiving port module comprises:
The first receiving element, for receiving the first data message from the first receiving port module, described the first data message comprises the second Data Identification in the first Data Identification in the PI real-time data base and the Hisoon real-time data base corresponding with described the first Data Identification;
Whether judging unit, be complementary with the Data Identification of described each data of Hisoon real-time data base for judging described the second Data Identification;
Creating unit while not mating for the Data Identification of each data in judging described the second Data Identification the 3rd Data Identification and described Hisoon real-time data base, creates the variable with described the 3rd Data Identification name in described Hisoon real-time data base;
The second receiving element, for receiving the second data message from described the first receiving port, described the second data message comprises that described the first receiving port is according to described the first data message, the data to be migrated that gather from described PI real-time data base, the Data Identification corresponding with described data to be migrated, described and described Data Identification corresponding to data to be migrated comprises: with the first Data Identification in PI real-time data base corresponding to described data to be migrated and/or with Hisoon real-time data base corresponding to described data to be migrated in the second Data Identification;
Determining unit, for determining according to described the first data message and described the second data message the positional information that described data to be migrated are stored to described Hisoon real-time data base;
Storage unit, for being stored to the position corresponding with described positional information by described data to be migrated.
Wherein, described and described Data Identification corresponding to data to be migrated be with PI real-time data base corresponding to described data to be migrated in the first Data Identification, described determining unit specifically for:
Determine the second Data Identification in Hisoon real-time data base corresponding to described data to be migrated according to described the first data message and described the second data message, the Data Identification in Hisoon real-time data base corresponding to described data to be migrated is described positional information.
Wherein, also comprise:
Acquiring unit, for the coding ID that to obtain described Hisoon real-time data base be the data allocations that described the second Data Identification is corresponding;
Accordingly, described determining unit specifically for: determine the coding ID of described data to be migrated data corresponding with it at described Hisoon real-time data base according to described the first data message and described the second data message, described coding ID is described positional information.
A kind of data migration method, be applied to the first receiving port module in the data mover system between PI real-time data base and Hisoon real-time data base, and described method comprises:
Import data message, described data message comprises the first data message, and described the first data message comprises that several second in the first Data Identification in the PI real-time data base and the Hisoon real-time data base corresponding with described the first Data Identification is according to sign;
Described the first data message is sent to described the second receiving port module, and described the first data message is the foundation that described the second receiving port module is set up the corresponding relation of Data Identification between described Hisoon real-time data base and described PI real-time data base;
Obtain data to be migrated according to described the first data message from described PI real-time data base;
The second data message is sent to described the second interface port module, described the second data message comprises described data to be migrated, the Data Identification corresponding with described data to be migrated, described and described Data Identification corresponding to data to be migrated comprises: with the first Data Identification in PI real-time data base corresponding to described data to be migrated and/or with Hisoon real-time data base corresponding to described data to be migrated in the second Data Identification, described the second data message is that described the second receiving port module is stored to the foundation in described Hisoon real-time data base by described data to be migrated.
Wherein, described the first data message is sent to described the second receiving port module before, also comprise:
Obtain described the first data message that the user selects from described data message.
A kind of receiving port module, be applied to the first receiving port module in the data mover system between PI real-time data base and Hisoon real-time data base, and described receiving port module comprises:
Import unit, for importing data message, described data message comprises the first data message, and described the first data message comprises that several second in the first Data Identification in the PI real-time data base and the Hisoon real-time data base corresponding with described the first Data Identification is according to sign;
The first transmitting element, for described the first data message is sent to described the second receiving port module, described the first data message is the foundation that described the second receiving port module is set up the corresponding relation of Data Identification between described Hisoon real-time data base and described PI real-time data base;
Obtain unit, for according to described the first data message, from described PI real-time data base, obtaining data to be migrated;
The second transmitting element, for the second data message is sent to described the second interface module, described the second data message comprises described data to be migrated, the Data Identification corresponding with described data to be migrated, described and described Data Identification corresponding to data to be migrated comprises: with the first Data Identification in PI real-time data base corresponding to described data to be migrated and/or with Hisoon real-time data base corresponding to described data to be migrated in the second Data Identification, described the second data message is that described the second receiving port module is stored to the foundation in described Hisoon real-time data base by described data to be migrated.
A kind of data mover system comprises:
Receiving port module as the first receiving port module in the above-mentioned data mover system be applied between PI real-time data base and Hisoon real-time data base of the first receiving port module;
The receiving port module that is applied to the second receiving port module in the data mover system between PI real-time data base and Hisoon real-time data base as the second receiving port module.
Known via above-mentioned technical scheme, compared with prior art, the invention discloses in a kind of data migration method, according to the first data message received from the first receiving port module, judge whether PI real-time data base and Hisoon real-time data base have set up actual Data Identification corresponding relation, judge the second Data Identification whether with the Hisoon real-time data base in the Data Identification of each data be complementary, when in the second Data Identification, in the 3rd Data Identification and Hisoon real-time data base, the Data Identification of each data does not mate, illustrate and also do not set up actual corresponding relation, now can in the Hisoon real-time data base, create the variable with the 3rd Data Identification name, after setting up the Data Identification corresponding relation between complete PI real-time data base and Hisoon real-time data base, just data can have been transmitted, receive the second data message from the first receiving port, because the second data message comprises data to be migrated and the Data Identification corresponding with above-mentioned data to be migrated, so just can obtain the positional information that data to be migrated are stored to the Hisoon real-time data base according to the second data message and the first data message, thereby above-mentioned data to be migrated are stored to the position corresponding with above-mentioned positional information.Thereby realized the Data Migration in the PI real-time data base to the purpose in the Hisoon real-time data base.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making under the creative work prerequisite the every other embodiment obtained, belong to the scope of protection of the invention.
Refer to accompanying drawing 1, for the embodiment of the present invention provides a kind of schematic flow sheet of data migration method, this data migration method is applied to the second receiving port module in the data mover system between PI real-time data base and Hisoon real-time data base, and this data migration method comprises:
Step S101: the first data message that receives the first receiving port module.
The first data message comprises the second Data Identification in the first Data Identification in the PI real-time data base and the Hisoon real-time data base corresponding with the first Data Identification.
For the Data Identification of data in the Data Identification by data in the PI real-time data base and Hisoon real-time data base is distinguished, here the sign of data in the PI real-time data base is called to the first Data Identification, the Data Identification of data in the Hisoon real-time data base in the first data message is called to the second Data Identification.
The first Data Identification can comprise one or more Data Identifications.The second Data Identification can comprise one or more Data Identifications.
The second Data Identification in the first data message in the Hisoon real-time data base corresponding with the first Data Identification is according to the organization definition of Data Identification in the Hisoon real-time data base, so be called Data Identification in the Hisoon real-time data base.
If there are the data corresponding with data in the PI real-time data base in the Hisoon real-time data base, can the people be the Data Identification of knowing data corresponding with data in the PI real-time data base in the Hisoon real-time data base, if there are not the data corresponding with data in the PI real-time data base in the Hisoon real-time data base, can artificially define Data Identification according to the structure of Data Identification in the Hisoon real-time data base, so just can draw the first data message.So in the first data message, the corresponding relation between Data Identification in PI real-time data base and Hisoon real-time data base, may exist, and may be also non-existent.
For data transmission security, the first data message can be stored in the E file.Can certainly be stored in alternative document, do not affect the specific implementation of the embodiment of the present invention due to the first data information memory in which file, so the embodiment of the present invention is not done concrete restriction to the memory carrier of the first data message.
Above-mentioned the first Data Identification can be for data name and coding one or more in ID.Above-mentioned the second Data Identification can be data name.
Step S102: judge the second Data Identification whether with the Hisoon real-time data base in the Data Identification of each data be complementary.
Because the corresponding relation of the Data Identification in PI real-time data base in the first data message and Hisoon real-time data base not necessarily exists, so need to be judged.
Step S103: when in the 3rd Data Identification and Hisoon real-time data base, the Data Identification of each data does not mate in judging the second Data Identification, create the variable with the 3rd Data Identification name in the Hisoon real-time data base.
Here by the second Data Identification with the Hisoon real-time data base in the unmatched Data Identification of Data Identification of each data be called the 3rd Data Identification.The 3rd Data Identification can comprise one or more Data Identifications.
In the Hisoon real-time data base, the Data Identification of each data is unique.
Step S104: receive the second data message from the first receiving port.
The second data message comprises that the first receiving port is according to the first data message, the data to be migrated that gather from the PI real-time data base, the Data Identification corresponding with data to be migrated.
The Data Identification corresponding with data to be migrated comprises: with the first Data Identification in PI real-time data base corresponding to data to be migrated and/or with Hisoon real-time data base corresponding to data to be migrated in the second Data Identification.
Step S105: according to the first data message and the second data message, determine the positional information that data to be migrated are stored to the Hisoon real-time data base.
When Data Identification corresponding to the data with to be migrated is in the PI real-time data base corresponding with data to be migrated during the first Data Identification, can be according to the corresponding relation of the Data Identification of the Data Identification of PI real-time data base in the first data message and Hisoon real-time data base, obtain the Data Identification of Hisoon real-time data base corresponding to above-mentioned data to be migrated, because the Data Identification of each data in the Hisoon real-time data base is unique, so can be stored to using the Data Identification of above-mentioned data to be migrated as data to be migrated the positional information of Hisoon real-time data base.So step S105 can be: determine the second Data Identification in Hisoon real-time data base corresponding to above-mentioned data to be migrated according to the first data message and the second data message, the Data Identification in Hisoon real-time data base corresponding to above-mentioned data to be migrated can be above-mentioned positional information.Namely first judge in the PI real-time data base in the first data message, whether the first Data Identification comprises the first Data Identification in PI real-time data base corresponding to data to be migrated, if comprise the corresponding relation between the Data Identification of the Data Identification of the PI real-time data base of having set up these data to be migrated and Hisoon real-time data base be described, so can determine the second Data Identification in Hisoon real-time data base corresponding to above-mentioned data to be migrated according to the first data message and the second data message.
When Data Identification corresponding to the data with to be migrated is the second Data Identification in the Hisoon real-time data base corresponding with data to be migrated, can first judge in the first data message the sign that whether has the second Data Identification in the Hisoon real-time data base corresponding with data to be migrated to be complementary, if have the corresponding relation between the Data Identification of the Data Identification of the PI real-time data base of having set up these data to be migrated and Hisoon real-time data base be described, so the second Data Identification in can the Hisoon real-time data base that data to be migrated are corresponding is stored to the positional information of Hisoon real-time data base as data to be migrated.
When Data Identification corresponding to the data with to be migrated be the second Data Identification in the Hisoon real-time data base corresponding with data to be migrated and with PI real-time data base corresponding to data to be migrated in during the first Data Identification, can first judge in the first data message the sign that whether has the second Data Identification in the Hisoon real-time data base corresponding with data to be migrated to be complementary, if have the corresponding relation between the Data Identification of the Data Identification of the PI real-time data base of having set up these data to be migrated and Hisoon real-time data base be described, perhaps can first judge in the PI real-time data base in the first data message, whether the first Data Identification comprises the first Data Identification in PI real-time data base corresponding to data to be migrated, if comprise the corresponding relation between the Data Identification of the Data Identification of the PI real-time data base of having set up these data to be migrated and Hisoon real-time data base be described, perhaps judge in the first data message the sign that whether has the second Data Identification in the Hisoon real-time data base corresponding with data to be migrated to be complementary simultaneously, and first the first Data Identification in PI real-time data base in data message whether comprise the first Data Identification in PI real-time data base corresponding to data to be migrated, if meet simultaneously, the corresponding relation between the Data Identification of the Data Identification of PI real-time data base of these data to be migrated and Hisoon real-time data base has been set up in explanation, so can determine the positional information that data to be migrated are stored in the Hisoon real-time data base according to the first data message and the second data message.
Step S106: data to be migrated are stored to the position corresponding with above-mentioned positional information.
In the data migration method that the embodiment of the present invention proposes, according to the first data message received from the first receiving port module, judge whether PI real-time data base and Hisoon real-time data base have set up actual Data Identification corresponding relation, judge the second Data Identification whether with the Hisoon real-time data base in the Data Identification of each data be complementary, when in the second Data Identification, in the 3rd Data Identification and Hisoon real-time data base, the Data Identification of each data does not mate, illustrate and also do not set up actual corresponding relation, now can in the Hisoon real-time data base, create the variable with the 3rd Data Identification name, after setting up the Data Identification corresponding relation between complete PI real-time data base and Hisoon real-time data base, just data can have been transmitted, receive the second data message from the first receiving port, because the second data message comprises data to be migrated and the Data Identification corresponding with above-mentioned data to be migrated, so just can obtain the positional information that data to be migrated are stored to the Hisoon real-time data base according to the second data message and the first data message, thereby above-mentioned data to be migrated are stored to the position corresponding with above-mentioned positional information.Thereby realized the Data Migration in the PI real-time data base to the purpose in the Hisoon real-time data base.
Refer to Fig. 2, the method flow schematic diagram of another embodiment of a kind of data migration method provided for the embodiment of the present invention, this data migration method comprises:
Step S201: the first data message that receives the first receiving port module.
The first data message comprises the second Data Identification in the first Data Identification in the PI real-time data base and the Hisoon real-time data base corresponding with the first Data Identification.
The first data message can also comprise the data corresponding with the first Data Identification data type, with the descriptor of data corresponding to the first Data Identification, with the another name of data corresponding to the first Data Identification, with the unit of data corresponding to the first Data Identification, with the multiplying power of data corresponding to the first Data Identification and with the filing state of data corresponding to the first Data Identification in one or more.
Step S202: judge the second Data Identification whether with the Hisoon real-time data base in the Data Identification of each data be complementary.
Because the corresponding relation of the Data Identification in PI real-time data base in the first data message and Hisoon real-time data base not necessarily exists, so need to be judged.
Step S203: when in the 3rd Data Identification and Hisoon real-time data base, the Data Identification of each data does not mate in judging the second Data Identification, create the variable with the 3rd Data Identification name in the Hisoon real-time data base.
When in judging the second Data Identification, in the 4th Data Identification and Hisoon real-time data base, the Data Identification of each data is complementary, the corresponding relation of having set up corresponding data sign in the 4th Data Identification and Hisoon real-time data base is described, so do not need to re-establish.
Here by the second Data Identification with the Hisoon real-time data base in the Data Identification that is complementary of the Data Identification of each data be called the 4th Data Identification.The 4th Data Identification is not to refer in particular to a certain Data Identification, and the 4th Data Identification can be one or more Data Identifications.
Step S204: obtaining the Hisoon database is the coding ID of the variable distribution that the second Data Identification is corresponding.
The first data message and coding ID can be stored in local CTL file, can certainly be stored in alternative document, because the carrier of the first data information memory does not affect the specific implementation of the embodiment of the present invention, so the carrier of the first data information memory is not specifically limited at this.
The CTL file can be user-defined control documents, is a kind of file produced in the vb programming.
Step S205: receive the second data message from the first receiving port.
The second data message comprises that the first receiving port is according to the first data message, the data to be migrated that gather from the PI real-time data base, the Data Identification corresponding with data to be migrated.
The Data Identification corresponding with data to be migrated comprises: with the first Data Identification in PI real-time data base corresponding to data to be migrated and/or with Hisoon real-time data base corresponding to data to be migrated in the second Data Identification.
Step S206: according to the first data message and the second data message, determine the positional information that data to be migrated are stored to the Hisoon real-time data base.
Step S206 can be specially: determine the coding ID of the above-mentioned data to be migrated data corresponding with it at the Hisoon real-time data base according to the first data message and the second data message, this coding ID is above-mentioned positional information.
When Data Identification corresponding to the data with to be migrated is in the PI real-time data base corresponding with data to be migrated during the first Data Identification, can be according to the corresponding relation of the Data Identification of the Data Identification of PI real-time data base in the first data message and Hisoon real-time data base, obtain the Data Identification of Hisoon real-time data base corresponding to above-mentioned data to be migrated, corresponding relation between Data Identification that can be corresponding according to data in the Hisoon real-time data base and coding ID, obtain the coding ID of the data to be migrated data corresponding with it at the Hisoon real-time data base, due to coding, ID is unique, so the coding ID in Hisoon real-time data base corresponding to above-mentioned migration data can be above-mentioned positional information.Namely first judge in the PI real-time data base in the first data message, whether the first Data Identification comprises the first Data Identification in PI real-time data base corresponding to data to be migrated, if comprise the corresponding relation between the Data Identification of the Data Identification of the PI real-time data base of having set up these data to be migrated and Hisoon real-time data base be described, so can be according to the corresponding relation of the Data Identification of the Data Identification of PI real-time data base in the first data message and Hisoon real-time data base, and the corresponding relation between Data Identification corresponding to data and coding ID in the Hisoon real-time data base, obtain the coding ID of the data to be migrated data corresponding with it at the Hisoon real-time data base.
When Data Identification corresponding to the data with to be migrated is the second Data Identification in the Hisoon real-time data base corresponding with data to be migrated, can first judge in the first data message the sign that whether has the second Data Identification in the Hisoon real-time data base corresponding with data to be migrated to be complementary, if have the corresponding relation between the Data Identification of the Data Identification of the PI real-time data base of having set up these data to be migrated and Hisoon real-time data base be described, can obtain the positional information that data to be migrated are stored to the Hisoon real-time data base by direct basis the second data message, thereby obtain the coding ID of the data to be migrated data corresponding with it at the Hisoon real-time data base.
When Data Identification corresponding to the data with to be migrated be the second Data Identification in the Hisoon real-time data base corresponding with data to be migrated and with PI real-time data base corresponding to data to be migrated in during the first Data Identification, can first judge in the first data message the sign that whether has the second Data Identification in the Hisoon real-time data base corresponding with data to be migrated to be complementary, if have the corresponding relation between the Data Identification of the Data Identification of the PI real-time data base of having set up these data to be migrated and Hisoon real-time data base be described, perhaps can first judge in the PI real-time data base in the first data message, whether the first Data Identification comprises the first Data Identification in PI real-time data base corresponding to data to be migrated, if comprise the corresponding relation between the Data Identification of the Data Identification of the PI real-time data base of having set up these data to be migrated and Hisoon real-time data base be described, perhaps judge in the first data message the sign that whether has the second Data Identification in the Hisoon real-time data base corresponding with data to be migrated to be complementary simultaneously, and first the first Data Identification in PI real-time data base in data message whether comprise the first Data Identification in PI real-time data base corresponding to data to be migrated, if meet simultaneously, the corresponding relation between the Data Identification of the Data Identification of PI real-time data base of these data to be migrated and Hisoon real-time data base has been set up in explanation, so can determine the positional information that data to be migrated are stored in the Hisoon real-time data base according to the first data message and the second data message.
Step S207: data to be migrated are stored to the position corresponding with above-mentioned positional information.
Refer to Fig. 3, the schematic flow sheet of a kind of data migration method provided for the embodiment of the present invention, this data migration method is applied to the first receiving port module in the data mover system between PI real-time data base and Hisoon real-time data base, and this data migration method comprises:
Step S301: import data message.
Data message comprises the first data message, and the first data message comprises the second Data Identification in the first Data Identification in the PI real-time data base and the Hisoon real-time data base corresponding with the first Data Identification.
Before data message is imported, data message can be that the form with the Excel form presents.Import data message and import exactly this Excel form.
For the Data Identification of data in the Data Identification by data in the PI real-time data base and Hisoon real-time data base is distinguished, here the sign of data in the PI real-time data base is called to the first Data Identification, the Data Identification of data in the Hisoon real-time data base in the first data message is called to the second Data Identification.
The second Data Identification in the first data message in the Hisoon real-time data base corresponding with the first Data Identification is according to the organization definition of Data Identification in the Hisoon real-time data base, so be called Data Identification in the Hisoon real-time data base.
If there are the data corresponding with data in the PI real-time data base in the Hisoon real-time data base, can the people be the Data Identification of knowing data corresponding with data in the PI real-time data base in the Hisoon real-time data base, if there are not the data corresponding with data in the PI real-time data base in the Hisoon real-time data base, can artificially define Data Identification according to the structure of Data Identification in the Hisoon real-time data base, so just can draw the first data message.So in the first data message, the corresponding relation between Data Identification in PI real-time data base and Hisoon real-time data base, may exist, and may be also non-existent.
Above-mentioned the first Data Identification can be for data name and coding one or more in ID.Above-mentioned the second Data Identification can be data name.
The first data message can also comprise the data corresponding with the first Data Identification data type, with the descriptor of data corresponding to the first Data Identification, with the another name of data corresponding to the first Data Identification, with the unit of data corresponding to the first Data Identification, with the multiplying power of data corresponding to the first Data Identification and with the filing state of data corresponding to the first Data Identification in one or more.
In actual applications, when data migration method is carried out, step S301 can carry out when data migration method execution for the first time, follow-up while repeating data migration method, S301 can be again performed step, S301 can certainly be when each executing data moving method, all performed step.
Step S302: the first data message is sent to the second receiving port module, and the first data message is the foundation that the second receiving port module is set up the corresponding relation of data between Hisoon real-time data base and PI real-time data base.
For data transmission security, can the first data information memory in the E file, and then this E file is sent to the second receiving port module.Certain the first data message also can be stored in alternative document, does not affect the specific implementation of the embodiment of the present invention in which file due to the first data information memory, so the embodiment of the present invention is not done concrete restriction to the memory carrier of the first data message.
Step S303: according to the first data message, obtain data to be migrated from the PI real-time data base.
Step S304: the second data message is sent to the second interface port module, and the second data message is that the second receiving port module is stored to the foundation in the Hisoon real-time data base by above-mentioned data to be migrated.
The second data message comprises above-mentioned data to be migrated, the Data Identification corresponding with above-mentioned data to be migrated.
The Data Identification corresponding with above-mentioned data to be migrated comprises: with the first Data Identification in PI real-time data base corresponding to above-mentioned data to be migrated and/or with Hisoon real-time data base corresponding to above-mentioned data to be migrated in the second Data Identification.
In the data migration method that the embodiment of the present invention proposes, import data message, data message comprises the first data message, and the first data message comprises that several second in the first Data Identification in the PI real-time data base and the Hisoon real-time data base corresponding with the first Data Identification is according to sign.The first data message is sent to the second receiving port module, so that the second receiving port module is set up the corresponding relation of Data Identification between Hisoon real-time data base and PI real-time data base according to the first data message.After setting up the Data Identification corresponding relation between complete PI real-time data base and Hisoon real-time data base, just data can have been transmitted, now just can obtain according to the first data message data to be migrated from the PI real-time data base, and the second data message is sent to the second interface port module, the second data message comprises above-mentioned data to be migrated, the Data Identification corresponding with above-mentioned data to be migrated.So the second receiving port module can obtain the positional information that data to be migrated are stored to the Hisoon real-time data base according to the second data message and the first data message, thereby above-mentioned data to be migrated are stored to the position corresponding with above-mentioned positional information.Thereby realized the Data Migration in the PI real-time data base to the purpose in the Hisoon real-time data base.
After data message is imported, can also control display unit and show data message, refer to Fig. 4, the schematic diagram of the display interface of the data message shown for display unit.
PI calls the roll and refers to the data name of the data corresponding with the first Data Identification, ID refers to the coding ID of the data corresponding with the first Data Identification, description refers to the descriptor of the data corresponding with the first Data Identification, the measuring point another name refers to the another name of the data corresponding with the first Data Identification, filing refers to the filing state of the data corresponding with the first Data Identification, type refers to the data type of the data corresponding with the first Data Identification, multiplying power refers to the multiplying power of the data corresponding with the first Data Identification, unit refers to the unit of the data corresponding with the first Data Identification, Hisoon is called the roll and is referred to the data name of the data corresponding with the second Data Identification.
Every a line in figure can be called to a record, the left end of each record all has a choice box, when the user need to set up in a certain record in the PI real-time data base in Data Identification and Hisoon real-time data base the corresponding relation of Data Identification, choose this choice box, the selected state of choice box is " √ " form as shown in Figure 4.Can certainly be other forms, the embodiment of the present invention not be done concrete restriction to this.
As shown in Figure 4, the user has selected front 4 records.
The first data message can be above-mentioned front 4 records, and certain the first data message can be also data message itself.
To sum up, be understandable that, the embodiment of the present invention provides was applied to data migration method in the first receiving port module before the first data message being sent to described the second receiving port module, also comprised: obtain the first data message that the user selects from above-mentioned data message.
Certainly, the embodiment of the present invention also can artificially be selected the first data message, can set one pre-conditioned, can be according to this pre-conditioned selection the first data message, this is pre-conditioned can be: select front 10 records in data message.
Perhaps the first data message be just above-mentioned data message, do not need according to pre-conditioned with the people for being selected.
Be understandable that, select one or more record in the first data message the display interface of the data message that in the above-mentioned data migration method be applied in the first receiving port module, the user can show from display unit, as shown in Figure 4, if the first data message is front 4 records, data to be migrated can be selected from these 4 records.According to the first data message, obtaining data to be migrated can be from the PI real-time data base in the embodiment of the present invention now: the information of the data to be migrated that User is selected from the first data message, acquisition data to be migrated from the PI real-time data base.
Certainly, the embodiment of the present invention also can artificially be selected the information of data to be migrated, and data to be migrated can be data corresponding to all records in the first data message.
Above-mentioned arbitrary data migration method embodiment is described, and by the Data Migration in the PI real-time data base, the method to the data of Hisoon real-time data base can be applied in power industry energy-saving and emission-reduction supervisory systems.
Describe method in detail in the disclosed embodiment of the invention described above, for method of the present invention, can adopt the device of various ways to realize, therefore the invention also discloses multiple device, below provide specific embodiment and be elaborated.
Please participate in Fig. 5, the structural representation of a kind of receiving port module provided for the embodiment of the present invention, the second receiving port module in the data mover system of this receiving port module application between PI real-time data base and Hisoon real-time data base, this receiving port module can comprise: the first receiving element 501, judging unit 502, creating unit 503, the second receiving element 504, determining unit 505 and storage unit 506, wherein:
The first receiving element 501, for receiving the first data message from the first receiving port module.
The first data message comprises the second Data Identification in the first Data Identification in the PI real-time data base and the Hisoon real-time data base corresponding with the first Data Identification.
For the Data Identification of data in the Data Identification by data in the PI real-time data base and Hisoon real-time data base is distinguished, here the sign of data in the PI real-time data base is called to the first Data Identification, the Data Identification of data in the Hisoon real-time data base in the first data message is called to the second Data Identification.
The first Data Identification can comprise one or more Data Identifications.The second Data Identification can comprise one or more Data Identifications.
The second Data Identification in the first data message in the Hisoon real-time data base corresponding with the first Data Identification is according to the organization definition of Data Identification in the Hisoon real-time data base, so be called Data Identification in the Hisoon real-time data base.
If there are the data corresponding with data in the PI real-time data base in the Hisoon real-time data base, can the people be the Data Identification of knowing data corresponding with data in the PI real-time data base in the Hisoon real-time data base, if there are not the data corresponding with data in the PI real-time data base in the Hisoon real-time data base, can artificially define Data Identification according to the structure of Data Identification in the Hisoon real-time data base, so just can draw the first data message.So in the first data message, the corresponding relation between Data Identification in PI real-time data base and Hisoon real-time data base, may exist, and may be also non-existent.
For data transmission security, the first data message can be stored in the E file.Can certainly be stored in alternative document, do not affect the specific implementation of the embodiment of the present invention due to the first data information memory in which file, so the embodiment of the present invention is not done concrete restriction to the memory carrier of the first data message.
Above-mentioned the first Data Identification can be for data name and coding one or more in ID.Above-mentioned the second Data Identification can be data name.
Whether judging unit 502, be complementary with the Data Identification of each data of Hisoon real-time data base for judging the second Data Identification.
Creating unit 503 while not mating for the Data Identification of each data in judging the second Data Identification the 3rd Data Identification and Hisoon real-time data base, creates the variable with the 3rd Data Identification name in the Hisoon real-time data base.
Here by the second Data Identification with the Hisoon real-time data base in the unmatched Data Identification of Data Identification of each data be called the 3rd Data Identification.The 3rd Data Identification can comprise one or more Data Identifications.
In the Hisoon real-time data base, the Data Identification of each data is unique.
The second receiving element 504, for receiving the second data message from the first receiving port.
The second data message comprises that the first receiving port is according to the first data message, the data to be migrated that gather from the PI real-time data base, the Data Identification corresponding with above-mentioned data to be migrated.
The Data Identification corresponding with above-mentioned data to be migrated comprises: with the first Data Identification in PI real-time data base corresponding to above-mentioned data to be migrated and/or with Hisoon real-time data base corresponding to above-mentioned data to be migrated in the second Data Identification.
Determining unit 505, for determining according to the first data message and the second data message the positional information that above-mentioned data to be migrated are stored to the Hisoon real-time data base.
Storage unit 506, for being stored to the position corresponding with above-mentioned positional information by above-mentioned data to be migrated.
In the receiving port module that the embodiment of the present invention proposes, the first data message received from the first receiving port module according to the first receiving element 501, judge by judging unit 502 whether PI real-time data base and Hisoon real-time data base have set up actual Data Identification corresponding relation, judge the second Data Identification whether with the Hisoon real-time data base in the Data Identification of each data be complementary, when in the second Data Identification, in the 3rd Data Identification and Hisoon real-time data base, the Data Identification of each data does not mate, illustrate and also do not set up actual corresponding relation, now can utilize creating unit 503 to create the variable with the 3rd Data Identification name in the Hisoon real-time data base, after setting up the Data Identification corresponding relation between complete PI real-time data base and Hisoon real-time data base, just data can have been transmitted, the second data message that the second receiving element 504 receives from the first receiving port, because the second data message comprises data to be migrated and the Data Identification corresponding with above-mentioned data to be migrated, so determining unit 505 just can obtain the positional information that data to be migrated are stored to the Hisoon real-time data base according to the second data message and the first data message, thereby storage unit 506 is stored to the position corresponding with above-mentioned positional information by above-mentioned data to be migrated.Thereby realized the Data Migration in the PI real-time data base to the purpose in the Hisoon real-time data base.
In the above-mentioned receiving port module embodiment that is applied to the second receiving port module, when the Data Identification corresponding with above-mentioned data to be migrated be with PI real-time data base corresponding to above-mentioned data to be migrated in during the first Data Identification, determining unit specifically for: determine the second Data Identification in Hisoon real-time data base corresponding to above-mentioned data to be migrated according to the first data message and the second data message, the Data Identification in Hisoon real-time data base corresponding to above-mentioned data to be migrated is above-mentioned positional information.
In the above-mentioned receiving port module embodiment that is applied to the second receiving port module, can also comprise: acquiring unit, for the coding ID that to obtain the Hisoon real-time data base be the data allocations that the second Data Identification is corresponding; Accordingly, determining unit specifically for: determine the coding ID of the above-mentioned data to be migrated data corresponding with it at the Hisoon real-time data base according to the first data message and the second data message, this coding ID is above-mentioned positional information.
Refer to Fig. 6, the structural representation of a kind of receiving port module provided for the embodiment of the present invention, the first receiving port module in the data mover system of this receiving port module application between PI real-time data base and Hisoon real-time data base, this receiving end mouth module comprises: imports unit 601, the first transmitting element 602, obtains unit 603 and the second transmitting element 604, wherein:
Import unit 601, for importing data message.
Above-mentioned data message comprises the first data message, and the first data message comprises that several second in the first Data Identification in the PI real-time data base and the Hisoon real-time data base corresponding with the first Data Identification is according to sign.
The first transmitting element 602, for the first data message being sent to the second receiving port module, the first data message is the foundation that the second receiving port module is set up the corresponding relation of data between Hisoon real-time data base and PI real-time data base.
Obtain unit 603, for according to the first data message, from the PI real-time data base, obtaining data to be migrated.
The second transmitting element 604, for the second data message is sent to the second interface module, the second data message is that the second receiving port module is stored to the foundation in the Hisoon real-time data base by above-mentioned data to be migrated.
The second data message comprises above-mentioned data to be migrated, the Data Identification corresponding with above-mentioned data to be migrated.
The Data Identification corresponding with above-mentioned data to be migrated comprises: with the first Data Identification in PI real-time data base corresponding to above-mentioned data to be migrated and/or with Hisoon real-time data base corresponding to above-mentioned data to be migrated in the second Data Identification.
In the receiving port module that the embodiment of the present invention proposes, import unit 601 and import data message, data message comprises the first data message, and the first data message comprises that several second in the first Data Identification in the PI real-time data base and the Hisoon real-time data base corresponding with the first Data Identification is according to sign.The first transmitting element 602 is sent to the second receiving port module by the first data message, so that the second receiving port module is set up the corresponding relation of Data Identification between Hisoon real-time data base and PI real-time data base according to the first data message.After setting up the Data Identification corresponding relation between complete PI real-time data base and Hisoon real-time data base, just data can have been transmitted, now obtain unit 603 and just can obtain according to the first data message data to be migrated from the PI real-time data base, the second transmitting element 604 is sent to the second interface port module by the second data message, and the second data message comprises above-mentioned data to be migrated, the Data Identification corresponding with above-mentioned data to be migrated.So the second receiving port module can obtain the positional information that data to be migrated are stored to the Hisoon real-time data base according to the second data message and the first data message, thereby above-mentioned data to be migrated are stored to the position corresponding with above-mentioned positional information.Thereby realized the Data Migration in the PI real-time data base to the purpose in the Hisoon real-time data base.
The embodiment of the present invention also provides a kind of data mover system, and this system comprises the first receiving port module and the second receiving port module.
The first receiving port module can be the receiving port module described in the receiving port module embodiment of the first receiving port module in the above-mentioned data mover system be applied between PI real-time data base and Hisoon real-time data base.
The second receiving port module can be for being applied to the described receiving port module of the arbitrary embodiment of receiving port module of the second receiving port module in the data mover system between PI real-time data base and Hisoon real-time data base.
The interface module of the described description of above-mentioned arbitrary receiving port module embodiment, or arbitrary data mover system embodiment institute descriptive system all can be applied in power industry energy-saving and emission-reduction supervisory systems.
It should be noted that, each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is and the difference of other embodiment that between each embodiment, identical similar part is mutually referring to getting final product.For device or system class embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part gets final product referring to the part explanation of embodiment of the method.
Also it should be noted that, in this article, relational terms such as the first and second grades only is used for an entity or operation are separated with another entity or operational zone, and not necessarily requires or imply between these entities or operation the relation of any this reality or sequentially of existing.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby make the process, method, article or the equipment that comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or also be included as the intrinsic key element of this process, method, article or equipment.In the situation that not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
The software module that the method for describing in conjunction with embodiment disclosed herein or the step of algorithm can directly use hardware, processor to carry out, or the combination of the two is implemented.Software module can be placed in the storage medium of any other form known in random access memory (RAM), internal memory, ROM (read-only memory) (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field.
To the above-mentioned explanation of the disclosed embodiments, make professional and technical personnel in the field can realize or use the present invention.Multiple modification to these embodiment will be apparent for those skilled in the art, and General Principle as defined herein can be in the situation that do not break away from the spirit or scope of the present invention, realization in other embodiments.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.