Parallel real-time dataBase system and data managing method thereof towards electric system
Technical field
The present invention relates to the real time data administrative skill in a kind of control technique in power system field, be specifically related to a kind of parallel real-time dataBase system and data managing method thereof towards electric system.
Background technology
In existing power scheduling technology support system, use real-time data base storage and real time datas such as management remote measurement amount, remote signalling amount.Along with the development of electrical network, it is big that the real-time measurement data volume constantly becomes, the bottleneck more and more significant of existing employed real-time data base efficient of dispatch automated system and storage:
1. the table bigger to data volume, the efficient of carrying out some accessing operation is lower, and for example the table to certain 200,000 row carries out the conditional information retrieval operation.
2. existing real-time data base uses shared drive as storage medium, and can only be installed on the machine the inevitable like this restriction that receives unit internal memory and cpu load.The present employed real-time data base of dispatching automation back-up system still can't be broken through this restriction.
At present some company has developed the real-time dataBase system of oneself, and disclosing a kind of patent No. like Guodian Nannui Tech Co., Ltd is 201110172234.0 big grid distribution formula real-time dataBase system.
Summary of the invention
Deficiency to prior art; The present invention provides a kind of parallel real-time dataBase system and data managing method thereof towards electric system; This system and data managing method thereof are under the abundant situation of real-time data base number of nodes, and parallel real-time data base will improve data manipulation performance significantly.
The objective of the invention is to adopt following technical proposals to realize:
A kind of parallel real-time dataBase system towards electric system, its improvements are that said parallel real-time dataBase system comprises N real-time data base node and metadata management subsystem; Said N real-time data base node is connected through communication network with the metadata management subsystem;
Said metadata management subsystem, the distribution pattern that is used to store and manage said parallel real-time dataBase system.
Preferably, each said real-time data base node comprises the real-time data base server;
Said real-time data base server comprises:
Local base management system in real time is used to develop and manage local real-time data base;
Overall situation rdal-time DBMS: be used to carry out global transaction management and concurrent control, coordinate said local rdal-time DBMS and accomplish global application (global application refers to the application of calling the global access interface);
Contact manager transmits message and data between said N real-time data base node;
Local real-time data base leaves (real time data of local real-time data base leaves in this machine internal memory) in the internal memory in as the working version of local data base.
More preferably, the real-time base management system in said this locality comprises:
The local data Operation Processor is used to receive the data operation request from the global data Operation Processor;
Local daily record is used to write down local data manipulation processor, local installation manager, local deletion manager and local data and duplicates the daily record of work with Sync Manager;
Local deletion manager: be used to receive install request, local real-time data base is carried out deletion action, operating result is sent to overall installation manager through said contact manager from overall situation deletion manager;
Local installation manager: be used to receive install request, local real-time data base is carried out fitting operation, operating result is sent to overall installation manager through contact manager from overall installation manager;
Local data duplicates and Sync Manager: be used to receive from global data and duplicate and the duplicating and synchronization request of Sync Manager; Local real-time data base is duplicated and synchronous operation, operating result is sent to that global data is duplicated and Sync Manager through contact manager.
More preferably, said overall rdal-time DBMS comprises:
Global access interface: be used for receiving, carry out being transmitted to the global data Operation Processor after semanteme transforms, treat that the execution of global data Operation Processor finishes, and is shown to the user with execution result from the user's data operation requests;
Global data Operation Processor: be used to realize the data manipulation processing;
Overall situation installation manager: be used to realize the installation of user's data storehouse, table;
Overall situation deletion manager: be used to realize the deletion of user's data storehouse, table;
Global data is duplicated and Sync Manager: be used to realize duplicating with synchronously of user's data storehouse, table, record;
Overall situation daily record: be used to write down said global data Operation Processor, overall installation manager, overall situation deletion manager and global data and duplicate the daily record of work with Sync Manager.
The data managing method of a kind of parallel real-time dataBase system towards electric system that the present invention is based on that another purpose provides, its improvements are that said method comprises the steps:
A, global application are called said global access interface;
B, said global access interface are passed to said global data Action Manager with data operation request and parameter;
C, said global data Operation Processor and metadata management subsystem carry out obtaining local real-time data base IP addresses of nodes alternately;
D, said global data Operation Processor through contact manager, send to local data Operation Processor local real-time data base node on data operation request and parameter according to local real-time data base IP addresses of nodes;
Behind E, the said local data Operation Processor EO, return results is sent to the global data Operation Processor through contact manager;
F, said global data Operation Processor pass to the global access interface with return results.
Preferably, said parameter comprises data attitude, application, table and record.
With the prior art ratio, the beneficial effect that the present invention reaches is:
Parallel real-time dataBase system and data managing method thereof towards electric system provided by the invention, under the abundant situation of real-time data base number of nodes, parallel real-time data base will improve data manipulation performance significantly; And, providing under the prerequisite of local real-time data access function not influencing local storehouse in real time, system forms parallel real-time data base based on real-time storehouse, this locality, and overall real-time data access function is provided.Through parallel real-time dataBase system provided by the invention and data managing method thereof, can form the global access interface on the upper strata not influencing under the local situation about calculating of standalone version dispatching technique back-up system, effectively support global calculation.
Description of drawings
Fig. 1 is the parallel real-time dataBase system structural drawing towards electric system provided by the invention;
Fig. 2 is the system construction drawing of local rdal-time DBMS provided by the invention;
Fig. 3 is the system construction drawing of overall rdal-time DBMS provided by the invention;
Fig. 4 is the process flow diagram of the data managing method of the parallel real-time dataBase system towards electric system provided by the invention.
Embodiment
Do further to specify below in conjunction with the accompanying drawing specific embodiments of the invention.
Parallel real-time dataBase system towards electric system provided by the invention is formed by connecting through communication network N real-time data base node and a metadata relationship subsystem, and wherein each real-time data base node all has a real-time data base server.N is a natural number.Provided by the invention as shown in Figure 1 towards the parallel real-time data base architecture of electric system.
Each real-time data base server comprises an overall rdal-time DBMS, the real-time base management system in this locality, a contact manager and a local real-time data base.
1. contact manager: between each node of parallel real-time dataBase system, transmit message and data, reliable communication service function is provided.
2. local rdal-time DBMS: develop and manage local real-time data base, the node capacity of self-government is provided, carry out the child-operation of topical application and global operation, realize local matter processing and concurrent control, control local recovery function.
3. overall rdal-time DBMS: distribution transparency is provided; Coordinate the execution of global transaction; Coordinate each local rdal-time DBMS to accomplish global application, guarantee the global coherency of database, carry out global transaction management and concurrent control; Realize upgrading synchronously, coordinate each local rdal-time DBMS to realize overall restore funcitons.
4. local real-time data base: the working version as local data base leaves in the internal memory, and all local data bases constitute the parallel real-time data base of the overall situation of logic jointly.
5. metadata management subsystem: the distribution pattern of storage and the parallel real-time data base of management, the i.e. corresponding relation of attitude, application, table, record and physical location.Distribution pattern is set up based on the principle of load balancing between node.
I, local rdal-time DBMS:
Fig. 2 has provided the system architecture of local rdal-time DBMS, and is as shown in Figure 2:
Local data Operation Processor: be responsible for receiving data operation request, data manipulation is carried out in real-time storehouse, this locality, the result is sent to the global data Operation Processor through contact manager from the global data Operation Processor.
Local daily record: the local data manipulation processor of responsible record, local installation manager, local deletion manager and local data duplicate the daily record of work with Sync Manager.
Local installation manager: be responsible for receiving install request, fitting operation is carried out in real-time storehouse, this locality, operating result is sent to overall installation manager through contact manager from overall installation manager.
Local deletion manager: be responsible for receiving install request, deletion action is carried out in real-time storehouse, this locality, operating result is sent to overall installation manager through contact manager from overall situation deletion manager.
Local data duplicates and Sync Manager: be responsible for to receive from global data and duplicate and the duplicating and synchronization request of Sync Manager; Real-time storehouse, this locality is duplicated and synchronous operation, operating result is sent to that global data is duplicated and Sync Manager through contact manager.
II, overall rdal-time DBMS:
Overall situation rdal-time DBMS is coordinated each local rdal-time DBMS to accomplish global application; Guarantee the global coherency of database; Carry out global transaction management and concurrent control, realize upgrading synchronously, coordinate each local rdal-time DBMS to realize overall restore funcitons.
Fig. 3 has provided the system architecture of overall rdal-time DBMS, and is as shown in Figure 3:
Global access interface: be responsible for receiving from user's database manipulation request of (comprising terminal user, application programmer and data base administrator); Carry out being transmitted to the global data Operation Processor after semanteme transforms; Treat that the execution of global data Operation Processor finishes, and is shown to the user with corresponding executed result.
Global data Operation Processor: be responsible for realizing the data manipulation processing.Distribution pattern according to the metadata management subsystem stores; Through contact manager the database manipulation request is distributed to each corresponding local data Operation Processor; After treating that the local data operational processes finishes; Reception is from the return results of local data Operation Processor, and carries out result's integration.
Overall situation installation manager: be responsible for the installation of fulfillment database, table.According to the distribution pattern of metadata management subsystem stores, the database install request is distributed to each corresponding local data Operation Processor through contact manager.
Overall situation deletion manager: be responsible for the deletion of fulfillment database, table.According to the distribution pattern of metadata management subsystem stores, database deletion request is distributed to each corresponding local data Operation Processor through contact manager.
Global data is duplicated and Sync Manager: be responsible for duplicating with synchronously of fulfillment database, table, record.According to the distribution pattern of metadata management subsystem stores, through contact manager database replication and synchronization request are distributed to each corresponding local data and duplicate and Sync Manager.
Overall situation daily record: responsible record global data Operation Processor, overall installation manager, overall situation deletion manager and global data are duplicated the daily record of work with Sync Manager.
The present invention also provides towards the data managing method of the parallel real-time dataBase system of electric system, and Fig. 4 provides towards the data managing method of the parallel real-time dataBase system of electric system, and as shown in Figure 4, data managing method comprises the steps:
A, global application are called the global access interface;
B, global access interface are passed to the global data Action Manager with data operation request and parameter;
C, global data Operation Processor through attitude, application, table, write down these parameters and the metadata management subsystem carries out obtaining local real-time data base IP addresses of nodes alternately;
D, global data Operation Processor through contact manager, send to local data Operation Processor local real-time data base node on data operation request and parameter according to local real-time data base IP addresses of nodes;
Behind E, the local data Operation Processor EO, return results is sent to the global data Operation Processor through contact manager;
F, global data Operation Processor are passed to the global access interface with return results.
Should be noted that at last: above embodiment is only in order to technical scheme of the present invention to be described but not to its restriction; Although the present invention has been carried out detailed explanation with reference to the foregoing description; Under the those of ordinary skill in field be to be understood that: still can specific embodiments of the invention make amendment or be equal to replacement; And do not break away from any modification of spirit and scope of the invention or be equal to replacement, it all should be encompassed in the middle of the claim scope of the present invention.