KR19990078536A - Database duplication method for intelligent service system - Google Patents

Database duplication method for intelligent service system Download PDF

Info

Publication number
KR19990078536A
KR19990078536A KR1019990006903A KR19990006903A KR19990078536A KR 19990078536 A KR19990078536 A KR 19990078536A KR 1019990006903 A KR1019990006903 A KR 1019990006903A KR 19990006903 A KR19990006903 A KR 19990006903A KR 19990078536 A KR19990078536 A KR 19990078536A
Authority
KR
South Korea
Prior art keywords
computer system
heartbeat signal
database
activated
data
Prior art date
Application number
KR1019990006903A
Other languages
Korean (ko)
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 KR19990078536A publication Critical patent/KR19990078536A/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/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Abstract

본 발명은, 동기화된 이중의 데이터베이스를 사용하여 장애 발생시에도 서비스를 중단하지 않으면서 안정적인 동작을 가능하게 하기 위하여, 데이터를 저장하기 위한 데이터베이스의 이중화 방법에 있어서, 독립적인 복수개의 데이터베이스를 제공하는 단계; 상기 복수개의 데이터베이스를 운용하는 복수개의 컴퓨터 시스템을 제공하는 단계; 상기 복수개의 컴퓨터 시스템 중의 어느 하나를 활성화된 컴퓨터 시스템으로 지정하는 단계; 상기 복수개의 컴퓨터 시스템 중의 어느 하나를 대기중인 컴퓨터 시스템으로 지정하는 단계; 상기 활성화된 컴퓨터 시스템 및 대기중인 컴퓨터 시스템에서 모두 데이터를 수신하여 각각의 컴퓨터 시스템이 운용하는 데이터베이스에 저장하는 단계; 대기중인 컴퓨터 시스템에서 저장을 완료한 데이터에 관한 정보를 상기 활성화된 컴퓨터 시스템이 획득하는 단계; 활성화된 컴퓨터 시스템에서 저장을 완료한 데이터에 관한 정보를 상기 대기중인 컴퓨터 시스템이 획득하는 단계를 포함하는 데이터베이스의 이중화 방법을 제공한다.The present invention provides a plurality of independent databases in a method of duplicating a database for storing data in order to enable stable operation without interrupting service even when a failure occurs by using a synchronized dual database. ; Providing a plurality of computer systems operating the plurality of databases; Designating any one of the plurality of computer systems as an activated computer system; Designating any one of the plurality of computer systems as a standby computer system; Receiving data from both the activated computer and the standby computer system and storing the data in a database operated by each computer system; Acquiring, by the activated computer system, information about data which has been stored in a waiting computer system; It provides a method of redundancy of the database comprising the step of obtaining the information on the data that has been stored in the activated computer system by the waiting computer system.

Description

지능망 서비스 시스템을 위한 데이터베이스의 이중화 방법{DATABASE DUPLICATION METHOD FOR INTELLIGENT SERVICE SYSTEM}Database redundancy method for intelligent network service system {DATABASE DUPLICATION METHOD FOR INTELLIGENT SERVICE SYSTEM}

본 발명은 지능망 서비스(Intelligent Network Service)에 관한 것으로, 특히 지능망 서비스의 각종 데이터를 저장하는 데이터베이스의 이중화에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to intelligent network services, and more particularly, to duplication of a database for storing various types of data of intelligent network services.

일반적으로 지능망(Intelligent Network)이라 함은, 각 노드가 유기적으로 결합된 네트워크로서 음성 안내, 이중 톤 다중 주파수 디지트(Double Tone Multi Frequency Digit)의 수집, 음성 녹음 등, 특수 자원(Special Resource ; SR)을 활용한 다양한 지능형 정보 서비스를 제공할 수 있는 것을 의미한다. 이러한 지능망에서는 그 네트워크 내의 교환기나 제어 노드를 다면적으로 이용하고, 각종 데이터망을 사용하여 유기적으로 결합한다.In general, an intelligent network is a network in which each node is organically coupled, and includes a special resource (SR) such as voice guidance, collection of double tone multi frequency digits, and voice recording. Means that can provide a variety of intelligent information services utilizing. In such an intelligent network, a switch or a control node in the network is multifaceted and organically combined using various data networks.

상기한 바와 같이, 지능망에서 제공되는 지능형 정보 서비스에는 사용자의 조작에 따라 음성을 녹음하거나 이미 기록되어 있는 음성을 재생하는 서비스도 제공한다. 이러한 서비스를 제공하기 위하여는 디지털화된 음성 데이터와 제공되는 서비스에 관련된 각종 프로그램 정보 및 그에 사용되는 다양한 사용자 정보와 같은 데이터 등을 대용량 기억 장치를 사용하여 데이터베이스화하고 저장시켜 유지하여야 한다.As described above, the intelligent information service provided by the intelligent network also provides a service of recording a voice or reproducing an already recorded voice according to a user's operation. In order to provide such a service, data such as digitized voice data, various program information related to a provided service, and various user information used therein should be databased, stored, and maintained using a mass storage device.

그러나, 상기와 같은 대용량 데이터베이스를 저장하는 기억 장치는, 시스템 부하량의 변동이나 예기치 못한 기계적인 사고 등에 의하여 장애를 일으킬 수 있고, 이러한 기억 장치의 장애로 인하여 지능형 서비스의 품질이 저하되는 문제점이 있었다.However, the storage device storing the large database as described above may cause a failure due to a change in system load or an unexpected mechanical accident, and the quality of the intelligent service may be degraded due to the failure of the storage device.

그리하여, 상기와 같은 문제점을 해결하기 위한 종래의 방식으로서, 기억 장치를 제어하는 2개의 컴퓨터를 구비하고, 그 중의 하나를 활성화하여 운용하며 다른 컴퓨터는 대기 상태로 유지한다. 활성화된 컴퓨터에 장애가 발생하는 경우, 대기중인 컴퓨터가 발생한 장애의 종류 및 내용을 추적하여 복구하고 스스로 활성화하여 대체하는 방식을 사용하였다.Thus, as a conventional method for solving the above problems, there are provided two computers for controlling the storage device, one of which is activated and operated, and the other computer is kept in the standby state. When a failure occurs in the activated computer, the standby computer tracks the type and contents of the failure, recovers it, activates itself and replaces it.

그러나, 이러한 방식으로는 장애를 추적하고 복구하여 대체하기까지 상당한 시간이 소요되어 서비스의 품질이 개선되는 효과가 적었고, 대기중인 컴퓨터가 장애의 발생을 감지하지 못하는 경우도 있었으며, 심지어 활성화된 컴퓨터가 기계적으로 손상을 받은 경우에는 사용자에게 제공하여야 할 데이터를 복구하지 못하는 경우도 발생하였다.However, this approach took considerable time to track down, recover from, and replace the failure, resulting in little improvement in the quality of service, in some cases the standby computer was unable to detect the failure, and even the active computer In the case of mechanical damage, the data that should be provided to the user could not be recovered.

따라서, 본 발명의 목적은, 동기화된 이중의 데이터베이스를 사용하여 장애 발생시에도 서비스를 중단하지 않으면서 안정적인 동작을 가능하게 하는 데이터베이스의 이중화 방식을 제공하는 것이다.Accordingly, an object of the present invention is to provide a duplexing scheme of a database that enables stable operation without interrupting service even when a failure occurs by using a synchronized dual database.

도 1은 본 발명의 이중화 방법에 의하여 이중화된 데이터베이스를 포함하는 컴퓨터 시스템의 개념적 블록도.1 is a conceptual block diagram of a computer system including a database duplicated by the duplication method of the present invention.

도 2는 본 발명의 이중화 방법에 의한 데이터베이스 동기화 방법을 설명하기 위한 도면.2 is a view for explaining a database synchronization method according to the duplication method of the present invention.

* 도면의 주요 부분의 부호의 설명* Explanation of the symbols of the main parts of the drawings

10, 20 : 컴퓨터 시스템 100, 110 : 컴퓨터10, 20: computer system 100, 110: computer

102, 112 : 제어기 104, 114 : 데이터베이스102, 112: controller 104, 114: database

120 : 네트워크120: network

상기의 목적을 달성하기 위하여, 본 발명은 데이터를 저장하기 위한 데이터베이스의 이중화 방법에 있어서, 독립적인 복수개의 데이터베이스를 제공하는 단계; 상기 복수개의 데이터베이스를 운용하는 복수개의 컴퓨터 시스템을 제공하는 단계; 상기 복수개의 컴퓨터 시스템 중의 어느 하나를 활성화된 컴퓨터 시스템으로 지정하는 단계; 상기 복수개의 컴퓨터 시스템 중의 어느 하나를 대기중인 컴퓨터 시스템으로 지정하는 단계; 상기 활성화된 컴퓨터 시스템 및 대기중인 컴퓨터 시스템에서 모두 데이터를 수신하여 각각의 컴퓨터 시스템이 운용하는 데이터베이스에 저장하는 단계; 대기중인 컴퓨터 시스템에서 저장을 완료한 데이터에 관한 정보를 상기 활성화된 컴퓨터 시스템이 획득하는 단계; 활성화된 컴퓨터 시스템에서 저장을 완료한 데이터에 관한 정보를 상기 대기중인 컴퓨터 시스템이 획득하는 단계를 포함하는 데이터베이스의 이중화 방법을 제공한다.In order to achieve the above object, the present invention provides a method for duplication of a database for storing data, the method comprising: providing a plurality of independent databases; Providing a plurality of computer systems operating the plurality of databases; Designating any one of the plurality of computer systems as an activated computer system; Designating any one of the plurality of computer systems as a standby computer system; Receiving data from both the activated computer and the standby computer system and storing the data in a database operated by each computer system; Acquiring, by the activated computer system, information about data which has been stored in a waiting computer system; It provides a method of redundancy of the database comprising the step of obtaining the information on the data that has been stored in the activated computer system by the waiting computer system.

이하, 첨부된 도면을 참조하여 본 발명에 관하여 상세히 설명한다.Hereinafter, with reference to the accompanying drawings will be described in detail with respect to the present invention.

도 1을 참조하면, 도 1은 본 발명의 이중화 방법에 의하여 이중화된 데이터베이스를 포함하는 컴퓨터 시스템의 개념적 블록도이다. 도시된 바와 같이, 본 발명에 의한 이중화 방법에 의하여 이중화된 컴퓨터 시스템에서는, 네트워크(120)에 접속된 제 1 및 제 2 컴퓨터 시스템(10 및 20)과, 상기 제 1 및 제 2 컴퓨터 시스템(10 및 20)으로부터의 각종 데이터를 저장하며 상호 독립적으로 동작하는 제 1 및 제 2 데이터베이스(104 및 114)를 포함한다. 상기 제 1 및 제 2 컴퓨터 시스템(10 및 20)은 각각 상기 네트워크(120)로부터의 데이터를 수신하거나 송신하기 위한 소정의 프로그램을 운용하는 제 1 및 제 2 컴퓨터(100 및 110)와, 상기 제 1 및 제 2 컴퓨터(100 및 110)로부터의 데이터 또는 명령어를 수신하여 상기 제 1 및 제 2 데이터베이스(104 및 114)를 제어하기 위한 제 1 및 제 2 제어기(102 및 112)를 포함한다. 상기 제 1 및 제 2 컴퓨터(100 및 110)는 상기 네트워크(120)로부터 데이터 또는 명령어 등을 수신하고 그에 응답하여 적절한 서비스를 제공하기 위한 프로그램을 내장하고 있어, 외부로부터 제 3 자(이하, "서비스 사용자" 또는 "사용자"라 함)에게 소정의 서비스를 제공할 수 있다.Referring to FIG. 1, FIG. 1 is a conceptual block diagram of a computer system including a database duplicated by the duplication method of the present invention. As shown, in a computer system duplexed by the duplication method according to the present invention, the first and second computer systems 10 and 20 connected to the network 120, and the first and second computer systems 10 And first and second databases 104 and 114 that store various data from 20 and operate independently of each other. The first and second computer systems 10 and 20 respectively include first and second computers 100 and 110 for operating predetermined programs for receiving or transmitting data from the network 120, and the first and second computer systems 10 and 20, respectively. First and second controllers 102 and 112 for receiving data or instructions from the first and second computers 100 and 110 to control the first and second databases 104 and 114. The first and second computers 100 and 110 may include a program for receiving data or commands from the network 120 and providing appropriate services in response thereto, so that a third party (hereinafter, " Service user "or" user ").

상기 제 1 및 제 2 컴퓨터 시스템(10 및 20) 중의 어느 하나는 운용자에 의하여 그 시동시에 활성화된 것으로 지정되며, 나머지 하나는 대기중인 것으로 지정된다. 설명의 편의를 위하여 이하에서는 제 1 컴퓨터 시스템(10)이 활성화중인 것으로, 또한 제 2 컴퓨터 시스템(20)이 대기중인 것으로 지정되었다고 가정한다.One of the first and second computer systems 10 and 20 is designated by the operator as being activated at startup and the other is designated as waiting. For convenience of explanation, hereinafter, it is assumed that the first computer system 10 is designated as being active and that the second computer system 20 is designated as waiting.

활성화된 제 1 컴퓨터 시스템(10)은 상기한 바와 같이, 외부로부터 접속한 서비스 사용자가 원하는 서비스를 제공하기 위하여, 상기 사용자로부터의 명령이나 데이터를 수신한다. 상기 제 1 컴퓨터(10)는 사용자가 원하는 서비스의 내용에 따라 사용자에게 제공되어야 할 데이터가 데이터베이스에 저장되어 있는 경우 또는 데이터를 저장시켜야 하는 경우에는, 상기 제 1 제어기(102)에게 데이터의 추출이나 저장에 필요한 관련 정보 및 명령을 하달하고, 상기 제 1 제어기(102)는 상기 제 1 데이터베이스(104)를 제어하여 상기 제 1 컴퓨터(100)가 요구한 데이터를 회신하거나 저장한다.As described above, the activated first computer system 10 receives a command or data from the user in order to provide a service desired by a service user connected from the outside. When the data to be provided to the user is stored in a database or when the data is to be stored, the first computer 10 may extract the data to the first controller 102. Receiving relevant information and instructions for storage, the first controller 102 controls the first database 104 to return or store the data requested by the first computer 100.

이러한 동작이 진행중인 동안에, 상기 대기중인 제 2 컴퓨터 시스템(20)은, 상기 제 1 컴퓨터 시스템(10)이 사용자로부터 수신한 데이터와 명령을 동일하게 수신하고, 상기 제 1 컴퓨터(100) 및 제 1 제어기(104)와 제 1 데이터베이스(104)가 수행하는 방식과 동일한 방식으로 데이터를 저장한다. 단, 상기 제 2 컴퓨터 시스템(20)은 대기중인 것으로 지정되었으므로, 사용자에게 데이터를 회신하는 등의 외부와의 접속은 수행하지 않는다. 사용자는 네트워크를 거쳐 어느 컴퓨터가 활성화된 것인지를 알 수 없으며, 나아가 실재로 복수개의 컴퓨터가 데이터를 수신하고 저장하는 것 자체에 관하여도 알 수 없다.While this operation is in progress, the waiting second computer system 20 receives the same data and instructions that the first computer system 10 receives from the user, and the first computer 100 and the first computer. The data is stored in the same way that the controller 104 and the first database 104 do. However, since the second computer system 20 is designated as waiting, no connection with the outside such as returning data to the user is performed. The user cannot know which computer is activated via the network, and furthermore, the user cannot actually know about the fact that a plurality of computers receive and store data.

따라서, 상기 제 1 컴퓨터 시스템(10)에 의하여 운용되는 제 1 데이터베이스(104)에 저장된 데이터와, 상기 제 2 컴퓨터 시스템(20)에 의하여 운용되는 제 2 데이터베이스(104)에 저장된 데이터는 완전히 동일하게 되며, 활성화되어 있는 상기 제 1 컴퓨터(100), 제 1 제어기(102) 또는 제 1 데이터베이스(104)의 어느 곳에서 장애가 발생하더라도 대기중인 제 2 컴퓨터 시스템(20)이 즉시 대체하여 중단 없이 서비스를 제공할 수 있게 된다.Therefore, the data stored in the first database 104 operated by the first computer system 10 and the data stored in the second database 104 operated by the second computer system 20 are exactly the same. If a failure occurs anywhere in the active first computer 100, the first controller 102, or the first database 104, the waiting second computer system 20 immediately replaces the service without interruption. It can be provided.

특히, 상기 본 발명의 이중화 방법에 의한 제 1 및 제 2 데이터베이스(104 및 114)는 논리적으로 독립적이면 충분한 것이며, 반드시 물리적으로 별개인 복수개의 기억 장치에 존재할 필요는 없다. 또한, 상기 제 1 및 제 2 데이터베이스(104 및 114)에 동일한 데이터가 저장되는 것을 보장하기 위하여는 별도의 데이터베이스 동기화 알고리즘이 요구된다. 그것은, 상기 제 1 컴퓨터(100)와 제 2 컴퓨터(110)가 네트워크를 통하여 동일한 데이터를 수신하는 시점이 각각 다를 수 있고, 상기 제 1 및 제 2 컴퓨터(100 및 110)의 처리 속도나 상기 제 1 및 제 2 제어기(102 및 112) 또는 제 1 및 제 2 데이터베이스(104 및 114)의 처리 속도 등이 다를 수 있기 때문이다.In particular, the first and second databases 104 and 114 by the duplication method of the present invention are sufficient to be logically independent, and do not necessarily exist in a plurality of physically separate storage devices. In addition, a separate database synchronization algorithm is required to ensure that the same data is stored in the first and second databases 104 and 114. That is, the time points at which the first computer 100 and the second computer 110 receive the same data through a network may be different, respectively, and the processing speeds of the first and second computers 100 and 110 may be different from each other. This is because the processing speed of the first and second controllers 102 and 112 or the first and second databases 104 and 114 may be different.

이를 위하여, 상기 제 1 컴퓨터 시스템(10)과 제 2 컴퓨터 시스템(20)은 각각의 데이터베이스에 대한 별도의 데이터 큐를 운용할 수 있다. 즉, 도 2를 참조하면, 도 2는 본 발명의 이중화 방법에 의한 데이터베이스 동기화 방법을 설명하기 위한 도면이다. 도시된 바와 같이, 제 1 컴퓨터 시스템(10)에서는 외부로부터 수신되는 데이터의 목록을 기록하는 제 1 큐(Q1)(200)를 운용하며, 상기 제 2 컴퓨터에서는 이와 동일한 기능을 수행하는 제 2 큐(Q2)(202)를 운용한다. 나아가, 각 컴퓨터에서는 상대방 컴퓨터가 수신된 데이터들 중에서 어느 데이터까지 각각의 데이터베이스에 저장을 마쳤는가를 기록하는 별도의 데이터 큐들을 각각 운용한다. 즉, 제 1 컴퓨터 시스템(10)에서는 제 2 컴퓨터 시스템(20)이 수신한 데이터들의 목록중에서 저장을 완료한 목록을 기록하는 제 3 큐(Q3)(204)를 운용하며, 제 2 컴퓨터 시스템(20)에서는 제 1 컴퓨터 시스템(10)에 대하여 동일한 기능을 수행하는 제 4 큐(Q4)(206)를 운용한다. 이러한 방식에 의하여, 각 컴퓨터에서는 상대방의 데이터베이스가 어느 데이터까지 저장하였는가를 확인할 수 있게 되고, 예컨대 특정 시점에서 활성화된 제 1 컴퓨터 시스템(10)에 장애가 발생하여 미처 저장하지 못한 데이터가 존재하는 경우에도, 대기 중이던 제 2 컴퓨터 시스템(20)은 그 데이터들의 유실 없이 서비스를 지속할 수 있게 된다. 그러나, 상기한 바와 같이 논리적인 두 개의 큐를 각각의 컴퓨터 시스템에서 운영하는 방식의 데이터베이스 동기화는 본 발명의 바람직한 실시예의 하나일 뿐이며, 제 1 및 제 2 데이터베이스(104 및 114)를 소정의 주기마다 직접 비교하는 방식의 프로그램을 내부적으로 수행하는 등의 다양한 방법에 의하여 구현될 수 있음을 주의하여야 한다.To this end, the first computer system 10 and the second computer system 20 may operate separate data queues for each database. That is, referring to FIG. 2, FIG. 2 is a view for explaining a database synchronization method by the duplication method of the present invention. As shown, the first computer system 10 operates a first queue (Q1) 200 for recording a list of data received from the outside, and the second computer performs a second queue performing the same function. (Q2) (202) is operated. Furthermore, each computer operates separate data queues that record which of the received data is stored in each database. That is, the first computer system 10 operates a third queue (Q3) 204 for recording a list of completed storage among the list of data received by the second computer system 20, and the second computer system ( In operation 20, a fourth queue Q4 206 that performs the same function with respect to the first computer system 10 is operated. In this way, each computer can check up to what data the other party's database is stored. For example, even when there is a failure in the activated first computer system 10 at a specific point in time and there is data that cannot be stored. In this case, the second computer system 20, which is waiting, can continue its service without losing its data. However, as described above, the database synchronization of two logical queues in each computer system is only one of the preferred embodiments of the present invention, and the first and second databases 104 and 114 are changed at predetermined intervals. It should be noted that the method may be implemented by various methods such as executing a program of a direct comparison method internally.

한편, 대기중인 제 2 컴퓨터 시스템(20)과 활성화된 제 1 컴퓨터 시스템(10)은 상호간에 별도의 접속을 구비하여 활성화된 컴퓨터 시스템(10)에 장애가 발생하였는지를 점검하는 하트 비트 신호(heart beat signal ; 이하 "HB 신호"라 함)를 송수신한다. 본 발명의 바람직한 실시예에 의하면, 상기 HB 신호는 다음의 표 1에 기재된 바와 같은 네 가지 타입(type)의 메시지로 이루어진다. 즉,Meanwhile, the standby second computer system 20 and the activated first computer system 10 have separate connections with each other, and a heart beat signal for checking whether a failure occurs in the activated computer system 10. &Quot; HB signal " hereinafter). According to a preferred embodiment of the present invention, the HB signal consists of four types of messages as shown in Table 1 below. In other words,

메시지 타입Message type 발신지Origin 수신지Destination 조회(INQ)Inquiry (INQ) 대기 컴퓨터(제 2 컴퓨터)Standby computer (second computer) 활성 컴퓨터(제 1 컴퓨터)Active computer (primary computer) 확인(ACK)ACK 활성 컴퓨터(제 1 컴퓨터)Active computer (primary computer) 대기 컴퓨터(제 2 컴퓨터)Standby computer (second computer) 점검(CHK)Check (CHK) 활성 컴퓨터(제 1 컴퓨터)Active computer (primary computer) 대기 컴퓨터(제 2 컴퓨터)Standby computer (second computer) 점검확인(CHK_ACK)Check Confirmation (CHK_ACK) 대기 컴퓨터(제 2 컴퓨터)Standby computer (second computer) 활성 컴퓨터(제 1 컴퓨터)Active computer (primary computer)

본 발명의 바람직한 실시예에 의하면, 상기 조회(INQ) HB 신호는 대기중인 컴퓨터 시스템(20)에 의하여 매 0.5 초마다 발신되며, 활성화된 컴퓨터 시스템(10)은 그에 대한 응답으로서 확인(ACK) HB 신호를 발신한다. 그러나, 상기 대기중인 컴퓨터 시스템(20)이 상기 조회(INQ) HB 신호가 발신한 후로부터 소정의 타임아웃(timeout) 시간(예컨대 1초)이 지난 후에도 확인(ACK) HB 신호를 수신하지 못한다면, 이때에는 상기 활성화된 컴퓨터 시스템(10)에 장애가 발생한 것으로 인식할 수 있다. 본 발명의 바람직한 실시예에 의하면, 연속하여 세 번의 조회(INQ) HB 신호에 대한 확인(ACK) HB 신호를 수신하지 못하는 경우에 장애가 발생한 것으로 인식하도록 한다.According to a preferred embodiment of the present invention, the INQ HB signal is sent by the waiting computer system 20 every 0.5 seconds, and the activated computer system 10 responds with an acknowledgment (ACK) HB. Send a signal. However, if the waiting computer system 20 does not receive an acknowledgment (HB) signal even after a predetermined timeout time (e.g. one second) has elapsed since the inquiry (QQ) HB signal originated, In this case, it may be recognized that a failure occurs in the activated computer system 10. According to a preferred embodiment of the present invention, when the acknowledgment (ACK) HB signal for three consecutive INQ HB signals is not received, a failure is recognized.

한편, 상기 활성화된 컴퓨터 시스템(10)에서도 데이터베이스의 동일성을 유지하기 위하여 대기중인 컴퓨터 시스템(20)의 동작 여부를 점검하여야 한다. 따라서, 활성화된 컴퓨터 시스템(10)이 소정의 타임아웃 시간(예컨대 1초) 동안 조회(INQ) HB 신호를 수신하지 못하였다면, 대기중인 컴퓨터 시스템(20)으로 점검(CHK) HB 신호를 발신한다. 만약 대기중인 컴퓨터 시스템(20)에 별다른 이상이 있는 경우가 아니었다면, 즉 네트워크 선로상의 일시적인 결함이나, 전송되는 신호가 유실되는 경우와 같은 경우였다면, 대기중인 컴퓨터 시스템(20)은 점검확인(CHK_ACK) HB 신호를 활성화된 컴퓨터 시스템(10)으로 발신한다. 그러나, 만약 대기중인 컴퓨터 시스템(20)에 장애가 발생한 경우라면, 활성화된 컴퓨터는 소정의 타임아웃 시간(예컨대 1초)이 경과한 후에도 점검확인(CHK_ACK) HB 신호를 수신하지 못할 것이므로, 이때에는 시스템 운용자에게 경고 메시지를 발송하는 등의 조치를 취한다.Meanwhile, the activated computer system 10 should also check whether the standby computer system 20 is operating to maintain the identity of the database. Thus, if the activated computer system 10 has not received the INQ HB signal for a predetermined timeout period (e.g. 1 second), it sends a check (CHK) HB signal to the waiting computer system 20. . If there is no abnormality in the waiting computer system 20, i.e., if there is a temporary defect on the network line or if the transmitted signal is lost, the waiting computer system 20 checks (CHK_ACK). ) Sends an HB signal to the activated computer system 10. However, if the waiting computer system 20 fails, the activated computer will not receive the check acknowledge (CHK_ACK) HB signal even after a predetermined timeout period (eg 1 second) has elapsed. Take action such as sending a warning message to the operator.

본 발명에 의하면, 주요 정보를 저장하는 데이터베이스를 효과적으로 이중화하여 활성화된 컴퓨터의 장애시에도 서비스의 품질을 저하시키지 않으면서 대기중인 컴퓨터로 용이하게 대체할 수 있다.According to the present invention, it is possible to effectively duplicate a database storing important information and easily replace it with a standby computer without degrading the quality of service even in the event of an active computer failure.

본 발명의 바람직한 실시예에 관하여 기술하였으나, 본 발명의 기술 분야에서 통상의 지식을 가진 자라면 그 변형과 수정이 가능할 것이다. 따라서, 이하의 특허청구범위는 상기의 바람직한 실시예와 본 발명의 기술 사상의 범위에 속하는 모든 변형과 수정을 포함하는 것으로 해석되어야 한다.Although a preferred embodiment of the present invention has been described, those skilled in the art will be able to modify and modify the same. Accordingly, the following claims should be construed as including all modifications and variations that fall within the scope of the preferred embodiments and the spirit of the present invention.

Claims (7)

데이터를 저장하기 위한 데이터베이스의 이중화 방법에 있어서,In the method of duplication of a database for storing data, 독립적인 복수개의 데이터베이스를 제공하는 단계;Providing a plurality of independent databases; 상기 복수개의 데이터베이스를 운용하는 복수개의 컴퓨터 시스템을 제공하는 단계;Providing a plurality of computer systems operating the plurality of databases; 상기 복수개의 컴퓨터 시스템 중의 어느 하나를 활성화된 컴퓨터 시스템으로 지정하는 단계;Designating any one of the plurality of computer systems as an activated computer system; 상기 복수개의 컴퓨터 시스템 중의 다른 하나를 대기중인 컴퓨터 시스템으로 지정하는 단계;Designating another one of said plurality of computer systems as a standby computer system; 상기 활성화된 컴퓨터 시스템 및 대기중인 컴퓨터 시스템에서 모두 데이터를 수신하여 각각의 컴퓨터 시스템이 운용하는 데이터베이스에 각각 저장하는 단계;Receiving data from both the activated computer and the waiting computer system and storing the data in a database operated by each computer system; 대기중인 컴퓨터 시스템에서 저장을 완료한 데이터에 관한 정보를 상기 활성화된 컴퓨터 시스템이 획득하는 단계;Acquiring, by the activated computer system, information about data which has been stored in a waiting computer system; 활성화된 컴퓨터 시스템에서 저장을 완료한 데이터에 관한 정보를 상기 대기중인 컴퓨터 시스템이 획득하는 단계Acquiring, by the waiting computer system, information about data that has been stored in an activated computer system; 를 포함하는 데이터베이스의 이중화 방법.Redundancy method of the database including. 제 1 항에 있어서,The method of claim 1, 상기 대기중인 컴퓨터 시스템과 상기 활성화된 컴퓨터 시스템 상호간에 하트 비트 신호를 전송하여 상대방 컴퓨터 시스템의 장애 여부를 서로 점검하는 데이터베이스 이중화 방법.Transmitting a heartbeat signal between the waiting computer system and the activated computer system to check each other for failure of the other computer system. 제 2 항에 있어서,The method of claim 2, 상기 하트 비트 신호는 조회 하트 비트 신호와 확인 하트 비트 신호를 포함하며,The heartbeat signal includes an inquiry heartbeat signal and a confirmation heartbeat signal. 상기 조회 하트 비트 신호는 상기 대기중인 컴퓨터 시스템에 의하여 발신되며, 상기 확인 하트 비트 신호는 그에 대한 응답으로서 활성화된 컴퓨터 시스템에 의하여 발신되는The inquiry heartbeat signal is sent by the waiting computer system and the confirmation heartbeat signal is sent by the activated computer system in response. 데이터 베이스 이중화 방법.Database redundancy method. 제 3 항에 있어서,The method of claim 3, wherein 상기 대기중인 컴퓨터 시스템이 상기 조회 하트 비트 신호가 발신된 후로부터 소정의 타임아웃 시간이 지난 후에도 확인 하트 비트 신호를 수신하지 못하는 경우에, 상기 활성화된 컴퓨터 시스템에 장애가 발생한 것으로 인식하는If the waiting computer system does not receive a confirmation heartbeat signal even after a predetermined timeout period has elapsed since the inquiry heartbeat signal has been sent, it recognizes that the activated computer system has failed. 데이터 베이스 이중화 방법.Database redundancy method. 제 4 항에 있어서,The method of claim 4, wherein 상기 대기중인 컴퓨터 시스템이 연속하여 세 번의 조회 하트 비트 신호에 대하여 확인 하트 비트 신호가 수신되지 않는 경우에 장애가 발생한 것으로 인식하는Recognizing that a failure has occurred when the waiting computer system does not receive an acknowledgment heartbeat signal for three consecutive inquiry heartbeat signals. 데이터 베이스 이중화 방법.Database redundancy method. 제 3 항에 있어서,The method of claim 3, wherein 상기 하트 비트 신호는 점검 하트 비트 신호와 점검확인 하트 비트 신호를 더 포함하며,The heartbeat signal further includes a check heartbeat signal and a check heartbeat signal, 상기 활성화된 컴퓨터 시스템이 소정의 타임아웃 시간 동안 조회 하트 비트 신호를 수신하지 못한 경우에, 대기중인 컴퓨터 시스템으로 점검 하트 비트 신호를 발신하며, 상기 대기중인 컴퓨터 시스템은 그에 대한 응답으로서 점검확인 하트 비트 신호를 상기 활성화된 컴퓨터 시스템으로 발신하는If the activated computer system has not received the inquiry heartbeat signal for a predetermined timeout time, it sends a check heartbeat signal to the waiting computer system, and the waiting computer system responds with the check heartbeat signal. To send a signal to the activated computer system 데이터 베이스 이중화 방법.Database redundancy method. 제 6 항에 있어서,The method of claim 6, 상기 활성화된 컴퓨터가 소정의 타임아웃 시간이 경과한 후에도 상기 대기중인 컴퓨터 시스템으로부터 상기 점검확인 하트 비트 신호를 수신하지 못한 경우에 장애가 발생한 것으로 인식하는 데이터 베이스 이중화 방법.And recognizing that a failure has occurred when the activated computer does not receive the check confirmation heartbeat signal from the waiting computer system even after a predetermined timeout time has elapsed.
KR1019990006903A 1998-12-26 1999-03-03 Database duplication method for intelligent service system KR19990078536A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1019980058947 1998-12-26
KR19980058947 1998-12-26

Publications (1)

Publication Number Publication Date
KR19990078536A true KR19990078536A (en) 1999-11-05

Family

ID=54781346

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019990006903A KR19990078536A (en) 1998-12-26 1999-03-03 Database duplication method for intelligent service system

Country Status (1)

Country Link
KR (1) KR19990078536A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020036502A (en) * 2000-11-10 2002-05-16 오길록 Duplicated Database Management System for Main Memory Resident DBMS
KR100450400B1 (en) * 2001-12-26 2004-09-30 한국전자통신연구원 A High Avaliability Structure of MMDBMS for Diskless Environment and data synchronization control method thereof
KR100465095B1 (en) * 2001-08-11 2005-01-05 엘지전자 주식회사 System and Method of Transferring Data for Dynamic Schema Alteration in Dual System
KR100471567B1 (en) * 2000-07-29 2005-03-07 엘지전자 주식회사 Transaction Management Method For Data Synchronous In Dual System Environment
KR100526221B1 (en) * 2000-07-04 2005-11-02 엘지전자 주식회사 Method and System for Restoring Database Synchronization in Independent Mated Pair System
KR100763757B1 (en) * 2006-03-29 2007-10-04 주식회사 케이티 System for telemedicine by load balancing and method service providing thereof
KR100804897B1 (en) * 2001-08-11 2008-02-20 엘지노텔 주식회사 Method for Schema Changing in Duplexed System
KR101270472B1 (en) * 2006-10-24 2013-06-03 에스케이플래닛 주식회사 Contents back-up system by using network and its method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100526221B1 (en) * 2000-07-04 2005-11-02 엘지전자 주식회사 Method and System for Restoring Database Synchronization in Independent Mated Pair System
KR100471567B1 (en) * 2000-07-29 2005-03-07 엘지전자 주식회사 Transaction Management Method For Data Synchronous In Dual System Environment
KR20020036502A (en) * 2000-11-10 2002-05-16 오길록 Duplicated Database Management System for Main Memory Resident DBMS
KR100465095B1 (en) * 2001-08-11 2005-01-05 엘지전자 주식회사 System and Method of Transferring Data for Dynamic Schema Alteration in Dual System
KR100804897B1 (en) * 2001-08-11 2008-02-20 엘지노텔 주식회사 Method for Schema Changing in Duplexed System
KR100450400B1 (en) * 2001-12-26 2004-09-30 한국전자통신연구원 A High Avaliability Structure of MMDBMS for Diskless Environment and data synchronization control method thereof
KR100763757B1 (en) * 2006-03-29 2007-10-04 주식회사 케이티 System for telemedicine by load balancing and method service providing thereof
KR101270472B1 (en) * 2006-10-24 2013-06-03 에스케이플래닛 주식회사 Contents back-up system by using network and its method

Similar Documents

Publication Publication Date Title
USRE42703E1 (en) System and method for fibrechannel fail-over through port spoofing
US7340637B2 (en) Server duplexing method and duplexed server system
EP1437658B1 (en) Coordinating persistent status information with multiple file servers
JP3706179B2 (en) Communication controller between dual magnetic disk controllers
JP5187249B2 (en) Redundant system connection recovery device, method and processing program
US20050240564A1 (en) System and method for state preservation in a stretch cluster
JPH0619743B2 (en) Storing method, control method, and storage device for application session in computer network
JP2004213125A (en) High-availability disk controller and failure processing method therefor, and high-availability disk subsystem
JP2004516575A (en) How to prevent "split brain" in computer clustering systems
JP2004302512A (en) Cluster computing system and fail-over method for the same
JP4106014B2 (en) Communication method and program in multi-node data processing system including at least one non-volatile data storage device
JP2001216204A (en) Memory control unit
KR19990078536A (en) Database duplication method for intelligent service system
JP2019125075A (en) Storage device and storage system and program
JP2000020336A (en) Duplex communication system
JPH04299435A (en) Data base equivalent system
JP7431034B2 (en) Controller and facility monitoring system
KR100914238B1 (en) A Method of High Availability for Duplicating Signaling System
KR100436348B1 (en) Duplexed OAM Information Synchronization Apparatus and Method of ATM Switching System
JPH0723079A (en) Operation system deciding method for duplex system
JPH06222944A (en) Switching control method for duplexed electronic computer system
KR19990075606A (en) Protocol and System Transfer Priority Management Method for System Redundancy
JP3518312B2 (en) Transaction error notification system
KR100319799B1 (en) Status Information Management System and Method in Redundant Board
JP2021105791A (en) Controller and facility monitoring system

Legal Events

Date Code Title Description
G15R Request for early publication
A201 Request for examination
E902 Notification of reason for refusal
E601 Decision to refuse application