KR100500837B1 - Method for managing common database in network operating systems - Google Patents

Method for managing common database in network operating systems Download PDF

Info

Publication number
KR100500837B1
KR100500837B1 KR10-2002-0059576A KR20020059576A KR100500837B1 KR 100500837 B1 KR100500837 B1 KR 100500837B1 KR 20020059576 A KR20020059576 A KR 20020059576A KR 100500837 B1 KR100500837 B1 KR 100500837B1
Authority
KR
South Korea
Prior art keywords
node
data
log information
information
stored
Prior art date
Application number
KR10-2002-0059576A
Other languages
Korean (ko)
Other versions
KR20040028406A (en
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 주식회사 케이티
Priority to KR10-2002-0059576A priority Critical patent/KR100500837B1/en
Publication of KR20040028406A publication Critical patent/KR20040028406A/en
Application granted granted Critical
Publication of KR100500837B1 publication Critical patent/KR100500837B1/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/2365Ensuring data consistency and integrity
    • 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/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

본 발명은 운용시스템간에 공유하는 정보에 대해 무결성 규칙(integrity rule)을 준수할 수 있도록 하는 운용시스템간 공유정보 관리방법에 관한 것으로서, 네트워크를 통해 운용시스템에 해당하는 노드가 복수개 연결된 상태에서의 운용시스템간 공유정보 관리방법에 있어서, 상기 노드들 중 특정 노드(관리 노드)가 일정 시간을 주기로 각 노드에서 변경된 공유정보에 대한 로그 정보를 수집하여 상기 관리 노드에 노드별로 구축된 데이터베이스에 저장하는 제1과정; 상기 노드별로 구축된 데이터베이스에 저장된 로그 정보를 이용하여 첫번째 노드부터 순차적으로 상기 각 노드에 적용될 기준자료를 검출하는 제2과정; 및 상기 기준자료를 이용하여 상기 각 노드에 구축된 데이터베이스에 저장된 공유정보를 핸들링하는 제3과정으로 이루어진 것을 특징으로 한다.The present invention relates to a method of managing shared information between operating systems that can observe the integrity rule (integrity rule) for information shared between the operating system, the operation in a state in which a plurality of nodes corresponding to the operating system is connected through a network A method of managing sharing information between systems, the method in which a specific node (managed node) among the nodes collects log information about shared information changed in each node at predetermined intervals and stores the log information in a database constructed for each node in the managed node. 1 course; A second step of detecting reference data to be applied to each node sequentially from the first node using log information stored in the database constructed for each node; And a third process of handling sharing information stored in a database constructed at each node by using the reference data.

본 발명은 상기한 구성에 의해, 운용시스템에 해당하는 각 노드마다 공유정보에 대한 무결성 규칙을 적용하기 위한 프로그램을 탑재하지 않아도 공유정보에 대한 무결성을 보장할 수 있게 되고, 특정 운용시스템간의 네트워크가 재설정된 경우에도 로그 정보가 자동적으로 복구되어 시스템의 안정성을 향상시킬 수 있다는 효과가 있다. According to the above-described configuration, the integrity of the shared information can be ensured without having to install a program for applying the integrity rule for the shared information to each node corresponding to the operating system. Even if it is reset, the log information is automatically recovered to improve the stability of the system.

Description

운용시스템간 공유정보 관리방법{Method for managing common database in network operating systems}Method for managing common database in network operating systems

본 발명은 운용시스템간 공유정보 관리방법에 관한 것으로, 보다 상세하게는 운용시스템간에 공유하는 정보에 대해 무결성 규칙(integrity rule)을 준수할 수 있도록 하는 것이다.The present invention relates to a method of managing shared information between operating systems, and more particularly, to comply with an integrity rule for information shared between operating systems.

지역적으로 산재된 망자원의 운용상태를 관리하는 망운용시스템은 효율적인 망자원 관리를 위하여 다른 망운용시스템과 공유하는 자료를 저장하고 있으며, 이러한 자료는 공유정보라 일컫는다.The network management system that manages the operation status of network resources scattered locally stores data shared with other network management systems for efficient network resource management. Such data is called shared information.

상기 공유정보는 복수의 망운용시스템이 접근하여 사용하는 자료이기 때문에, 무결성(integrity)이 보장되어야 하며, 이러한 무결성 보장을 위해 적용되는 무결성 규칙을 준수하기 위해서 두대 이상의 DB서버가 동작하면서 자료가 각 서버에 동시에 존재하면서 항상 동기되는 리플리케이션 옵션(replication option)을 사용하는 것이 일반적이나, 이러한 기능은 DBMS(DataBase Management System)차원에서 이루어지기 때문에 안정적이기는 하지만 고비용이 발생한다는 단점과 모든 서버가 이러한 기능을 사용해야 한다는 제한이 있으며, 타 DBMS와의 연동이 불가하다는 단점이 있다.Since the shared information is a data that is accessed and used by a plurality of network management systems, integrity must be guaranteed, and two or more DB servers operate to comply with the integrity rules applied to ensure such integrity. Although it is common to use replication options that exist on the server at the same time and are always synchronous, these features are stable at the Database Management System (DBMS) level, but they are costly but expensive. There is a limitation to use, and there is a disadvantage that it cannot be linked with other DBMS.

따라서, 본 발명은 상술한 종래의 문제점을 해결하기 위해 이루어진 것으로, 운용시스템을 관리하는 특정 시스템이 각 운용시스템에서 발생된 공유정보의 변경상태를 수집하여 각 운용시스템이 동일한 공유정보를 보유하도록 관리할 수 있는 운용시스템간 공유정보 관리방법을 제공함에 그 목적이 있다.Accordingly, the present invention has been made to solve the above-mentioned conventional problems, and the specific system managing the operating system collects the changed state of the shared information generated in each operating system so that each operating system has the same shared information. The purpose is to provide a method of managing shared information among management systems.

상기한 목적을 달성하기 위해 본 발명의 바람직한 실시예에 따른 운용시스템간 공유정보 관리방법은,Shared information management method between the operating system according to a preferred embodiment of the present invention to achieve the above object,

네트워크를 통해 운용시스템에 해당하는 노드가 복수개 연결된 상태에서의 운용시스템간 공유정보 관리방법에 있어서,In the shared information management method between operating systems in a state that a plurality of nodes corresponding to the operating system is connected through a network,

상기 노드들 중 특정 노드(관리 노드)가 일정 시간을 주기로 각 노드에서 변경된 공유정보에 대한 로그 정보를 수집하여 상기 관리 노드에 노드별로 구축된 데이터베이스에 저장하는 제1과정;A first step in which a specific node (managed node) among the nodes collects log information about shared information changed in each node at predetermined intervals and stores the log information in a database constructed for each node in the managed node;

상기 노드별로 구축된 데이터베이스에 저장된 로그 정보를 이용하여 첫번째 노드부터 순차적으로 상기 각 노드에 적용될 기준자료를 검출하는 제2과정; 및A second step of detecting reference data to be applied to each node sequentially from the first node using log information stored in the database constructed for each node; And

상기 기준자료를 이용하여 상기 각 노드에 구축된 데이터베이스에 저장된 공유정보를 핸들링하는 제3과정으로 이루어진 것을 특징으로 한다. And a third process of handling sharing information stored in a database constructed at each node by using the reference data.

이하, 첨부된 도면을 참조하여 본 발명의 실시예를 보다 상세히 설명한다.Hereinafter, with reference to the accompanying drawings will be described an embodiment of the present invention in more detail.

도 1은 본 발명의 실시예에 따른 운용시스템간 공유정보 관리방법이 적용되는 시스템의 구성도이다.1 is a configuration diagram of a system to which a method for managing sharing information between operating systems according to an embodiment of the present invention is applied.

도 1에 도시된 바와 같이, A노드와 B노드와 C노드와 N노드가 네트워크를 통해 서로 연결된 상태에서 N노드가 A노드와 B노드와 C노드에서 변경된 공유정보에 대해 무결성 규칙을 적용하여 운용시스템간의 공유정보를 관리한다.As shown in FIG. 1, while the A node, the B node, the C node, and the N node are connected to each other through a network, the N node operates by applying an integrity rule to shared information changed in the A node, the B node, and the C node. Manage shared information between systems.

본 발명에서의 노드란 망운용시스템을 의미하며, 하나의 망운용시스템이 여러 개의 시스템으로 구성되어 각각의 시스템에 독립적인 DB를 구축한다면 각각의 독립적인 서버에 해당된다. 또한, 본 발명에서의 프로그램이 운용되는 시스템도 노드가 된다.Node in the present invention means a network management system, if one network management system is composed of several systems to build an independent DB in each system corresponds to each independent server. In addition, the system in which the program of the present invention is operated also becomes a node.

A노드와 B노드와 C노드는 공유정보에 대한 변경내용에 해당하는 로그 정보를 저장하는 DB가 구비되어 있다. Nodes A, B, and C have a DB that stores log information corresponding to changes to shared information.

한편, 각 노드별로 트리거(trigger)에 의한 큐(queue) 개념의 버퍼(buffer) 관리가 이루어지며, 자료변동 내용을 실시간으로 기록하는데, 실시간적 자료의 구축 형태는 data, act_type, act_time 으로 구성된다. 여기서, data는 공유정보의 자료의 record/struct type을 의미하며, act_type은 그 자료에 가해진 DML(Data Manipultaion Language) 종류를 나타낸다. 특정한 프라이머리 키(primary key)에 대한 갱신은 삭제(delete)와 삽입(insert)의 두 자료가 순차적으로 들어가게 하면 된다. Act_time은 N노드상에서 DML이 이루어진 시각을 나타낸다. 참고로, DML은 select문(query문)을 제외한 기타 SQL문을 의미하며, 예로서 상기 DML에는 삽입(insert), 삭제(delete), 갱신(update)이 있다. On the other hand, buffer management of the concept of a queue by triggering is performed for each node, and the data change contents are recorded in real time. The construction form of the real-time data is composed of data, act_type, and act_time. . Here, data means a record / struct type of data of shared information, and act_type indicates the type of DML (Data Manipultaion Language) applied to the data. Updating a particular primary key is done by sequentially entering two pieces of data: delete and insert. Act_time represents the time at which DML was performed on the N node. For reference, DML means other SQL statements except select statements. For example, DML includes insert, delete, and update.

상기한 구성에서 N노드는 해당 노드 개수만큼 로그 정보를 저장할 데이터베이스(N_A, N_B, N_C, …)를 구축한 상태에서, 주기적으로 각 노드에 저장된 로그 정보를 패치하여 해당 노드별로 구축된 데이터베이스에 저장하고, 한번 이동시킨 자료는 해당 노드의 데이터베이스에서 삭제시킨다. In the above configuration, in the state where N nodes have constructed databases N_A, N_B, N_C, ... to store log information as many as the number of nodes, periodically log patches stored in each node and store them in the database constructed for each node. Once moved, the data is deleted from the node's database.

이어, N노드는 주기적으로 특정한 시각에 각 노드별로 저장된 로그 정보를 하나씩 클릭하여 상기 로그 정보에 포함된 변경내용을 각 노드로 직접 행하게 된다.Subsequently, the N node periodically clicks log information stored for each node at a specific time, and directly performs changes included in the log information to each node.

예로서, A노드에서 a→b로의 자료변경이 발생되어, 이에 따른 로그 정보가 N노드로 이동되면 N노드는 B노드와 C노드에 저장된 a라는 자료를 b로 직접 변경하게 된다. 모든 변경작업이 종료되면 N노드의 A노드에 저장된 a→b에 해당하는 로그 정보를 삭제한다.For example, if data change from node A to a → b occurs, and the log information is moved to node N, the node N directly changes the data of a stored in node B and node C to b. When all changes are completed, log information corresponding to a → b stored in node A of node N is deleted.

이하, 도 2 내지 도 6에 도시된 플로우차트를 참조하여 본 발명의 실시예에 따른 운용시스템간 공유정보 관리방법을 보다 구체적으로 설명한다.Hereinafter, a method of managing sharing information between operating systems according to an embodiment of the present invention will be described in more detail with reference to the flowcharts illustrated in FIGS. 2 to 6.

본 발명의 실시예에 따른 운용시스템간 공유정보 관리방법에서 N노드가 대상 노드로부터 수집하는 과정을 도 2에 도시된 플로우차트를 참조하여 설명한다.In the method of managing sharing information between operating systems according to an exemplary embodiment of the present invention, a process of collecting N nodes from target nodes will be described with reference to the flowchart shown in FIG. 2.

Ntime변수에 N노드의 현재 시각을 넣고(S2), 임의의 대상 노드(예컨대, A노드)를 향하여 공유정보에 대한 커서(cusor)를 생성하여 A노드와의 연결을 구축한 후(S4), 상기 A노드의 DB에 저장된 로그 정보를 읽어온다(S6).After inserting the current time of the N node into the Ntime variable (S2), and creating a cursor for the shared information toward an arbitrary target node (for example, A node) to establish a connection with the A node (S4), The log information stored in the DB of the node A is read (S6).

N노드는 상기 A노드로부터 읽어온 로그 정보를 상기 A노드에 대하여 할당된 큐(queue)에 저장하는데(S8), 상기 큐는 임의의 자료구축 형태를 유지하고 각 노드별로 독립된 저장장소에 구축된다. 상기 큐에 저장되는 데이터 형태는 data, act_type, act_time, real_time, s_type 이 된다. 여기서, 상기 real_time은 모든 모드들이 자체 서버상의 시스템 시간이 다른 경우 N노드와 A노드와의 표준시간적 오류를 없애기 위하여 act_time + (N노드의 현재 시각 - A 노드의 현재 시각)이 되고, 상기 시간은 여러 노드들간의 기준이 된다. 또, s_type은 단순히 읽어온 자료인지 아니면 작업을 하다가 네트워크 상의 오류에 의하여 작업이 중지된 자료인지를 구별하는 항목으로서, 대상 노드로부터 읽어온 자료인 경우에는 글로벌(global)로 표기하고, 작업이 중지된 자료인 경우에는 프라이버티(private)로 표기한다.The N node stores log information read from the A node in a queue allocated to the A node (S8), wherein the queue maintains an arbitrary data structure and is constructed in a separate storage location for each node. . Data types stored in the queue are data, act_type, act_time, real_time, and s_type. Here, real_time becomes act_time + (current time of N node-current time of A node) in order to eliminate standard time error between N node and A node when all modes have different system time on their server. It is a reference between several nodes. In addition, s_type is an item that distinguishes whether the data is simply read data or data that has been stopped due to an error on the network while working. In the case of data read from a target node, s_type is marked as global and the work is stopped. In the case of data, it is written as privacy.

상기 단계 S8을 통해 A노드의 로그 정보를 저장한 N노드는 DML을 이용하여 A노드에 저장된 로그 정보를 삭제하고(S10), 상기 A노드에 저장된 로그 정보가 더 있는가를 판단한 후(S14), 상기 판단결과 저장된 로그 정보가 더 있으면(Yes) 단계 S6으로 진행하여 로그 정보를 읽어오는 동작을 반복적으로 수행하고, 상기 판단결과 저장된 로그 정보가 없으면(No) 현재시간이 기준시간을 경과했는가를 판단한다(S16). 상기 단계 S16은 작업이 완료된 현재시간을 기준시간과 비교하여 시간 간격(time interval)을 만족하는지 검사하는 단계로서, 상기 현재시간이 기준시간을 경과하면(No), 초기단계로 진행하여 상술되어진 단계 S2 내지 단계 S16까지의 과정을 반복적으로 수행하는 반면, 상기 현재시간이 기준시간에 미치지 못하면(Yes) 현재시각에서 Ntimer가 주기시간을 뺀 시간만큼 대기하고 있다가 초기단계로 진행하여 상술되어진 단계 S2 내지 단계 S16까지의 과정을 반복적으로 수행한다.The N node storing the log information of node A through step S8 deletes log information stored in node A using DML (S10), and after determining whether there is more log information stored in node A (S14), If there is more stored log information as a result of the determination (Yes), the process proceeds to reading log information repeatedly, and if there is no stored log information (No), it is determined whether the current time has passed the reference time. (S16). The step S16 is a step of checking whether a time interval is satisfied by comparing a current time at which a work is completed with a reference time. When the current time passes a reference time (No), the process proceeds to the initial step and has been described above. While repeating the process from step S2 to step S16, if the current time does not reach the reference time (Yes), Ntimer waits for the time minus the cycle time at the current time, and then proceeds to the initial step and the above-described step S2 The process from to step S16 is repeatedly performed.

상술되어진 과정은 N노드가 각각의 대상 노드에 대해 독립적으로 행해지고, 상기한 바와 같이 각각의 대상 노드로부터 수집되어진 로그 정보는 N노드에 대상 노드별로 확보된 저장영역에 저장된다.The above-described process is performed by N nodes independently for each target node, and log information collected from each target node as described above is stored in a storage area reserved for each target node in the N node.

이어, 상기 N노드가 상기 저장영역에 저장된 로그 정보를 이용하여 기준자료를 검출하는 과정을 도 3에 도시된 플로우차트를 참조하여 설명한다.Next, a process in which the N node detects reference data using log information stored in the storage area will be described with reference to the flowchart shown in FIG. 3.

먼저, 노드 어레이(No array)에 활용할 정수변수 i를 선언하여 1∼N개의 노드에 대해 순차적으로 기준자료 검출과정이 행해지도록 하며, 1번째 노드를 V노드로 정의한다(S300, S302).First, by declaring an integer variable i to be used for a node array (No array), the reference data detection process is sequentially performed for 1 to N nodes, and the first node is defined as a V node (S300 and S302).

각 노드로부터 패치해 온 자료에 대해 커서(cursor)를 선언하여 그 자료를 다시 패치하고(S304), 상기 자료를 해당 변수에 대입한다(S306).A cursor is declared for the data fetched from each node and the data is fetched again (S304), and the data is assigned to the corresponding variable (S306).

이후, N노드는 데이터특성을 나타내는 Vtype이 글로벌(global)인가를 판단하여(S308), 상기 Vtype이 글로벌이면, 상기 Vdata와 동일한 자료를 각 노드에서 검색하여 검색된 Vdata 중 최신의 Vdata를 검색한다(S310).Subsequently, the N node determines whether the Vtype indicating the data characteristic is global (S308). If the Vtype is global, the N node searches for the latest Vdata among the searched Vdata by searching for the same data as the Vdata at each node ( S310).

상기 검색결과가 존재하면(S312에서 Yes), 검색된 노드, 데이터, act_type, real_time, s_type을 변수 Tnode, Vdata, Vact, Vtime, Ttype에 대입한다(S314).If the search result exists (Yes in S312), the searched node, data, act_type, real_time, and s_type are substituted into the variables Tnode, Vdata, Vact, Vtime, and Ttype (S314).

한편, 단계 S308에서의 판단결과 상기 Vtype이 글로벌이 아니면(No), 즉 Vtype이 프라이비트(private)이면, 데이터변경절차를 수행하는데(S320), 상기 데이터변경절차는 도 5에서 구체적으로 설명한다. 참고로, 데이터 특성은 데이터 특성이 글로벌인 자료가 무결성 규칙을 실행하던 도중에 네트워크 장애 또는 락(lock)에 의한 지연이 발생되어 특정 값에 의한 인터럽트(interrupt)가 발생되어 중지되는 경우 해당 자료의 데이터 특성이 프라이비트로 변경되어 N노드에 저장된다.If the Vtype is not global (No), that is, if the Vtype is private, the data change procedure is performed (S320). The data change procedure will be described in detail with reference to FIG. 5. . For reference, the data property is the data of the data when the data with global data property is stopped due to a network interrupt or a delay caused by a lock and an interrupt caused by a specific value occurs while executing the integrity rules. The property is changed to private and stored on the N node.

상기 단계 S320을 통해 데이터변경절차를 수행한 후, 상기 N노드에 구축된 V노드의 데이터베이스에서 Vdata를 삭제하고(S330), 커서의 존재를 판단하여(S232), 커서가 존재하면(S332에서 Yes) 단계 S306으로 진행하여 i번째 노드의 데이터베이스에 저장된 다음 차순의 로그 정보에 대해 기준자료 검출과정을 행한다. After performing the data change procedure through the step S320, delete the Vdata from the database of the V node built in the N node (S330), and determines the existence of the cursor (S232), if the cursor exists (Yes in S332) In step S306, the reference data detection process is performed on the next log information stored in the database of the i-th node.

상기 단계를 통해서, 상기 i번째 노드의 데이터베이스에 저장된 모든 로그 정보에 대한 기준자료 검출과정이 종료되면 해당 i번째 노드에 대한 커서가 클로스(close)되는데, 상기 커서가 클로스 되어 상기 커서의 존재가 판단되지 않으면(S332에서 No) 다음 순서에 해당하는 노드에 대해 기준자료 검출과정이 행해지도록 변수 i를 1 증가시키고(S334), 단계 S302로 진행한다.Through the above steps, when the process of detecting the reference data for all log information stored in the database of the i-th node is finished, the cursor for the i-th node is closed, and the cursor is closed to determine the existence of the cursor. If not (No in S332), the variable i is incremented by one (S334) so that the reference data detection process is performed for the node corresponding to the next step (S334), and the flow proceeds to step S302.

도 3을 통해 기준자료 검출과정이 종료되면, 기준자료 적용과정을 수행하는데 이에 대한 플로우차트는 도 4에 도시된 바와 같다.When the reference data detection process is finished through FIG. 3, the reference data application process is performed, and a flowchart thereof is shown in FIG. 4.

우선, 노드 어레이(node array)로 활용할 j를 선언하고(S400), 해당 어레이 값이 존재하는지를 확인하여(S402), 존재하지 않는다면 커서의 존재를 확인한다(S422). 상기 확인결과, 커서가 존재하지 않으면(S422에서 No) 다음 순서에 해당하는 노드에 대해 기준자료 검출과정이 행해지도록 변수 i를 1 증가시키고(S424), 단계 302로 진행한다.First, j to be used as a node array (node array) is declared (S400), and if the corresponding array value exists (S402), if it does not exist, the existence of a cursor is checked (S422). As a result of the check, if the cursor does not exist (No in S422), the variable i is incremented by 1 so as to perform the reference data detection process for the node corresponding to the next order (S424), and the flow proceeds to step 302.

그러나, 단계 S402에서의 판단결과 해당 어레이 값이 존재하면(Yes), 해당 어레이값이 T노드인가를 판단한다(S404). 여기서, T노드는 도 3의 단계 S314에서 최신 데이터가 검색되어진 노드이다.However, if it is determined in step S402 that the array value exists (Yes), it is determined whether the array value is a T node (S404). Here, the T node is a node whose latest data has been retrieved in step S314 of FIG.

단계 S404에서의 판단결과, 어레이값에 해당하는 노드가 T노드가 아니면(S404에서 No) 어레이값을 V노드로 대입한 후, 데이터변경절차를 수행하는데, 상기 데이터변경절차는 도 5에 도시된 바와 같다.As a result of the determination in step S404, if the node corresponding to the array value is not a T node (No in S404), the data change procedure is performed after assigning the array value to the V node, which is shown in FIG. As shown.

이어, N노드는 상기 N노드에 구축된 V노드의 데이터베이스에서 Vdata를 삭제하고(S410), 다음 순서에 해당하는 노드에 대해 기준자료 적용과정이 행해지도록 변수 j를 1 증가시킨 다음(S412), 단계 S402로 진행한다.Subsequently, the N node deletes Vdata from the database of the V node built in the N node (S410), and increases the variable j by 1 so that the reference data application process is performed for the node corresponding to the next order (S412). Proceed to step S402.

한편, 단계 404에서의 판단결과, 어레이값에 해당하는 노드가 T노드이면(Yes), T노드의 특성이 글로벌인가를 판단하여(S414), 글로벌이면 N노드는 상기 N노드에 구축된 V노드의 데이터베이스에서 Vdata를 삭제하고(S418), 다음 순서에 해당하는 노드에 대해 기준자료 적용과정이 행해지도록 변수 j를 1 증가시킨 다음(S420), 단계 S402로 진행한다.On the other hand, if it is determined in step 404 that the node corresponding to the array value is a T node (Yes), it is determined whether the characteristics of the T node are global (S414), and if it is global, the N node is a V node constructed in the N node. The Vdata is deleted from the database of (S418), the variable j is increased by 1 so that the reference data is applied to the nodes corresponding to the next sequence (S420), and the flow proceeds to step S402.

특히, 단계 S404에서 기준자료가 적용되는 노드(No[j])가 최신 데이터가 저장된 노드(T노드)인가를 판단하여, 상기 노드가 T노드이면서 특성이 글로벌이면 상기 노드에 대한 기준자료 적용과정을 행하지 않음으로서, 최신으로 데이터가 변경된 노드에 대해서는 데이터 변경을 행하지 않는다.In particular, in step S404, it is determined whether the node No [j] to which the reference data is applied is a node (T node) in which the latest data is stored. If the node is a T node and the characteristic is global, the reference data application process for the node is performed. By not doing this, no data change is performed for the node whose data has changed recently.

이어, 도 5에 도시된 플로우차트를 참조하여 도 3의 단계 S320와 도 4의 S408에서 행해지는 데이터변경절차를 상세하게 설명한다.Next, the data change procedure performed in step S320 of FIG. 3 and S408 of FIG. 4 will be described in detail with reference to the flowchart shown in FIG. 5.

먼저, Vdata와 Vact와 Vtime으로 이루어진 V노드 로그 정보로부터 상기 Vact가 삭제(delete)인가를 판단하여(S502), 상기 Vact가 삭제이면 DML을 통해 네트워크를 통해 연결된 어레이값에 해당하는 V노드에 저장된 Vdata를 삭제한다(S504).First, it is determined whether the Vact is deleted from the V node log information including Vdata, Vact, and Vtime (S502). If the Vact is deleted, the data is stored in the V node corresponding to the array value connected through the network through DML. Vdata is deleted (S504).

그리고, 단계 S502에서의 판단결과 상기 Vact가 삭제가 아니면, 상기 Vdata가 상기 V노드에 존재하는가를 확인하여(S506), 존재하면 상기 N노드는 DML을 통해 V노드에 Vdata를 업데이트(update)하고(S508), 단계 S506에서의 판단결과 상기 Vdata가 상기 V노드에 존재하지 않으면 상기 N노드는 DML을 통해 상기 V노드에 Vdata를 신규 저장한다(S510). If the result of the determination in step S502 is that Vact is not deleted, it is checked whether the Vdata exists in the V node (S506). If present, the N node updates Vdata in the V node through DML. In operation S508, if the Vdata is not present in the V node, the N node newly stores Vdata in the V node through DML (S510).

이하, 도 6에 도시된 플로우차트를 참조하여 프라이버티 처리 절차를 구체적으로 설명한다.Hereinafter, a privacy processing procedure will be described in detail with reference to the flowchart shown in FIG. 6.

도 6에 의하면, 도 5에 도시된 단계 S504, 단계 S508, 단계 S510에서 네트워크 상에 연결된 V노드에 저장된 데이터를 핸들링하기 위한 DML을 전송한 후, 기준 시간 내에 V노드로부터 결과값이 전송되지 않으면(S602에서 Yes) 상기 N노드는 V노드와의 연결을 해제하고 실패를 의미하는 flag변수에 1을 저장한다(S604).Referring to FIG. 6, after transmitting the DML for handling data stored in the V nodes connected to the network in steps S504, S508, and S510 shown in FIG. 5, if a result value is not transmitted from the V node within a reference time. (N in S602) The N node releases the connection with the V node and stores 1 in a flag variable indicating failure (S604).

그런 다음, N노드는 N노드에 구축된 V노드의 데이터베이스에 저장된 로그 정보에 포함된 Vtype이 프라이버티로 저장되어 있는가를 확인하여(S606), 상기 Vtype가 프라이버티로 저장되어 있지 않으면, Vtype를 프라이어티로 변경하여 저장한다(S608).Then, the N node checks whether the Vtype included in the log information stored in the database of the V node built in the N node is stored as privacy (S606), and if the Vtype is not stored as privacy, fry the Vtype. Change to the tee and store (S608).

또한, 상술되어진 과정에서 설명되진 않았지만, 상기 단계 S601과 단계 S602에 의해 Vdata의 삭제가 요청되면, 로그 정보의 Vtype이 프라이버티가 아닌 로그 정보의 자료만을 삭제한다.In addition, although not described in the above-described process, when the deletion of the Vdata is requested by the steps S601 and S602, only the data of the log information is deleted, the Vtype of the log information is not privacy.

상술되어진 과정을 통해, DML을 통해 N노드가 V노드에 저장된 데이터를 핸들링하는 과정에서 네트워크 장애 또는 락(lock)에 의해 인터럽트가 발생한 경우, 해당 데이터는 바로 삭제되지 않고, 주기적으로 행해지는 기준자료 검출과정과 기준자료 적용과정에서 우선적으로 처리된다.Through the above-described process, if an interrupt occurs due to a network failure or lock while the N node handles data stored in the V node through DML, the corresponding data is not immediately deleted and is periodically executed. Priority is given during the detection and application of reference data.

이상 설명한 바와 같은 본 발명에 의하면, 운용시스템에 해당하는 각 노드마다 공유정보에 대한 무결성 규칙을 적용하기 위한 프로그램을 탑재하지 않아도 공유정보에 대한 무결성을 보장할 수 있게 되고, 특정 운용시스템간의 네트워크가 재설정된 경우에도 로그 정보가 자동적으로 복구되어 시스템의 안정성을 향상시킬 수 있다는 효과가 있다. According to the present invention as described above, it is possible to ensure the integrity of the shared information without having to install a program for applying the integrity rule for the shared information to each node corresponding to the operating system, the network between the specific operating system Even if it is reset, the log information is automatically recovered to improve the stability of the system.

한편, 본 발명은 상술한 실시예로만 한정되는 것이 아니라 본 발명의 요지를 벗어나지 않는 범위내에서 수정 및 변형하여 실시할 수 있고, 이러한 수정 및 변경 등은 이하의 특허 청구의 범위에 속하는 것으로 보아야 할 것이다.On the other hand, the present invention is not limited to the above-described embodiment, but can be modified and modified within the scope not departing from the gist of the present invention, such modifications and changes should be regarded as belonging to the following claims. will be.

도 1은 본 발명의 실시예에 따른 운용시스템간 공유정보 관리방법이 적용되는 시스템의 구성도.1 is a configuration diagram of a system to which the sharing information management method between operating systems according to an embodiment of the present invention is applied.

도 2 내지 도 6은 본 발명의 실시예에 따른 운용시스템간 공유정보 관리방법을 설명하기 위한 플로우차트.2 to 6 is a flowchart for explaining a method for managing sharing information between operating systems according to an embodiment of the present invention.

Claims (7)

네트워크를 통해 운용시스템에 해당하는 노드가 복수개 연결된 상태에서의 운용시스템간 공유정보 관리방법에 있어서,In the shared information management method between operating systems in a state that a plurality of nodes corresponding to the operating system is connected through a network, 상기 노드들 중 특정 노드(관리 노드)가 일정 시간을 주기로 각 노드에서 변경된 공유정보에 대한 로그 정보를 수집하여 상기 관리 노드에 노드별로 구축된 데이터베이스에 저장하는 제1과정;A first step in which a specific node (managed node) among the nodes collects log information about shared information changed in each node at predetermined intervals and stores the log information in a database constructed for each node in the managed node; 상기 노드별로 구축된 데이터베이스에 저장된 로그 정보를 이용하여 첫번째 노드부터 순차적으로 상기 각 노드에 적용될 기준자료를 검출하는 제2과정; 및A second step of detecting reference data to be applied to each node sequentially from the first node using log information stored in the database constructed for each node; And 상기 기준자료를 이용하여 상기 각 노드에 구축된 데이터베이스에 저장된 공유정보를 핸들링하는 제3과정으로 이루어진 것을 특징으로 하는 운용시스템간 공유정보 관리방법. And a third process of handling sharing information stored in a database constructed at each node by using the reference data. 제 1 항에 있어서,The method of claim 1, 상기 관리노드는 자신을 제외한 각 노드에 대해 독립적으로 로그 정보를 수집하는 것을 특징으로 하는 운용시스템간 공유정보 관리방법.The management node is a method for managing shared information between operating systems, characterized in that to collect log information independently for each node except itself. 제 1 항에 있어서,The method of claim 1, 상기 제1과정에서 수집되는 로그 정보는 Log information collected in the first process is 변경된 데이터가 기록된 "data", 데이터변경형태가 기록된 "act_type", 상기 관리 노드가 상기 로그 정보를 읽어온 시각이 기록된 "act_time"이고, "Data" in which the changed data is recorded, "act_type" in which the data change type is recorded, "act_time" in which the time at which the management node reads the log information is recorded; 상기 로그 정보를 데이터베이스에 저장할 때에는, 변경된 데이터가 기록된 "data", 데이터변경형태가 기록된 "act_type", 상기 "act_time"에 대해 시간오차를 보정한 시각이 기록된 "real_time"과, 데이터특성이 기록된 "s_type"를 저장함을 특징으로 하는 운용시스템간 공유정보 관리방법. When storing the log information in the database, " data " in which the changed data is recorded, " act_type " in which the data change form is recorded, " real_time " in which the time error is corrected for the " act_time " Method of managing shared information between operating systems, characterized in that for storing the recorded "s_type". 제 3 항에 있어서,The method of claim 3, wherein 제 2 과정에서 In the second process 상기 로그 정보의 데이터특성이 "글로벌"이면서 상기 data에 대한 최신 데이터가 다른 노드(T노드)에 존재하면, 상기 최신 데이터가 포함된 로그 정보를 상기 data에 대한 기준자료로 선택하고, 상기 로그 정보의 데이터특성이 "프라이버티"이면 상기 data를 기준자료로 선택하는 것을 특징으로 하는 운용시스템간 공유정보 관리방법. If the data property of the log information is "global" and the latest data for the data exists in another node (T node), the log information including the latest data is selected as reference data for the data, and the log information. If the data characteristic of the "privacy" is characterized in that the data is selected as reference data. 제 4 항에 있어서,The method of claim 4, wherein 상기 기준자료로 선택된 data가 변경된 노드에 대해서는 상기 제 3 과정을 수행하지 않고 상기 관리 노드상에 구축된 상기 노드의 데이터베이스에서 상기 data를 삭제하는 것을 특징으로 하는 운용시스템간 공유정보 관리방법. And deleting the data from the database of the node constructed on the management node without performing the third process on the node whose data selected as the reference data is changed. 제 3 항에 있어서,The method of claim 3, wherein 상기 제3과정에서 In the third process 상기 기준자료의 데이터변경형태가 "삭제"이면 해당 노드에 저장된 기준자료에 해당하는 data를 삭제하고, 상기 데이터변경형태가 "삭제"가 아니면 상기 노드에 상기 data가 기저장되었는가를 판단하여 기저정되었으면 상기 data을 갱신 저장하고, 상기 data가 기저장되지 않았으면 상기 data를 신규 저장하는 것을 특징으로 하는 운용시스템간 공유정보 관리방법. If the data change type of the reference data is "delete", the data corresponding to the reference data stored in the corresponding node is deleted. If the data change type is not "delete", it is determined whether the data is already stored in the node. If the data is updated and stored, and if the data has not been stored previously, the shared information management method between operating systems, characterized in that for storing new data. 제 1 항에 있어서,The method of claim 1, 상기 제 3 과정에 이어서,Following the third process, 상기 데이터베이스에서 상기 data를 삭제하는 제 4 과정을 더 포함하는 것을 특징으로 하는 운용시스템간 공유정보 관리방법. And a fourth process of deleting the data from the database.
KR10-2002-0059576A 2002-09-30 2002-09-30 Method for managing common database in network operating systems KR100500837B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR10-2002-0059576A KR100500837B1 (en) 2002-09-30 2002-09-30 Method for managing common database in network operating systems

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR10-2002-0059576A KR100500837B1 (en) 2002-09-30 2002-09-30 Method for managing common database in network operating systems

Publications (2)

Publication Number Publication Date
KR20040028406A KR20040028406A (en) 2004-04-03
KR100500837B1 true KR100500837B1 (en) 2005-07-12

Family

ID=37330616

Family Applications (1)

Application Number Title Priority Date Filing Date
KR10-2002-0059576A KR100500837B1 (en) 2002-09-30 2002-09-30 Method for managing common database in network operating systems

Country Status (1)

Country Link
KR (1) KR100500837B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012046976A2 (en) * 2010-10-07 2012-04-12 (주)네오위즈게임즈 Method and terminal for collecting logs using a shared memory

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100486725B1 (en) * 2002-11-06 2005-05-03 삼성전자주식회사 Method of managing network operation information in mobile communication system
KR100748697B1 (en) * 2006-03-17 2007-08-13 삼성전자주식회사 Method and system for distributed database multiple connection with application

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR970049759A (en) * 1995-12-27 1997-07-29 이준 How to Provide Data Integrity in Non-Distributed Database Systems
KR19990086665A (en) * 1998-05-29 1999-12-15 김영환 How to maintain data consistency and integrity between systems
KR20000042104A (en) * 1998-12-24 2000-07-15 이계철 Method for managing database of electronic exchange
KR20010045662A (en) * 1999-11-05 2001-06-05 서평원 System and Method for Guaranteeing Integrity of Database in the Switching System

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR970049759A (en) * 1995-12-27 1997-07-29 이준 How to Provide Data Integrity in Non-Distributed Database Systems
KR19990086665A (en) * 1998-05-29 1999-12-15 김영환 How to maintain data consistency and integrity between systems
KR20000042104A (en) * 1998-12-24 2000-07-15 이계철 Method for managing database of electronic exchange
KR20010045662A (en) * 1999-11-05 2001-06-05 서평원 System and Method for Guaranteeing Integrity of Database in the Switching System

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012046976A2 (en) * 2010-10-07 2012-04-12 (주)네오위즈게임즈 Method and terminal for collecting logs using a shared memory
WO2012046976A3 (en) * 2010-10-07 2012-05-31 (주)네오위즈게임즈 Method and terminal for collecting logs using a shared memory

Also Published As

Publication number Publication date
KR20040028406A (en) 2004-04-03

Similar Documents

Publication Publication Date Title
CA2434081C (en) Data structures utilizing objects and pointers in the form of a tree structure
US6446089B1 (en) Method of using a cache to determine the visibility to a remote database client of a plurality of database transactions
JP2023546249A (en) Transaction processing methods, devices, computer equipment and computer programs
CN109033186A (en) Data consistency detection, device, storage medium and electronic equipment
CN105138601B (en) A kind of graphic mode matching method for supporting fuzzy constraint relationship
US20130080456A1 (en) Apparatus and methods for organizing data items having time of life intervals
AU2002249161A1 (en) Data structure for information systems
US6480849B1 (en) Efficient concurrency control method for high dimensional index structures
US8959096B2 (en) Apparatus and methods for organizing data items by directed acyclic graphs
CN103795811A (en) Information storage and data statistical management method based on meta data storage
CN115858513A (en) Data governance method, data governance device, computer equipment and storage medium
US9262552B2 (en) Apparatus and methods for organizing data items by directed graph
Garbacz et al. Identity of historical localities in information systems
JP2005242904A (en) Document group analysis device, document group analysis method, document group analysis system, program and storage medium
CN109857924A (en) A kind of big data analysis monitor information processing system and method
KR100500837B1 (en) Method for managing common database in network operating systems
WO2023083237A1 (en) Graph data management
EP3995972A1 (en) Metadata processing method and apparatus, and computer-readable storage medium
US20200249876A1 (en) System and method for data storage management
KR102354343B1 (en) Spatial indexing method and apparatus for blockchain-based geospatial data
KR102139292B1 (en) Geographic information method based spatial dbms for combat resource analysis
US7159019B2 (en) Information collection apparatus and method
CN110781430B (en) Novel virtual data center system of internet and construction method thereof
Kvet Database Block Management using Master Index
KR101919816B1 (en) Consistency checking in database sharding environment

Legal Events

Date Code Title Description
A201 Request for examination
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20120702

Year of fee payment: 8

FPAY Annual fee payment

Payment date: 20130701

Year of fee payment: 9

LAPS Lapse due to unpaid annual fee