CN101650735B - Data initial state restoring method, data initial state restoring device and single sign-on system - Google Patents

Data initial state restoring method, data initial state restoring device and single sign-on system Download PDF

Info

Publication number
CN101650735B
CN101650735B CN2009101094221A CN200910109422A CN101650735B CN 101650735 B CN101650735 B CN 101650735B CN 2009101094221 A CN2009101094221 A CN 2009101094221A CN 200910109422 A CN200910109422 A CN 200910109422A CN 101650735 B CN101650735 B CN 101650735B
Authority
CN
China
Prior art keywords
data
external data
external
deletion
initialization
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN2009101094221A
Other languages
Chinese (zh)
Other versions
CN101650735A (en
Inventor
任峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kingdee Software China Co Ltd
Original Assignee
Kingdee Software China Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kingdee Software China Co Ltd filed Critical Kingdee Software China Co Ltd
Priority to CN2009101094221A priority Critical patent/CN101650735B/en
Publication of CN101650735A publication Critical patent/CN101650735A/en
Application granted granted Critical
Publication of CN101650735B publication Critical patent/CN101650735B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention is applicable to the field of data processing and provides a data initial state restoring method, a data initial state restoring device and a single sign-on system. The data initial state restoring method comprises the following steps: receiving a data initialization directive; removing a synchronizing time mark of synchronous data; deleting external data, or the external data and internal data corresponding to the external data according to the internal and external data mapping relationship in the process of the data synchronous process; and switching off the corresponding internal and external data mapping relationship according to the deleted external data, removing the corresponding internal and external data mapping relationship and eliminating the synchronizing time mark of the synchronous data according to the deleted external data and the internal data. The embodiment of the invention ensures the integrity of data through eliminating the synchronizing time mark of the synchronous data and deleting the synchronous data according to the internal and external data mapping relationship, thereby rapidly, accurately and efficiently restoring the synchronous data to the initial state.

Description

A kind of data original state restoration methods, device and single-node login system
Technical field
The invention belongs to data processing field, relate in particular to a kind of data original state restoration methods, device and single-node login system.
Background technology
In single-node login system, in order to realize the once login of a plurality of operation systems, need the data of integrated a plurality of operation systems, like the user profile of the integrated a plurality of operation systems of needs etc.Because each application system all has the data structure of self; If any the role, institutional framework, rights management, user management method etc. of self; When causing in single-node login system the data integration in first system to second system; Need be in second system with the data sync in first system, and set up the mapping relations between the data of data and second system of first system, to eliminate the difference that exists between the data in each operation system.With the data sync in first system during to second system; All want the synchronizing information of record data, like resource items type, data source, lock in time etc., hereinafter the synchronizing information with data recorded is referred to as synchrodata; The data that comprise in second system are called internal data; The data that comprise in first system are called external data, by the corresponding relation that internal data and external data are set up, are called inside and outside data map relation.
But in single-node login system; Needs change or migration data source possibly appear; Cause the data after previous data in synchronization and change or the migration to occur not matching, at this moment, need carry out the initialization process and the data of integrated a plurality of operation systems again synchrodata.As in implementation process, adopt test environment to test, reach the standard grade after using a period of time, need be with the synchrodata replacement initialization in original test environment, and the data in the production environment are carried out synchronously, with the consistance and the accuracy of assurance data.
Prior art generally adopts by hand the synchrodata that produces in the operation system integrating process is deleted, to reach the purpose of data initialization.Though this method can satisfy the demand of service application basically, can not thoroughly delete junk data, be easy to generate mistake and speed is slow, cost is high.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of data initialization restoration methods, is intended to solve the problem that speed is slow, cost is high, error rate is high that existing data initialization restoration methods exists.
The embodiment of the invention is achieved in that a kind of data initialization restoration methods, and said method comprises the steps:
The instruction of reception data initialization, said data initialization instruction comprises mark initialization directive lock in time and synchrodata initialization directive;
Remove mark lock in time of synchrodata;
According to the relation of the inside and outside data map in the data synchronization process judge internal data be in synchronizing process by single-sign-on mapping management management or system original: if internal data in synchronizing process by single-sign-on mapping management management; According to inside and outside data map relation deletion external data and the internal data corresponding in the data synchronization process with this external data; According to the external data and the internal data of deletion, remove corresponding inside and outside data map relation; If it is original that internal data is a system, the inside and outside data map relation deletion external data according in the data synchronization process keeps the corresponding internal data of this external data, according to the external data of deletion, breaks off corresponding inside and outside data map relation.
Another purpose of the embodiment of the invention is to provide a kind of data initialization recovery device, and said device comprises:
The initialization directive receiving element is used to receive the data initialization instruction, and said data initialization instruction comprises mark initialization directive lock in time and synchrodata initialization directive;
Explorer is used for receiving mark lock in time of removing synchrodata when data initialization instructs at said initialization directive receiving element;
The external data manager is used for the inside and outside data map relation deletion external data according to data synchronization process;
The internal data management device, be used for according to the inside and outside data map relation deletion of data synchronization process that in synchronizing process, manage by the single-sign-on map manager with the corresponding internal data of external data said external data manager deletion;
The data map manager is used for the external data according to said external data manager deletion, breaks off corresponding inside and outside data map relation; According to the external data of said external data manager deletion and the internal data of said internal data management device deletion, remove corresponding inside and outside data map relation.
Another purpose of the embodiment of the invention is to provide a kind of single-node login system, and said system comprises said data initialization recovery device.
In embodiments of the present invention; After receiving the data initialization instruction; Remove mark lock in time of synchrodata, thereby guaranteed the integrality of data, through deleting external data according to the inside and outside data map relation in the data synchronization process; And the internal data corresponding with this external data; In the inside and outside data map relation corresponding, and removing mark lock in time according to external data and the internal data deletion of deletion, thus can be fast, accurately and efficiently synchrodata is returned to init state.
Description of drawings
Fig. 1 is the realization flow figure of the data initialization restoration methods that provides of the embodiment of the invention;
Fig. 2 is the structured flowchart of the data initialization recovery device that provides of the embodiment of the invention.
Embodiment
In order to make the object of the invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with accompanying drawing and embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
In embodiments of the present invention; After receiving the data initialization instruction; Remove mark lock in time of synchrodata, and, delete corresponding inside and outside data map relation according to the external data and the internal data of deletion again according to inside and outside data map relation deletion external data and the internal data corresponding in the data synchronization process with this external data; And remove mark lock in time, thereby can be fast, accurately and efficiently synchrodata is returned to init state.
Fig. 1 shows the realization flow of the data initialization restoration methods that the embodiment of the invention provides, and details are as follows:
In step S101, receive the data initialization instruction, said data initialization instruction comprises mark initialization directive lock in time and synchrodata initialization directive.
During concrete the realization, can human-computer interaction interface be provided to the user, so that the user input data initialization directive.In another embodiment of the present invention, this data initialization instruction comprises mark initialization directive lock in time and synchrodata initialization directive.During concrete the realization, can through human-computer interaction interface provide lock in time mark initialization directive input interface and synchrodata initialization directive input interface.
In step S102, remove mark lock in time of synchrodata.
In embodiments of the present invention; Owing to when integrated a plurality of operation system, need the data in a plurality of operation systems be carried out synchronous processing, in order to improve system integration performance; When carrying out data synchronization processing; Record data locks in time is for next data sync provides the data filter condition, to avoid multiple scanning and integrated data of carrying out synchronous processing.Therefore, when needs carry out data integration again, if there is mark lock in time in synchrodata, then these data will be filtered in synchronizing process, cause data integration incomplete.In embodiments of the present invention,, thereby make mark lock in time of synchrodata return to original state,, can obtain the complete or collected works of data with when carrying out data sync again through mark lock in time of removing synchrodata.
The process of wherein removing mark lock in time is specific as follows:
Because in single-node login system; Mark lock in time of synchrodata generally adopts the configuration file record; After receiving data initialization instruction or mark initialization directive lock in time, can remove mark lock in time of synchrodata through the explorer change configuration file of single-node login system.
In step S103, according to the relation of the inside and outside data map in the data synchronization process deletion that in synchronizing process, manage by the single-sign-on map manager with the corresponding internal data of external data said external data manager deletion.Its detailed process is following:
A, according to inside and outside data map relation judge internal data be in synchronizing process, manage by the single-sign-on map manager or system original; If internal data is managed by the single-sign-on map manager in synchronizing process; Execution in step B; If it is original that internal data is a system, execution in step C;
B, according to the relation of the inside and outside data map in data synchronization process deletion external data and the internal data corresponding with this external data;
C, according to the relation of the inside and outside data map in data synchronization process deletion external data, keep the corresponding internal data of this external data.
Wherein the detailed process according to the relation of the inside and outside data map in data synchronization process deletion external data and the internal data corresponding with this external data is following:
Search the unique identification of external data in the inside and outside data map relation from data synchronization process, the deletion external data corresponding from external data with the unique identification of this external data;
Search the unique identification of the corresponding internal data of unique identification that in synchronizing process, manage and external data deletion in the inside and outside data map relation from data synchronization process, internally the deletion internal data corresponding in the data with the unique identification of this internal data by the single-sign-on map manager.
Below with a concrete instance said process is carried out detailed description:
As shown in table 1 when external data, when internal data was as shown in table 2, the inside and outside data map relation of then in data synchronization process, setting up was as shown in table 3.
Table 1
Figure GSB00000596815400051
Table 2
Figure GSB00000596815400052
Table 3
The external data ID The internal data ID
ABC LMN
DEF OPQ
... ...
At this moment; Can obtain the external data ID according to the inside and outside data map relation shown in the table 3; When if there are many records in the inside and outside data map relation shown in the table 3; Then above-mentioned steps is carried out in circulation, obtains all the external data ID in the inside and outside data map relation shown in the table 3.From table 1, search corresponding external data according to the external data ID again; And from table 1 deletion this external data; When having a plurality of external data ID; Then above-mentioned steps is carried out in circulation, from table 1, searches the corresponding external data record of each external data ID, and from table 1, deletes all external data records that find.Then from table 3, search corresponding internal data ID, from table 2, search corresponding internal data, and from table 2, delete this internal data according to the internal data ID according to this external data ID.
In step S104, according to the external data of deletion, break off corresponding inside and outside data map relation, according to the external data and the internal data of deletion, remove corresponding inside and outside data map relation.
In embodiments of the present invention, after the external data and the internal data in the table 2 corresponding of in step S103, having deleted in the table 1, remove the inside and outside data map relation in the table 3, with the thorough initialization of synchrodata with the external data in the table 1.
In another embodiment of the present invention, the execution flow process of above-mentioned steps is all right as follows: first execution in step S101, execution in step S103 and S104, execution in step S102 more again.
Fig. 2 shows the structure of the data initialization recovery device that the embodiment of the invention provides, and for the ease of explanation, only shows the part relevant with the embodiment of the invention.This data initialization recovery device can be to be built in the unit that software unit, hardware cell or software and hardware in the single-node login system combine, and perhaps is integrated in the application system of single-node login system or single-node login system as suspension member independently.Wherein:
Initialization directive receiving element 21 receives the data initialization instruction, and said data initialization instruction comprises mark initialization directive lock in time and synchrodata initialization directive.
During concrete the realization, can human-computer interaction interface be provided to the user, so that the user input data initialization directive.In another embodiment of the present invention, this data initialization instruction comprises mark initialization directive lock in time and synchrodata initialization directive.During concrete the realization, can through human-computer interaction interface provide lock in time mark initialization directive input interface and synchrodata initialization directive input interface.
Explorer 22 is removed mark lock in time of synchrodata when initialization directive receiving element 21 receives the data initialization instruction.
In another embodiment of the present invention, explorer 22 is removed mark lock in time of synchrodata when initialization directive receiving element 21 receives lock in time mark initialization directive.
In embodiments of the present invention, remove mark lock in time of synchrodata through explorer 22, thereby make mark lock in time of synchrodata return to original state,, can obtain the complete or collected works of data with when carrying out data sync again.The process of wherein removing mark lock in time is specific as follows:
In single-node login system; Mark lock in time of synchrodata generally adopts the configuration file record; After initialization directive receiving element 21 receives data initialization instruction or mark initialization directive lock in time; Explorer 22 reads configuration file, and the change configuration file, to remove mark lock in time of synchrodata.
External data manager 23 is according to the inside and outside data map relation deletion external data of setting up in the data synchronization process.In another embodiment of the present invention, this external data manager 23 also is used for external data is controlled and managed.
Internal data management device 24 according to the inside and outside data map relation deletion of setting up in the data synchronization process that in synchronizing process, manage by the single-sign-on map manager with the corresponding internal datas of external data 23 deletions of external data manager.In another embodiment of the present invention, this internal data management device 24 also is used for internal data is controlled and managed.
Data map manager 25 is according to the external data of external data manager 23 deletions; Break off corresponding inside and outside data map relation; According to the external data of external data manager 23 deletions and the internal data of internal data management device 24 deletions, remove corresponding inside and outside data map relation.In another embodiment of the present invention, this data map manager 25 also is used for setting up internal external data mapping relations in data synchronization process, and internally the external data mapping relations are controlled and managed.
In embodiments of the present invention; Through removing mark lock in time of synchrodata; Thereby when carrying out data integration again, can obtain the complete or collected works of data, guarantee the integrality of data; Through deleting external data and the internal data corresponding with this external data according to the inside and outside data map relation of setting up in the data synchronization process; The corresponding inside and outside data corresponding relation of deletion again, thus unwanted synchrodata deleted completely, can be fast, accurately and efficiently synchrodata is returned to init state.
The above is merely preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of within spirit of the present invention and principle, being done, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (5)

1. a data initialization restoration methods is characterized in that, said method comprises the steps:
The instruction of reception data initialization, said data initialization instruction comprises mark initialization directive lock in time and synchrodata initialization directive;
Remove mark lock in time of synchrodata;
According to the relation of the inside and outside data map in the data synchronization process judge internal data be in synchronizing process by single-sign-on mapping management management or system original: if internal data in synchronizing process by single-sign-on mapping management management; According to inside and outside data map relation deletion external data and the internal data corresponding in the data synchronization process with this external data; According to the external data and the internal data of deletion, remove corresponding inside and outside data map relation; If it is original that internal data is a system, the inside and outside data map relation deletion external data according in the data synchronization process keeps the corresponding internal data of this external data, according to the external data of deletion, breaks off corresponding inside and outside data map relation.
2. the method for claim 1 is characterized in that, said removing synchrodata lock in time mark step be specially:
Explorer through single-node login system read be used to write down synchrodata lock in time mark configuration file, and remove mark lock in time of synchrodata through the change configuration file.
3. the method for claim 1 is characterized in that, said according to the inside and outside data map relation deletion external data in the data synchronization process, the step that keeps the corresponding internal data of this external data is specially:
Search the unique identification of external data in the inside and outside data map relation from data synchronization process, the deletion external data corresponding from external data with the unique identification of this external data;
Search the unique identification of the corresponding internal data of unique identification that in synchronizing process, manage and external data deletion in the inside and outside data map relation from data synchronization process, internally the deletion internal data corresponding in the data with the unique identification of this internal data by the single-sign-on map manager.
4. a data initialization recovery device is characterized in that, said device comprises:
The initialization directive receiving element is used to receive the data initialization instruction, and said data initialization instruction comprises mark initialization directive lock in time and synchrodata initialization directive;
Explorer is used for receiving mark lock in time of removing synchrodata when data initialization instructs at said initialization directive receiving element;
The external data manager is used for the inside and outside data map relation deletion external data according to data synchronization process;
The internal data management device, be used for according to the inside and outside data map relation deletion of data synchronization process that in synchronizing process, manage by the single-sign-on map manager with the corresponding internal data of external data said external data manager deletion;
The data map manager is used for the external data according to said external data manager deletion, breaks off corresponding inside and outside data map relation; According to the external data of said external data manager deletion and the internal data of said internal data management device deletion, remove corresponding inside and outside data map relation.
5. a single-node login system is characterized in that, said system comprises the described data initialization recovery device of claim 4.
CN2009101094221A 2009-08-17 2009-08-17 Data initial state restoring method, data initial state restoring device and single sign-on system Active CN101650735B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009101094221A CN101650735B (en) 2009-08-17 2009-08-17 Data initial state restoring method, data initial state restoring device and single sign-on system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009101094221A CN101650735B (en) 2009-08-17 2009-08-17 Data initial state restoring method, data initial state restoring device and single sign-on system

Publications (2)

Publication Number Publication Date
CN101650735A CN101650735A (en) 2010-02-17
CN101650735B true CN101650735B (en) 2012-06-27

Family

ID=41672974

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009101094221A Active CN101650735B (en) 2009-08-17 2009-08-17 Data initial state restoring method, data initial state restoring device and single sign-on system

Country Status (1)

Country Link
CN (1) CN101650735B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878260B (en) * 2016-12-14 2020-04-03 新华三技术有限公司 Single sign-on realization method and device
CN108235101B (en) * 2017-12-28 2021-04-16 深圳Tcl数字技术有限公司 Smart television initialization method, smart television and computer readable storage medium
CN110597576B (en) * 2018-06-13 2024-01-26 广州金山移动科技有限公司 File remark processing method and system

Also Published As

Publication number Publication date
CN101650735A (en) 2010-02-17

Similar Documents

Publication Publication Date Title
US8250033B1 (en) Replication of a data set using differential snapshots
EP2788876B1 (en) System and method for restoring application data
CN105868343B (en) Database migration method and system
CN101561773B (en) Method for recovering disk data and device thereof
CN102289524B (en) Data recovery method and system
CN108509462B (en) Method and device for synchronizing activity transaction table
CN104239166A (en) Method for realizing file backup for running virtual machine
CN102272751B (en) Data integrity in a database environment through background synchronization
WO2018133662A1 (en) Data redistribution method and apparatus, and database cluster
WO2008119292A1 (en) Method, device and system for realizing backup of stored data
CN101916290B (en) Managing method of internal memory database and device
US10379977B2 (en) Data management method, node, and system for database cluster
CN107807932B (en) Hierarchical data management method and system based on path enumeration
CN104021145A (en) Mixed service concurrent access method and device
CN104077380A (en) Method and device for deleting duplicated data and system
CN102411629A (en) File scanning method and device based on android system
WO2017113694A1 (en) File synchronizing method, device and system
CN105279285A (en) Synchronization system and method of relation-type database and non-relation-type database
CN104461773A (en) Backup deduplication method of virtual machine
CN101650735B (en) Data initial state restoring method, data initial state restoring device and single sign-on system
CN110188068A (en) A kind of volume grade backup method and device guaranteeing file system data consistency
CN103106200A (en) Synchronization system of non-relational type database and double-writing synchronization method
CN102609484A (en) General method for managing log of system
CN111737254A (en) Method and device for improving application cache utilization rate
CN109343863B (en) Interface configuration method and system for HDFS (Hadoop distributed File System) permission

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant