WO2003003244A1 - Method of rapidly eliminating different information in databases - Google Patents
Method of rapidly eliminating different information in databases Download PDFInfo
- Publication number
- WO2003003244A1 WO2003003244A1 PCT/CN2002/000248 CN0200248W WO03003244A1 WO 2003003244 A1 WO2003003244 A1 WO 2003003244A1 CN 0200248 W CN0200248 W CN 0200248W WO 03003244 A1 WO03003244 A1 WO 03003244A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- difference information
- database
- management
- retry
- successful
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
- G06F16/2379—Updates performed during online database operations; commit processing
Definitions
- the invention relates to a method for quickly eliminating difference information of a database.
- the main service of the call management center is dial-up Internet authentication service.
- a dial-up user's dial-up request arrives at a certain access server (NAS), and the access server sends the request to the call management center, and the call management center decides to accept or reject the request according to some authentication policy.
- the dial-up Internet authentication service of the call management center is specifically implemented by the protocol processing module. After the protocol processing module runs, it always monitors the packets sent by the access server, and processes them accordingly, and sends the result packets back to the access server. .
- the processing of the packets sent by the access server by the protocol processing module depends on the stored procedures provided by the database. That is, the database provides storage procedures for processing various messages.
- the protocol processing module constantly calls the storage procedures of the database during the interaction with the access server. A large number of dial-in users' online information generated by the interaction process is also stored in the database.
- the dial-up Internet authentication service of the call management center is implemented by combining the protocol processing module and the database module (these two modules can run on the same machine, or they can run on one machine each).
- DCMC distributed call management centers
- the distributed call management center uses distributed and parallel processing IP to access the public platform system, and implements a mechanism for multiple databases to operate independently.
- Each database corresponds to a call management center, and different databases manage call control with different access codes. Therefore, each database must be configured with the same port, routing management center (RMC) and other network-wide resource information.
- RMC routing management center
- the management desk software often needs to synchronize multiple databases and call the same storage.
- the rollback method is generally adopted to eliminate the database difference information.
- the strategy adopted for the rollback method is to execute the stored procedure in the reverse direction on the database that has been successfully configured once the difference information is generated. Considering that when the difference information is generated, each database has finished executing the stored procedure, so it cannot use the database's own rollback mechanism.
- the rollback method has the following defects ⁇
- an object of the present invention is to provide a method capable of quickly and reliably eliminating database difference information.
- the method for eliminating difference information of a database uses a retry mechanism.
- the retry mechanism is to record the difference information (including the stored procedure command and the identification of the database that failed the operation) once the database difference information is generated, and trigger or manually control the re-execution of the stored procedure that failed the operation on the database that failed the operation.
- a method for eliminating database difference information in a multi-database application system by using a management configuration module includes a management background and a management foreground.
- the method is characterized in that the method includes the following steps:
- step (d) if it is judged in step (c) that the database operation is partially successful, generating difference information with a retry identification code (RedoID) for the database in which the operation failed, and recording the difference information in the difference information memory table And the difference information file, returning a partial success indication to the management front, (e) the management background receives the retry command carrying the retry identification code sent by the management frontend, and finds the difference information corresponding to the retry identification code in the difference information file according to the received retry identification code,
- RedoID retry identification code
- step (h) If it is judged in step (g) that all the retry operations are successful, delete the difference information recorded in the difference information memory table and the difference information file, and return all success instructions to the management front desk
- step (i) if it is determined in step (g) that the retry operation is not all successful, determine whether the retry operation is partially successful or all failures,
- step (j) If it is determined in step (i) that the retry operation is partially successful, update the difference information recorded in the difference information memory table and the difference information file, and return a partial success indication to the management front.
- step (b) of executing the structured query language instruction or stored procedure in the corresponding database the method further includes receiving a command request from the front desk and converting the command request into a corresponding stored procedure or structured query language instruction. A step of.
- step (c) of judging whether the database operation is successful further includes judging whether the database operation is all successful or all failures. If the database operation is all successful, returning an indication of all successes to the management foreground, and if the database operation is all failing, returning to the management The foreground returns all failed instructions.
- step (i) of updating the difference information recorded in the difference information memory table and the difference information file further includes deleting the difference information corresponding to the database in which the retry operation is successful.
- step (i) if it is determined in step (i) that all the retry operations have failed, it further includes returning an indication to the management foreground that all the retry operations have failed.
- the difference information in the present invention includes a retry identification code field, a flag field, and a query statement or stored procedure executed by a database when the difference information is generated.
- Figure 1 is an overall block diagram of a distributed call management center
- 2 is a flowchart of generating difference information in a database
- 3 is a difference information recording format according to the present invention
- FIG. 4 is a flowchart of eliminating database discrepancy information according to the present invention. detailed description
- the distributed call management center is mainly composed of a protocol processing module 2, a database 3, and a management configuration module 4.
- the access server 1 receives a dial request from the dial-up user to access the data, and sends the access request to the call management center.
- the protocol processing module 2 of the call management center sends the access server 1 to the access server 1 according to the stored procedure provided by the database 3. Analyze the packets and check the validity of the access request. Decide whether to accept or reject the access request based on the specific authentication method.
- the protocol processing module 2 runs, it always listens to the packets sent by the access server 1. During the interaction with the access server 1, it constantly calls the stored procedure of the database, processes the packets accordingly, and sends the result packets back. Give access server 1.
- Database 3 mainly has two functions: first, providing an interface for the main process protocol processing part and ensuring the main process processing efficiency; second, providing an interface for the management configuration module 4 and ensuring the data consistency of the management configuration module.
- the main functions of the management configuration module are: first, providing call management management and configuration functions for system operators, including customer management, resource management, operator management, performance management, and security management; second, providing real-time network for port lease customers Information on operating conditions and the ability to perform statistical analysis, allowing customers to understand performance indicators related to them.
- the role of the management configuration module 4 is to provide an interface for system administrators to configure database information (such as which access servers are in the system) and query information on the Internet.
- the management configuration module 4 is further divided into a management background and a management foreground.
- the management background is the processing core. Only one copy of the entire call management center system is configured.
- the management foreground provides a human-computer interaction interface. There may be multiple management foreground programs running in the system at the same time.
- the management foreground and management background communicate through the CORBA (Common Object Request Agent Architecture) standard and the II0P protocol (Internet Target Request Agent Protocol).
- the ⁇ OP protocol can realize the interoperability between the Internet client and the CORBA server.
- the interoperability between the CORBA client and the Internet server can be achieved, so that even if different types of computers or various programming languages are connected, it is written as As long as the objects meet the CORPA standard, they can communicate with each other.
- the management front end responds to the configuration or query request input by the user, and converts the configuration or query request into a command request to the management back end.
- the management background executes the related database stored procedure or query command, and delivers the final processing result to the corresponding management foreground.
- the management front end finally displays the received results on the interface.
- the operators in the management front desk only deal with the management front desk and do not feel the existence of the management back office.
- each database 3 in the system there is a corresponding database worker thread (worker thread for short), and a worker thread can be understood as a connection to a corresponding database.
- a database worker thread worker thread for short
- a worker thread can be understood as a connection to a corresponding database.
- step S200 a management background of the management configuration module is set to generate a difference information memory table and a difference information file.
- the difference information memory table and the difference information file are used to record all the difference information currently existing in the multi-database application system. In this way, even if the management background exits abnormally (such as power failure), the difference information can still be recovered from the physical file of the difference information.
- step S201 the management background of the management configuration module in the call management center receives a command request sent by the management front desk, where the command request includes a database identification code (DBID) representing each database, and the management backstage analyzes the request, and The command request is converted into a corresponding database SQL (Structured Query Language) command or stored procedure.
- step S202 the management background extracts the DBID from it.
- DBID instructs to operate on that database. For example, there are three databases in the system, and their serial numbers are 0 and ⁇ 2, respectively.
- step S203 the management background sets the initial environment of the worker thread corresponding to the DBID according to the value of the extracted DBID. Thereafter, in step S204, the management background unlocks the mutex of one or all worker threads corresponding to the DBID. After unlocking, the worker thread enters the working state and executes the SQL command or stored procedure of the corresponding database. The management background waits for all the worker threads to finish processing in step S205. After the worker threads execute the database SQL commands or stored procedures, the mutex is locked again by the main thread, and the worker threads return to the waiting state. In step S206, the processing result of the SQL command or stored procedure of the database is checked to determine whether the database operations are all successful.
- step S206 If it is determined in step S206 that all database operations are successful, then all success indications are returned to the management front desk in step S207. If it is determined in step S206 that the database operations are not all successful, then it is determined in step S208 whether the database operations are partially successful. If it is determined in step S208 that the database operation is partially successful, then in step S209, a difference information record is generated in the difference information memory table and the difference information file for the database whose operation failed, and records a query statement or stored procedure executed by the database when the difference information is generated At step S210, a partially successful 'indication' is returned to the management front desk. If it is determined in step S208 that the database operation is not partially successful, then all failure indications are returned to the management front desk in step S211.
- the difference information file is stored in a binary format. 'Each difference information corresponds to a record. To ensure fast reading and writing of records, the difference information record is set to a fixed-length structure.
- the difference information includes a retry identification code (RedoID) field that represents a unique identifier of the difference information record, and the retry identification code indicates which part of the difference information file the management backstage extracts the related difference information.
- the Retry ID field is followed by a Flag field, which identifies which databases need to retry the difference information.
- the length of the tag field can be, for example, four bytes, a total of 32 bits, and each bit corresponds to a database.
- the present invention it is set as follows: if the value of a bit of the mark is "1", it means that the database corresponding to the bit has generated difference information; if the value of a bit of the mark is "0", it means that the The database corresponding to the bit does not generate difference information, that is, the database is successfully executed.
- the tag field is followed by the command string (C 0 mmandString).
- the command string refers to the query statement or stored procedure executed by the database when the difference information is generated.
- the management front end After receiving the partial success indication from the management background, the management front end outputs the difference information due to the partial success and alerts the operator.
- the operator locates the database that generates the difference information. The operator judges whether the database is operating normally, whether the connection is normal, and so on. If the operator finds that the network cable of the host where the database is located is disconnected, reconnect it, and then return to the management front desk, enter the retry command, the operator sends a "retry" command to the management front desk, and the management front desk retry carrying The command of the identification code is sent to the management background.
- step S401 the management background receives the retry command carrying the retry identification code sent by the management front desk, and the management background finds the specific corresponding to the retry identification code in the difference information file according to the received retry identification code in step S402.
- the difference information is obtained from the corresponding difference information, a mark field of the difference information record, a stored procedure or SQL command to be executed, and information about which database or databases need to execute the stored procedure or SQL command.
- step S403 the management background sets the initial environment of the corresponding worker thread according to the indication of the flag field.
- step S404 the corresponding worker thread is unlocked according to the flag field, and the stored procedure or SQL command is called to a database or some databases according to the pointer of the difference information, and a retry operation is performed.
- step S405 wait for all the worker threads to finish processing and return to the waiting state.
- step S406 the processing result of the database is checked to determine whether all the retry operations are successful. If it is determined in step S406 that all the retry operations are successful, the difference information recorded in the difference information memory table and the difference information file is deleted in step S408, and all success indications are returned to the management front desk in step S408.
- step S406 If it is determined in step S406 that the retry operation is not all successful, then it is determined in step S407 whether the retry operation is partially successful. If it is determined in step S407 that the retry operation is partially successful, then the difference information memory table and the difference information file are updated in step S409. The difference information recorded in the file is deleted, and the difference information corresponding to the database with successful retry operation is deleted, and a partial success indication is returned to the management front desk at step S410. If it is determined in step S407 that all the retry operations have failed, an indication of all failures is returned to the management front desk in step S411.
- a polling thread is set in the management background, and the polling thread can periodically retry all the difference information in the system without inputting a retry command in the management foreground to prevent the cumulative growth of the difference information.
- the management station provides an interactive operation interface. Whenever a new piece of difference information appears, the management background can promptly notify the management front desk, so that the operator can locate the fault problem as quickly as possible, and respond to the difference. Message and try again.
- the difference information generated by multiple databases is uniformly managed by the only management background.
- the management front desk simply enters a retry request for a piece of difference information, and the management back desk implements the retry operation and returns the operation result to the management front desk.
- the method for eliminating database difference information of the present invention has obtained satisfactory results when it is run in a distributed multi-database application system, and provides a method for universally and rapidly eliminating database difference information for a distributed multi-database application system.
Abstract
Description
Claims
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN01129591.0 | 2001-06-28 | ||
CNB011295910A CN1192308C (en) | 2001-06-28 | 2001-06-28 | Method for quickly eliminating different information in database |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2003003244A1 true WO2003003244A1 (en) | 2003-01-09 |
Family
ID=4669291
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2002/000248 WO2003003244A1 (en) | 2001-06-28 | 2002-04-09 | Method of rapidly eliminating different information in databases |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN1192308C (en) |
WO (1) | WO2003003244A1 (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1307585C (en) * | 2003-12-31 | 2007-03-28 | 中兴通讯股份有限公司 | Data processing method for realizing data base multitable inguiry |
CN100357943C (en) * | 2004-03-17 | 2007-12-26 | 联想(北京)有限公司 | A method for inspecting garbage files in cluster file system |
CN102096664B (en) * | 2009-12-09 | 2015-06-17 | 新奥特(北京)视频技术有限公司 | Report generating method |
CN102289340A (en) * | 2010-06-21 | 2011-12-21 | 中国电信股份有限公司 | Data auditing platform and method |
CN106407398A (en) * | 2016-09-21 | 2017-02-15 | 福建中金在线信息科技有限公司 | A data storage method and system |
CN111324668B (en) * | 2020-02-18 | 2023-11-21 | 中国联合网络通信集团有限公司 | Database data synchronous processing method, device and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2291228A (en) * | 1994-07-06 | 1996-01-17 | Fujitsu Ltd | Information duplicate distribution over a network |
JPH0844760A (en) * | 1994-07-28 | 1996-02-16 | Canon Inc | System and method for data base retrieval |
JP2000132435A (en) * | 1998-10-29 | 2000-05-12 | Hitachi Ltd | Data consistency processor between different kind of data base management systems |
-
2001
- 2001-06-28 CN CNB011295910A patent/CN1192308C/en not_active Expired - Fee Related
-
2002
- 2002-04-09 WO PCT/CN2002/000248 patent/WO2003003244A1/en not_active Application Discontinuation
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2291228A (en) * | 1994-07-06 | 1996-01-17 | Fujitsu Ltd | Information duplicate distribution over a network |
JPH0844760A (en) * | 1994-07-28 | 1996-02-16 | Canon Inc | System and method for data base retrieval |
JP2000132435A (en) * | 1998-10-29 | 2000-05-12 | Hitachi Ltd | Data consistency processor between different kind of data base management systems |
Also Published As
Publication number | Publication date |
---|---|
CN1192308C (en) | 2005-03-09 |
CN1393771A (en) | 2003-01-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110647580B (en) | Distributed container cluster mirror image management main node, slave node, system and method | |
US11593337B2 (en) | Data processing method, device, and a storage medium | |
CN108076098B (en) | Service processing method and system | |
US5751962A (en) | Object-based systems management of computer networks | |
US5923833A (en) | Restart and recovery of OMG-compliant transaction systems | |
JP4509916B2 (en) | SNMP-based network management apparatus and method | |
CN112463144B (en) | Distributed storage command line service method, system, terminal and storage medium | |
CN109325016B (en) | Data migration method, device, medium and electronic equipment | |
US11403269B2 (en) | Versioning validation for data transfer between heterogeneous data stores | |
US6466965B1 (en) | Centralized affinity maintenance in a workload managed client/server data processing system | |
JPH0827726B2 (en) | Common agent computer management system and method | |
CN112039970B (en) | Distributed business lock service method, server, system and storage medium | |
WO2003003244A1 (en) | Method of rapidly eliminating different information in databases | |
WO2024017274A1 (en) | Virtual machine cloning method and apparatus, and storage medium | |
US20090100082A1 (en) | Replication and mapping mechanism for recreating memory durations | |
US7162492B2 (en) | Apparatus and method for managing state of external apparatus | |
US7143082B2 (en) | Distributed-processing database-management system | |
CN108733477A (en) | The method, apparatus and equipment of data clusterization processing | |
CN114331445A (en) | API (application programming interface), method, storage medium and electronic equipment for accessing massive users | |
CN112925612A (en) | Monitoring service static configuration management method based on Kubernetes | |
CN114625594A (en) | Configuration file generation method, log collection method, device, equipment and medium | |
CN114070856A (en) | Data processing method, device and system, operation and maintenance auditing equipment and storage medium | |
US11169728B2 (en) | Replication configuration for multiple heterogeneous data stores | |
CN113407403B (en) | Cloud host management method and device, computer equipment and storage medium | |
CN111797062B (en) | Data processing method, device and distributed database system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AK | Designated states |
Kind code of ref document: A1 Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BY BZ CA CH CO CR CU CZ DE DK DM DZ EC EE ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NO NZ OM PH PL PT RO RU SD SE SG SI SK SL TJ TM TN TR TT TZ UA UG US UZ VN YU ZA ZM ZW |
|
AL | Designated countries for regional patents |
Kind code of ref document: A1 Designated state(s): GH GM KE LS MW MZ SD SL SZ TZ UG ZM ZW AM AZ BY KG KZ MD RU TJ TM AT BE CH CY DE DK ES FI FR GB GR IE IT LU MC NL PT SE TR BF BJ CF CG CI CM GA GN GQ GW ML MR NE SN TD TG |
|
121 | Ep: the epo has been informed by wipo that ep was designated in this application | ||
ENP | Entry into the national phase |
Ref document number: 2004113561 Country of ref document: RU Kind code of ref document: A |
|
REG | Reference to national code |
Ref country code: DE Ref legal event code: 8642 |
|
122 | Ep: pct application non-entry in european phase | ||
NENP | Non-entry into the national phase |
Ref country code: JP |
|
WWW | Wipo information: withdrawn in national office |
Country of ref document: JP |