WO2003003244A1 - Method of rapidly eliminating different information in databases - Google Patents

Method of rapidly eliminating different information in databases Download PDF

Info

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
Application number
PCT/CN2002/000248
Other languages
French (fr)
Chinese (zh)
Inventor
Zhijian Lu
Xiaozheng Guo
Jing Liu
Original Assignee
Huawei Technologies 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 Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Publication of WO2003003244A1 publication Critical patent/WO2003003244A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2379Updates 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

A method of eliminating different information in databases in a multi-database application system, in which when different information is generated in operating these databases, the different information is recorded in a memory table and a different information file by a management background in a management configure module. Receiving retry request from the management foreground, extracting flag of the different information and database SQL instruction or storage procedure to be executed based on the received ID, and re-performing these SQL instruction or storage procedure using corresponding databases. When retry-operation is fully successful, different information records are deleted from the memory table and the different information file. When retry-operation partially successful, the different information in the memory table and the different information file is updated.

Description

一种快速消除数据库差异信息的方法 技术领域  Method for quickly eliminating database difference information
本发明涉及快速消除数据库差异信息的方法。 特别是一种消除大型分布系统中 并行处理的多个相关数据库中产生的数据库差异信息的方法, 以保障对多个数据库 操作的一致性。 背景技术  The invention relates to a method for quickly eliminating difference information of a database. In particular, a method for eliminating database difference information generated in multiple related databases that are processed in parallel in a large-scale distributed system to ensure consistency of operations on multiple databases. Background technique
随着计算机技术的发展和普及, 大型数据库迅速进入到电信、金融等各个行业。 在当今信息爆炸的年代, 很多场合中单个数据库越来越难以满足性能和信息量的需 要, 因此, 分布式数据库更多地投入使用。  With the development and popularization of computer technology, large databases have quickly entered various industries such as telecommunications and finance. In the era of information explosion, in many cases, it is increasingly difficult for a single database to meet the needs of performance and information volume. Therefore, distributed databases are put into more use.
以呼叫管理中心(CMC)为例, 呼叫管理中心最主要的业务是拨号上网认证业务。 一个拨号用户的拨号请求到达某台接入服务器(NAS), 接入服务器把该请求发送到 呼叫管理中心, 由呼叫管理中心根据某种认证策略来决定接受或拒绝该请求。 呼叫 管理中心的拨号上网认证业务具体由协议处理模块实施, 协议处理模块运行后一直 监听接入服务器发来的报文,·并对其作相应的处理, 把结果报文发回到接入服务器。  Taking the call management center (CMC) as an example, 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.
因此, 呼叫管理中心的拨号上网认证业务由协议处理模块和数据库模块相互配 合实施(这两个模块可以在同一台机器上运行, 也可以各占一台机器运行) 。 随着 业务量的快速增长, 单个呼叫管理中心的运作方式不能满足用户需求。 为提髙系统 端口批发处理能力而采用多个分布式的呼叫管理中心 (DCMC) 。 分布式呼叫管理中 心采用分布式并行处理的 IP接入公共平台系统, 实现了多个数据库独立运行的机制。 每个数据库对应一个呼叫管理中心, 不同数据库管理不同接入码的呼叫控制。 因此, 各个数据库必需配置同样的端口、 路由管理中心 (RMC) 等全网资源信息。 在多数据 库应用系统中, 管理台软件往往需要对多个数据库进行同步操作, 调用同样的存储  Therefore, 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). With the rapid growth of business volume, the operation mode of a single call management center cannot meet user needs. In order to improve the system's wholesale port processing capacity, multiple distributed call management centers (DCMC) are used. 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. In a multi-database application system, the management desk software often needs to synchronize multiple databases and call the same storage.
1  1
替换页(细则第 26条) 过程, 负责系统内所有数据库的配置査询工作 在对全网资源进行配置 (增加、 删 除、 修改) 时, 需要对系统中所有数据库调用同样的存储过程。 由于各种原因 (例 如网络故障) , 可能导致某些数据库执行存储过程成功, 而某些数据库执行存储过 程失败, 这时就出现了数据库差异信息。 数据库差异信息会影响整个系统的端口批 发处理能力, 造成不必要的呼损。 因此, 如何快速可靠地消除数据库差异信息是多 数据库应用系统必需解决的问题。 Replacement page (Article 26) The process is responsible for the configuration query of all databases in the system. When configuring (adding, deleting, and modifying) resources on the entire network, the same stored procedure needs to be called for all databases in the system. Due to various reasons (such as network failure), some databases may execute stored procedures successfully, and some databases may fail to execute stored procedures. At this time, database difference information appears. The database difference information will affect the port wholesale processing capacity of the entire system and cause unnecessary call loss. Therefore, how to quickly and reliably eliminate database difference information is a problem that must be solved in a multi-database application system.
在多数据库应用系统中, 消除数据库差异信息一般采用回滚的方法。 回滚方法 采用的策略是一旦产生差异信息, 即对配置成功的数据库执行逆方向的存储过程。 考虑到差异信息产生时, 各个数据库都巳经执行完了存储过程, 因此无法利用数据 库自身的回滚机制。 另外, 回滚方法还有以下缺陷- In a multi-database application system, 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. In addition, the rollback method has the following defects −
1.增加了编写逆方向存储过程的开销, 而且有些存储过程需要更新多个表时, 编写对应的逆方向存储过程比较困难; 1. Increased the overhead of writing the reverse stored procedure, and when some stored procedures need to update multiple tables, it is difficult to write the corresponding reverse stored procedure;
2. 逆方向存储过程不能保证成功执行, 可能导致消除差异信息失败 。  2. Reverse stored procedures cannot guarantee successful execution and may result in failure to eliminate discrepant information.
因此, 针对多数据库应用系统的上述问题, 本发明的目的在于提供一种能够快 速、 可靠地消除数据库差异信息的方法。 发明内容  Therefore, in view of the above problems of a multi-database application system, an object of the present invention is to provide a method capable of quickly and reliably eliminating database difference information. Summary of the Invention
本发明提供的消除数据库差异信息的方法釆用重试机制。 重试机制就是一旦产 生数据库差异信息, 记录下该差异信息 (包括存储过程命令和操作失败数据库的标 识) , 并定时触发或手动控制对操作失败的数据库重新执行曾执行失败的存储过程。  The method for eliminating difference information of a database provided by the present invention 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.
根据本发明的一个方面, 提供一种利用管理配置模块消除多数据库应用系统中 数据库差异信息的方法, 该管理配置模块包括管理后台和管理前台, 其特征在于该 方法包括下列步骤:  According to an aspect of the present invention, a method for eliminating database difference information in a multi-database application system by using a management configuration module is provided. The management configuration module includes a management background and a management foreground. The method is characterized in that the method includes the following steps:
(a) 设置管理配置模块的管理后台, 生成差异信息内存表和差异信息文件, (a) Setting the management background of the management configuration module to generate a difference information memory table and a difference information file,
(b) 对应的数据库中执行结构化査询语言 (SQL)指令或存储过程, (b) execution of structured query language (SQL) instructions or stored procedures in the corresponding database,
(c ) 检査数据库的结构化査询语言指令或存储过程的处理结果, 判断数据库操 作是否成功,  (c) checking the processing results of the structured query language instructions or stored procedures of the database to determine whether the database operation was successful,
( d) 如果在步骤 (c ) 判断数据库操作部分成功, 则针对操作失败的数据库产 生一个带有重试识别码 (RedoID) 的差异信息, 并将所述差异信息记录在所述差异 信息内存表和差异信息文件中, 向管理前台返回部分成功的指示, ( e) 管理后台接收管理前台发送的携带有重试识别码的重试命令, 根据收到的 重试识别码在差异信息文件中找到与该重试识别码对应的差异信息, (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,
( f ) 从对应的差异信息中得到该差异信息记录的标记字段和要执行的存储过程 或结构化查询语言指令, 并依据这些差异信息的指针到某个或某些数据库调用该存 储过程或结构化查询语言指令并执行重试操作,  (f) obtaining the tag field of the difference information record and the stored procedure or structured query language instruction to be executed from the corresponding difference information, and calling the stored procedure or structure to a database or some databases according to the pointer of the difference information Translate query language instructions and perform retry operations,
( g) 检査重试操作的处理结果, 判断重试操作是否全部成功,  (g) check the processing result of the retry operation, and judge whether the retry operation is all successful,
( h) 如果在步骤 (g )判断重试操作全部成功, 则删除差异信息内存表和差异 信息文件中记录的差异信息, 并向管理前台返回全部成功指示  (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
( i ) 如果在步骤 (g ) 判断重试操作未全部成功, 则判断重试操作是部分成功 还是全部失败,  (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,
( j ) 如果在步骤 (i ) 中判断重试操作部分成功, 则更新差异信息内存表和差 异信息文件中记录的差异信息, 并向管理前台返回部分成功的指示。  (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.
另外, 在对应的数据库中执行结构化査询语言指令或存储过程的步骤(b)之前, 进一步包括接收前台的命令请求并将所述命令请求转化成相应的存储过程或结构化 査询语言指令的步骤。  In addition, before 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.
另外, 判断数据库操作是否成功的步骤 (c )进一步包括判断数据库操作是否全 部成功或是否全部失败, 如果数据库操作全部成功, 则向管理前台返回全部成功的 指示, 如果数据库操作全部失败, 则向管理前台返回全部失败的指示。  In addition, the 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.
另外, 在更新差异信息内存表和差异信息文件中记录的差异信息的步骤(i ) 中 进一步包括删除与重试操作成功的数据库对应的差异信息。  In addition, the 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.
另外, 如果在步骤(i )判断重试操作全部失败, 进一步包括向管理前台返回重 试操作全部失败的指示。  In addition, 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. BRIEF DESCRIPTION OF THE DRAWINGS
下面结合附图对本发明消除数据库差异信息的方法进行详细描述, 以便更好地 理解本发明的目的, 特性和优点。  The method for eliminating the difference information in the database of the present invention is described in detail below with reference to the accompanying drawings, so as to better understand the purpose, characteristics and advantages of the present invention.
图 1是分布式呼叫管理中心的总体方框图;  Figure 1 is an overall block diagram of a distributed call management center;
图 2是数据库产生差异信息的流程图; 图 3是根据本发明的差异信息记录格式; 2 is a flowchart of generating difference information in a database; 3 is a difference information recording format according to the present invention;
图 4是根据本发明的消除数据库差异信息的流程图。 具体实施方式  FIG. 4 is a flowchart of eliminating database discrepancy information according to the present invention. detailed description
参考图 1 说明分布式呼叫管理中心的结构和工作原理。 图中以三台呼叫管理中 心为例组成分布式呼叫管理中心。 分布式呼叫管理中心主要由协议处理模块 2、 数据 库 3和管理配置模块 4组成。 操作中, 接入服务器 1接收来自拨号用户访问数据的 拨号请求, 并把该访问请求发送给呼叫管理中心, 呼叫管理中心的协议处理模块 2 根据数据库 3提供的存储过程对接入服务器 1 发来的报文进行分析, 对访问请求做 合法性检査。 根据特定的认证方式来决定接受或拒绝该访问请求。 协议处理模块 2 运行后一直监听接入服务器 1 发来的报文, 在与接入服务器 1 交互过程中不断地调 用数据库的存储过程, 并对该报文进行相应处理, 把结果报文发回给接入服务器 1。  The structure and working principle of the distributed call management center will be described with reference to FIG. 1. In the figure, three call management centers are taken as an example to form a distributed call management center. The distributed call management center is mainly composed of a protocol processing module 2, a database 3, and a management configuration module 4. In operation, 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. After 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.
数据库 3 主要有两个功能: 第一, 为主流程协议处理部分提供接口, 并确保主 流程处理效率; 第二, 为管理配置模块 4提供接口, 并确保管理配置模块的数据一 致性。 管理配置模块的主要功能有: 第一, 为系统操作员提供呼叫管理的管理配置 功能, 包括客户管理、 资源管理、 操作员管理、 性能管理和安全管理; 第二, 为端 口租用客户实时提供网络运行情况信息, 并具有统计分析的能力, 让客户了解与其 有关的性能指标。  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.
管理配置模块 4 的作用是给系统管理人员提供一个接口界面, 以便配置数据库 信息 (如系统中有哪些接入服务器等) 和上网信息查询。 管理配置模块 4又分为管 理后台和管理前台, 管理后台是处理核心, 整个呼叫管理中心系统只配置一份, 管 理前台提供人机交互界面, 系统中可以有多个管理前台程序在同时运行。 管理前台 与管理后台通过 C0RBA (公用对象请求代理架构)标准和 II0P协议(因特网目标请 求代理间协议) 通信。 Π0Ρ协议可实现因特网客户机与 C0RBA服务器之间的互操作 性, 另一方面, 可实现 C0RBA客户机与因特网服务器之间的互操作性, 使得即使连 接的不同类型的计算机或各种程序语言写成的对象只要符合 C0RPA标准即可在对象 间相互通信。 管理前台响应用户输入的配置或査询请求, 把该配置或査询请求转化 成对管理后台的命令请求。 管理后台接到命令请求后, 执行相关的数据库存储过程 或查询命令, 把最终处理结果交给对应的管理前台。 管理前台最后把收到的结果显 示在界面上。 管理前台的操作人员只与管理前台打交道, 感觉不到管理后台的存在。 在管理后台中, 与系统中每个数据库 3对应, 都有一个对应的数据库工作线程 (简称工作线程), 一个工作线程可以理解成对相应的数据库的连接。 图 1所示系统 中有三个数据库, 管理后台就有三个工作线程。 所有工作线程都由管理后台中的主 线程控制, 在管理后台没有收到管理前台发来的命令请求时, 管理后台的所有工作 线程都处在等待状态; 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. On the other hand, 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. After receiving the command request, 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. In the management background, corresponding to 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. There are three databases in the system shown in Figure 1, and there are three working threads in the management background. All worker threads are controlled by the main thread in the management background. When the management background does not receive a command request from the management foreground, all the worker threads in the management background are in a waiting state;
下面结合图 2描述数据库差异信息的产生过程。 首先, 在步骤 S200, 设置管理 配置模块的管理后台, 生成差异信息内存表和差异信息文件。 差异信息内存表和差 异信息文件用于记录多数据库应用系统当前存在的所有差异信息。 这样, 即使管理 后台异常退出(如掉电), 差异信息仍可从差异信息的物理文件中恢复。在步骤 S201 , 呼叫管理中心中的管理配置模块的管理后台接收管理前台发来的命令请求, 该命令 请求包含表示每个数据库专有的数据库识别码 (DBID), 管理后台分析该请求, 将该 命令请求转化成对应的数据库 SQL (结构化查询语言)命令或存储过程。在步骤 S202, 管理后台从中提取 DBID。 DBID指示对那个数据库进行操作, 例如, 系统中有三个数 据库, 其序号就分别是 0、 ΐ 2, DBID-2就表示本次命令只对序号为 2 的数据库进 行操作。 另外, 设定一种情况, 当 DBID=-1 时就表示本次命令请求对系统中所有数 据库进行操作。 在步骤 S203, 管理后台根据提取的 DBID的值来设置该 DBID对应的 工作线程的初始环境。 此后, 在步骤 S204, 管理后台解开该 DBID对应的一个或所有 工作线程的互斥锁。 解锁后的工作线程就进入工作状态, 执行对应数据库的 SQL命 令或存储过程。 管理后台在步骤 S205等待所有工作线程处理结束, 工作线程执行完 数据库 SQL命令或存储过程后, 互斥锁重新由主线程锁住, 工作线程回到等待状态。 在步骤 S206, 检查数据库的 SQL命令或存储过程的处理结果, 判断数据库操作是否 全部成功。 如果在步骤 S206判断数据库操作全部成功, 则在步骤 S207 向管理前台 返回全部成功指示。 如果在步骤 S206判断数据库操作没有全部成功, 则在步骤 S208 判断数据库操作是否部分成功。 如果在步骤 S208判断数据库操作部分成功, 则在步 骤 S209针对操作失败的数据库在差异信息内存表和差异信息文件中产生一个差异信 息记录, 记录产生该差异信息时数据库执行的查询语句或存储过程, 并在步骤 S210 向管理前台返回部分成功的'指示。 如果在步骤 S208判断数据库操作不是部分成功, 则在步骤 S211向管理前台返回全部失败的指示。 The generation process of the database difference information is described below with reference to FIG. 2. First, in 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. In 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. In 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. DBID-2 means that this command only operates on the database with serial number 2. In addition, a case is set. When DBID = -1, it means that this command requests to operate all databases in the system. In 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. 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.
下面参考图 3 说明差异信息文件的结构。 差异信息文件以二进制格式存储。 '每 条差异信息对应一条记录, 为保证记录快速读写, 将差异信息记录设为定长结构。 差异信息中包含表示差异信息记录的唯一标识的重试识别码 (RedoID) 字段, 重试 识别码指示管理后台到差异信息文件中的哪一部分去提取有关的差异信息。 重试识 别码字段之后是标记 (Flag) 字段, 标记字段标识出哪些数据库需要对该差异信息 进行重试。 标记字段的长度可以是例如四个字节, 共 32位, 每一位对应一个数据库。 在本发明中设定为: 如果该标记某一位的值为 " 1 ", 则表示该位所对应的数据库产 生了差异信息, 如果该标记某一位的值为 "0", 则表示该位所对应的数据库未产生 差异信息, 即该数据库执行成功。 标记字段后面是命令串 (C0mmandString)。 命令 串是指产生该差异信息时数据库执行的查询语句或存储过程。 管理后台一旦发现某 条命令出现部分成功时, 它知道具体是哪一个或一些数据库执行失败, 也知道当时 的命令具体是什么。 因此, 管理后台可以准确地将一条差异信息记录加到内存差异 信息内存表以及差异信息文件中。 然后给前台返回部分成功指示, 该部分成功指示 中携带重试识别码字段。 The structure of the difference information file is described below with reference to FIG. 3. 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. In 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. Once the management background finds that a command is partially successful, it knows which database or databases failed to execute, and it knows what the command was then. Therefore, the management background can accurately add a difference information record to the memory difference information memory table and the difference information file. Then, a partial success indication is returned to the front desk, and the partial success indication carries a retry identification code field.
管理前台收到管理后台的部分成功指示后, 输出由于部分成功而产生的差异信 息, 并提醒操作员。 由操作员对产生差异信息的数据库进行定位。 操作员判断数据 库是否正常运行, 连接是否正常, 等等。 假如操作员发现某数据库所在主机的网线 掉了, 重新接好, 然后回到管理前台, 输入重试指令, 操作员就向管理前台发送了 一条 "重试"命令, 管理前台再把携带重试识别码的命令发送给管理后台。  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.
参考图 4描述消除数据库差异信息的过程。 在步骤 S401 , 管理后台接收管理前 台发送的携带有重试识别码的重试命令, 管理后台在步骤 S402根据收到的重试识别 码到差异信息文件中找到与该重试识别码对应的具体差异信息, 从对应的差异信息 中得到差异信息记录的标记字段和要执行的存储过程或 SQL命令, 以及哪个或哪些 数据库需要执行该存储过程或 SQL命令的信息。 然后, 在步骤 S403, 管理后台按照 标记字段的指示设置相应的工作线程的初始环境。 在步骤 S404, 按照标记字段给相 应的工作线程解锁, 依据这条差异信息的指针到某个或某些数据库调用该存储过程 或 SQL命令并执行重试操作。 在步骤 S405, 等待所有工作线程处理结束回到等待状 态。 在步骤 S406, 检查数据库的处理结果, 判断重试操作是否全部成功。 如果在步 骤 S406判断重试操作全部成功, 在步骤 S408删除差异信息内存表和差异信息文件 中记录的差异信息, 并在步骤 S408向管理前台返回全部成功指示。 如果在步骤 S406 判断重试操作没有全部成功, 则在步骤 S407判断重试操作是否部分成功。 如果在步 骤 S407判断重试操作部分成功, 则在步骤 S409更新差异信息内存表和差异信息文 件中记录的差异信息,删除与重试操作成功的数据库对应的差异信息,并在步骤 S410 向管理前台返回部分成功的指示。 如果在步骤 S407判断重试操作全部失败, 则在步 骤 S411向管理前台返回全部失败的指示。 The process of eliminating database difference information is described with reference to FIG. 4. In 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. Then, in step S403, the management background sets the initial environment of the corresponding worker thread according to the indication of the flag field. In 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. In step S405, wait for all the worker threads to finish processing and return to the waiting state. In 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. 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.
根据本发明, 在管理后台设置一个轮巡线程, 该轮巡线程可在管理前台未输入 重试命令的情况下, 定期对系统中所有差异信息做一次重试, 防止差异信息的累积 增长。 工业实用性  According to the present invention, 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. Industrial applicability
在本发明的多数据库应用系统中, 管理台提供了交互式操作界面, 每当新出现 一个差异信息时, 管理后台可以及时通知管理前台, 便于操作员最快地定位故障问 题, 并对该差异信息进行重试。  In the multi-database application system of the present invention, 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. Obtain the difference information generated by all the databases in the system, so that the operator can quickly and comprehensively locate the problem and eliminate the difference information as soon as possible.
至此已结合实施例说明了本发明的具体实施过程。 本发明的消除数据库差异信 息的方法在分布式多数据库应用系统中运行取得了满意的结果, 为分布式多数据库 应用系统提供了一种通用、 快速地消除数据库差异信息的方法。  So far, the specific implementation process of the present invention has been described in conjunction with the embodiments. 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.

Claims

权 利 要 求 书 Claim
1.一种利用管理配置模块消除多数据库应用系统中数据库差异信息的方法, 所 述管理配置模块包括管理后台和管理前台, 其特征在于该方法包括下列步骤: A method for eliminating database difference information in a multi-database application system by using a management configuration module, wherein the management configuration module includes a management background and a management foreground, and is characterized in that the method includes the following steps:
(a) 设置管理配置模块的管理后台, 生成差异信息内存表和差异信息文件, (a) Setting the management background of the management configuration module to generate a difference information memory table and a difference information file,
(b)在对应的数据库中执行结构化査询语言 (SQL)指令或存储过程, (b) executing structured query language (SQL) instructions or stored procedures in the corresponding database,
(c) 检査数据库的结构化査询语言指令或存储过程的处理结果, 判断数据库操 作是否成功,  (c) check the structured query language instructions of the database or the processing results of stored procedures to determine whether the database operation was successful,
( d) 如果在步骤 (c)判断数据库操作部分成功, 则针对操作失败的数据库产 生一个带有重试识别码的差异信息, 并将所述差异信息记录在所述差异信息内存表 和差异信息文件中, 向管理前台返回部分成功的指示,  (d) if it is judged in step (c) that the database operation is partially successful, generating difference information with a retry identification code for the database where the operation failed, and recording the difference information in the difference information memory table and difference information In the file, a partial success indication is returned to the management front desk.
(e) 管理后台接收管理前台发送的携带有重试识别码的重试命令, 根据收到的 重试识别码在差异信息文件中找到与该重试识别码对应的差异信息,  (e) the management background receives a retry command carrying a retry identification code sent by the management front desk, and finds the difference information corresponding to the retry identification code in the difference information file according to the received retry identification code,
(f ) 从对应的差异信息中得到该差异信息记录的标记字段和要执行的存储过程 或结构化査询语言指令, 并依据这些差异信息的指针到某个或某些数据库调用该存 储过程或结构化査询语言指令并执行重试操作,  (f) obtaining the mark field of the difference information record and the stored procedure or structured query language instruction to be executed from the corresponding difference information, and calling the stored procedure or a certain database according to the pointer of the difference information or Structured query language instructions and perform retry operations,
(g)检查重试操作的处理结果, 判断重试操作是否全部成功,  (g) check the processing result of the retry operation, and judge whether the retry operation is all successful,
(h) 如果在步骤 (g)判断重试操作全部成功, 则删除差异信息内存表和差异 信息文件中记录的差异信息, 并向管理前台返回全部成功指示  (h) If it is determined 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
( i ) 如果在步骤 (g) 判断重试操作未全部成功, 则判断重试操作是部分成功 还是全部失败,  (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,
( j ) 如果在步骤 (i ) 中判断重试操作部分成功, 则更新差异信息内存表和差 异信息文件中记录的差异信息, 并向管理前台返回部分成功的指示。  (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.
2. 根据权利要求 1所述的消除数据库差异信息的方法, 其特征在于, 在对应的 数据库中执行结构化査询语言指令或存储过程的步骤 (b) 之前, 进一步包括接收前 台的命令请求并将所述命令请求转化成相应的存储过程或结构化査询语言指令的步 骤。  2. The method for eliminating database discrepancy information according to claim 1, characterized in that before executing step (b) of the structured query language instruction or stored procedure in the corresponding database, further comprising receiving a command request from the foreground and The step of converting the command request into a corresponding stored procedure or structured query language instruction.
3. 根据权利要求 1所述的消除数据库差异信息的方法, 其特征在于, 判断数据 库操作是否成功的步骤 (c)进一步包括判断数据库操作是否全部成功或是否全部失 败的步骤, 如果数据库操作全部成功, 则向管理前台返回全部成功的指示, 如果数 据库操作全部失败, 则向管理前台返回全部失败的指示。 3. The method for eliminating database discrepancy information according to claim 1, wherein the step (c) of determining whether the database operation is successful further comprises determining whether the database operation is all successful or not. In the failed step, if the database operations are all successful, all the indications of success are returned to the management foreground; if the database operations are all failed, the indications of all failures are returned to the management foreground.
4. 根据权利要求 1所述的消除数据库差异信息的方法, 其特征在于, 在更新差 异信息内存表和差异信息文件中记录的差异信息的步骤 (i ) 中进一步包括删除与重 试操作成功的数据库对应的差异信息。  4. The method for eliminating difference information in a database according to claim 1, wherein the step (i) of updating the difference information recorded in the difference information memory table and the difference information file further comprises deleting and retrying successful operations. The difference information corresponding to the database.
5.根据权利要求 1所述的消除数据库差异信息的方法, 其特征在于, 如果在步骤 ( i ) 判断重试操作全部失败, 进一步包括向管理前台返回重试操作全部失败的指示 的步骤。  The method for eliminating database difference information according to claim 1, characterized in that, if it is determined in step (i) that all retry operations have failed, further comprising the step of returning an indication that all retry operations have failed to the management front desk.
6. 根据权利要求 1至 6中任何一项所述的消除数据库差异信息的方法, 其特征在 于, 记录的所述差异信息包含重试识别码字段, 标记字段和产生所述差异信息时数 据库执行的结构化査询语言指令或存储过程。  6. The method for eliminating database difference information according to any one of claims 1 to 6, wherein the recorded difference information includes a retry identification code field, a flag field, and a database execution when the difference information is generated Structured query language instructions or stored procedures.
PCT/CN2002/000248 2001-06-28 2002-04-09 Method of rapidly eliminating different information in databases WO2003003244A1 (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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