CN101650735A - 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
CN101650735A
CN101650735A CN200910109422A CN200910109422A CN101650735A CN 101650735 A CN101650735 A CN 101650735A CN 200910109422 A CN200910109422 A CN 200910109422A CN 200910109422 A CN200910109422 A CN 200910109422A CN 101650735 A CN101650735 A CN 101650735A
Authority
CN
China
Prior art keywords
data
external data
external
deletion
internal
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.)
Granted
Application number
CN200910109422A
Other languages
Chinese (zh)
Other versions
CN101650735B (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 tothe 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, as 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 mapping relations between the data of the data of first system and second 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, as resource items type, data source, lock in time etc., hereinafter the data synchronization information with record 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 may 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 substantially, 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 described method comprises the steps:
The instruction of reception data initialization;
Remove mark lock in time of synchrodata;
According to inside and outside data map relation deletion external data, perhaps external data and the internal data corresponding in the data synchronization process with this external data;
According to the external data of deletion, disconnect 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, and remove mark lock in time of synchrodata.
Another purpose of the embodiment of the invention is to provide a kind of data initialization recovery device, and described device comprises:
The initialization directive receiving element is used to receive the data initialization instruction;
Explorer is used for receiving mark lock in time of removing synchrodata when data initialization instructs at described 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 inside and outside data map relation deletion according to data synchronization process that in synchronizing process, manage by the single-sign-on map manager with the corresponding internal data of external data described external data manager deletion;
The data map manager, be used for external data according to described external data manager deletion, disconnect corresponding inside and outside data map relation, according to the external data of described external data manager deletion and the internal data of described 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 described system comprises described 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, by 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 external data and the corresponding inside and outside data map relation of internal data deletion according to deletion, and remove mark lock in time, thereby 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 purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.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 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, external data and the corresponding inside and outside data map of internal data deletion according to deletion concerns again, 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.
During specific implementation, can provide human-computer interaction interface, so that the user input data initialization directive to the user.In another embodiment of the present invention, this data initialization instruction comprises mark initialization directive lock in time and synchrodata initialization directive.During specific implementation, can by 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, because when integrated a plurality of operation system, data in a plurality of operation systems need 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 by 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 by the explorer change configuration file of single-node login system.
In step S103, according to inside and outside data map relation deletion external data, perhaps external data and the internal data corresponding in the data synchronization process with this external data.Its detailed process is as follows:
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 internal data of this external data correspondence.
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 as follows:
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 example said process is described in detail:
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 setting up in data synchronization process was as shown in table 3.
Table 1
Table 2
Figure G2009101094221D00052
Table 3
The external data user ID The internal data user ID
??ABC ??LMN
??DEF ??OPQ
??... ??...
At this moment, can obtain the external data user 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 user 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 user ID again, and from table 1 deletion this external data, when having a plurality of external data user ID, then above-mentioned steps is carried out in circulation, from table 1, search the external data record of each external data user ID correspondence, and from table 1, delete all external data records that find.Then from table 3, search corresponding internal data user ID, from table 2, search corresponding internal data, and from table 2, delete this internal data according to the internal data user ID according to this external data user ID.
In step S104, according to the external data of deletion, disconnect 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, and remove mark lock in time of synchrodata.
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 can also be 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 convenience 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.
During specific implementation, can provide human-computer interaction interface, so that the user input data initialization directive to the user.In another embodiment of the present invention, this data initialization instruction comprises mark initialization directive lock in time and synchrodata initialization directive.During specific implementation, can by 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 by 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, disconnect 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, by removing mark lock in time of synchrodata, thereby when carrying out data integration again, can obtain the complete or collected works of data, guaranteed the integrality of data, by 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 inside and outside data corresponding relation of deletion correspondence again, thereby delete unwanted synchrodata completely, can be fast, accurately and efficiently synchrodata is returned to init state.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1, a kind of data initialization restoration methods is characterized in that, described method comprises the steps:
The instruction of reception data initialization;
Remove mark lock in time of synchrodata;
According to inside and outside data map relation deletion external data, perhaps external data and the internal data corresponding in the data synchronization process with this external data;
According to the external data of deletion, disconnect 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, and remove mark lock in time of synchrodata.
2, the method for claim 1 is characterized in that, described data initialization instruction comprises mark initialization directive lock in time and synchrodata initialization directive,
When described data initialization instruction during for lock in time mark initialization directive, carry out described removing synchrodata lock in time mark step;
When described data initialization instruction during, carries out and describedly delete external data, perhaps the step of external data and the internal data corresponding with this external data according to the inside and outside data map relation in the data synchronization process for the synchrodata initialization directive; And
Described external data according to deletion disconnects corresponding inside and outside data map relation, according to the external data and the internal data of deletion, removes corresponding inside and outside data map relation, and remove synchrodata lock in time mark step.
3, method as claimed in claim 1 or 2 is characterized in that, described removing synchrodata lock in time mark step be specially:
Explorer by 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 by the change configuration file.
4, method as claimed in claim 1 or 2 is characterized in that, and is described according to the relation of the inside and outside data map in data synchronization process deletion external data, and perhaps the step of external data and the internal data corresponding with this external data is specially:
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, 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;
If it is original that internal data is a system,, keep the internal data of this external data correspondence according to the inside and outside data map relation deletion external data in the data synchronization process.
5, method as claimed in claim 4 is characterized in that, described according to the inside and outside data map relation deletion external data in the data synchronization process, the step that keeps the internal data of this external data correspondence 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.
6, a kind of data initialization recovery device is characterized in that, described device comprises:
The initialization directive receiving element is used to receive the data initialization instruction;
Explorer is used for receiving mark lock in time of removing synchrodata when data initialization instructs at described 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 inside and outside data map relation deletion according to data synchronization process that in synchronizing process, manage by the single-sign-on map manager with the corresponding internal data of external data described external data manager deletion;
The data map manager, be used for external data according to described external data manager deletion, disconnect corresponding inside and outside data map relation, according to the external data of described external data manager deletion and the internal data of described internal data management device deletion, remove corresponding inside and outside data map relation.
7, device as claimed in claim 6 is characterized in that, described data initialization instruction comprises mark initialization directive lock in time and synchrodata initialization directive,
When described data initialization instruction during, trigger described explorer for lock in time mark initialization directive;
When described data initialization instruction is the synchrodata initialization directive, trigger described external data manager, internal data management device and data map manager.
8, a kind of single-node login system is characterized in that, described system comprises claim 6 or 7 described data initialization recovery devices.
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 true CN101650735A (en) 2010-02-17
CN101650735B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878260A (en) * 2016-12-14 2017-06-20 新华三技术有限公司 Single sign-on realization method and device
CN108235101A (en) * 2017-12-28 2018-06-29 深圳Tcl数字技术有限公司 Smart television initial method, smart television and computer readable storage medium
CN110597576A (en) * 2018-06-13 2019-12-20 广州金山移动科技有限公司 File remark processing method and system

Cited By (6)

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

Also Published As

Publication number Publication date
CN101650735B (en) 2012-06-27

Similar Documents

Publication Publication Date Title
EP2788876B1 (en) System and method for restoring application data
CN101561773B (en) Method for recovering disk data and device thereof
CN108509462B (en) Method and device for synchronizing activity transaction table
US10379977B2 (en) Data management method, node, and system for database cluster
CN102265277A (en) Operation method and device for data memory system
CN103180852A (en) Distributed data processing method and apparatus
US8380663B2 (en) Data integrity in a database environment through background synchronization
CN103970834A (en) Recovery method for incremental data synchronization fault in isomerous database synchronizing system
CN102411629A (en) File scanning method and device based on android system
US8572338B1 (en) Systems and methods for creating space-saving snapshots
CN103744708A (en) Method of fixing disk device names in Linux operating system
WO2017113694A1 (en) File synchronizing method, device and system
CN103886091A (en) Database synchronization method based on record marks
CN104461773A (en) Backup deduplication method of virtual machine
CN103716384A (en) Method and device for realizing cloud storage data synchronization in cross-data-center manner
CN101895568B (en) Method and system for cleaning synchronous data
CN101650735B (en) Data initial state restoring method, data initial state restoring device and single sign-on system
CN101937378B (en) Method for carrying out back-up protection on data of storage equipment and computer system
CN101583204B (en) Method and system for realizing managing universal combined circuit card multiple application files
CN102142010A (en) Method and equipment for inputting data to multimedia service database on embedded equipment
CN103593447A (en) Data processing method and device applied to database table
CN110032526A (en) A kind of caching of page method, system and equipment based on non-volatile media
CN104268097A (en) Metadata processing method and system
CN103092955B (en) Checkpointed method, Apparatus and system
CN103176866A (en) File permission back-up method applied in new technology file system (NTFS)

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