WO2011153803A1 - 一种数据库同步部署及监控的方法和装置 - Google Patents

一种数据库同步部署及监控的方法和装置 Download PDF

Info

Publication number
WO2011153803A1
WO2011153803A1 PCT/CN2010/079870 CN2010079870W WO2011153803A1 WO 2011153803 A1 WO2011153803 A1 WO 2011153803A1 CN 2010079870 W CN2010079870 W CN 2010079870W WO 2011153803 A1 WO2011153803 A1 WO 2011153803A1
Authority
WO
WIPO (PCT)
Prior art keywords
synchronization
database
module
information
data
Prior art date
Application number
PCT/CN2010/079870
Other languages
English (en)
French (fr)
Inventor
史美康
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2011153803A1 publication Critical patent/WO2011153803A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/75Indicating network or usage conditions on the user display

Definitions

  • the present invention relates to database clustering techniques.
  • it relates to a method and apparatus for quickly performing database synchronization deployment and monitoring. Background technique
  • clustering technologies fall into two categories: clustering technologies based on database engines and clustering technologies based on database gateways (middleware).
  • the clustering technology based on the database engine can be divided into shared disk or non-shared disk.
  • data clustering technology in order to improve the high availability of the database, one way is to provide data redundancy through data synchronization.
  • the data synchronization function provided by the database engine itself or a third-party manufacturer, although powerful, can satisfy various synchronizations. Demand, but without exception, the operation is complicated.
  • the main purpose of the present invention is to provide a method and device for synchronously deploying and monitoring a database, which is used to solve the problem that the data synchronization function is complicated to be installed and configured when the database cluster system is deployed, which is not conducive to centralized management, monitoring, and maintenance. problem.
  • a device for synchronously deploying and monitoring a database comprising:
  • a metadata management module configured to store and manage configuration parameters and metadata information related to database synchronization
  • a data synchronization module configured to adjust an operating system parameter and a database parameter of a node where each synchronization database is located to an initialization value suitable for performing data synchronization according to configuration parameters related to each synchronization database provided by the metadata management module, and receive operation and maintenance
  • the module synchronizes the instruction, the data synchronization is performed according to the metadata information related to the database synchronization provided by the metadata management module;
  • the operation and maintenance module is configured to provide a unified operation and maintenance function interface for the metadata management module and the data synchronization module.
  • the synchronization monitoring module is configured to monitor the synchronization process in real time, obtain the synchronization status information, the abnormal information generated during the synchronization process, and report the obtained information to the operation and maintenance module; and also send an alarm when the synchronization abnormality is found according to the set threshold Information and/or pre-processing;
  • the operation and maintenance module is further configured to display the synchronization status information and process the abnormal information.
  • the synchronization monitoring module is further configured to periodically acquire system operation index information of an operating system and a database system of each synchronization database node, and send the system operation indicator information to the operation and maintenance module.
  • the operation and maintenance module is further configured to receive each received Synchronize the operating system of the database node and the system operation indicator information of the database system for statistical analysis.
  • the configuration parameters related to the synchronization of the database include, but are not limited to: a synchronization relationship attribute, a synchronization parameter of the source database, a target database synchronization parameter, and a synchronization database operating system configuration parameter;
  • the synchronization relationship attribute refers to a source database and a target for performing database synchronization.
  • Corresponding relationship of the database includes but is not limited to: a configuration parameter of the related synchronization process, and a database system configuration parameter;
  • the metadata information includes but is not limited to: a type of synchronization, and object information of synchronization.
  • the operation and maintenance module is further configured to send synchronization instructions to the one or more data synchronization modules located in different synchronization databases separately or in batches, and each data synchronization module separately reads configuration parameters related to the respective synchronization databases from the metadata management module. And metadata information, start the synchronization process, Perform data synchronization.
  • the present invention also provides a method for database synchronization deployment and monitoring, the method comprising:
  • Step A Create and initialize configuration parameters and metadata information of each synchronization database through the metadata management module;
  • Step B According to the instruction sent by the operation and maintenance module, the data synchronization module adjusts operating system parameters and database parameters of the node where each synchronization database is located to be suitable for performing data synchronization initialization according to configuration parameters related to each synchronization database provided by the metadata management module.
  • Step C After receiving the synchronization instruction sent by the operation and maintenance module, the data synchronization module located in each synchronization database reads the metadata information provided by the metadata management module, and starts the synchronization process.
  • Step D After the synchronization process of each synchronization database node is started, the synchronization monitoring module located in each synchronous database node is started, and the data synchronization process is monitored in real time, the synchronization state information, the abnormal information generated during the synchronization process, and the obtained information are reported. Operation and maintenance module; The synchronization monitoring module issues alarm information and/or performs preprocessing when it finds a synchronization abnormality according to the set threshold.
  • the synchronization monitoring module periodically acquires the system operation index information of the operating system and the database system of each synchronization database node, and reports the acquired information to the operation and maintenance module; the operation and maintenance module is further configured to receive the synchronized database nodes.
  • the operating system and database system operating index information of the operating system are statistically analyzed.
  • the data synchronization module starts the synchronization process and executes the data according to the data synchronization function provided by each synchronization database system or the data synchronization function provided by the third party according to the database configuration parameter and the metadata information provided by the metadata management module. Synchronize.
  • the invention deploys a data synchronization module and a data monitoring module in each synchronization database, and creates configuration parameters and metadata related to database synchronization in the metadata management module, and provides unified control, display and maintenance functions through the operation and maintenance module.
  • the database synchronization, deployment, execution, display and monitoring of the database cluster can be concentrated; using the method and device of the invention According to the specified rules, the personnel can deploy the database cluster data synchronization environment in large-scale and multi-site, without the need of professional database maintenance personnel to operate, reduce maintenance costs, improve the standardization of the project, and realize centralized management of data synchronization. Monitoring and maintenance. DRAWINGS
  • Figure 1 is a physical deployment diagram of the present invention
  • FIG. 2 is a logical architecture diagram of a database synchronization deployment and monitoring apparatus according to the present invention
  • FIG. 3 is a flowchart of a database synchronization deployment process in an embodiment of the present invention.
  • FIG. 4 is a flowchart of a database synchronization monitoring process according to an embodiment of the present invention. detailed description
  • the device includes: a metadata management module, a data synchronization module, a synchronization monitoring module, and an operation and maintenance module.
  • the metadata management module is deployed in each synchronization database or centrally deployed on a management node for storing and managing configuration parameters and metadata information related to database synchronization;
  • the configuration parameters related to database synchronization include but are not limited to the following parameters: synchronization relationship attribute, synchronization parameter of source database, target database synchronization parameter, synchronous database operating system configuration parameter, etc.; synchronization relationship attribute refers to a source database that performs database synchronization.
  • Database synchronization parameters include but are not limited to: configuration parameters of the relevant synchronization process, database system configuration parameters; synchronization parameters of the source database include It is not limited to the following parameters: for example, the configuration parameters of the capture process, the configuration parameters of the propagation process, the configuration parameters of the synchronization queue, etc.; the synchronization parameters of the target database include but are not limited to the following parameters: for example, application process configuration parameters, synchronization queue configuration parameters, etc. .
  • the metadata information includes: a type of synchronization, and synchronized object information, and the types of synchronization include: table-based synchronization, space-based synchronization, database user-based synchronization, and the like; the synchronized object information is corresponding to the type of synchronization.
  • Specific object information such as synchronized table structure information, database space information, database user information, index information, and the like.
  • the data synchronization module is deployed on each synchronization database node, and is configured to invoke a data synchronization function provided by each database system or a data synchronization function provided by a third party when receiving the synchronization instruction of the operation and maintenance module, according to the metadata management module.
  • Database configuration parameters and metadata information start the synchronization process, perform data synchronization;
  • the synchronization monitoring module is deployed on each synchronization database node to monitor the synchronization process in real time, obtain synchronization status information, and generate abnormal information during the synchronization process, and generate alarm information according to the predefined threshold, and the obtained information is reported to the operation and maintenance.
  • the module is also used to periodically obtain information about the operating system of the synchronization node and the system operation index of the database system, and report it to the operation and maintenance module for analysis by the database administrator (DBA);
  • Operation and maintenance module It can be located on an operation and maintenance node or deployed on any database or management node. It provides a unified operation and maintenance function interface for the metadata management module, data synchronization module and synchronization monitoring module.
  • the specific functions include: An operation and maintenance interface for generating, importing, and managing metadata; providing an operation and maintenance interface for each data synchronization module, for example, transmitting a synchronization instruction for synchronizing or synchronizing to the data synchronization module; providing operation for each synchronization monitoring module Maintenance interface, such as receiving and displaying the synchronization status and alarm information sent by the synchronization monitoring module.
  • the data synchronization module and the synchronization monitoring module of the present invention can be deployed on each database server, and the metadata management module and the operation and maintenance module are deployed on the management server, and the unified operation provided by the operation and maintenance module is performed.
  • the maintenance interface is deployed.
  • the method for synchronously deploying and monitoring data provided by the present invention includes the following steps:
  • Step 1 Create a configuration parameter and metadata information of the synchronization database through the metadata management module. Storing the configuration parameters and metadata information of the synchronization database in a data table or a configuration file (such as but not limited to an XML file, etc.);
  • Step 2 Initialize the metadata through the metadata management module, including but not limited to the following two methods:
  • Step 3 Before performing the synchronization, according to the instruction sent by the operation and maintenance module, the data synchronization module adjusts the operating system parameter and the database parameter of the node where each synchronization database is located according to the configuration parameters related to each synchronization database provided by the metadata management module.
  • Step 4 After receiving the synchronization instruction sent by the operation and maintenance module, the data synchronization module located in each synchronization database reads the metadata information provided by the metadata management module, and starts the synchronization process.
  • Step 5 After the synchronization process is started, start synchronization.
  • the monitoring module obtains the synchronization status information, the abnormal information generated during the synchronization process, and reports the obtained information to the operation and maintenance module; the operation and maintenance module collectively displays the synchronization status and abnormal information of each synchronization database, and performs relevant statistical analysis. .
  • Step 6 The synchronization monitoring module sends an alarm message according to the set threshold value, and sends an alarm message to the operation and maintenance module, which is displayed by the operation and maintenance module.
  • the synchronization monitoring module can pre-alert the alarm information according to the knowledge base. If the processing method cannot be obtained from the knowledge base, the user is prompted to perform manual processing.
  • Step 7 The synchronization monitoring module periodically acquires the system operation index information of the operating system and the database system of each synchronous database node, and reports the obtained information to the operation and maintenance module.
  • the operating system and database system reported by each synchronization monitoring module through the operation and maintenance module The system operation indicators are statistically analyzed for later analysis and system optimization by the database administrator (DBA).
  • FIG. 3 is a flowchart of a process for implementing table level data synchronization based on an Oracle database according to the present invention. The steps required as an embodiment of the present invention include:
  • Step 301 Create a configuration parameter related to the database synchronization, create a metadata table by using the metadata management module, and define a synchronization node, a synchronization queue, a capture, a propagation, and an application process when the data stream (streams) technology table level data synchronization mode is applied.
  • Corresponding metadata such as tables that need to be synchronized, and corresponding metadata tables are created as needed; the configuration parameters related to the database synchronization can also be stored and managed by means of data tables.
  • Step 302 Perform operation or maintenance interface provided by the maintenance module to complete various types of metadata configuration or import required for data synchronization of the Streams technical table, including but not limited to the following manners.
  • the predefined metadata is stored as an XML file or a formatted text file, the predefined metadata can be imported into the metadata table through the parsing and import tool;
  • the predefined metadata is stored in SQL scripts, the predefined metadata is imported into the metadata table by executing the SQL script;
  • Step 303 The operation maintenance module may send the synchronization instruction to the data synchronization module located on the different synchronization database nodes in one batch, and the data synchronization module reads the configuration parameters related to the database synchronization saved in the metadata management module, and modifies the synchronization database node.
  • the operating system and database related system parameters configure the system environment required for the Streams to run, such as global_name, archive settings, and so on.
  • Step 304 The data synchronization module creates a Streams capture process and a synchronous send queue at the data source node according to the configuration parameters, completes capturing of the required synchronization data changes, and puts the captured data into the synchronous transmission queue.
  • the data synchronization module completes all the synchronous sending queues, the creation of the capturing process, and the load sharing party according to the configuration parameters related to the database synchronization managed by the metadata management module.
  • the capture records of many capture processes are distributed to multiple synchronization queues, avoiding the cumbersomeness of the original Oracle system to create synchronization queues, capture processes, and allocations one by one.
  • Step 305 The data synchronization module creates a Streams propagation process on the data source node according to the configuration parameter, waits to accept the captured data, and completes the propagation from the source node synchronization queue to the target node synchronization queue.
  • the data synchronization module can complete all the propagation process creation from the source node to the target node in one time according to the configuration parameters related to the database synchronization managed by the metadata management module, and simultaneously complete the adjustment of the optimization parameters related to the propagation process, thereby improving the deployment efficiency.
  • Step 306 The data synchronization module creates a Streams application process and a synchronization acceptance queue on the data target node according to the configuration parameter, accepts data changes sent by the source node propagation process, and completes data update synchronization of the data target node.
  • the data synchronization module can complete the creation of all synchronous acceptance queues and application processes, and the setting of related optimization parameters, and wait for the change of the application source database, according to the configuration parameters related to the database synchronization managed by the metadata management module.
  • Step 307 After the synchronization configuration of each node and the synchronization process are started, the synchronization monitoring module is automatically started in the default configuration.
  • FIG. 4 is a flow chart of a method for uniformly monitoring a data synchronization process according to the present invention, and the specific steps include:
  • Step 401 After the data synchronization related process is started, the synchronization monitoring module located on the data synchronization node is started, and the related operation indicators are monitored.
  • Step 402 The synchronization monitoring module obtains the running information of the data synchronization from the Oracle system dynamic view every 10 seconds (the time interval is configurable), and compares with the preset indicator threshold.
  • Step 403 The synchronization monitoring module reports the operation and maintenance module to the interface for displaying the abnormality exceeding the preset threshold. If automatic recovery is allowed, the synchronization monitoring module first performs automatic recovery processing according to the default processing flow, and performs related log recording. For exceptions that cannot be automatically recovered, The synchronization monitoring module reports the information to the operation and maintenance module. The operation and maintenance module can send an abnormal alarm according to the configuration, and notify the DBA to perform manual intervention through the alarm system.
  • Step 404 The synchronization monitoring module obtains the data of the data synchronization, the system 10, the CPU usage, and the like from the Oracle system and the operating system OS every 10 seconds (the time interval is configurable), and reports the data to the operation and maintenance module to generate statistical data.
  • the operation and maintenance terminal performs trend chart analysis.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

一种数据库同步部署及监控的方法和装置 技术领域
本发明涉及数据库集群技术。 尤其涉及一种快速执行数据库同步部署 及监控的方法和装置。 背景技术
当前数据库集群技术分属两类体系结构: 基于数据库引擎的集群技术 和基于数据库网关 (中间件)的集群技术。其中基于数据库引擎的集群技术又 可分为共享磁盘或非共享磁盘两种方式。 在数据集群技术中, 为了提高数 据库的高可用性, 其中一种方式是通过数据同步提供数据冗余, 目前无论 是数据库引擎自身还是第三方厂家提供的数据同步功能, 虽然功能强大可 以满足各种同步需求, 但是无一例外地操作复杂, 部署一套同步系统需要 操作人员具备专业素质, 不利于普通工程人员进行安装和维护, 并且没有 一套统一的监控系统, 可以监控数据的同步情况, 不利于集中化管理和维 护。 发明内容
有鉴于此, 本发明的主要目的在于提供一种数据库同步部署及监控的 方法和装置, 用于解决部署数据库集群系统时, 数据同步功能安装配置复 杂, 不利于集中化管理、 监控和维护的技术问题。
为达到上述目的, 本发明的技术方案是这样实现的:
一种数据库同步部署及监控的装置, 该装置包括:
元数据管理模块, 用于存储和管理与数据库同步相关的配置参数、 元 数据信息; 数据同步模块, 用于依据元数据管理模块提供的与各同步数据库相关 的配置参数将各同步数据库所在节点的操作系统参数和数据库参数调整为 适合执行数据同步的初始化值, 以及在接收到操作维护模块的同步指令时, 依据元数据管理模块提供的与数据库同步相关的元数据信息, 执行数据同 步;
操作维护模块, 用于提供对元数据管理模块、 数据同步模块的统一的 操作维护功能界面。
同步监控模块, 用于实时监控同步进程, 获取同步状态信息、 同步过 程中产生的异常信息, 并将获取的信息上报操作维护模块; 还用于在根据 设定阔值发现同步异常时, 发出告警信息和 /或进行预处理;
所述操作维护模块还用于显示所述同步状态信息及处理所述异常信 息。
所述同步监控模块还用于定时获取各同步数据库节点的操作系统、 数 据库系统的系统运行指标信息, 并将其发送给所述操作维护模块; 所述操 作维护模块还用于对接收到的各同步数据库节点的操作系统、 数据库系统 的系统运行指标信息进行统计分析。
所述与数据库同步相关的配置参数包括但不限于: 同步关系属性、 源 数据库的同步参数、 目标数据库同步参数、 同步数据库操作系统配置参数; 所述同步关系属性指执行数据库同步的源数据库和目标数据库的对应 关系; 所述数据库同步参数包括但不限于: 相关同步进程的配置参数、 数 据库系统配置参数; 所述元数据信息包括但不限于: 同步的类型、 同步的 对象信息。
所述操作维护模块还用于单独或批量向一个或多个位于不同同步数据 库的数据同步模块发送同步指令, 各数据同步模块分别从所述元数据管理 模块读取与各自同步数据库相关的配置参数及元数据信息, 启动同步进程, 执行数据同步。
基于上述装置, 本发明还提出一种数据库同步部署及监控的方法, 该 方法包括:
步骤 A、 通过元数据管理模块创建并初始化各同步数据库的配置参数、 元数据信息;
步骤 B、 依据操作维护模块发送的指令, 数据同步模块根据元数据管 理模块提供的与各同步数据库相关的配置参数将各同步数据库所在节点的 操作系统参数和数据库参数调整为适合执行数据同步的初始化值;
步骤 C、 位于各同步数据库的数据同步模块在接收到操作维护模块发 送的同步指令后, 读取元数据管理模块提供的元数据信息, 启动同步进程。
步骤 D、 在各同步数据库节点的同步进程启动后, 启动位于各同步数 据库节点的同步监控模块, 实时监控数据同步进程, 获取同步状态信息、 同步过程中产生的异常信息, 并将获取的信息上报操作维护模块; 同步监 控模块在根据设定阔值发现同步异常时, 发出告警信息和 /或进行预处理。
进一步地, 同步监控模块定时获取各同步数据库节点的操作系统、 数 据库系统的系统运行指标信息, 并将获取的信息上报操作维护模块; 所述 操作维护模块还用于对接收到的各同步数据库节点的操作系统、 数据库系 统的系统运行指标信息进行统计分析。
进一步地, 所述数据同步模块通过调用各同步数据库系统所提供的数 据同步功能或第三方提供的数据同步功能, 依据元数据管理模块提供的数 据库配置参数及元数据信息, 启动同步进程, 执行数据同步。
本发明在各同步数据库部署数据同步模块、 数据监控模块, 在元数据 管理模块创建与数据库同步相关的配置参数和元数据, 通过操作维护模块 提供统一的控制、 显示和维护功能。 通过本发明可集中对数据库集群进行 数据库同步的部署、 执行、 显示及监控; 釆用本发明所述方法和装置, 工 程人员可以根据指定规则, 大规模多局点的部署数据库集群数据同步环境, 而不需要专业数据库维护人员进行操作, 降低了维护成本, 提高工程的规 范性, 实现了数据同步的集中化管理、 监控和维护。 附图说明
图 1 为本发明的物理部署图;
图 2 为本发明数据库同步部署及监控装置的逻辑架构图;
图 3 为本发明实施例中数据库同步部署处理流程图;
图 4为本发明实施例中数据库同步监控处理流程图。 具体实施方式
为使本发明的目的、 技术方案和优点更加清楚明白, 以下举实施例并 参照附图, 对本发明进一步详细说明。
图 2为本发明提供的数据库同步部署及监控的装置结构图, 所述装置 包括: 元数据管理模块、 数据同步模块、 同步监控模块及操作维护模块。
元数据管理模块, 部署于各同步数据库当中或集中部署于一个管理节 点上, 用于存储和管理与数据库同步相关的配置参数、 元数据信息;
所述与数据库同步相关的配置参数包括但不限于下述参数: 同步关系 属性、 源数据库的同步参数、 目标数据库同步参数、 同步数据库操作系统 配置参数等; 同步关系属性指执行数据库同步的源数据库和目标数据库的 对应关系, 即哪个数据库为同步源节点, 哪个数据库为同步的目标节点; 数据库同步参数包括但不限于: 相关同步进程的配置参数、 数据库系统配 置参数; 源数据库的同步参数包括但不限于如下一些参数: 例如捕获进程 的配置参数、 传播进程的配置参数、 同步队列的配置参数等; 目标数据库 的同步参数包括但不限于如下一些参数: 例如应用进程配置参数、 同步队 列配置参数等。 所述元数据信息包括: 同步的类型、 同步的对象信息, 同步的类型包 括: 基于表的同步、 基于空间的同步、 基于数据库用户的同步等; 同步的 对象信息为与同步的类型相对应的具体的对象信息, 例如同步的表结构信 息、 数据库空间信息、 数据库用户信息、 索引信息等。
数据同步模块, 部署于各同步数据库节点上, 用于在接收到操作维护 模块的同步指令时, 调用各数据库系统所提供的数据同步功能或第三方提 供的数据同步功能, 依据元数据管理模块提供的数据库配置参数及元数据 信息, 启动同步进程, 执行数据同步;
同步监控模块, 部署于各同步数据库节点上, 用于实时监控同步进程, 获取同步状态信息、 同步过程中产生的异常信息, 并根据预定义阔值产生 告警信息, 并获取的信息上报给操作维护模块; 还用于定时获取同步节点 的操作系统、 数据库系统的系统运行指标等信息, 上报给操作维护模块, 提供给数据库管理员 (DBA )进行分析;
操作维护模块: 可独立位于一个操作维护节点上或部署于任意数据库 或管理节点上, 用于提供对元数据管理模块、 数据同步模块及同步监控模 块的统一的操作维护功能界面, 具体功能包括: 提供元数据的生成、 导入 和管理的操作维护界面; 提供对各数据同步模块的操作维护界面, 例如集 中向数据同步模块发送同步开始或同步终止的同步指令等; 提供对各同步 监控模块的操作维护界面, 例如接收和显示同步监控模块发送的同步状态 及告警信息等。
基于图 1 的网络结构, 可将本发明的数据同步模块和同步监控模块部 署在各数据库服务器上, 将元数据管理模块和操作维护模块部署在管理服 务器上, 通过操作维护模块提供的统一的操作维护界面进行部署操作。
本发明提供的数据同步部署及监控的方法包括以下步骤:
步骤 1、通过元数据管理模块创建同步数据库的配置参数、元数据信息, 将所述同步数据库的配置参数、元数据信息存储于数据表或者配置文件(例 如但不限于 XML文件等);
步骤 2、通过元数据管理模块初始化元数据, 包括但不限于以下两种方 式:
通过初始化脚本或根据说明文档手工配置数据同步所需的相关元数 据;
查询数据库数据字典, 自动获取所有同步对象的原数据信息。
步骤 3、 在执行同步前, 依据操作维护模块发送的指令, 由数据同步模 块根据元数据管理模块提供的与各同步数据库相关的配置参数将各同步数 据库所在节点的操作系统参数和数据库参数调整为适合执行数据同步的初 始化值;
步骤 4、位于各同步数据库的数据同步模块在接收到操作维护模块发送 的同步指令后, 读取元数据管理模块提供的元数据信息, 启动同步进程; 步骤 5、 在同步进程启动后, 启动同步监控模块, 获取同步状态信息、 同步过程中产生的异常信息, 并将获取的信息上报操作维护模块; 操作维 护模块集中对各同步数据库的同步状态、 异常信息进行显示, 并可执行相 关的统计分析。
步骤 6、同步监控模块根据设定阔值,发现同步异常时,发出告警信息, 可将告警信息上报给操作维护模块, 由操作维护模块集中显示; 同步监控 模块对告警信息可根据知识库进行预处理, 无法从知识库中获取处理方式 的, 则提示用户进行手工处理。
步骤 7、 同步监控模块定时获取各同步数据库节点的操作系统、数据库 系统的系统运行指标信息, 并将获取的信息上报操作维护模块; 通过操作 维护模块对各同步监控模块上报的操作系统、 数据库系统的系统运行指标 进行统计分析, 供数据库管理员 (DBA )进行后期分析及系统优化。 图 3为本发明基于 Oracle数据库实现表级数据同步的处理流程图, 作 为本发明的实施例所需的步骤包括:
步骤 301 , 通过元数据管理模块创建与数据库同步相关的配置参数、创 建元数据表, 数据流(streams )技术表级数据同步方式应用时, 需要定义 同步节点、 同步队列、 捕获、 传播和应用进程、 需要同步的表等相关元数 据, 根据需要, 创立对应的元数据表; 所述与数据库同步相关的配置参数 也可通过数据表的方式存储和管理。
步骤 302, 通过操作维护模块提供的操作维护界面, 完成 Streams技术 表级数据同步所需要的各类元数据配置或导入, 包括但不限于如下方式。
( a )若预定义的元数据釆用 XML文件或格式化文本文件方式存储, 则可通过解析和导入工具将预定义的元数据导入到元数据表中;
( b )若预定义的元数据釆用 SQL脚本存储, 则通过执行 SQL脚本将 预定义的元数据导入到元数据表中;
( c )查询用户的数据库字典, 自动获取所有用户表的信息插入元数据 表。
步骤 303 ,通过操作维护模块可一次性批量向位于不同同步数据库节点 上的数据同步模块发送同步指令, 数据同步模块读取元数据管理模块中保 存的与数据库同步相关的配置参数, 修改同步数据库节点的操作系统和数 据库相关系统参数,配置完成 Streams运行所需的系统环境,如 global— name、 归档设置等等信息。
步骤 304, 数据同步模块根据配置参数在数据源节点创建 Streams捕获 进程和同步发送队列, 完成所需同步数据变化的捕获, 将捕获数据放入同 步发送队列中。
数据同步模块根据元数据管理模块管理的与数据库同步相关的配置参 数, 一次性完成所有同步发送队列、 捕获进程的创建, 并按照负荷分担方 式将诸多捕获进程的捕获记录分配至多个同步队列, 避免原 Oracle系统逐 个创建同步队列、 捕获进程和分配的繁瑣。
步骤 305 , 数据同步模块根据配置参数在数据源节点上创建 Streams传 播进程, 等待接受捕获数据, 并完成从源节点同步队列向目标节点同步队 列的传播。
数据同步模块可根据元数据管理模块管理的与数据库同步相关的配置 参数, 一次性完成所有从源节点至目标节点的传播进程创建, 同时完成传 播进程相关优化参数的调整, 提高了部署效率
步骤 306, 数据同步模块根据配置参数在数据目标节点上创建 Streams 应用进程和同步接受队列, 接受源节点传播进程发送来的数据变化, 完成 数据目标节点的数据更新同步。
数据同步模块可根据元数据管理模块管理的与数据库同步相关的配置 参数, 一次性完成所有同步接受队列和应用进程的创建, 以及相关优化参 数的设置工作, 等待接受应用源数据库的变化。
步骤 307, 在各节点同步配置及同步进程启动完成后, 在默认配置下, 自动启动同步监控模块。
图 4本发明对数据同步过程进行统一监控的方法步骤流程, 具体步骤 包括:
步骤 401 , 完成数据同步相关进程启动后, 启动位于数据同步节点上的 同步监控模块, 进行相关运行指标的监控;
步骤 402, 同步监控模块每隔 10秒(时间间隔可配置)从 Oracle系统 动态视图中获取数据同步的运行信息, 与预先设定的指标阔值进行比较。
步骤 403 ,对于超过预设阔值的异常, 同步监控模块上报给操作维护模 块以供界面显示, 若允许自动恢复, 则同步监控模块首先根据默认处理流 程进行自动恢复处理, 并进行相关日志记录; 对于无法自动恢复的异常, 同步监控模块将信息上报操作维护模块, 操作维护模块可根据配置发出异 常告警, 通过告警系统通知 DBA进行人工干预。
步骤 404, 同步监控模块每隔 10秒(时间间隔可配置 )从 Oracle系统 和操作系统 OS中获取数据同步、 系统 10、 CPU占用率等运行数据, 并上 报给操作维护模块, 生成统计数据, 供操作维护终端进行趋势图表分析。
以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于 本领域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精 神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明 保护范围之内。

Claims

权利要求书
1、 一种数据库同步部署及监控的装置, 其特征在于, 该装置包括: 元数据管理模块, 用于存储和管理与数据库同步相关的配置参数、 元 数据信息;
数据同步模块, 用于依据元数据管理模块提供的与各同步数据库相关 的配置参数将各同步数据库所在节点的操作系统参数和数据库参数调整为 适合执行数据同步的初始化值, 以及在接收到操作维护模块的同步指令时, 依据元数据管理模块提供的与数据库同步相关的元数据信息, 执行数据同 步;
操作维护模块, 用于提供对元数据管理模块、 数据同步模块的统一的 操作维护功能界面。
2、 根据权利要求 1所述的装置, 其特征在于, 所述装置还包括: 同步监控模块, 用于实时监控同步进程, 获取同步状态信息、 同步过 程中产生的异常信息, 并将获取的信息上报操作维护模块; 还用于在根据 设定阔值发现同步异常时, 发出告警信息和 /或进行预处理;
所述操作维护模块还用于显示所述同步状态信息及处理所述异常信 息。
3、 根据权利要求 2所述的装置, 其特征在于,
所述同步监控模块还用于定时获取各同步数据库节点的操作系统、 数 据库系统的系统运行指标信息, 并将其发送给所述操作维护模块;
所述操作维护模块还用于对接收到的各同步数据库节点的操作系统、 数据库系统的系统运行指标信息进行统计分析。
4、 根据权利要求 1所述的装置, 其特征在于,
所述与数据库同步相关的配置参数包括但不限于: 同步关系属性、 源 数据库的同步参数、 目标数据库同步参数、 同步数据库操作系统配置参数; 所述同步关系属性指执行数据库同步的源数据库和目标数据库的对应 关系; 所述数据库同步参数包括但不限于: 相关同步进程的配置参数、 数 据库系统配置参数; 所述元数据信息包括但不限于: 同步的类型、 同步的 对象信息。
5、 根据权利要求 2所述的装置, 其特征在于,
所述操作维护模块还用于单独或批量向一个或多个位于不同同步数据 库的数据同步模块发送同步指令, 各数据同步模块分别从所述元数据管理 模块读取与各自同步数据库相关的配置参数及元数据信息, 启动同步进程, 执行数据同步。
6、 一种数据库同步部署及监控的方法, 其特征在于, 该方法包括: 通过元数据管理模块创建并初始化各同步数据库的配置参数、 元数据 信息;
依据操作维护模块发送的指令, 数据同步模块依据元数据管理模块提 供的与各同步数据库相关的配置参数将各同步数据库所在节点的操作系统 参数和数据库参数调整为适合执行数据同步的初始化值;
位于各同步数据库的数据同步模块在接收到操作维护模块发送的同步 指令后, 读取元数据管理模块提供的元数据信息, 启动同步进程。
7、 根据权利要求 6所述的方法, 其特征在于, 所述方法还包括: 在各同步数据库节点的同步进程启动后, 启动位于各同步数据库节点 的同步监控模块, 实时监控数据同步进程, 获取同步状态信息、 同步过程 中产生的异常信息, 并将获取的信息上报操作维护模块;
同步监控模块在根据设定阔值发现同步异常时, 发出告警信息和 /或进 行预处理。
8、 根据权利要求 7所述的方法, 其特征在于, 所述方法还包括: 同步监控模块定时获取各同步数据库节点的操作系统、 数据库系统的 系统运行指标信息, 并将获取的信息上报操作维护模块;
所述操作维护模块还用于对接收到的各同步数据库节点的操作系统、 数据库系统的系统运行指标信息进行统计分析。
9、 根据权利要求 6所述的方法, 其特征在于,
所述与数据库同步相关的配置参数包括但不限于: 同步关系属性、 源 数据库的同步参数、 目标数据库同步参数、 同步数据库操作系统配置参数; 所述同步关系属性指执行数据库同步的源数据库和目标数据库的对应 关系; 所述数据库同步参数包括但不限于: 相关同步进程的配置参数、 数 据库系统配置参数; 所述元数据信息包括但不限于: 同步的类型、 同步的 对象信息。
10、 根据权利要求 6所述的方法, 其特征在于,
所述数据同步模块通过调用各同步数据库系统所提供的数据同步功能 或第三方提供的数据同步功能, 依据元数据管理模块提供的数据库配置参 数及元数据信息, 启动同步进程, 执行数据同步。
PCT/CN2010/079870 2010-06-09 2010-12-16 一种数据库同步部署及监控的方法和装置 WO2011153803A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010199225.6 2010-06-09
CN201010199225.6A CN101854400B (zh) 2010-06-09 2010-06-09 一种数据库同步部署及监控的方法和装置

Publications (1)

Publication Number Publication Date
WO2011153803A1 true WO2011153803A1 (zh) 2011-12-15

Family

ID=42805663

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/079870 WO2011153803A1 (zh) 2010-06-09 2010-12-16 一种数据库同步部署及监控的方法和装置

Country Status (2)

Country Link
CN (1) CN101854400B (zh)
WO (1) WO2011153803A1 (zh)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103970840A (zh) * 2014-04-24 2014-08-06 北京佳讯飞鸿电气股份有限公司 一种在人工话务系统中实现数据同步的方法
CN104636485A (zh) * 2015-02-16 2015-05-20 广东省公安厅 基于数据监控的多数据源数据关联方法和装置
CN104636483A (zh) * 2015-02-16 2015-05-20 广东省公安厅 一种数据监控方法
CN104636484A (zh) * 2015-02-16 2015-05-20 广东省公安厅 基于数据监控的监控任务生成方法和装置
CN113609230A (zh) * 2021-09-16 2021-11-05 平安国际智慧城市科技股份有限公司 数据同步异常告警方法、装置、计算机设备和存储介质
CN113836160A (zh) * 2021-09-28 2021-12-24 上海市大数据股份有限公司 一种基于主从同步的数据流状态监控告警系统

Families Citing this family (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101854400B (zh) * 2010-06-09 2015-04-01 中兴通讯股份有限公司 一种数据库同步部署及监控的方法和装置
CN102591679B (zh) * 2011-11-30 2014-09-17 中国科学院计算机网络信息中心 一种集群系统应用软件快速部署方法
CN103179158B (zh) * 2011-12-22 2017-03-01 中国银联股份有限公司 一种参数批量同步方法和系统
CN103838761B (zh) * 2012-11-23 2017-03-01 阿里巴巴集团控股有限公司 一种元数据的更新方法及装置
CN104090778B (zh) * 2014-07-28 2017-08-01 中国银行股份有限公司 一种应用系统环境搭建的方法及系统
CN104462353B (zh) * 2014-12-04 2017-12-22 北京国双科技有限公司 数据库批量同步处理方法及装置
CN104462483A (zh) * 2014-12-18 2015-03-25 北京奇虎科技有限公司 数据同步方法、装置及系统
CN104881462B (zh) * 2015-05-22 2018-11-13 广东中标数据科技股份有限公司 元数据管理系统
CN107302469B (zh) * 2016-04-14 2020-03-31 北京京东尚科信息技术有限公司 分布式服务集群系统数据更新的监控装置及方法
CN107506436B (zh) * 2017-08-23 2020-12-25 福建星瑞格软件有限公司 一种用于物联网数据库存储性能测试的方法以及装置
CN108197155A (zh) * 2017-12-08 2018-06-22 深圳前海微众银行股份有限公司 信息数据同步方法、装置及计算机可读存储介质
CN109962936B (zh) * 2017-12-14 2022-03-29 网宿科技股份有限公司 异构数据同步方法及系统
CN108491422B (zh) * 2018-02-07 2024-02-09 平安健康互联网股份有限公司 数据库自动化运维管理方法、服务器及存储介质
CN109359157A (zh) * 2018-08-21 2019-02-19 中国平安人寿保险股份有限公司 数据同步生成方法、装置、计算机设备以及存储介质
CN109977169B (zh) * 2019-03-19 2023-05-19 广州品唯软件有限公司 数据同步方法、装置、计算机可读存储介质及系统
CN112015804A (zh) * 2019-05-28 2020-12-01 阿里巴巴集团控股有限公司 数据同步方法、装置、设备及存储介质
CN110502575B (zh) * 2019-08-02 2024-04-30 创新先进技术有限公司 一种数据同步的方法、装置以及设备
CN110673859B (zh) * 2019-08-30 2022-06-17 北京浪潮数据技术有限公司 一种图形数据库部署方法、装置、设备及可读存储介质
CN110704223B (zh) * 2019-09-16 2022-12-13 苏宁云计算有限公司 一种数据库单节点异常的恢复系统和方法
CN111813012A (zh) * 2020-05-26 2020-10-23 广西益江环保科技股份有限公司 一种农村污水智能运维管理系统
CN111723139A (zh) * 2020-06-15 2020-09-29 北京首汽智行科技有限公司 一种数据上报方法
CN112751938B (zh) * 2020-12-30 2023-04-07 上海赋算通云计算科技有限公司 一种基于多集群作业的实时数据同步系统,实现方法以及存储介质
CN112967037B (zh) * 2021-03-16 2022-07-01 武汉育知联信息科技有限公司 一种协同式进度自动管理系统
CN114238269B (zh) * 2021-12-03 2024-01-23 中兴通讯股份有限公司 数据库参数调整方法、装置、电子设备和存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050278392A1 (en) * 2000-07-13 2005-12-15 Microsoft Corporatioan System and method for synchronizing multiple database files
CN101038591A (zh) * 2007-04-11 2007-09-19 华为技术有限公司 数据库同步方法及系统
CN101419615A (zh) * 2008-12-10 2009-04-29 阿里巴巴集团控股有限公司 一种前后台数据库的同步方法及装置
CN101854400A (zh) * 2010-06-09 2010-10-06 中兴通讯股份有限公司 一种数据库同步部署及监控的方法和装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1324844C (zh) * 2004-06-02 2007-07-04 中兴通讯股份有限公司 网管系统向网元同步配置数据的方法
CN101094051B (zh) * 2007-06-27 2011-05-11 中国移动通信集团四川有限公司 数据一致性比对同步的系统和方法
CN101110706A (zh) * 2007-07-23 2008-01-23 中兴通讯股份有限公司 一种配置数据同步方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050278392A1 (en) * 2000-07-13 2005-12-15 Microsoft Corporatioan System and method for synchronizing multiple database files
CN101038591A (zh) * 2007-04-11 2007-09-19 华为技术有限公司 数据库同步方法及系统
CN101419615A (zh) * 2008-12-10 2009-04-29 阿里巴巴集团控股有限公司 一种前后台数据库的同步方法及装置
CN101854400A (zh) * 2010-06-09 2010-10-06 中兴通讯股份有限公司 一种数据库同步部署及监控的方法和装置

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103970840A (zh) * 2014-04-24 2014-08-06 北京佳讯飞鸿电气股份有限公司 一种在人工话务系统中实现数据同步的方法
CN104636485A (zh) * 2015-02-16 2015-05-20 广东省公安厅 基于数据监控的多数据源数据关联方法和装置
CN104636483A (zh) * 2015-02-16 2015-05-20 广东省公安厅 一种数据监控方法
CN104636484A (zh) * 2015-02-16 2015-05-20 广东省公安厅 基于数据监控的监控任务生成方法和装置
CN113609230A (zh) * 2021-09-16 2021-11-05 平安国际智慧城市科技股份有限公司 数据同步异常告警方法、装置、计算机设备和存储介质
CN113836160A (zh) * 2021-09-28 2021-12-24 上海市大数据股份有限公司 一种基于主从同步的数据流状态监控告警系统
CN113836160B (zh) * 2021-09-28 2024-01-23 上海市大数据股份有限公司 一种基于主从同步的数据流状态监控告警系统

Also Published As

Publication number Publication date
CN101854400A (zh) 2010-10-06
CN101854400B (zh) 2015-04-01

Similar Documents

Publication Publication Date Title
WO2011153803A1 (zh) 一种数据库同步部署及监控的方法和装置
CN109327351B (zh) 日志数据的实时采集方法、装置、电子设备及存储介质
WO2021203979A1 (zh) 运维处理方法、装置及计算机设备
CN111459763B (zh) 跨kubernetes集群监控系统及方法
CN113742031B (zh) 节点状态信息获取方法、装置、电子设备及可读存储介质
CN101038591A (zh) 数据库同步方法及系统
WO2016070762A1 (zh) 一种云平台监控方法以及云平台监控系统
JP6957936B2 (ja) 障害解析装置、障害解析方法および障害解析プログラム
WO2023246347A1 (zh) 数字孪生处理方法及数字孪生系统
CN104601673B (zh) 可扩展的高可用服务器分层监控系统
CN107179977B (zh) 基于mpm模型的数据库全自动监控系统
CN110460476A (zh) 一种网络运维管理方法
CN112765272A (zh) 多源数据同步方法、系统及其应用的模型中枢
CN106547861A (zh) 一种智能管理机器节点的数据库的方法及装置
WO2016019729A1 (zh) 一种动态调度方法、系统及计算机存储介质
CN111045697A (zh) 自动化快速部署方法及系统
CN116010169A (zh) 一种基于云原生技术的云平台rds数据库迁移容灾方法
WO2019100520A1 (zh) 任务自动处理方法及系统、客户端、服务器及存储介质
CN106909392A (zh) 基于虚拟化平台的Codis集群服务的部署维护方法
CN110007934B (zh) 分布式数据库部署方法及装置
CN114168672A (zh) 日志数据的处理方法、装置、系统以及介质
CN102436397B (zh) 一种基于windows服务控制器的系统自动运行方法
CN116680012B (zh) 工业软件配置管理系统及方法
JP2000347779A (ja) 監視制御システムの画面構成装置
WO2021047506A1 (zh) 数据统计分析系统、方法及计算机可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10852793

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10852793

Country of ref document: EP

Kind code of ref document: A1