CN102663547A - Method for keeping resource ID unchanged during power dispatching main/standby system full model synchronization - Google Patents
Method for keeping resource ID unchanged during power dispatching main/standby system full model synchronization Download PDFInfo
- Publication number
- CN102663547A CN102663547A CN201210085252XA CN201210085252A CN102663547A CN 102663547 A CN102663547 A CN 102663547A CN 201210085252X A CN201210085252X A CN 201210085252XA CN 201210085252 A CN201210085252 A CN 201210085252A CN 102663547 A CN102663547 A CN 102663547A
- Authority
- CN
- China
- Prior art keywords
- resource
- model
- storehouse
- real
- temporary pattern
- 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
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention relates to the power dispatching automation field, especially to a method for keeping a resource ID unchanged during power dispatching main/standby system full model synchronization. According to the method, a temporary model base is set up in a back-up system and a next distributable resource ID is stored; therefore, if it is needed to distribute a new resource ID, the distribution can be carried out from the source ID backwardly during each model synchronization process, so that repetition with the existing resource ID can be avoided. Meanwhile, before the resource ID distribution, a uniform resource identifier (Uri) access real-time model base is used to obtain the existing resource ID, so that a resource ID will not be distributed again to an existing repeated Uri and thus the resource ID will not be changed, an occurrence of a problem that a same Uri is mapped into different resource IDs in two model synchronization processes can be prevented, and uniqueness of the resource ID can be ensured.
Description
Technical field
The present invention relates to the power dispatching automation field, relate in particular to the indeclinable method of maintenance resource ID in a kind of power dispatching automation main preparation system full model synchronizing process.
Background technology
Electric power scheduling automatization system is an operation of power networks control maincenter, is bearing vital tasks such as organizing operation of power networks, commander's accident treatment and recovery.Improving the ability that all kinds of accidents, disaster and social accident are resisted in dispatchings of power netwoks at different levels, guarantee that it runs without interruption, is the key that electrical network is served socio-economic development better.For satisfying the reliability requirement of dispatch automated system (hereinafter to be referred as main system); Require to build the complete dispatching automation back-up system of a cover (hereinafter to be referred as being equipped with system), specifying information can be referring to " State Grid Corporation of China's ground electrical network at county level be equipped with the framework scheme of building of transferring ".In the process that is equipped with system and main system parallel running; Complete repeatably the importing to of full model information ability that requires to accomplish main system according to Utilities Electric Co. is equipped with in the system; To satisfy the non-maintaining requirement that is equipped with system model information, avoid being equipped with the work that system side repeats the typing model information.
Need be in the model synchronizing process with generic resource identifier (the Uniform Resource Identifier of each model resource; Abbreviation " Uri ") is mapped as the resource ID of internal system use fully; To improve the convenience of aspects such as resource access and storage; Resource ID and Uri that mapping generates have unduplicated characteristic in uniqueness and the system, with each model resource object of unique identification.Simultaneously, be equipped with other application meetings of internal system and directly use resource ID to carry out the miscellaneous service processing, even (like file, database etc.) write down resource ID in various forms of physical store.Existing disclosed model synchronizing process, the Uri of each model synchronizing process model resource object can redistribute a resource ID at random.Can cause the Uri identical in twice model synchronizing process and the mapping relations of resource ID to change like this.After model is accomplished synchronously, be equipped with each application of system and need upgrade all kinds of physical store (file, database etc.) that write down resource ID originally synchronously, must cause a large amount of unnecessary workloads of system fully.If do not carry out above-mentioned work, then can cause the operation exception used, to such an extent as to it is unavailable to be equipped with system.
Summary of the invention
To the problems referred to above that exist in the prior art, the invention discloses and a kind ofly in main preparation system full model synchronizing process, can keep the indeclinable method of resource ID.
The technical scheme that the present invention adopts is following:
A kind of power scheduling main preparation system full model keeps the indeclinable method of resource ID synchronously, comprises the steps:
(1), in being equipped with system, sets up temporary pattern storehouse and real-time model storehouse; Be equipped with in two model banies one be used to store this model bank assignable least resource ID next time next allowable resource ID storage unit; Two model banies connect independently physical store respectively; Wherein the temporary pattern storehouse is used to store the synchronous model information of this model, the model information when the real-time model storehouse is used to store system's operation fully.
(2) the beginning model is synchronous; Empty the model information in the temporary pattern storehouse earlier; Again from the next allowable resource ID of real-time model library inquiry storage unit, and the next assignable resource ID that will inquire writes the next allowable resource ID storage unit in temporary pattern storehouse.
Through writing down next allowable resource ID; Can make this model synchronizing process if need to distribute new resource ID all to distribute backward from this resource ID; To guarantee that the resource ID before this resource ID can not redistributed, effectively avoid repetition, guarantee the uniqueness of resource ID.
(3), circulation reads main system model resource object, deposit corresponding model information in the temporary pattern storehouse according to request for information: read the model resource object that main system provides one by one, the Uri through this object is to the corresponding resource ID of real-time model library inquiry; If successful inquiring then can write the temporary pattern storehouse with the mapping of this resource object and Uri and resource ID; If the inquiry failure is then applied for next assignable resource ID to the temporary pattern storehouse, the mapping with resource object and Uri and this resource ID writes the temporary pattern storehouse again, and need add up and upgrade next allowable resource ID in the temporary pattern storehouse simultaneously.
The present invention is before Resources allocation ID; Use Uri visit real-time model storehouse earlier; Obtain existing resource ID; The Uri that can guarantee existing repetition can not redistributed resource ID and cause resource ID to change, prevent twice model synchronously in identical Uri be mapped as the problem of different resource ID, also can guarantee not have the resource ID of the up-to-date distribution of Uri of corresponding resource ID can not repeat simultaneously with existing resource ID.Simultaneously, when obtaining resource ID, adopted the mode of batch inquiry, can not come the influence on the runnability the real-time model library tape in visit real-time model storehouse.
(4), after all model resource objects read and finish, the model information in the temporary pattern storehouse is derived and imports the real-time model storehouse, it is synchronous to finish this model.When the real-time model storehouse imports model information, all replace the original model information in the real-time model storehouse, the updating real-time model bank.The model resource object that writes down in the temporary pattern storehouse is compared with the real-time model storehouse, and its corresponding resource ID of resource object that Uri repeats is consistent.
The described model information of above-mentioned steps comprises the Uri and the mapping relations that are equipped with resource ID in the system of model resource object and this resource object.
The invention solves the inconsistent problem of model resource object resource ID when being mapped to resource ID that has repetition Uri in twice model synchronizing process; Compared with prior art; Can effectively avoid need reading under the system fully model information uses respectively be applied in be not written into Uri and resource ID again and shine upon before; The problem that can't normally move; Reduce the physical store various in enormous quantities (like a large amount of resource ID graphic files that record) of record resource ID and need change one time workload again, avoid other directly configuration files of record resource IDs, before revising again, do not causing using the problem that normally to move.
Description of drawings
Fig. 1 is the process flow diagram of embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing practical implementation step of the present invention is described in detail:
A kind of power scheduling main preparation system full model keeps the indeclinable method of resource ID synchronously; The prerequisite that this method is implemented be main system with the full model file transfer to being equipped with in the system; Setting up temporary pattern storehouse and real-time model storehouse in the system fully at the beginning model earlier synchronously; The real-time model storehouse is in continuous running status, and the temporary pattern storehouse is only mutual with the real-time model storehouse in the model synchronizing process.Be equipped with in two model banies one be used to store this model bank assignable least resource ID next time next allowable resource ID storage unit; Wherein the temporary pattern storehouse is used to store the synchronous model information of this model, the model information when the real-time model storehouse is used to store system's operation fully.In this purpose of setting up the temporary pattern storehouse is the new model information real-time model storehouse of can not writing direct before the model synchronizing process finishes; In order to avoid influence is equipped with the normal operation (being equipped with each business unit of system is that the basis provides each item business function with the real-time model storehouse all) of system, the real-time model Ku Shiyin that also can effectively avoid writing direct writes the system crash that failure causes.Set up the temporary pattern storehouse and also can when full model is synchronous, empty model bank.
Begin the model synchronizing process then, specifically can be divided into following steps:
S1, full model begin synchronously;
S2, empty the model information in temporary pattern storehouse;
S3, from the next allowable resource ID of real-time model library inquiry storage unit, and the next assignable resource ID that will inquire writes the next allowable resource ID storage unit in temporary pattern storehouse;
S4, read the model resource object that main system provides;
S5, the Uri through this object are to the corresponding resource ID of real-time model library inquiry; If exist, then directly get into step S6; If do not exist, get into step S7;
S6, the mapping of resource object and Uri and resource ID is write the temporary pattern storehouse, continue step S9;
S7, apply for next assignable resource ID, continue step S8 to the temporary pattern storehouse;
The next allowable resource ID in S8, the renewal temporary pattern storehouse of adding up gets into step S6 then;
S9, detect all model resource objects and whether read and finish, finish, then continue step S10 if read; Do not finish if read, then return step S4;
S10, the model information in the temporary pattern storehouse is derived;
S11, model information is imported the real-time model storehouse, when the real-time model storehouse imports model information, all import, the original model information in the replacement real-time model storehouse.
S12, the same EOS of this model.
Wherein, said model information comprises the Uri and the mapping relations that are equipped with resource ID in the system of model resource object and this resource object.
Claims (3)
1. a power scheduling main preparation system full model keeps the indeclinable method of resource ID synchronously, it is characterized in that, comprises the steps:
(1), in being equipped with system, sets up temporary pattern storehouse and real-time model storehouse; Be equipped with in two model banies one be used to store this model bank assignable least resource ID next time next allowable resource ID storage unit; Two model banies connect independently physical store respectively; Wherein the temporary pattern storehouse is used to store the synchronous model information of this model, the model information when the real-time model storehouse is used to store system's operation fully;
(2), the beginning model is synchronous; Empty the model information in the temporary pattern storehouse earlier; Again from the next allowable resource ID of real-time model library inquiry storage unit, and the next assignable resource ID that will inquire writes the next allowable resource ID storage unit in temporary pattern storehouse;
(3), circulation reads main system model resource object, deposit corresponding model information in the temporary pattern storehouse according to request for information: read the model resource object that main system provides one by one, the Uri through this object is to the corresponding resource ID of real-time model library inquiry; If successful inquiring then can write the temporary pattern storehouse with the mapping of this resource object and Uri and resource ID; If the inquiry failure is then applied for next assignable resource ID to the temporary pattern storehouse, the mapping with resource object and Uri and this resource ID writes the temporary pattern storehouse again, and need add up and upgrade next allowable resource ID in the temporary pattern storehouse simultaneously;
(4), after all model resource objects read and finish, the model information in the temporary pattern storehouse is derived and imports the real-time model storehouse, it is synchronous to finish this model.
2. power scheduling main preparation system full model according to claim 1 keeps the indeclinable method of resource ID synchronously, it is characterized in that: said model information comprises the Uri and the mapping relations that are equipped with resource ID in the system of model resource object and this resource object.
3. power scheduling main preparation system full model according to claim 1 keeps the indeclinable method of resource ID synchronously, it is characterized in that: in the step (4), when the real-time model storehouse imports model information, all replace the original model information in the real-time model storehouse.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210085252.XA CN102663547B (en) | 2012-03-28 | 2012-03-28 | Power scheduling main preparation system full model synchronously keeps the indeclinable method of resource ID |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210085252.XA CN102663547B (en) | 2012-03-28 | 2012-03-28 | Power scheduling main preparation system full model synchronously keeps the indeclinable method of resource ID |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102663547A true CN102663547A (en) | 2012-09-12 |
CN102663547B CN102663547B (en) | 2015-09-02 |
Family
ID=46773027
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210085252.XA Active CN102663547B (en) | 2012-03-28 | 2012-03-28 | Power scheduling main preparation system full model synchronously keeps the indeclinable method of resource ID |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102663547B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107229525A (en) * | 2017-04-27 | 2017-10-03 | 国电南瑞科技股份有限公司 | A kind of power system device model keyword generation method based on Zookeeper |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1477546A (en) * | 2002-08-19 | 2004-02-25 | 万达信息股份有限公司 | Method for duplicating data of identical data table between two data bases |
CN1811759A (en) * | 2005-01-26 | 2006-08-02 | 华为技术有限公司 | Method for building information increment index |
CN1846197A (en) * | 2003-09-25 | 2006-10-11 | 国际商业机器公司 | Method, system and program for data synchronization |
-
2012
- 2012-03-28 CN CN201210085252.XA patent/CN102663547B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1477546A (en) * | 2002-08-19 | 2004-02-25 | 万达信息股份有限公司 | Method for duplicating data of identical data table between two data bases |
CN1846197A (en) * | 2003-09-25 | 2006-10-11 | 国际商业机器公司 | Method, system and program for data synchronization |
CN1811759A (en) * | 2005-01-26 | 2006-08-02 | 华为技术有限公司 | Method for building information increment index |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107229525A (en) * | 2017-04-27 | 2017-10-03 | 国电南瑞科技股份有限公司 | A kind of power system device model keyword generation method based on Zookeeper |
Also Published As
Publication number | Publication date |
---|---|
CN102663547B (en) | 2015-09-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102955845B (en) | Data access method, device and distributed data base system | |
CN107066319B (en) | Multi-dimensional scheduling system for heterogeneous resources | |
CN103116596B (en) | System and method of performing snapshot isolation in distributed databases | |
CN109656911A (en) | Distributed variable-frequencypump Database Systems and its data processing method | |
CN103744906A (en) | System, method and device for data synchronization | |
CN103593422A (en) | Virtual access management method of heterogeneous database | |
CN102752372A (en) | File based database synchronization method | |
CN106843745A (en) | Capacity expansion method and device | |
CN102495910A (en) | Device and method for data timing synchronization of heterogeneous system | |
CN108009258B (en) | Data acquisition and analysis platform capable of being configured online | |
CN103049482B (en) | The implementation method that in a kind of distributed heterogeneous system, data fusion stores | |
CN102096684A (en) | Grid real-time data integrating and sharing platform | |
CN104252485A (en) | Database management platform | |
CN102855271A (en) | Storage and traceable management method for multi-version power grid model | |
CN105635311A (en) | Method for synchronizing resource pool information in cloud management platform | |
CN104167817A (en) | Power equipment real-time information integration system and method | |
CN110083306A (en) | A kind of distributed objects storage system and storage method | |
CN103458022A (en) | Multi-user different-place concurrent collaborative system | |
CN109325200A (en) | Obtain the method, apparatus and computer readable storage medium of data | |
CN103365740B (en) | A kind of data cold standby method and device | |
CN108228725B (en) | GIS application system based on distributed database | |
CN102025753A (en) | Load balancing method and equipment for data resources of servers | |
CN104298761A (en) | Implementation method for master data matching between heterogeneous software systems | |
CN113297159B (en) | Data storage method and device | |
CN107357866B (en) | Localization migration method for middleware and database of electric power enterprise information system |
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 |