KR100250663B1 - Database gtm management method of ess - Google Patents

Database gtm management method of ess Download PDF

Info

Publication number
KR100250663B1
KR100250663B1 KR1019970039850A KR19970039850A KR100250663B1 KR 100250663 B1 KR100250663 B1 KR 100250663B1 KR 1019970039850 A KR1019970039850 A KR 1019970039850A KR 19970039850 A KR19970039850 A KR 19970039850A KR 100250663 B1 KR100250663 B1 KR 100250663B1
Authority
KR
South Korea
Prior art keywords
local
global transaction
gtm
transaction manager
message
Prior art date
Application number
KR1019970039850A
Other languages
Korean (ko)
Other versions
KR19990017083A (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 KR1019970039850A priority Critical patent/KR100250663B1/en
Publication of KR19990017083A publication Critical patent/KR19990017083A/en
Application granted granted Critical
Publication of KR100250663B1 publication Critical patent/KR100250663B1/en

Links

Images

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

Landscapes

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

Abstract

PURPOSE: A method for managing a database global transaction of a full electronic telephone exchange is provided to process transactions of many areas as one global transaction in a data management system, so as to widely expand application fields relating to distribution transaction processing and to remove burden of global transaction processing for an application programmer. CONSTITUTION: If a 'start-gtr' is started, after a GTM(Global Transaction Manager) processor is generated, a local GTM transmits a start message of a global transaction to a GTM to designate a transaction start time, a begin flag, and a time-out of the local GTM. The GTM transmits an error message to the local GTM to store the message in a local log buffer. The GTM receiving a global transaction recall request requests a recall to the local GTM with a set abort-flag of the local GTM. The local GTM recovers a local log buffer. If the recall is transmitted to the local GTM, the local GTM checks whether a global transaction is recalled. The local GTM stores log backup data in a backup database, and transmits an 'end-gtr' message to the GTM. The GTM sets up an end flag and transmits an 'ACK' message to the local GTM. If the 'ACK' message is not transmitted, a step of requesting an 'abort-gtr' execution is reperformed. If the 'ACK' message is transmitted, the local GTM updates the 'ACK' message in the backup database.

Description

전전자 교환기의 데이터베이스 전역 트랜잭션 관리 방법How to manage database global transactions in the electronic exchange

본 발명은 전전자 교환기(Full Electronic Telephone eXchange)에 관한 것으로, 특히 분산 실시간 구조를 바탕으로한 데이터베이스 시스템에 적용하여 일반적인 분산 실시간 데이터베이스 시스템으로 확장할 수 있도록 한 전전자 교환기의 데이터베이스 전역 트랜잭션 관리 방법에 관한 것이다.The present invention relates to a Full Electronic Telephone eXchange, and more particularly, to a database-wide transaction management method of an electronic exchanger that can be applied to a database system based on a distributed real-time structure so that it can be extended to a general distributed real-time database system. It is about.

일반적으로, 전전자 교환기는 접속 교환 서브 시스템(Access Switching Subsystem : 이하, ASS라 약칭함) 및 연결망 서브 시스템(Interconnection Network Subsystem : 이하, INS라 약칭함)과, 중앙 제어 서브 시스템(Central Control Subsystem : 이하, CCS라 약칭함)을 구비하여 각각 데이터베이스 시스템을 갖고 관리한다.In general, an electronic switching system includes an Access Switching Subsystem (abbreviated ASS) and an Interconnection Network Subsystem (abbreviated INS) and a Central Control Subsystem. Hereinafter, referred to as CCS), each having a database system for management.

ASS는 가입자 및 중계 신호 서비스 정합(Local Service Interface), 타임 스위치, 프레임 릴레이 핸들러(Frame Relay Handler), 광 가입자 접속 장치, 각종 신호 장치, 패킷 핸들러(Packet Handler) 등을 구비하여 대부분의 호처리 기능과 자체 운용 및 유지 보수 기능을 수행하며, 필요시 ASS 단위로 증가함에 따라 시스템적으로 수평 분산 구조를 가진다.ASS is equipped with subscriber and relay signal service matching (Local Service Interface), time switch, Frame Relay Handler, optical subscriber access device, various signaling devices, packet handler, etc. It performs its own operation and maintenance function, and if necessary, it has a horizontally distributed structure as it increases in units of ASS.

INS는 ASS0와 ASSn 상호간 또는 ASS와 CCS사이를 연결하는 한편, 번호 번역, 루트 제어, 스페이스 스위치 네트워크의 제어 및 망동기 장치를 구비하여 시스템 클럭을 생성, 배급하는 기능을 수행하는 것으로서, INS와 ASS간에는 광섬유 링크 또는 데이터 링크를 이용하여 외부 가입자에게 연결 된다.INS connects ASS 0 and ASSn with each other or between ASS and CCS, and performs the function of generating and distributing the system clock with number translation, route control, space switch network control and network device. The ASS is connected to an external subscriber by using a fiber link or a data link.

CCS는 시스템의 총괄적인 운용 및 유지 보수 기능을 수행하며, 망관리, 시험 및 측정, 과금 통계, 입/출력 장치 제어, 타 시스템과의 대화 기능을 수행하는 장치이다.CCS is a device that performs overall operation and maintenance of the system, and performs network management, test and measurement, billing statistics, I / O device control, and dialogue with other systems.

상기와 같이 ASS와 INS는 광 섬유 소자를 이용하여 인터페이스되고, CCS와의 인터페이스는 내부 프로세서 통신(Inter Processor Communication)을 사용한다.As described above, the ASS and the INS are interfaced using an optical fiber element, and the interface with the CCS uses an internal processor communication.

종래 전전자 교환기에서 사용된 데이터베이스 관리 시스템은 실시간 데이터베이스의 특성과, 분산 데이터베이스 시스템의 특성을 모두 가지고 있다.The database management system used in the conventional electronic switchboard has both the characteristics of a real-time database and the characteristics of a distributed database system.

그중 분산 데이터베이스 시스템의 성질중에 중복 및 분산 데이터에 대한 일관성 유지를 위한 커널 차원의 트랜잭션을 지원한다.Among them, kernel-level transactions are supported to maintain consistency of redundant and distributed data in the characteristics of distributed database system.

그러나, 사용자 차원에서 다른 사이트의 지역 트랜잭션만을 지원하고, 이러한 지역 트랜잭션을 하나의 트랜잭션으로 처리하는 전역 트랜잭션은 지원하지 않는다는 문제점이 있었다.However, there is a problem that only local transactions of different sites are supported at the user level, and global transactions that process such local transactions as one transaction are not supported.

본 발명은 이러한 문제점을 해결하기 위하여 안출한 것으로서, 그 목적은 사용자 차원에서 다른 사이트의 지역 트랜잭션을 하나의 전역 트랜잭션으로 처리하고, 이러한 전역 트랜잭션을 단순처리하며, 또한 전역 트랜잭션 처리를 위한 일관된 동기화 기법을 제공할 수 있도록 한 전전자 교환기의 데이터베이스 전역 트랜잭션 관리 방법을 제공하는 데 있다.SUMMARY OF THE INVENTION The present invention has been made to solve such a problem, and its purpose is to process local transactions of different sites as a single global transaction at the user level, to simplify such global transactions, and to provide a consistent synchronization technique for processing global transactions. It is to provide a database-wide transaction management method of an electronic switch to provide a.

이러한 목적을 달성하기 위한 본 발명은 전전자 교환기의 데이터베이스 전역 트랜잭션 관리 방법에 관한 것으로, 데이터베이스 관리 시스템이 구동되면, 전역 트랜잭션 관리자 프로세서가 생성되는 단계와; 스타트 지티알이 시작되면, 로컬 전역 트랜잭션 관리자는 전역 트랜잭션의 시작을 알리는 메시지를 전역 트랜잭션 관리자로 전달하는 단계와; 전역 트랜잭션 관리자는 로컬 전역 트랜잭션 관리자의 트랜잭션 스타트 시간과, 비긴 플레그와, 타임 아웃 시간을 정하고, 에크 메시지를 로컬 전역 트랜잭션 관리자로 전달하는 단계와; 로컬 전역 트랜잭션 관리자는 에크 메시지가 정상으로 도착되었는가를 판단하여 도착되지 않으면, 타임 아웃이 되는 단계와; 에크 메시지가 정상 도착되면, 로컬 전역 트랜잭션 관리자는 에크 메시지를 전송받고, 로그 레코드를 지역 로그 버퍼에 저장하는 단계와; 에버트 지티알 실행 요구에 의해 전역 트랜잭션 철회를 요구받은 전역 트랜잭션 관리자는 로컬 전역 트랜잭션 관리자의 에버트 플레그를 세트하는 단계와; 로컬 전역 트랜잭션 관리자에게 철회를 요구하면, 로컬 전역 트랜잭션 관리자는 지역 로그 버퍼를 사용하여 회복하는 단계와; 로컬 전역 트랜잭션 관리자에게 전역 트랜잭션 관리자 차원에서의 철회에 대하여 전달하면, 로컬 전역 트랜잭션 관리자가 철회되었는가를 검사하는 단계와; 앤드 지티알 요청에 의해 로그 백업 데이터 내용들을 백업 데이터베이스에 저장하는 단계와; 앤드 지티알 메시지를 전역 트랜잭션 관리자로 전달하면, 전역 트랜잭션 관리자는 로컬 전역 트랜잭션 관리자의 앤드 플레그를 세트하는 단계와; 로컬 전역 트랜잭션 관리자인가를 확인하고, 로컬 전역 트랜잭션 관리자에게 에크 신호를 전달하는 단계와; 로컬 전역 트랜잭션 관리자로 에크 신호가 전달되지 않으면, 에버트 지티알 실행을 요구하는 단계를 재 실행하는 단계와; 로컬 전역 트랜잭션 관리자로 에크 신호가 전달되면, 로컬 전역 트랜잭션 관리자는 에크 신호를 전달받고, 백업 데이터베이스에 업 데이트하는 단계를 포함한다.The present invention for achieving the object relates to a database global transaction management method of the electronic switchboard, when the database management system is driven, generating a global transaction manager processor; When the start GTial is started, the local global transaction manager forwards a message to the global transaction manager indicating the start of the global transaction; The global transaction manager determines a transaction start time, an empty flag, and a timeout time of the local global transaction manager, and forwards the acknowledge message to the local global transaction manager; The local global transaction manager determines whether the Ack message has arrived normally and if so does not time out; If the Ack message arrives normally, the local global transaction manager receives the Ack message and stores the log record in a local log buffer; The global transaction manager, which has been requested to withdraw the global transaction by the Ever GTial execution request, sets an Ever flag of the local global transaction manager; Upon requesting revocation from the local global transaction manager, the local global transaction manager recovers using the local log buffer; Checking to the local global transaction manager for revocation at the global transaction manager level, checking whether the local global transaction manager has been withdrawn; Storing log backup data contents in a backup database by an end digital request; Forwarding the end digital signal to the global transaction manager, the global transaction manager setting an end flag of the local global transaction manager; Ascertaining that it is a local global transaction manager and transmitting an Ack signal to the local global transaction manager; If an ACK signal is not forwarded to the local global transaction manager, re-executing the request for Ever GTial execution; When an ACK signal is sent to the local global transaction manager, the local global transaction manager receives the ACK signal and includes updating the backup database.

도 1은 본 발명에 의한 전전자 교환기의 데이터베이스 전역 트랜잭션 관리 방법의 블록 구성도,1 is a block diagram of a database global transaction management method of an electronic switch according to the present invention;

도 2는 전전자 교환기의 데이터베이스 전역 트랜잭션 관리 방법에 대한 본 발명의 상세 흐름도.2 is a detailed flowchart of the present invention for a database global transaction management method of an electronic switchboard.

<도면의 주요부분에 대한 부호의 설명><Description of the code | symbol about the principal part of drawing>

10 : ASS012 : AP10: ASS 0 12: AP

14 : LDB 16 : DBMS14: LDB 16: DBMS

20 : ASSn22 : AP20: ASS n 22: AP

24 : LDB 26 : DBMS24: LDB 26: DBMS

30 : INS 40 : CCS30: INS 40: CCS

42 : AP 44 : LDB42: AP 44: LDB

46 : DBMS 50 : 백업 DB46: DBMS 50: Backup DB

이하, 첨부된 도면을 참조하여 설명되는 본 발명의 실시예로부터 본발명의 목적 및 특징이 보다 명확하게 이해될 수 있도록 보다 상세히 설명하기로 한다.Hereinafter, the objects and features of the present invention will be described in more detail with reference to the accompanying drawings so that the objects and features of the present invention can be more clearly understood.

도 1은 본 발명에 의한 전전자 교환기의 데이터베이스 전역 트랜잭션 관리 방법의 블록 구성도로서, ASS0(10)와, 응용 프로그램(Application Programs : 이하, AP라 약칭함)(12)과, 로컬 데이터베이스(Local DataBase : 이하, LDB라 약칭함)(14)와, 데이터베이스 관리 시스템(Data Base Management System : 이하, DBMS라 약칭함)(16)과, ASSn(20)와, AP(22)와, LDB(24)와, DBMS(26)와, INS(30)와, CCS(40)와, AP(42)와, LDB(44)와, DBMS(46)와, 백업 DB(50)로 구성된다.1 is a block diagram of a database global transaction management method of an electronic switch in accordance with the present invention, ASS 0 (10), Application Programs (hereinafter abbreviated as AP) 12, and a local database ( Local Database (hereinafter abbreviated as LDB) 14, Database Management System (hereinafter abbreviated as DBMS) 16, ASS n 20, AP 22, LDB 24, the DBMS 26, the INS 30, the CCS 40, the AP 42, the LDB 44, the DBMS 46, and the backup DB 50. As shown in FIG.

ASS0(10)는 가입자 및 중계선 정합, 타임 스위치, 각종 신호장치, 패킷처리기(Packet Handler) 등을 구비하여 대부분의 호처리 기능과 자체 운용 보전 기능 등을 수행하므로 시스템적으로 수평 분산 구조를 가지고, 최대 63개의 ASS0∼ ASS62가 INS(30)에 연결이 가능하며, INS(30)와의 전송 매체는 광섬유 링크(Optical Link)로 되어 있으므로 데이터 링크라 부른다.ASS 0 (10) is equipped with subscriber and relay line matching, time switch, various signaling devices, packet handler, etc. to perform most call processing functions and self-operation maintenance functions, and thus has a horizontally distributed structure. Up to 63 ASS 0 to ASS 62 can be connected to the INS 30, and the transmission medium with the INS 30 is called an optical link, so it is called a data link.

또한, 종합 서비스 디지털 망(Integrated Services Digital Network)의 디지틀 가입자 인터페이스, SS NO.7 신호장치, 패킷처리기 기능, 망연동 장치 기능 등을 구비하여 교환 기능을 가능토록 하며, 도시되지 않은 접근 스위칭 프로세서(Access Switching Processor : 이하, ASP라 약칭함)를 포함하는 서브 시스템이다.In addition, a digital subscriber interface of the Integrated Services Digital Network, SS NO.7 signaling device, packet processor function, network interworking device function, etc. are provided to enable the exchange function, and an access switching processor (not shown) Access Switching Processor (hereinafter abbreviated as ASP).

그중 ASP0∼n는 ASS0∼n내부에 존재하는 프로세서로, 트래픽 제어, SS NO.7 유지 보수, ASS 보전 및 운용 관리, 기타 서비스 등을 수행하여 광섬유 링크를 통해 INS(30)로 전송한다.Among them, ASP 0 to n are processors inside ASS 0 to n, which perform traffic control, SS NO.7 maintenance, ASS maintenance and operation management, and other services, and transmit them to the INS 30 through the optical fiber link. .

ASS0(10)내부에는 AP(12)와, LDB(14)와, DBMS(16)을 포함하는데, AP(12)는 응용 프로그램으로, 지역 트랜잭션을 하나의 트랜잭션으로 처리하는 전역 트랜잭션을 지원하여 시스템을 확장할 수 있도록 DBMS(16)와 인터페이스되어 동작하는 프로그램이고, DBMS(16)는 데이터베이스 관리 시스템으로, 내부적으로 로그(Log)를 저장할 수 있는 S-램(RAM)인 LDB(14)와 인터페이스되어 각종 데이터를 관리하는 시스템이며, LDB(14)는 로컬 데이터베이스로, 상기 DBMS(16)와 인터페이스되어 각종 데이터를 저장하여 INS(30)를 통해 CCS(40)로 전송한다.Inside ASS 0 (10) includes AP 12, LDB 14, and DBMS 16. AP 12 is an application that supports global transactions that process local transactions as a single transaction. It is a program that works by interfacing with the DBMS 16 so that the system can be expanded. The DBMS 16 is a database management system, and the LDB 14 which is an S-RAM capable of storing logs internally. The system is interfaced to manage various types of data. The LDB 14 is a local database, which is interfaced with the DBMS 16 to store various types of data and transmits the data to the CCS 40 through the INS 30.

또한, ASSN(20)내부에는 AP(22)와, LDB(24)와, DBMS(26)을 포함하는데, AP(22)는 응용 프로그램으로, 지역 트랜잭션을 하나의 트랜잭션으로 처리하는 전역 트랜잭션을 지원하여 시스템을 확장할 수 있도록 DBMS(26)와 인터페이스되어 동작하는 프로그램이고, DBMS(26)는 데이터베이스 관리 시스템으로, 내부적으로 로그(Log)를 저장할 수 있는 S-램(RAM)인 LDB(24)와 인터페이스되어 각종 데이터를 관리하는 시스템이며, LDB(24)는 로컬 데이터베이스로, 상기 DBMS(26)와 인터페이스되어 각종 데이터를 저장하여 INS(30)를 통해 CCS(40)로 전송한다.In addition, the ASS N 20 includes an AP 22, an LDB 24, and a DBMS 26. The AP 22 is an application program that executes a global transaction that processes a local transaction as a single transaction. It is a program that works by interfacing with the DBMS 26 to expand the system by supporting it. The DBMS 26 is a database management system, and an LDB (24) which is an S-RAM capable of storing logs internally. LDB 24 is interfaced with the DBMS 26 to store a variety of data to the CCS 40 through the INS (30).

INS(30)는 시스템의 중심에 위치하여 ASS0(10)∼ ASSn(20)상호간 혹은 ASS0∼n와 CCS(40)사이를 연결시켜주는 기능을 수행한다.INS (30) performs a function that was located in the center of the system connecting the ASS 0 (10) ~ ASS n (20) each other or ASS 0~n the CCS (40).

그리고, 스위치 네트워크는 T-S-T 스위치 구조를 가지고, 스페이스 스위치가 INS(30)에 위치하며, 타임 스위치는 ASS0∼n에 구성된다.The switch network has a TST switch structure, and the space switch is located in the INS 30, and the time switch is configured in ASS 0 to n.

호 처리 기능중 번호 번역, 루트 제어기능, 스페이스 스위치 연결과 같은 집중 기능을 수행하여 망동기 장치를 구비할 수 있고, 시스템 클럭을 생성, 배급하는 기능을 담당하며, 도시되지 않은 연결망 프로세서(Interconnection Network Processor : 이하, INP라 약칭함)를 포함하는 서브 시스템이다.Among the call processing functions, it can be equipped with a network synchronizer by performing centralized functions such as number translation, route control function, and space switch connection, and is responsible for generating and distributing a system clock. Processor (hereinafter abbreviated as INP).

INP는 INS(30)내부에 존재하고, 스페이스 스위치를 사용하는 통화로 검색 및 관리를 수행하여 내부 프로세서 통신(Inter Processor Communication)를 통해 CCS(40)내로 각종 정보를 전송시키는 프로세서이다.The INP is a processor existing in the INS 30 and performing a search and management through a call using a space switch to transmit various information into the CCS 40 through internal processor communication.

CCS(40)내부에는 AP(42)와, LDB(44)와, DBMS(46)을 포함하는데, AP(42)는 응용 프로그램으로, 지역 트랜잭션을 하나의 트랜잭션으로 처리하는 전역 트랜잭션을 지원하여 시스템을 확장할 수 있도록 DBMS(46)와 인터페이스되어 동작하는 프로그램이고, DBMS(46)는 데이터베이스 관리 시스템으로, 내부적으로 로그(Log)를 저장할 수 있는 S-램(RAM)인 LDB(44)와 인터페이스되어 각종 데이터를 관리하는 시스템이며, LDB(44)는 로컬 데이터베이스로, 상기 DBMS(46)와 인터페이스되어 각종 데이터를 저장한후, 전체적으로 백업할 수 있는 백업 DB(50)로 전송하여 각종 스태이블(Stable) 메모리들을 저장시킨다.The CCS 40 includes an AP 42, an LDB 44, and a DBMS 46. The AP 42 is an application program that supports a global transaction that processes a local transaction as a single transaction. The program is interfaced with the DBMS 46 to extend the DBMS 46, and the DBMS 46 is a database management system, which interfaces with the LDB 44, which is an S-RAM capable of internally storing logs. The LDB 44 is a local database, which is interfaced with the DBMS 46, stores various data, and transmits the data to the backup DB 50 which can be backed up as a whole. Save the memories.

상기와 같이 구성된 본 발명에 의한 전전자 교환기의 데이터베이스 전역 트랜잭션 관리 방법에 대한 블록 구성도에 대하여 설명하였고, 도 2는 전전자 교환기의 데이터베이스 전역 트랜잭션 관리 방법에 대한 본 발명의 상세 흐름도를 설명한다.A block diagram of a database global transaction management method of an electronic switchgear according to the present invention configured as described above has been described, and FIG. 2 illustrates a detailed flowchart of the database global transaction management method of an electronic switchgear.

데이터베이스 관리 시스템이 오프 라인에서의 동작과, 온 라인에서의 동작으로 구분되는데, 먼저 전역 트랜잭션을 처리하기 위한 전역 트랜잭션 세가지 명령어를 설명한다.The database management system is divided into operations that are offline and operations that are online. First, three commands for global transactions for processing global transactions are described.

전역 트랜잭션의 첫번째 명령어인 스타트 지티알(start-gtr) 지티알 아이디(gtr-ID) 타임 벨유(time-value)는 전역 트랜잭션의 시작을 알리는 것으로 지티알 아이디는 서로 다른 사이트의 트랜잭션이지만 하나의 트랜잭션으로 처리하기 위한 것으로 동일한 지티알 아이디를 갖는 트랜잭션은 하나의 트랜잭션으로 취급하고, 타임 벨유는 실시간 시스템이므로 트랜잭션 처리가 주어진 시간을 초과할 경우 트랜잭션으로서의 의미가 상실됨에 따라 이러한 시간 제약을 사용자에 의해 정의하도록 하는 것이다.The first command of the global transaction, start-gtr, the gtr-ID time-value, indicates the beginning of a global transaction. The GTID is a transaction from different sites, but a single transaction. Transactions with the same GTID ID are treated as one transaction.Time Bell is a real-time system, so when the transaction processing exceeds the given time, this time constraint is defined by the user as it loses its meaning as a transaction. To do that.

전역 트랜잭션의 두 번째 명령어인 에버트 지티알(abort-gtr)은 한 사이트 내에서 트랜잭션을 처리하는 도중 전역 트랜잭션을 철회해야할 경우 사용하는 명령어이고, 한 사이트에게 철회를 요청할 경우 이미 수행된 지역 트랜잭션을 철회하며, 전역 트랜잭션이 수행되기 전의 상태로 돌아가는 것이다.The second command in the global transaction, abort-gtr, is used when a global transaction must be withdrawn while processing a transaction within a site. If a request is made to a site, the local transaction has been withdrawn. It returns to the state before the global transaction was executed.

전역 트랜잭션의 세 번째 명령어인 앤드 지티알(end-gtr), 지티알 아이디(gtr-ID)는 전역 트랜잭션의 한 부분이 지역 트랜잭션의 완료를 나태내는 것으로 전역 트랜잭션 관리자는 참여한 지역 트랜잭션의 완료 요구가 모두 도착하였을 때, 데이터베이스에 변경된 사항을 기록하는 것이다.The third command of the global transaction, end-gtr and gtr-ID, indicates that one part of the global transaction represents the completion of a local transaction. When all arrives, it records the changes in the database.

상기와 같이 전역 트랜잭션을 처리하기 위해 전역 트랜잭션 명령어를 설명하였고, 다음으로 오프 라인에서의 동작을 설명하면, 질의어 전처리 과정에서 전역 트랜잭션 처리를 위한 데이터를 구축하고, 전역 트랜잭션 처리 명령어는 오프 라인상에서 응용 프로그램내에서 사용되며, 응용 프로그램이 수행 가능한 코드가 되기 위해 먼저 데이터베이스 전처리기가 작동되는 과정에서 질의어는 호스트 언어로 바뀐다.As described above, the global transaction command is described to process the global transaction. Next, the operation in the offline mode is described. In the preprocessing of the query, data for global transaction processing is constructed, and the global transaction processing command is applied offline. Used within a program, the query is changed to the host language when the database preprocessor is first run to make the application executable.

또한, 호스트 언어는 다시 호스트 언어 컴파일러에 의해 실행 가능한 코드가 되고, 데이터베이스 명령어에 대한 전처리가 이루어질 때 전역 트랜잭션에 대한 정보가 수집되며, 전역 트랜잭션에 참여하는 사이트의 위치와 수를 수집하여 하기 표 1과 같이 릴레이션에 보관한다.In addition, the host language is again executable code by the host language compiler, information about the global transaction is collected when preprocessing of the database instructions, and the location and number of sites participating in the global transaction by collecting the table 1 Stored in the relation as

* 전체 전역 트랜잭션에 대한 정보 테이블* Information table for the entire global transaction 지티알 아이디(gtr ID)Gtr ID 넘버 어브 캔디데이트(number of candidate)Number of Candidates 등록된 전역 트랜잭션 아이디Registered Global Transaction ID 동일한 지티알 아이디를 사용하는 트랜잭션의 수The number of transactions using the same digital ID

* 참여 트랜잭션에 대한 정보 테이블* Information table for participating transactions

지티알 아이디(gtr ID)Gtr ID 로컬 지티엠(Local-GTM) 어드레스Local-GTM Address 타임 벨유(time-value)Time-value 전역 트랜잭션 아이디Global transaction ID 전역 트랜잭션에 참여하는 지역 트랜잭션의 사이트 주소Site address of local transaction participating in global transaction 트랜잭션 시작후 타임 아웃까지의 시간Time from transaction start to timeout

응용 프로그램이 작성되고, 컴파일되어 동작하는 온 라인에서의 동작을 설명하는데, 온 라인 상태에서 데이터베이스 관리 시스템이 구동되면(단계 200), 전역 트랜잭션 식별자별로 하기 표 2의 데이터를 참고로 전역 처리 관리자(Global Transaction Manager : 이하, GTM이라 약칭함) 프로세서가 생성된다(단계 201).The application is written, compiled, and operated on-line. When the database management system is started on-line (step 200), the global processing manager ( Global Transaction Manager (hereinafter abbreviated as GTM) processor is generated (step 201).

Figure kpo00003
Figure kpo00003

여기서, 로컬 GTM은 GTM이 관리하는 참여 트랜잭션에 대한 사이트 주소이고, 각 로컬 GTM은 트랜잭션이 시작된 시간(s-time)과 타임 아웃으로 종료된 시간(t-out)이 결정된다Here, the local GTM is the site address for the participating transaction managed by the GTM, and each local GTM determines the time (s-time) at which the transaction started and the time (t-out) at which timeout ends.

ASS의 AP에서 스타트 지티알(start-gtr)이 시작되면(단계 202), 로컬 GTM은 전역 트랜잭션의 시작을 알리는 메시지를 GTM으로 전달한다(단계 203).When start-gtr is started at the AP of the ASS (step 202), the local GTM sends a message to the GTM indicating the start of the global transaction (step 203).

GTM은 로컬 GTM의 트랜잭션 스타트 시간과, 비긴 플레그(Begin flag)와, 타임 아웃(t-out) 시간을 정하고, 에크(ACK) 메시지를 로컬 GTM으로 전달한다(단계 204).The GTM establishes the transaction start time, Begin flag, and time out (t-out) time of the local GTM and forwards the ACK message to the local GTM (step 204).

로컬 GTM은 에크(ACK) 메시지가 정상으로 도착되었는가를 판단(단계 205)하여 도착되지 않으면, 타임 아웃(단계 206)이 되고 끝낸다.The local GTM determines if the ACK message has arrived normally (step 205) and if it does not arrive, times out (step 206) and ends.

에크(ACK) 메시지가 정상으로 도착되면, 로컬 GTM은 에크(ACK) 메시지를 전송받고, 로그 레코드를 지역 로그 버퍼에 저장한다(단계 207).If the ACK message arrives normally, the local GTM receives the ACK message and stores the log record in the local log buffer (step 207).

ASS의 AP에서 전역 트랜잭션을 철회할 경우 에버트 지티알(abort-gtr) 실행을 요구한다(단계 208).When withdrawing the global transaction from the AP of the ASS, it requires the execution of abort-gtr (step 208).

전역 트랜잭션 철회를 요구받은 GTM은 해당 로컬 GTM의 에버트 플레그를 세트한다(단계 209).The GTM requested to withdraw the global transaction sets the Everflag of the local GTM (step 209).

먼저 종료된 로컬 GTM에게 철회를 요구하고, 해당 로컬 GTM은 지역 로그 버퍼를 사용하여 회복한다(단계 210).The local GTM is requested to withdraw first and the local GTM recovers using the local log buffer (step 210).

각 로컬 GTM에게 GTM 차원에서의 철회를 전달(단계 211)하면, 모든 로컬 GTM이 철회되었는가를 검사한다(단계 212)When each local GTM is passed a revocation at the GTM level (step 211), it is checked whether all local GTMs have been withdrawn (step 212).

ASS내의 AP에서 앤드 지티알(end-gtr)을 요청(단계 213)할 경우는 앤드 지티알 요청에 의해 로그 백업 데이터 내용들을 백업 데이터베이스에 저장한다(단계 214)When the end-gtr is requested from the AP in the ASS (step 213), the log backup data contents are stored in the backup database by the end-TG request (step 214).

다음으로 앤드 지티알 메시지를 GTM으로 전달하면(단계 215), GTM은 해당 로컬 GTM의 앤드 플레그를 세트한다(단계 216).Next, when the AND GTIAL message is delivered to the GTM (step 215), the GTM sets the end flag of the corresponding local GTM (step 216).

마지막 로컬 GTM인가를 확인하고 모든 로컬 GTM에게 에크 신호를 전달한다(단계 217).Confirm that it is the last local GTM and send an Ack signal to all local GTMs (step 217).

로컬 GTM으로 에크 신호가 전달되었는가의 판단(단계 218)에서 전달되지 않으면, 상기 (단계 208)을 재 실행한다.If not in the determination of whether the Ack signal has been delivered to the local GTM (step 218), then execute again (step 208).

로컬 GTM으로 에크 신호가 전달되면, 로컬 GTM은 에크 신호를 전달받고, 백업 데이터베이스에 업 데이트한다(단계 219).If an ACK signal is delivered to the local GTM, the local GTM receives the ACK signal and updates the backup database (step 219).

따라서, 스타트 지티알과, 앤드 지티알에 대한 요구가 로컬 GTM으로부터 전송될때마다 GTM은 타임 아웃에 해당하는 트랜잭션이 있는가를 살피고, 해당되는 경우가 있으면, 참여하는 로컬 GTM에게 철회를 요청한다.Therefore, whenever a request for Start GTial and End GTIAL is sent from the local GTM, the GTM checks whether there is a transaction corresponding to the timeout, and if so, requests the participating local GTM to withdraw.

로컬 GTM은 GTM으로부터 철회를 요청받고, 전역 트랜잭션이 종료될때까지 해당 자료에 대한 로그를 보유하고, 타임 아웃까지 전역 트랜잭션의 종료에 대한 요구가 없을 경우 자체적으로 철회하며, GTM에 철회 요청을 보내어 보유한 로그를 반환함에 따라 GTM은 통신 장애로 인한 메시지 전송에 대한 오류에 대해 불일치가 생기는 것을 방지하기 위해 주기적으로 로컬 GTM에 대한 감시 기능을 수행한다.The local GTM is requested to withdraw from the GTM, keeps a log of the data until the end of the global transaction, withdraws itself if there is no request for the end of the global transaction by the timeout, and sends a withdrawal request to the GTM. By returning the log, the GTM periodically monitors the local GTM to avoid inconsistencies in the error of message transmission due to communication failure.

이상, 상기와 같이 설명한 본 발명은 전전자 교환기의 데이터베이스 관리 시스템에서 여러 지역 트랜잭션을 하나의 전역 트랜잭션으로 처리하므로, 분산 트랜잭션 처리에 대한 응용 분야를 폭넓게 확대하고, 응용 프로그램 작성자에게 전역 트랜잭션 처리에 대한 부담을 제거하여 데이터베이스 관리 시스템의 성능을 향상시킬 수 있는 효과가 있다.As described above, the present invention described above processes multiple local transactions as one global transaction in the database management system of the electronic switchboard, thereby broadly expanding the application field for distributed transaction processing, and providing application programmers with global transaction processing. This can remove the burden and improve the performance of the database management system.

Claims (1)

스타트 지티알과, 에버트 지티알과, 앤드 지티알과, 전역 트랜잭션 관리자와, 로컬 전역 트랜잭션 관리자와, 백업 데이터베이스를 구비하며, 전전자 교환기의 데이터베이스 전역 트랜잭션 관리 방법에 있어서,In the method of managing a database global transaction of an electronic switchgear having a start digital, an Ever digital, a global transaction manager, a local global transaction manager, and a backup database, 상기 데이터베이스 관리 시스템이 구동되면, 상기 전역 트랜잭션 관리자 프로세서가 생성되는 단계;Generating the global transaction manager processor when the database management system is driven; 상기 스타트 지티알이 시작되면, 상기 로컬 전역 트랜잭션 관리자는 상기 전역 트랜잭션의 시작을 알리는 메시지를 상기 전역 트랜잭션 관리자로 전달하는 단계;When the start digital is started, the local global transaction manager forwards a message to the global transaction manager indicating the start of the global transaction; 상기 전역 트랜잭션 관리자는 상기 로컬 전역 트랜잭션 관리자의 트랜잭션 스타트 시간과, 비긴 플레그와, 타임 아웃 시간을 정하고, 에크 메시지를 상기 로컬 전역 트랜잭션 관리자로 전달하는 단계;The global transaction manager determining a transaction start time, an empty flag, a timeout time of the local global transaction manager, and forwarding an acknowledge message to the local global transaction manager; 상기 로컬 전역 트랜잭션 관리자는 에크 메시지가 정상으로 도착되었는가를 판단하여 도착되지 않으면, 타임 아웃이 되는 단계;The local global transaction manager determines whether the Ack message has arrived normally, and if it does not arrive, time-out; 상기 에크 메시지가 정상 도착되면, 상기 로컬 전역 트랜잭션 관리자는 에크 메시지를 전송받고, 로그 레코드를 지역 로그 버퍼에 저장하는 단계;If the Ack message arrives normally, the local global transaction manager receives an Ack message and stores a log record in a local log buffer; 상기 에버트 지티알 실행 요구에 의해 상기 전역 트랜잭션 철회를 요구받은 상기 전역 트랜잭션 관리자는 상기 로컬 전역 트랜잭션 관리자의 에버트 플레그를 세트하는 단계;Setting, by the global transaction manager, an Ever flag of the local global transaction manager, the global transaction manager being requested to withdraw the global transaction by the Ever GTial execution request; 상기 로컬 전역 트랜잭션 관리자에게 철회를 요구하면, 상기 로컬 전역 트랜잭션 관리자는 지역 로그 버퍼를 사용하여 회복하는 단계;Upon requesting revocation of the local global transaction manager, the local global transaction manager recovers using a local log buffer; 상기 로컬 전역 트랜잭션 관리자에게 상기 전역 트랜잭션 관리자 차원에서의 철회에 대하여 전달하면, 상기 로컬 전역 트랜잭션 관리자가 철회되었는가를 검사하는 단계;Checking if the local global transaction manager has been withdrawn when forwarding to the local global transaction manager for revocation at the global transaction manager level; 상기 앤드 지티알 요청에 의해 로그 백업 데이터 내용들을 상기 백업 데이터베이스에 저장하는 단계;Storing log backup data contents in the backup database by the end-tial request; 상기 앤드 지티알 메시지를 상기 전역 트랜잭션 관리자로 전달하면, 상기 전역 트랜잭션 관리자는 상기 로컬 전역 트랜잭션 관리자의 상기 앤드 플레그를 세트하는 단계;Forwarding the end digital message to the global transaction manager, the global transaction manager setting the end flag of the local global transaction manager; 상기 로컬 전역 트랜잭션 관리자인가를 확인하고, 상기 로컬 전역 트랜잭션 관리자에게 에크 신호를 전달하는 단계;Confirming whether the local global transaction manager is present, and transmitting an ACK signal to the local global transaction manager; 상기 로컬 전역 트랜잭션 관리자로 에크 신호가 전달되지 않으면, 상기 에버트 지티알 실행을 요구하는 단계를 재 실행하는 단계;Redeploying the step of requesting the execution of the EBT, if an ACK signal is not sent to the local global transaction manager; 상기 로컬 전역 트랜잭션 관리자로 에크 신호가 전달되면, 상기 로컬 전역 트랜잭션 관리자는 에크 신호를 전달받고, 상기 백업 데이터베이스에 업 데이트하는 단계를 포함하는 것을 특징으로 하는 전전자 교환기의 데이터베이스 전역 트랜잭션 관리 방법.And if the ACK signal is transmitted to the local global transaction manager, the local global transaction manager receives the ACK signal and updates the backup database.
KR1019970039850A 1997-08-21 1997-08-21 Database gtm management method of ess KR100250663B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019970039850A KR100250663B1 (en) 1997-08-21 1997-08-21 Database gtm management method of ess

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019970039850A KR100250663B1 (en) 1997-08-21 1997-08-21 Database gtm management method of ess

Publications (2)

Publication Number Publication Date
KR19990017083A KR19990017083A (en) 1999-03-15
KR100250663B1 true KR100250663B1 (en) 2000-04-01

Family

ID=19518031

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019970039850A KR100250663B1 (en) 1997-08-21 1997-08-21 Database gtm management method of ess

Country Status (1)

Country Link
KR (1) KR100250663B1 (en)

Also Published As

Publication number Publication date
KR19990017083A (en) 1999-03-15

Similar Documents

Publication Publication Date Title
US7912858B2 (en) Data synchronization method
US6941327B2 (en) Apparatus and method for database synchronization in a duplex system
US7366738B2 (en) Method and system for object cache synchronization
US6374243B1 (en) Database access system having time-out mechanism
EP1416387A2 (en) System and method for maintaining transaction cache consistency in mobile computing environment
US5327560A (en) Method of updating network reconfiguration information exchanged between a host computer and a communication control processor
US5329628A (en) Database system providing direct access for reads and indirect locked access for writes and reads in which an error was detected in previous attempt
KR100250663B1 (en) Database gtm management method of ess
CN113094431A (en) Read-write separation method and device and server
JPH10105481A (en) Method for mediating service and its device
CN109254853B (en) Data sharing method, data sharing system and computer readable storage medium
KR950005987B1 (en) Maintenance system in electronic exchange
JP2000148563A (en) System having plurality of server computers
KR20010057441A (en) The Method of on-line data consistency between master and slave database
KR940007839B1 (en) Method of processing transaction on real time database management system
KR100316841B1 (en) Method for restarting an agent and apparatus thereof
KR970000070B1 (en) Processor control method for switching system
JP2002278820A (en) Database management system
KR100539912B1 (en) How to collectively back up and load processor load data in the exchange database management system
KR950010487B1 (en) Db skima management method
KR950003681B1 (en) Maintaining method of electronic exchanges
KR970011854B1 (en) Relation data processing method of distribution dbms system
KR100524420B1 (en) method and apparatus for data restoration in switching system
KR100304364B1 (en) Method for operation and management data processing in switching system
KR0174603B1 (en) How to restore the database of the exchange

Legal Events

Date Code Title Description
A201 Request for examination
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
LAPS Lapse due to unpaid annual fee