KR20020090711A - Database diagnostic method of DBMS - Google Patents

Database diagnostic method of DBMS Download PDF

Info

Publication number
KR20020090711A
KR20020090711A KR1020010029698A KR20010029698A KR20020090711A KR 20020090711 A KR20020090711 A KR 20020090711A KR 1020010029698 A KR1020010029698 A KR 1020010029698A KR 20010029698 A KR20010029698 A KR 20010029698A KR 20020090711 A KR20020090711 A KR 20020090711A
Authority
KR
South Korea
Prior art keywords
database
processor
backup
checksum
relation
Prior art date
Application number
KR1020010029698A
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 엘지전자 주식회사
Priority to KR1020010029698A priority Critical patent/KR20020090711A/en
Publication of KR20020090711A publication Critical patent/KR20020090711A/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/22Arrangements for supervision, monitoring or testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2203/00Aspects of automatic or semi-automatic exchanges
    • H04M2203/55Aspects of automatic or semi-automatic exchanges related to network data storage and management
    • H04M2203/558Databases

Abstract

PURPOSE: A method for diagnosing a database of a DBMS(Database Management System) is provided to prevent a fatal error in an operation of a switchboard by diagnosing the disorder of a disk, reporting the particulars of an error, and restoring the database of the disk. CONSTITUTION: The performance of a diagnostic function for the database is decided(S10). If the time to diagnose the database arrives or a command for performing the diagnostic function is inputted, one database file for performing the diagnostic function is opened from the disk of a master processor(S12). The master processor requests a processor having the database the same as the opened database to perform the diagnosis(S14). If the checksum calculated by the processor is different from the checksum calculated by the master processor, a request for the restoration is transmitted to the corresponding processor(S24). The master processor receiving the details of a backup relation from the corresponding processor restores the data by recording the details of the backup relation in the corresponding database(S28).

Description

디비엠에스의 데이터베이스 진단 방법{Database diagnostic method of DBMS}Database diagnostic method of DBMS

본 발명은 DBMS(DataBase Management System)의 데이터베이스 진단 방법에 관한 것으로서, 특히 데이터베이스를 검사하여 장애에 대한 진단 및 복구를 수행할 수 있도록 하는 DBMS의 데이터베이스 진단 방법에 관한 것이다.The present invention relates to a method for diagnosing a database of a database management system (DBMS), and more particularly, to a method for diagnosing a database of a DBMS, which enables a diagnosis and recovery of a failure by inspecting a database.

일반적으로 교환기 시스템은 여러 프로세스들로 구성되어 있는 분산 구조로, 교환기 응용 프로그램 데이터의 효율적인 지원, 데이터의 일관성 유지, 데이터의 백업, 데이터의 고장 진단 및 복구 등의 종합적인 관리를 수행하기 위하여 DBMS를사용하다.In general, the exchange system is a distributed structure composed of several processes, and DBMS is used to perform comprehensive management such as efficient support of exchange application data, data consistency, data backup, and data diagnosis and recovery. use.

응용 프로그램들이 필요로 하는 데이터베이스는 호스트 시스템(오프 라인 작업)에서 제작되어 각 프로세서에 로딩이 되며, 응용 프로그램들이 이러한 데이터베이스를 검색하거나 변경하고자 할 때에는 DBMS를 통하여 이루어지게 된다.Databases required by applications are created on the host system (offline) and loaded on each processor. When the applications want to search or modify these databases, they are made through the DBMS.

데이터베이스는 실시간 처리를 위하여 각 프로세서의 주기억장치(Main Memory)에 로드 되어지며, 교환기의 프로세서들 중에서 하나의 마스터 프로세서는 디스크를 구비하고 있는 데, 프로세서에 장애가 발생하여 재시동되는 경우를 대비하여 마스터 프로세서의 디스크에도 데이터베이스를 두게 된다.The database is loaded into the main memory of each processor for real-time processing, and one master processor among the processors of the exchange has a disk. The master processor is prepared in case the processor fails and is restarted. It will also place the database on disk.

교환기의 응용 프로그램들이 DBMS를 통하여 데이터베이스에 대한 변경을 요청하게 되면, DBMS는 요청한 프로세서의 주기억장치에 있는 데이터베이스를 변경하고, 변경 사항들을 마스터 프로세서의 디스크에 있는 데이터베이스에도 반영하게 된다.When the exchange's applications request a change to the database through the DBMS, the DBMS changes the database in the requested processor's main memory and reflects the changes in the database on the master processor's disk.

도 1은 교환기에서의 DBMS의 구조를 나타내는 도로, DBMS에서 데이터베이스는 각 프로세서의 주기억장치 및 디스크에 존재하여야 하는 데, 디스크에 존재하는 데이터베이스는 운용자가 교환기의 운용중에 새로운 데이터베이스를 디스크에 덤프(dump)한다던 지, 주기억장치에 있는 데이터베이스와 디스크에 있는 데이터베이스의 버전이 불일치한다던 지 하는 경우에 깨질 수 있고, 디스크의 상태가 불량이라던 지, 교환기의 운영 체계가 오동작하는 경우에 깨질 수 있다.1 is a diagram illustrating the structure of a DBMS in an exchange, in which a database must exist in each processor's main memory and a disk. A database in the disk dumps a new database to a disk during operation of the exchange. It can be broken if the database on the main memory and the version of the database on the disk are inconsistent, and if the disk is in a bad state or if the exchange's operating system malfunctions.

전술한 바와 같이, 데이터베이스가 깨지는 경우에 종래에는 깨진 데이터베이스를 검사하여 오류를 진단할 수 있는 기능이 제공되지 않았으므로, 운용자는 데이터베이스가 깨지는 경우를 대비하여 주기적으로 데이터베이스를 MT(Magnetic Tape)나 CT(Cartridge Tape)와 같은 별도의 저장 매체에 백업을 받아 놓고, 데이터베이스가 깨지는 현상이 발생하면 백업받은 데이터베이스를 다시 교환기에 재로딩하여 복구하게 된다.As described above, when a database is broken, a function of diagnosing an error by examining a broken database is not provided in the related art. Therefore, the operator periodically checks the database for a case where the database is broken. If the backup is stored in a separate storage medium such as (Cartridge Tape), and the database is broken, the backup database is reloaded to the exchange and restored.

이상에서 살펴본 바와 같이, 종래에는 교환기의 운용 중에는 데이터베이스가 깨져 있는 지를 진단할 수 있는 기능이 없으므로, 데이터베이스가 실제로 깨져 있는 지를 판단하기가 힘들게 되어, 주기억장치에 데이터베이스를 재로딩한 후 시스템이 오동작하는 것을 발견한 후에 디스크에 있는 데이터베이스가 깨져 있다는 사실을 알게 되는 데, 이때는 이미 교환기 운용중에 치명적인 오류가 발생한 이후이다.As described above, conventionally, since there is no function for diagnosing whether the database is broken during operation of the exchange, it is difficult to determine whether the database is actually broken, and the system malfunctions after reloading the database into the main memory. After discovering that, you know that the database on disk is broken, after a fatal error has already occurred during the exchange.

전술한 바와 같이, 깨진 데이터베이스를 복구하기 위하여 교환기의 프로세서들을 재로딩시켜야 하므로, 교환기의 일시적인 운용 중단이 불가피할 뿐만 아니라, 백업받은 데이터베이스를 재로딩하므로 마지막으로 백업받은 뒤에 발생하였던 데이터베이스의 변경 사항들은 잃어버리게 되는 문제점이 발생한다.As described above, since the processors of the exchange must be reloaded in order to recover the broken database, the interruption of the exchange is inevitable, and the reloading of the backed up database reloads the changes of the database that occurred after the last backup. There is a problem that is lost.

본 발명은 전술한 문제점을 해결하기 위해 안출된 것으로서, 주기적으로 또는 운용자의 요구에 따라 주기억장치의 데이터베이스와 디스크에 존재하는 데이터베이스의 내용을 비교하여 디스크에 존재하는 데이터베이스에 장애가 있는 지를 진단하고 오류가 발생한 경우 발생한 오류 내용을 운용자에게 보고함과 동시에 디스크에 존재하는 데이터베이스도 복구함으로써, 데이터베이스의 오류로 인해 발생할 수 있는 교환기 운용상의 치명적인 오류를 방지할 수 있도록 하는 DBMS의 데이터베이스 진단 방법을 제공함에 그 목적이 있다.SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problems. The present invention compares the contents of a database of a main memory with a database existing on a disk periodically or at the request of an operator to diagnose whether there is a failure in a database existing on a disk, It provides a DBMS database diagnostic method that prevents catastrophic errors in the exchange operation that may occur due to a database error by reporting the error that occurred to the operator and recovering the database existing on the disk. There is this.

도 1은 교환기에서의 DBMS의 구조를 나타내는 도.1 is a diagram showing the structure of a DBMS in an exchange.

도 2는 본 발명에 적용되는 DBMS의 데이터베이스 구조를 나타내는 도.2 is a diagram showing a database structure of a DBMS applied to the present invention.

도 3은 본 발명에 따른 DBMS의 데이터베이스 진단 방법을 설명하기 위한 플로우챠트.3 is a flowchart for explaining a database diagnostic method of the DBMS according to the present invention.

전술한 목적을 달성하기 위한 본 발명에 따른 DBMS의 데이터베이스 진단 방법은, 데이터베이스에 대한 진단 기능을 수행해야 하는 경우에 마스터 프로세서가 진단 기능을 수행할 하나의 데이터베이스 파일을 오픈하는 과정과; 주기억장치에 상기 오픈한 데이터베이스와 동일한 데이터베이스가 저장되어 있는 프로세서로 데이터베이스 진단을 요청하는 과정과; 상기 진단 요청에 따라 상기 주기억장치에 저장되어 있는 데이터베이스의 디렉토리/딕셔너리 영역에서 순차적으로 백업 릴레이션을 검색하고, 검색된 백업 릴레이션의 내용에 대한 검사합을 계산한 상기 프로세서로부터 상기 검사합을 전송받는 과정과; 상기 오픈한 데이터베이스의 디렉토리/딕셔너리 영역에서 순차적으로 백업 릴레이션을 검색하고, 검색된 백업 릴레이션의 내용에 대한 검사합을 계산하는 과정과; 상기 계산한 검사합과 상기 프로세서로부터 전송받은 검사합이 서로 일치하는 지를 판단하여 상기 계산한 검사합과 상기 프로세서로부터 전송받은 검사합이 서로 일치하지 않는 경우에는 상기 프로세서로 상기 백업 릴레이션에 대한 복구를 요청하는 과정과; 상기 백업 릴레이션에 대한 복구 요청에 따라 백업 릴레이션의 내용을 소정 크기로 읽어서 전송하는 상기 프로세서로부터 전송받은 상기 백업 릴레이션의 내용을 상기 오픈한 데이터베이스에 기록하여 데이터를 복구하는 과정을 포함하여 이루어진다.The database diagnosis method of the DBMS according to the present invention for achieving the above object comprises the steps of opening a database file for the master processor to perform the diagnostic function when it is necessary to perform a diagnostic function for the database; Requesting a database diagnosis to a processor in which a same database as the open database is stored in the main memory device; Retrieving a backup relation sequentially from a directory / dictionary area of a database stored in the main memory according to the diagnosis request, and receiving the checksum from the processor that calculates a checksum for the contents of the retrieved backup relations; ; Retrieving backup relations sequentially from the directory / dictionary area of the opened database and calculating a checksum for the contents of the retrieved backup relations; It is determined whether the calculated checksum and the checksum received from the processor match each other. If the calculated checksum and the checksum received from the processor do not coincide with each other, the processor restores the backup relation to the backup relation. Requesting process; And restoring data by recording the contents of the backup relation received from the processor that reads and transmits the contents of the backup relation in a predetermined size in response to the request for the restoration of the backup relation in the open database.

여기서, 상기 데이터베이스에 대한 진단 기능은, 운용자 터미널을 통하여 운용자로부터 기설정받은 데이터베이스에 대한 진단을 수행할 시간의 도래와, 운용자 터미널을 통하여 데이터베이스에 대한 진단 기능 수행을 위한 명령어 입력에 따라 수행되는 것을 특징으로 한다.Here, the diagnostic function for the database may be performed according to the arrival of a time for performing a diagnosis on a database preset from an operator through an operator terminal and an input of a command for performing a diagnostic function on the database through an operator terminal. It features.

그리고, 상기 데이터베이스 진단을 요청하는 과정 내지 상기 데이터를 복구하는 과정을 상기 데이터베이스의 백업 릴레이션들의 개수만큼 반복 수행하는 과정을 더 포함하여 이루어지는 것을 특징으로 한다.The method may further include repeating the request for diagnosing the database and restoring the data by the number of backup relations of the database.

이하에서는 첨부한 도면을 참조하여 본 발명의 바람직한 실시예에 따른 DBMS의 데이터베이스 진단 방법에 대해서 상세하게 설명한다.Hereinafter, a method for diagnosing a database of a DBMS according to a preferred embodiment of the present invention will be described in detail with reference to the accompanying drawings.

도 2는 본 발명에 적용되는 DBMS의 데이터베이스 구조를 나타내는 도로, DBMS에서 사용하는 데이터베이스는 크게 두 가지 영역 즉, 디렉토리/딕셔너리(Directory/Dictionary) 영역(a)과 릴레이션(Relation) 영역(b)으로 구분된다.Figure 2 is a road showing the database structure of the DBMS to be applied to the present invention, the database used in the DBMS is largely divided into two areas, namely directory / dictionary area (a) and relation area (b) Are distinguished.

전술한, 릴레이션 영역(b)은 DBMS에서 사용하는 릴레이션들의 집합으로, 릴레이션이란 사용자가 정의한 데이터를 모아놓은 테이블을 말한다.The relation area (b) described above is a set of relations used in a DBMS, and a relation is a table in which data defined by a user is collected.

전술한 바와 같은, 릴레이션들은 백업 릴레이션(Back-up Relation)과 단순 기억 릴레이션(Memory-only Relation)과 같은 두 가지 종류의 릴레이션들로 구분되는 데, 백업 릴레이션은 주기억장치에 변경이 발생하였을 때, 반드시 디스크의 데이터베이스로도 백업을 하여야 하는 릴레이션들을 말하고, 단순 기억 릴레이션은 디스크의 데이터베이스로의 백업이 필요없는 릴레이션들을 말한다.As described above, relations are divided into two kinds of relations, such as backup relations and memory-only relations. When a backup relation is changed in main memory, The relations that must be backed up to the disk's database are also referred to as simple relations.

즉, 백업 릴레이션은 시스템의 어떠한 상황이 발생하더라도 유실이 되어서는 안되는 릴레이션들을 말하고, 단순 기억 릴레이션은프로세서의 재시동 시에 초기에 제작한 데이터로 로드가 되어야 하는 릴레이션들을 말한다.That is, backup relations are relations that should not be lost in any situation of the system, and simple memory relations are relations that should be loaded with data produced at the initial restart of the processor.

디렉토리/딕셔너리 영역(a)에는 각 릴레이션의 위치 정보나 각 릴레이션이 백업 릴레이션인지 단순 기억 릴레이션인 지에 대한 정보 등이 DBMS가 릴레이션들에 접근하기 위하여 각 릴레이션들에 대한 정보들이 들어간다.The directory / dictionary area (a) contains information about each relation in order for the DBMS to access the relations such as location information of each relation or information on whether each relation is a backup relation or a simple storage relation.

도 3은 본 발명에 따른 DBMS의 데이터베이스 진단 방법을 설명하기 위한 플로우챠트이다.3 is a flowchart for explaining a database diagnostic method of the DBMS according to the present invention.

우선, 운용자 터미널을 통하여 운용자로부터 기설정받은 데이터베이스에 대한 진단을 수행할 시간이 도래했거나, 운용자 터미널을 통하여 데이터베이스에 대한 진단 기능 수행을 위한 명령어 입력에 따라 데이터베이스에 대한 진단 기능을 수행해야 하는 지를 판단한다(S10).First of all, it is time to perform the diagnosis on the database preset from the operator through the operator terminal or determine whether to perform the diagnosis function on the database according to the command input for performing the diagnosis function on the database through the operator terminal. (S10).

상기한 과정 S10의 판단결과 데이터베이스에 대한 진단을 수행할 시간이 도래했거나, 운용자 터미널을 통하여 데이터베이스에 대한 진단 기능 수행을 위한 명령어 입력에 따라 데이터베이스에 대한 진단 기능을 수행해야 하는 경우에 마스터 프로세서는 마스터 프로세서의 디스크에서 진단 기능을 수행할 하나의 데이터베이스 파일을 오픈한다(S12).As a result of the determination in step S10, when the time for performing the diagnosis on the database arrives or when the diagnosis function for the database is to be performed according to a command input for performing the diagnosis function on the database through the operator terminal, the master processor is the master. One database file for performing a diagnostic function is opened on the disk of the processor (S12).

이후, 마스터 프로세서는 디스크에서 오픈한 데이터베이스와 해당 프로세서의 주기억장치에 저장되어 있는 데이터베이스의 내용이 서로 일치하는 지를 확인하기 위하여 오픈한 데이터베이스와 동일한 데이터베이스가 주기억장치에 저장되어 있는 프로세서에 진단 요청을 하게 된다(S14). 예를 들어, 디스크에서 오픈한 데이터베이스가 A프로세서의 주기억장치에 저장되어 있는 데이터베이스인 경우에는 A프로세서로 데이터베이스의 진단 요청을 하게 된다.After that, the master processor sends a diagnostic request to a processor in which the same database as the open database is stored in the main memory in order to check whether the contents of the database opened in the disk and the database stored in the main memory of the processor match each other. (S14). For example, if the database opened from disk is a database stored in the main memory of A processor, the A processor makes a request for diagnosis of the database.

전술한 바와 같이, 마스터 프로세서로부터 진단 요청을 받은 프로세서는 데이터베이스의 디렉토리/딕셔너리 영역에서 순차적으로 백업 릴레이션을 검색하고, 검색된 백업 릴레이션의 내용에 대한 검사합(checksum)을 계산한다(S16).As described above, the processor receiving the diagnostic request from the master processor sequentially searches the backup relation in the directory / dictionary area of the database, and calculates a checksum of the contents of the found backup relation (S16).

그리고, 상기한 과정 S16에서 계산한 검사합을 마스터 프로세서로 송신한다(S18).Then, the checksum calculated in step S16 is transmitted to the master processor (S18).

한편, 마스터 프로세서도 진단을 요청받은 프로세서와 마찬가지로 오픈한 데이터베이스의 디렉토리/딕셔너리 영역에서 순차적으로 백업 릴레이션을 검색하고, 검색된 백업 릴레이션의 내용에 대한 검사합을 계산한다(S20).On the other hand, the master processor also searches the backup relations sequentially in the directory / dictionary area of the open database, similar to the processor requested to diagnose the diagnosis, and calculates a checksum for the contents of the retrieved backup relations (S20).

이후, 마스터 프로세서는 상기한 과정 S20에서 계산한 검사합과 해당 프로세서로부터 전송받은 검사합이 서로 일치하는 지를 판단한다(S22).Thereafter, the master processor determines whether the check sum calculated in step S20 and the check sum received from the processor coincide with each other (S22).

상기한 과정 S22의 판단결과 상기한 과정 S20에서 계산한 검사합과 해당 프로세서로부터 전송받은 검사합이 서로 일치하는 경우에는 다음 백업 릴레이션을 검사하기 위해 상기한 과정 S14로 진행하여 해당 프로세서로 데이터베이스 진단을 요청하고, 상기한 과정 S20에서 계산한 검사합과 해당 프로세서로부터 전송받은 검사합이 서로 일치하지 않는 경우에는 마스터 프로세서가 해당 프로세서로 해당 백업릴레이션에 대한 복구를 요청한다(S24).As a result of the determination of step S22, if the check sum calculated in step S20 and the check sum received from the processor coincide with each other, the process proceeds to step S14 to check the next backup relation and performs database diagnosis with the processor. If the check sum calculated in step S20 and the check sum received from the processor do not match each other, the master processor requests the processor to restore the backup replication (S24).

전술한 바와 같이, 마스터 프로세서로부터 해당 백업 릴레이션에 대한 복구를 요청받은 프로세서는 프로세서 간의 통신 회수 및 디스크에 대한 입출력을 최소화하기 위하여 소정 크기의 블록 단위, 예를 들어, 512바이트 크기의 블록 단위로 주기억장치에 저장되어 있는 데이터베이스의 해당 백업 릴레이션에서 내용을 읽어서 마스터 프로세서로 송신한다(S26).As described above, the processor, which is requested to recover the backup relation from the master processor, may store the main memory in a block unit of a predetermined size, for example, a block unit of 512 bytes in order to minimize the number of communication between the processors and input / output to the disk. The contents are read from the corresponding backup relation of the database stored in the device and transmitted to the master processor (S26).

한편, 해당 프로세서로부터 백업 릴레이션의 내용을 전송받은 마스터 프로세서는 전송받은 백업 릴레이션의 내용을 디스크의 해당 데이터베이스에 기록함으로써, 데이터를 복구시킨다(S28).Meanwhile, the master processor receiving the contents of the backup relation from the processor recovers the data by writing the contents of the received backup relation to the corresponding database on the disk (S28).

여기서, 해당 백업 릴레이션의 크기가 한 블록(512바이트)의 크기보다 큰 경우에는 릴레이션의 크기만큼 상기한 과정 S26 및 과정 S28을 반복 수행한다.If the size of the backup relation is larger than that of one block (512 bytes), steps S26 and S28 are repeated as much as the size of the relation.

이후, 해당 백업 릴레이션의 복구가 종료되었는 지를 판단하여, 해당 백업 릴레이션의 복구가 종료된 경우에는 상기한 과정 S12에서 오픈한 데이터베이스에 존재하는 모든 백업 릴레이션에 대한 진단 및 복구를 수행하여 해당 데이터베이스의 복구가 종료되었는 지를 판단한다(S30, S32).Thereafter, it is determined whether the recovery of the backup relation has ended, and when the recovery of the backup relation has ended, the diagnosis and recovery of all the backup relations existing in the database opened in step S12 are performed to recover the database. It is determined whether has ended (S30, S32).

상기한 과정 S32의 판단결과 상기한 과정 S12에서 오픈한 데이터베이스의 복구가 종료되지 않은 경우에는 나머지 백업 릴레이션을 검사하기 위해 상기한 과정 S14로 진행하여 해당 프로세서로 데이터베이스 진단을 요청하고, 상기한 과정 S12에서 오픈한 데이터베이스의 복구가 종료된 경우에 마스터 프로세서는 상기한 과정 S12에서 오픈한 데이터베이스 파일을 디스크에서 닫는다(S34).As a result of the determination of step S32, when the recovery of the database opened in step S12 is not terminated, the process proceeds to step S14 to request a database diagnosis from the processor to check the remaining backup relations, and the step S12. When the recovery of the database opened in step S ends, the master processor closes the database file opened in step S12 from the disk (S34).

이후에는, 상기한 과정 S12 내지 과정 S34를 반복 수행하여 디스크에 존재하는 모든 데이터베이스에 대해서 진단 및 복구를 수행한다(S36).Thereafter, the above steps S12 to S34 are repeated to diagnose and recover all databases existing on the disk (S36).

본 발명의 DBMS의 데이터베이스 진단 방법은 전술한 실시예에 국한되지 않고 본 발명의 기술 사상이 허용하는 범위 내에서 다양하게 변형하여 실시할 수 있다.The database diagnosis method of the DBMS of the present invention is not limited to the above-described embodiments, and may be variously modified and implemented within the range allowed by the technical idea of the present invention.

이상에서 설명한 바와 같은 본 발명의 DBMS의 데이터베이스 진단 방법에 따르면, 주기적으로 또는 운용자의 요구에 따라 주기억장치의 데이터베이스와 디스크에 존재하는 데이터베이스의 내용을 비교하여 디스크에 존재하는 데이터베이스에 장애가 있는 지를 진단하고 오류가 발생한 경우 발생한 오류 내용을 운용자에게 보고함과 동시에 디스크에 존재하는 데이터베이스도 복구함으로써, 데이터베이스의 오류로 인해 발생할 수 있는 교환기 운용상의 치명적인 오류를 방지할 수 있게 되는 효과가 있다.According to the database diagnosis method of the DBMS of the present invention as described above, by comparing the contents of the database of the main memory and the database existing on the disk periodically or at the request of the operator to diagnose whether there is a failure in the database on the disk In the event of an error, by reporting the error to the operator and recovering the database existing on the disk, it is possible to prevent a catastrophic error in the operation of the exchange that may occur due to a database error.

Claims (3)

데이터베이스에 대한 진단 기능을 수행해야 하는 경우에 마스터 프로세서가 진단 기능을 수행할 하나의 데이터베이스 파일을 오픈하는 과정과;In the case where it is necessary to perform a diagnostic function for the database, opening a single database file for performing a diagnostic function by the master processor; 주기억장치에 상기 오픈한 데이터베이스와 동일한 데이터베이스가 저장되어 있는 프로세서로 데이터베이스 진단을 요청하는 과정과;Requesting a database diagnosis to a processor in which a same database as the open database is stored in the main memory device; 상기 진단 요청에 따라 상기 주기억장치에 저장되어 있는 데이터베이스의 디렉토리/딕셔너리 영역에서 순차적으로 백업 릴레이션을 검색하고, 검색된 백업 릴레이션의 내용에 대한 검사합을 계산한 상기 프로세서로부터 상기 검사합을 전송받는 과정과;Retrieving a backup relation sequentially from a directory / dictionary area of a database stored in the main memory according to the diagnosis request, and receiving the checksum from the processor that calculates a checksum for the contents of the retrieved backup relations; ; 상기 오픈한 데이터베이스의 디렉토리/딕셔너리 영역에서 순차적으로 백업 릴레이션을 검색하고, 검색된 백업 릴레이션의 내용에 대한 검사합을 계산하는 과정과;Retrieving backup relations sequentially from the directory / dictionary area of the opened database and calculating a checksum for the contents of the retrieved backup relations; 상기 계산한 검사합과 상기 프로세서로부터 전송받은 검사합이 서로 일치하는 지를 판단하여 상기 계산한 검사합과 상기 프로세서로부터 전송받은 검사합이 서로 일치하지 않는 경우에는 상기 프로세서로 상기 백업 릴레이션에 대한 복구를 요청하는 과정과;It is determined whether the calculated checksum and the checksum received from the processor match each other. If the calculated checksum and the checksum received from the processor do not coincide with each other, the processor restores the backup relation to the backup relation. Requesting process; 상기 백업 릴레이션에 대한 복구 요청에 따라 백업 릴레이션의 내용을 소정 크기로 읽어서 전송하는 상기 프로세서로부터 전송받은 상기 백업 릴레이션의 내용을 상기 오픈한 데이터베이스에 기록하여 데이터를 복구하는 과정을 포함하여 이루어지는 디비엠에스의 데이터베이스 진단 방법.And recovering data by recording the contents of the backup relation received from the processor that reads and transmits the contents of the backup relation to a predetermined size in response to the request for the recovery of the backup relation in the open database. Database diagnostic method. 제 1항에 있어서, 상기 데이터베이스에 대한 진단 기능은,The method of claim 1, wherein the diagnostic function for the database, 운용자 터미널을 통하여 운용자로부터 기설정받은 데이터베이스에 대한 진단을 수행할 시간의 도래와, 운용자 터미널을 통하여 데이터베이스에 대한 진단 기능 수행을 위한 명령어 입력에 따라 수행되는 것을 특징으로 하는 디비엠에스의 데이터베이스 진단 방법.A method of diagnosing a database of a DB, characterized in that it is performed according to the arrival of a time for performing a diagnosis on a database preset from an operator through an operator terminal and a command input for performing a diagnostic function on a database through an operator terminal. 제 1항에 있어서, 상기 데이터베이스 진단을 요청하는 과정 내지 상기 데이터를 복구하는 과정을 상기 데이터베이스의 백업 릴레이션들의 개수만큼 반복 수행하는 과정을 더 포함하여 이루어지는 것을 특징으로 하는 디비엠에스의 데이터베이스 진단 방법.The method of claim 1, further comprising repeating the request for diagnosing the database and restoring the data as many times as the number of backup relations in the database.
KR1020010029698A 2001-05-29 2001-05-29 Database diagnostic method of DBMS KR20020090711A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020010029698A KR20020090711A (en) 2001-05-29 2001-05-29 Database diagnostic method of DBMS

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020010029698A KR20020090711A (en) 2001-05-29 2001-05-29 Database diagnostic method of DBMS

Publications (1)

Publication Number Publication Date
KR20020090711A true KR20020090711A (en) 2002-12-05

Family

ID=27706897

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020010029698A KR20020090711A (en) 2001-05-29 2001-05-29 Database diagnostic method of DBMS

Country Status (1)

Country Link
KR (1) KR20020090711A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101026681B1 (en) * 2009-01-19 2011-04-07 주식회사 케이티 Device for detecting errors in exchanger
CN104536860A (en) * 2015-01-16 2015-04-22 浪潮电子信息产业股份有限公司 Hard disk sequence marshalling method based on real-time JBOD monitoring mode
KR20170112358A (en) * 2016-03-31 2017-10-12 엘에스산전 주식회사 Supervisory control and data acquisition and update method thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101026681B1 (en) * 2009-01-19 2011-04-07 주식회사 케이티 Device for detecting errors in exchanger
CN104536860A (en) * 2015-01-16 2015-04-22 浪潮电子信息产业股份有限公司 Hard disk sequence marshalling method based on real-time JBOD monitoring mode
KR20170112358A (en) * 2016-03-31 2017-10-12 엘에스산전 주식회사 Supervisory control and data acquisition and update method thereof

Similar Documents

Publication Publication Date Title
US6615225B1 (en) System and method for relating files in a distributed data storage environment
JP3864244B2 (en) System for transferring related data objects in a distributed data storage environment
JP3538766B2 (en) Apparatus and method for creating a copy of a data file
US7152184B2 (en) Storage device, backup method and computer program code of this storage device
US6941328B2 (en) Copy process substituting compressible bit pattern for any unqualified data objects
US7882081B2 (en) Optimized disk repository for the storage and retrieval of mostly sequential data
US5138710A (en) Apparatus and method for providing recoverability in mass storage data base systems without audit trail mechanisms
US6654912B1 (en) Recovery of file system data in file servers mirrored file system volumes
US7865473B2 (en) Generating and indicating incremental backup copies from virtual copies of a data set
US7860836B1 (en) Method and apparatus to recover data in a continuous data protection environment using a journal
US7484051B2 (en) Apparatus, system and method for reliably updating a data group in a read-before-write data replication environment using a comparison file
KR100268187B1 (en) Method for recovering multi-volume data sets
US20070174325A1 (en) Method and system for building a database from backup data images
US20030074600A1 (en) Data backup/recovery system
US20120005163A1 (en) Block-based incremental backup
JP2006508473A (en) Data recovery technology in storage systems
US5740434A (en) System for maintenance of database integrity
US8726129B1 (en) Methods of writing and recovering erasure coded data
US8145864B1 (en) Discovering data storage for backup
US8086572B2 (en) Method, system, and program for restoring data to a file
KR20020090711A (en) Database diagnostic method of DBMS
US7949632B2 (en) Database-rearranging program, database-rearranging method, and database-rearranging apparatus
KR102019565B1 (en) Data base management method
US7149935B1 (en) Method and system for managing detected corruption in stored data
KR0123427B1 (en) Recovering method for subscriber location information

Legal Events

Date Code Title Description
N231 Notification of change of applicant
WITN Withdrawal due to no request for examination