KR20010028113A - method for data backup of DBMS in switching system - Google Patents

method for data backup of DBMS in switching system Download PDF

Info

Publication number
KR20010028113A
KR20010028113A KR1019990040182A KR19990040182A KR20010028113A KR 20010028113 A KR20010028113 A KR 20010028113A KR 1019990040182 A KR1019990040182 A KR 1019990040182A KR 19990040182 A KR19990040182 A KR 19990040182A KR 20010028113 A KR20010028113 A KR 20010028113A
Authority
KR
South Korea
Prior art keywords
log
dbms
buffer
database
master processor
Prior art date
Application number
KR1019990040182A
Other languages
Korean (ko)
Other versions
KR100324276B1 (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 KR1019990040182A priority Critical patent/KR100324276B1/en
Publication of KR20010028113A publication Critical patent/KR20010028113A/en
Application granted granted Critical
Publication of KR100324276B1 publication Critical patent/KR100324276B1/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
    • H04M2201/00Electronic components, circuits, software, systems or apparatus used in telephone systems
    • H04M2201/36Memories
    • 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: The method for making the backup data of a DBMS(DataBase Management System) in a switching center is provided to process a log stably and efficiently, by storing the log, generated by the change of a database, in a log buffer, and allowing the DBMS to perform the function for generating and maintaining the log. CONSTITUTION: An application program requests an access to the database to the DBMS(S10). The DBMS check if the request received from the application program is for changing the database(S12). The DBMS searches the database and copies searched data into an application program area if the request is not related to the change of the database(S14). If the request is for changing the database, the DBMS checks whether the log buffer has a space enough for storing a log(S16). If there exists an enough space in the log buffer, the data resident in a main memory is changed(S18), and then the log is stored in the log buffer, and the value of a generation index is incremented(S20).

Description

교환기에서 데이터베이스 관리 시스템의 데이터 백업 방법{method for data backup of DBMS in switching system}Method for data backup of DBMS in switching system

본 발명은 교환기에서 DBMS의 데이터 백업 방법에 관한 것으로서, 특히 데이터 백업 처리를 신속하게 수행하고, 로그 처리를 안정되고 효율적으로 수행할 수 있도록 하는 교환기에서 DBMS의 데이터 백업 방법에 관한 것이다.The present invention relates to a data backup method of a DBMS at an exchange, and more particularly, to a data backup method of a DBMS at an exchange that enables to perform data backup processing quickly and to perform log processing stably and efficiently.

일반적으로 교환기 내의 모든 정보들은 처리와 저장의 효율성을 위해서 고도로 최적화되어 있기 때문에 이를 관리하는 것은 매우 복잡하고 어려운 일이다. 따라서, 정보의 관리를 전문으로 담당하는 데이터베이스 관리 시스템(Database Management system;이하, DBMS라 한다)을 두어 사용자를 복잡한 데이터로부터 독립시키고 정형화된 기호로 접근하도록 하였다.In general, managing all of the information in an exchange is highly optimized for processing and storage efficiency, so managing it is very complex and difficult. Therefore, a database management system (hereinafter referred to as DBMS) that specializes in the management of information has been set up so that users can be separated from complex data and accessed with standardized symbols.

여기서, 교환기는 실시간 시스템으로 모든 데이터를 주기억장치에서 관리하는 주기억 상주 데이터베이스 관리 시스템을 사용하는 데, 주기억장치는 휘발성 기억 장치로 전원의 차단, 프로세스의 종료 시에는 데이터베이스가 소멸하게 되므로 데이터의 변경이 발생하면 디스크로 그 내역을 백업한다.Here, the exchange uses a main memory resident database management system that manages all data in the main memory as a real-time system. The main memory is a volatile memory device. If so, back up the details to disk.

도 1은 종래 교환기에서 DBMS의 데이터 백업 장치를 나타내는 도이다. 도 1에 도시하는 바와 같이, 종래 교환기에서 DBMS의 데이터 백업 장치는 응용 프로그램(10)과, DBMS(20)와, 데이터베이스(30)와, 로그 전송부(40)를 구비하여 이루어진다.1 is a diagram illustrating a data backup device of a DBMS in a conventional exchange. As shown in Fig. 1, a data backup apparatus of a DBMS in a conventional switch is provided with an application program 10, a DBMS 20, a database 30, and a log transmitter 40.

이와 같은 구성에 있어서, 응용 프로그램(10)은 API(Application Program Interface;응용 프로그램 인터페이스)(13)를 통해 DBMS(20)로 데이터베이스(30) 접근 요청을 한다. 여기서, API(13)는 응용 프로그램(10)과 링크되어 DBMS(20)의 기본 소프트웨어를 사용하여 응용 프로그램(10)을 작성하기 위해 DBMS(20)와 접속되어 있고, 응용 프로그램 영역에 구비되어 있는 로그 버퍼(15)에 기록된 로그를 IPC(Interprocess Communication)를 사용하여 로그 전송부(40)로 전송한다.In such a configuration, the application program 10 makes a request to access the database 30 to the DBMS 20 through an API (Application Program Interface) 13. Here, the API 13 is linked with the application program 10 and is connected to the DBMS 20 to create the application program 10 using the basic software of the DBMS 20, which is provided in the application area. The log recorded in the log buffer 15 is transmitted to the log transmitter 40 using IPC (Interprocess Communication).

DBMS(20)는 데이터베이스(30)에 접속되어 응용 프로그램(10)으로부터 데이터베이스(30) 변경 요청을 받으면 데이터베이스(30)를 변경하고, 변경 내역을 응용 프로그램 영역에 구비되어 있는 로그 버퍼(15)에 기록한다.When the DBMS 20 is connected to the database 30 and receives a change request of the database 30 from the application 10, the DBMS 20 changes the database 30 and records the change history in the log buffer 15 provided in the application area. Record it.

로그 전송부(40)는 API(13)를 통해 응용 프로그램(10)으로부터 백업 로그를 전송받아 로그 처리부(43)에서 마스터 프로세서(50)의 백업 로그 전송 규격에 맞춰 재구성한 후 IPC를 사용하여 마스터 프로세서(50)로 백업 로그를 전송한다.The log transmission unit 40 receives the backup log from the application 10 through the API 13, reconfigures the log processing unit 43 according to the backup log transmission standard of the master processor 50, and then uses the IPC to master. The backup log is transmitted to the processor 50.

여기서, 마스터 프로세서(50)는 로그 전송부(40)로부터 백업 로그를 전송받아 디스크(53)에 저장시킨다.Here, the master processor 50 receives the backup log from the log transmitter 40 and stores it in the disk 53.

이하에서는 첨부 도면 도 1을 참조하여 종래 교환기에서 DBMS의 데이터 백업 장치의 동작 과정에 대해서 설명한다.Hereinafter, an operation process of a data backup device of a DBMS in a conventional exchange will be described with reference to FIG. 1.

먼저, 응용 프로그램(10)은 데이터 변경을 위해 API(13)를 통해 DBMS(20)로 데이터베이스(30) 접근을 요청하고, 응용 프로그램(10)으로부터 데이터베이스(30) 접근 요청을 인가받은 DBMS(20)는 응용 프로그램(10)으로부터 인가받은 요청이 데이터베이스(30) 변경 요청이면, 주기억장치에 상주하는 데이터베이스(30)를 변경하고, 변경 내역을 응용 프로그램 영역의 로그 버퍼(15)에 기록한다. 이후, 응용 프로그램(10)에 링크되어 있는 API(13)는 로그 버퍼(15)에 기록되어 있는 로그를 로그 전송부(40)로 IPC를 사용하여 전송하고, 응용 프로그램(10)으로부터 로그를 전송받은 로그 전송부(40)의 로그 처리부(43)는 마스터 프로세서(50)로의 백업 로그 전송 규격에 맞춰 로그를 재구성한 후 마스터 프로세서(50)로 IPC를 사용하여 백업 로그를 전송하고, 응용 프로그램(10)으로 로그를 정상적으로 전송받았다는 응답 메시지를 보낸다. 한편, 로그 전송부(40)로부터 백업 로그를 전송받은 마스터 프로세서(50)는 전송받은 백업 로그를 디스크(53)에 저장한다.First, the application 10 requests the database 30 access to the DBMS 20 through the API 13 for data change, and the DBMS 20 authorized to access the database 30 from the application 10. ) Changes the database 30 residing in the main memory if the request authorized from the application 10 is a database 30 change request, and records the change history in the log buffer 15 of the application area. Thereafter, the API 13 linked to the application 10 transmits the log recorded in the log buffer 15 to the log transmission unit 40 using IPC, and transmits the log from the application 10. The log processing unit 43 of the received log transmission unit 40 reconstructs the log according to the backup log transmission standard to the master processor 50, and then transfers the backup log using the IPC to the master processor 50, and the application program ( 10) sends a response that the log has been successfully sent. Meanwhile, the master processor 50 receiving the backup log from the log transmitter 40 stores the received backup log on the disk 53.

이상에서 살펴본 바와 같이, 종래의 교환기 DBMS의 데이터 백업 방법은 데이터베이스(30) 변경으로 인해 백업 로그가 발생하면 API(13)는 IPC를 사용하여 백업 로그를 로그 전송부(40)로 전송하고, 로그 전송부(40)도 IPC를 사용하여 마스터 프로세서(50)로 백업 로그를 전송함으로써, 로그 처리 성능이 지연될 수 있는 문제점이 있다. 그리고, IPC를 사용하여 로그를 전송할 때 로그들에 대한 IPC 큐를 운영 체계 영역에서 할당받아 사용해야 하므로 운영 체계 자원 낭비를 유발하는 문제점이 있다. 그리고, 응용 프로그램(10)은 로그 전송부(40)로 로그를 전송한 후에는 항상 로그가 정상적으로 전송되었는 지에 대한 응답을 로그 전송부(40)로부터 받아야 하기 때문에 사용자에게로의 리턴이 느려지고 DBMS(20) 접근 성능이 급격히 저하되는 문제점이 있다. 그리고, 로그 버퍼(15)가 각각의 사용자 영역, 즉 응용 프로그램 영역에 위치하여 불필요한 메모리 낭비를 유발하는 문제점이 있다. 즉, 로그 버퍼(15)는 응용 프로그램의 개수에 비례하므로 메모리 낭비를 유발한다. 그리고, 로그 버퍼(15)가 각각의 응용 프로그램(10)에 분산되어 있으므로 버퍼의 생성 및 유지에 비효율적인 문제점이 있다.As described above, in the data backup method of the conventional exchange DBMS, when the backup log occurs due to the database 30 change, the API 13 transmits the backup log to the log transmitter 40 using IPC, and logs The transmitter 40 also transmits a backup log to the master processor 50 using IPC, which may delay log processing performance. In addition, since IPC queues for logs are allocated and used in an operating system area when transmitting logs using IPC, there is a problem causing waste of operating system resources. In addition, after the application 10 transmits the log to the log transmitter 40, the application 10 always receives a response from the log transmitter 40 to determine whether the log is normally transmitted. ) There is a problem that the access performance is drastically reduced. In addition, the log buffer 15 is located in each user area, that is, an application program area, causing unnecessary memory waste. That is, the log buffer 15 is proportional to the number of applications, causing memory waste. In addition, since the log buffer 15 is distributed to each application program 10, there is a problem of inefficient creation and maintenance of the buffer.

본 발명은 전술한 문제점을 해결하기 위해 안출된 것으로서, 데이터베이스 변경으로 인해 생성된 로그를 DBMS 영역 내의 로그 버퍼에 저장시키고, DBMS에서 로그 생성 및 유지에 관한 전반적인 기능을 담당하도록 함으로써, 로그 처리를 안정되고 효율적으로 수행할 수 있도록 하는 교환기에서 DBMS의 데이터 백업 방법을 제공함에 그 목적이 있다.SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problems, and the log generated by changing the database is stored in a log buffer in a DBMS area, and the log processing is stabilized by performing a general function related to log generation and maintenance in the DBMS. The purpose is to provide a data backup method of the DBMS in the exchange that can be performed efficiently and efficiently.

본 발명의 다른 목적은 로그 버퍼를 DBMS에 구비시킴으로써, 사용자 영역의 메모리를 절약할 수 있도록 하는 데 있다.Another object of the present invention is to provide a log buffer in the DBMS, thereby saving memory in the user area.

도 1은 종래 교환기에서 DBMS의 데이터 백업 장치를 나타내는 도.1 is a diagram showing a data backup device of a DBMS in a conventional exchange.

도 2는 본 발명의 데이터 백업 방법이 적용되는 교환기에서 DBMS의 데이터 백업 장치의 구성을 보인 도.Figure 2 is a diagram showing the configuration of a data backup device of the DBMS in the exchange to which the data backup method of the present invention is applied.

도 3은 도 2의 DBMS에 구비되어 있는 로그 버퍼의 구조를 나타내는 도.3 is a diagram illustrating the structure of a log buffer included in the DBMS of FIG.

도 4a 및 도 4b는 본 발명에 따른 교환기 DBMS의 데이터 백업 방법을 설명하기 위한 플로우챠트.4A and 4B are flowcharts for explaining a data backup method of the exchange DBMS according to the present invention.

*** 도면의 주요 부분에 대한 부호의 설명 ****** Explanation of symbols for the main parts of the drawing ***

100. 응용 프로그램, 110. API,100. Application, 110. API,

200. DBMS, 210. 로그 버퍼,200.MSMS, 210.Log buffer,

211. 생성 인덱스, 213. 전송 인덱스,211. Create index, 213. Transfer index,

215. 백업 상태 표시부, 217. 로그부,215. Backup status display section, 217. Log section,

300. 데이터베이스, 400. 로그 전송부,300. database, 400. log transmission,

410. 로그 처리부, 500. 마스터 프로세서,410. Log processing unit, 500. Master processor,

510. 디스크510.Disk

전술한 목적을 달성하기 위한 본 발명의 교환기에서 DBMS의 데이터 백업 방법은, 데이터베스 변경으로 인해 생성된 로그를 DBMS 영역 내에 구비되어 있는 로그 버퍼에 저장하는 로그 생성 과정과; 상기 로그 버퍼에 저장되어 있는 로그를 읽어와 IPC를 사용하여 마스터 프로세서로 전송하는 로그 전송 과정을 포함하여 이루어진다.In the switch of the present invention for achieving the above object, a data backup method of a DBMS, the log generation process of storing a log generated by the database changes in a log buffer provided in the DBMS area; And a log transmission process of reading the log stored in the log buffer and transmitting the log to the master processor using IPC.

그리고, 상기 로그 버퍼에는, 상기 생성된 로그가 저장되는 주소를 나타내는 생성 인덱스와, 전송된 로그의 주소를 나타내는 전송 인덱스와, 백업 상태를 나타내는 백업 상태 표시 값과, 다수의 로그가 저장되는 것을 특징으로 한다.The log buffer may include a generation index indicating an address at which the generated log is stored, a transmission index indicating an address of the transmitted log, a backup status indication value indicating a backup status, and a plurality of logs. It is done.

그리고, 상기 로그 생성 과정은, 데이터베이스에 대한 변경 요청이 있을 때 상기 로그 버퍼에 상기 로그를 저장할 충분한 공간이 존재하는 지를 판단하는 단계와; 상기 판단결과 로그를 저장할 충분한 공간이 존재하는 경우에는 데이터를 변경한 후, 상기 로그 버퍼에 상기 로그를 저장하고, 생성 인덱스 값을 증가시키는 단계를 포함하여 이루어지는 것을 특징으로 한다.The log generating process may include determining whether there is enough space in the log buffer to store the log when a change request is made to a database; And if there is sufficient space to store the log as a result of the determination, after changing the data, storing the log in the log buffer and increasing a generation index value.

그리고, 상기 로그 전송 과정은, DBMS의 함수 호출을 이용하여 상기 로그 버퍼에 백업할 로그가 존재하는 지를 판단하는 단계와; 상기 판단결과 상기 로그 버퍼에 백업할 로그가 존재하는 경우에는 상기 로그 버퍼에 저장되어 있는 로그를 읽어오는 단계와; 상기 읽어온 로그를 상기 마스터 프로세서로의 로그 전송 규격에 맞춰 재구성한 후 IPC를 사용하여 상기 마스터 프로세서로 전송하고, 상기 마스터 프로세서로부터 로그 백업 결과를 기다리는 단계를 포함하여 이루어지는 것을 특징으로 한다.The log transmission process may include determining whether a log to be backed up in the log buffer exists by using a function call of a DBMS; Reading a log stored in the log buffer if a log to be backed up exists in the log buffer as a result of the determination; And reconstructing the read log according to the log transmission standard to the master processor and transmitting the read log to the master processor using IPC and waiting for a log backup result from the master processor.

그리고, 상기 판단결과 상기 로그 버퍼에 백업할 로그가 존재하지 않은 경우에는, 상기 마스터 프로세서로 전송할 로그가 존재하는 지를 판단하는 단계와; 상기 판단결과 마스터 프로세서로 전송할 로그가 존재하는 경우에는 상기 로그를 상기 마스터 프로세서로의 로그 전송 규격에 맞춰 재구성한 후 IPC를 사용하여 상기 마스터 프로세서로 전송하고, 상기 마스터 프로세서로부터 로그 백업 결과를 기다리는 단계를 더 포함하여 이루어지는 것을 특징으로 한다.Determining whether there is a log to be transmitted to the master processor when there is no log to be backed up in the log buffer; If there is a log to be transmitted to the master processor as a result of the determination, reconstructing the log according to the log transmission standard to the master processor and transmitting the log to the master processor using IPC, and waiting for a log backup result from the master processor Characterized in that further comprises.

이하에서는 첨부한 도면을 참조하여 본 발명의 바람직한 실시예에 따른 교환기에서 DBMS의 데이터 백업 방법에 대해서 상세하게 설명한다.Hereinafter, with reference to the accompanying drawings will be described in detail with respect to the data backup method of the DBMS in the switch according to the preferred embodiment of the present invention.

도 2는 본 발명의 데이터 백업 방법이 적용되는 교환기에서 DBMS의 데이터 백업 장치의 구성을 보인 도이다. 도 2에 도시하는 바와 같이, 본 발명에 따른 교환기에서 DBMS의 데이터 백업 장치는 응용 프로그램(100)과, DBMS(200)와, 데이터베이스(300)와, 로그 전송부(400)를 구비하여 이루어진다.2 is a diagram showing the configuration of a data backup device of a DBMS in an exchange to which the data backup method of the present invention is applied. As shown in FIG. 2, the DBMS data backup apparatus in the switch according to the present invention includes an application program 100, a DBMS 200, a database 300, and a log transmitter 400.

이와 같은 구성에 있어서, 응용 프로그램(100)은 API(110)를 통해 DBMS(200)로 데이터베이스(300) 접근을 요청한다. 여기서, API(110)는 응용 프로그램(100)과 링크되어 DBMS(200)의 기본 소프트웨어를 사용하여 응용 프로그램(100)을 작성하기 위해 DBMS(200)와 접속되어 있다.In such a configuration, the application program 100 requests access to the database 300 to the DBMS 200 through the API 110. Here, the API 110 is linked with the application program 100 and connected with the DBMS 200 to create the application program 100 using the basic software of the DBMS 200.

DBMS(200)는 데이터베이스(300)에 접속되어 응용 프로그램(100)으로부터 데이터베이스(300) 변경 요청을 받으면 데이터베이스(300)를 변경하고, 변경 내역을 DBMS(200)에 구비되어 있는 로그 버퍼(210)에 저장한다.When the DBMS 200 is connected to the database 300 and receives a change request of the database 300 from the application 100, the DBMS 200 changes the database 300 and records the change history in the log buffer 210 provided in the DBMS 200. Store in

로그 전송부(400)는 DBMS(200)로부터 백업 로그를 전송받아 로그 처리부(410)에서 마스터 프로세서(500)의 백업 로그 전송 규격에 맞춰 재구성한 후 IPC를 사용하여 마스터 프로세서(500)로 백업 로그를 전송한다.The log transmitter 400 receives the backup log from the DBMS 200, reconfigures the log processor 410 according to the backup log transmission standard of the master processor 500, and then uses the IPC to backup the backup log to the master processor 500. Send it.

여기서, 마스터 프로세서(500)는 로그 전송부(400)로부터 백업 로그를 전송받아 디스크(510)에 저장시킨다.Here, the master processor 500 receives the backup log from the log transmitter 400 and stores the backup log in the disk 510.

도 3은 도 2의 DBMS에 구비되어 있는 로그 버퍼의 구조를 나타내는 도이다. 도 3에 도시하는 바와 같이, 본 발명에 적용되는 로그 버퍼는 DBMS(200)의 데이터 변경으로 인해 생성된 로그가 저장되는 로그 버퍼(210)의 주소를 나타내는 생성 인덱스(211)와, 로그 전송부(400)로 로그가 전송된 로그 버퍼(210)의 주소를 나타내는 전송 인덱스(213)와, 백업 상태를 나타내는 백업 상태 표시부(215)와, 다수의 로그가 저장되는 로그부(217)로 구성된다.3 is a diagram illustrating a structure of a log buffer included in the DBMS of FIG. 2. As shown in FIG. 3, the log buffer applied to the present invention includes a generation index 211 indicating an address of a log buffer 210 in which a log generated due to a data change of the DBMS 200 is stored, and a log transfer unit. A transmission index 213 indicating an address of the log buffer 210 in which the log is transmitted to 400, a backup state display unit 215 indicating a backup state, and a log unit 217 in which a plurality of logs are stored. .

상기한, 백업 상태 표시부(215)는 정상적인 백업을 수행함(dobkup), 백업을 하지 않음(nobkup), 백업을 해야 하나 현재는 로그 버퍼가 충만 상태이기 때문에 로그 버퍼가 충만 상태가 아닐 때까지 기다려야 함(logfull), 현재 데이터베이스 전체에 백업이 금지되어 있음(prohibit)과 같이 상황에 따라 다른 값을 갖는다.As described above, the backup status display unit 215 performs normal backup (dobkup), does not backup (nobkup), and should back up, but because the log buffer is currently full, it must wait until the log buffer is not full. (logfull), which has different values depending on the situation, such as backup is currently prohibited for the entire database.

도 4a 및 도 4b는 본 발명에 따른 교환기 DBMS의 데이터 백업 방법을 설명하기 위한 플로우챠트이다.4A and 4B are flowcharts for explaining a data backup method of the exchange DBMS according to the present invention.

본 발명에 따른 교환기 DBMS의 데이터 백업 방법은 데이터베이스(300) 변경으로 인해 로그가 생성되는 로그 생성 과정과, 로그 생성 과정에서 생성된 로그를 디스크(510)에 저장시킬 수 있도록 마스터 프로세서(500)로 전송하는 로그 전송 과정으로 이루어진다.In the data backup method of the switchboard DBMS according to the present invention, a log generation process in which a log is generated due to a change in the database 300, and a log generated in the log generation process may be stored on the disk 510 to the master processor 500. The log transfer process is performed.

먼저, 로그 생성 과정을 살펴보면, 도 4a에 도시하는 바와 같이, 응용 프로그램(100)은 데이터 변경을 위해 API(110)를 통해 DBMS(200)로 데이터베이스(300) 접근을 요청하고(S10), 응용 프로그램(100)으로부터 데이터베이스(300) 접근 요청을 인가받은 DBMS(200)는 응용 프로그램(100)으로부터 인가받은 요청이 데이터베이스(300) 변경 요청인지를 판단한다(S12). 상기한 과정 S12의 판단결과 응용 프로그램(100)으로부터 인가받은 요청이 데이터베이스(300) 변경 요청이 아닌 경우에 DBMS(200)는 데이터베이스(300)를 검색하여, 검색된 데이터를 응용 프로그램 영역에 복사한다(S14). 한편, 응용 프로그램으로부터 인가받은 요청이 데이터베이스(300) 변경 요청인 경우에 DBMS(200)는 DBMS(200) 내에 구비되어 있는 로그 버퍼(210)의 생성 인덱스와 전송 인덱스를 체크하여 로그를 저장할 충분한 공간이 있는 가를 판단한다(S16). 상기한 과정 S16의 판단결과 로그 버퍼(210)에 로그를 저장할 충분한 공간이 있는 경우에는 주기억장치에 상주하는 데이터를 변경한 후(S18), 로그 버퍼(210)에 로그를 저장하고, 생성 인덱스의 값을 증가시킨다(S20). 여기서, 응용 프로그램(100)은 DBMS(200)로부터 데이터베이스(300) 접근 요청에 대한 응답을 받을 수 있다.First, referring to the log generation process, as shown in FIG. 4A, the application program 100 requests access to the database 300 to the DBMS 200 through the API 110 for data change (S10). The DBMS 200, which has received the request for access to the database 300 from the program 100, determines whether the request that is authorized from the application 100 is a change request for the database 300 (S12). As a result of the determination of step S12, when the request authorized from the application program 100 is not a change request of the database 300, the DBMS 200 searches the database 300 and copies the retrieved data to the application program area ( S14). On the other hand, if the request received from the application is a request to change the database 300, the DBMS 200 checks the generation index and the transfer index of the log buffer 210 provided in the DBMS (200) sufficient space to store the log It is determined whether there is (S16). As a result of the determination in step S16, if there is enough space in the log buffer 210 to store the log, after changing the data residing in the main memory (S18), the log is stored in the log buffer 210, and the generated index is Increase the value (S20). Here, the application program 100 may receive a response to the database 300 access request from the DBMS 200.

한편, 로그 전송 과정을 살펴보면, 도 4b에 도시하는 바와 같이, 로그 전송부(400)는 마스터 프로세서(500)로부터 로그 백업 결과를 수신할 때까지 로그 버퍼(210)를 처리하지 않고 기다리다 마스터 프로세서(500)로부터 로그 백업 결과를 수신한 후에 로그 버퍼(210)를 처리하는 데, 먼저, 로그 전송부(400)가 마스터 프로세서(500)로부터 로그 백업 결과를 기다리고 있는 상태인 지를 판단한다(S30). 상기한 과정 S30의 판단결과 로그 전송부(400)가 마스터 프로세서(500)로부터 로그 백업 결과를 기다리고 있는 상태인 경우에는 마스터 프로세서(500)로부터 로그 백업 결과를 기다린다(S32). 그리고, 로그 전송부(400)가 마스터 프로세서(500)로부터 로그 백업 결과를 기다리고 있는 상태가 아닌 경우, 즉, 마스터 프로세서(500)로의 로그 전송 및 백업 결과 수신이 처리된 상태인 경우에는 주기적으로 DBMS(200)의 함수 호출(functional call)를 이용하여 로그 버퍼(210)의 상태를 체크함으로써, 로그가 발생하였는 지를 판단하는 데, 로그 버퍼(210)의 생성 인덱스와 전송 인덱스를 비교하여 로그 버퍼(210)에 백업할 로그가 있는 지를 판단한다(S34). 상기한 과정 S34의 판단결과 로그 버퍼(210)에 백업할 로그가 존재하는 경우, 즉, 생성 인덱스와 전송 인덱스 값이 같지 않은 경우에는 로그 전송부(400)에 구비되어 있는 로그 처리부(410)를 체크하여 로그 처리부(410)가 충만 상태인지를 판단한다(S36). 상기한 과정 S36의 판단결과 로그 처리부(410)가 충만 상태인 경우에는 로그 처리부(410)에 저장되어 있는 로그를 마스터 프로세서(500)로의 백업 로그 전송 규격에 맞춰 재구성한 후 마스터 프로세서(500)로 IPC를 사용하여 전송하고(S40), 상기한 과정 S30로 진행하여 로그 백업 결과를 기다린다. 그리고, 로그 처리부(410)가 충만 상태가 아닌 경우에는 로그 버퍼(210)에 저장되어 있는 로그를 읽어와 로그 처리부(410)에 저장한다(S38).Meanwhile, referring to the log transmission process, as shown in FIG. 4B, the log transmission unit 400 waits without processing the log buffer 210 until the log backup result is received from the master processor 500. The log buffer 210 is processed after receiving the log backup result from 500. First, it is determined whether the log transmitter 400 is waiting for the log backup result from the master processor 500 (S30). When the log transmission unit 400 is in the state waiting for the log backup result from the master processor 500, the log backup result is awaited by the master processor 500 (S32). If the log transmission unit 400 is not waiting for the log backup result from the master processor 500, that is, if the log transmission to the master processor 500 and the reception of the backup result are processed, the DBMS periodically By checking the state of the log buffer 210 by using a functional call (200), it is determined whether a log has occurred, and compares the generated index and the transfer index of the log buffer 210 to the log buffer ( In step 210, it is determined whether there is a log to be backed up (S34). If there is a log to be backed up in the log buffer 210 as a result of the determination of step S34, that is, when the generated index and the transfer index value are not the same, the log processor 410 provided in the log transmitter 400 is located. The check determines whether the log processing unit 410 is full (S36). When the log processing unit 410 is in the full state, as a result of the determination of step S36, the log stored in the log processing unit 410 is reconstructed according to the backup log transmission standard to the master processor 500, and then the master processor 500 is reconfigured. Using IPC (S40), the process proceeds to step S30 described above and waits for a log backup result. If the log processing unit 410 is not in a full state, the log stored in the log buffer 210 is read and stored in the log processing unit 410 (S38).

한편, 상기한 과정 S34의 판단결과 로그 버퍼(210)에 백업할 로그가 존재하지 않는 경우, 즉, 생성 인덱스와 전송 인덱스 값이 같은 경우에는 로그 처리부(410)에 마스터 프로세서(500)로 전송할 로그가 존재하는 지를 판단한다(S42). 상기한 과정 S42의 판단결과 전송할 로그가 존재하는 경우에는 로그 처리부(410)에 저장되어 있는 로그를 마스터 프로세서(500)로의 백업 로그 전송 규격에 맞춰 재구성한 후 마스터 프로세서(500)로 IPC를 사용하여 전송하고(S40), 상기한 과정 S30로 진행하여 로그 백업 결과를 기다린다. 한편, 마스터 프로세서(500)로 전송할 로그가 존재하지 않는 경우에는 전체 프로세서의 부하를 줄이기 위해 로그 전송부(400)를 대략 1초간 일시 중지시킨다(S44). 전술한 바와 같이, 마스터 프로세서(500)로 전송된 백업 로그는 마스터 프로세서(500)에 의해 디스크(510)에 저장된다.On the other hand, if there is no log to be backed up in the log buffer 210 as a result of the determination of step S34, that is, if the generation index and the transmission index value are the same, the log to be transmitted to the master processor 500 to the log processor 410. It is determined whether there exists (S42). If there is a log to be transmitted as a result of the determination in step S42, the log stored in the log processor 410 is reconstructed according to the backup log transmission standard to the master processor 500, and then the IPC is used as the master processor 500. In step S40, the process proceeds to step S30, where the log backup result is awaited. On the other hand, if there is no log to be transmitted to the master processor 500, the log transmission unit 400 is suspended for approximately 1 second to reduce the load of the entire processor (S44). As described above, the backup log sent to the master processor 500 is stored in the disk 510 by the master processor 500.

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

이상에서 설명한 바와 같은 본 발명의 교환기에서 DBMS의 데이터 백업 방법에 따르면, 데이터베이스 변경으로 인해 DBMS에서 생성된 백업 로그를 함수 호출을 이용하여 로그 전송부로 전송함으로써, 신속하게 로그를 전송할 수 있는 효과가 있다.According to the data backup method of the DBMS in the exchange of the present invention as described above, by transferring the backup log generated in the DBMS due to the database change to the log transmission unit using a function call, there is an effect that can quickly transfer the log. .

그리고, 응용 프로그램의 DBMS 접근 시 변경 내역에 대해서 DBMS 영역 내의 로그 버퍼에 로그를 저장한 후 사용자에게 DBMS 접근 요청에 대한 응답을 리턴시킴으로써, 사용자의 DBMS 접근 시간이 크게 단축되는 효과가 있다.In addition, by storing the log in the log buffer in the DBMS area for the change history when the application accesses the DBMS, the DBMS access time of the user is greatly reduced by returning a response to the DBMS access request.

그리고, 로그 버퍼를 DBMS 영역 내에 구비시킴으로써, 사용자 영역의 메모리를 절약시키고, 로그 버퍼가 DBMS 영역에 집중되어 있으므로 로그의 생성 및 유지를 효율적으로 관리할 수 있는 효과가 있다.In addition, since the log buffer is provided in the DBMS area, the memory of the user area is saved, and since the log buffer is concentrated in the DBMS area, the log generation and maintenance can be efficiently managed.

Claims (5)

데이터베스 변경으로 인해 생성된 로그를 DBMS 영역 내에 구비되어 있는 로그 버퍼에 저장하는 로그 생성 과정과;A log generation process of storing a log generated due to a database change in a log buffer provided in a DBMS area; 상기 로그 버퍼에 저장되어 있는 로그를 읽어와 IPC를 사용하여 마스터 프로세서로 전송하는 로그 전송 과정을 포함하여 이루어지는 교환기에서 DBMS의 데이터 백업 방법.And a log transmission process of reading a log stored in the log buffer and transmitting the log to the master processor using IPC. 제 1항에 있어서, 상기 로그 버퍼에는,The method of claim 1, wherein the log buffer, 상기 생성된 로그가 저장되는 주소를 나타내는 생성 인덱스와,A generation index indicating an address at which the generated log is stored; 전송된 로그의 주소를 나타내는 전송 인덱스와,A transmission index indicating the address of the transmitted log; 백업 상태를 나타내는 백업 상태 표시 값과,A backup status display value indicating the backup status; 다수의 로그가 저장되는 것을 특징으로 하는 교환기에서 DBMS의 데이터 백업 방법.Data backup method of the DBMS in the switch, characterized in that a plurality of logs are stored. 제 1항에 있어서, 상기 로그 생성 과정은,The method of claim 1, wherein the log generation process, 데이터베이스에 대한 변경 요청이 있을 때 상기 로그 버퍼에 상기 로그를 저장할 충분한 공간이 존재하는 지를 판단하는 단계와;Determining whether there is enough space in the log buffer to store the log when there is a change request to a database; 상기 판단결과 로그를 저장할 충분한 공간이 존재하는 경우에는 데이터를 변경한 후, 상기 로그 버퍼에 상기 로그를 저장하고, 생성 인덱스 값을 증가시키는 단계를 포함하여 이루어지는 것을 특징으로 하는 교환기에서 DBMS의 데이터 백업 방법.If there is sufficient space to store the log as a result of the determination, after changing the data, storing the log in the log buffer and increasing a generation index value; Way. 제 1항에 있어서, 상기 로그 전송 과정은,The method of claim 1, wherein the log transmission process, DBMS의 함수 호출을 이용하여 상기 로그 버퍼에 백업할 로그가 존재하는 지를 판단하는 단계와;Determining whether a log to back up exists in the log buffer by using a function call of a DBMS; 상기 판단결과 상기 로그 버퍼에 백업할 로그가 존재하는 경우에는 상기 로그 버퍼에 저장되어 있는 로그를 읽어오는 단계와;Reading a log stored in the log buffer if a log to be backed up exists in the log buffer as a result of the determination; 상기 읽어온 로그를 상기 마스터 프로세서로의 로그 전송 규격에 맞춰 재구성한 후 IPC를 사용하여 상기 마스터 프로세서로 전송하고, 상기 마스터 프로세서로부터 로그 백업 결과를 기다리는 단계를 포함하여 이루어지는 것을 특징으로 하는 교환기에서 DBMS의 데이터 백업 방법.And reconstructing the read log according to the log transmission standard to the master processor and transmitting the read log to the master processor using IPC, and waiting for a log backup result from the master processor. To back up your data. 제 4항에 있어서, 상기 판단결과 상기 로그 버퍼에 백업할 로그가 존재하지 않은 경우에는,The method of claim 4, wherein if there is no log to be backed up in the log buffer as a result of the determination, 상기 마스터 프로세서로 전송할 로그가 존재하는 지를 판단하는 단계와;Determining whether a log to be transmitted to the master processor exists; 상기 판단결과 마스터 프로세서로 전송할 로그가 존재하는 경우에는 상기 로그를 상기 마스터 프로세서로의 로그 전송 규격에 맞춰 재구성한 후 IPC를 사용하여 상기 마스터 프로세서로 전송하고, 상기 마스터 프로세서로부터 로그 백업 결과를 기다리는 단계를 더 포함하여 이루어지는 것을 특징으로 하는 교환기에서 DBMS의 데이터 백업 방법.If there is a log to be transmitted to the master processor as a result of the determination, reconstructing the log according to the log transmission standard to the master processor and transmitting the log to the master processor using IPC and waiting for a log backup result from the master processor Data backup method of the DBMS in the exchange, characterized in that further comprises a.
KR1019990040182A 1999-09-17 1999-09-17 method for data backup of DBMS in switching system KR100324276B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019990040182A KR100324276B1 (en) 1999-09-17 1999-09-17 method for data backup of DBMS in switching system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019990040182A KR100324276B1 (en) 1999-09-17 1999-09-17 method for data backup of DBMS in switching system

Publications (2)

Publication Number Publication Date
KR20010028113A true KR20010028113A (en) 2001-04-06
KR100324276B1 KR100324276B1 (en) 2002-02-21

Family

ID=19612098

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019990040182A KR100324276B1 (en) 1999-09-17 1999-09-17 method for data backup of DBMS in switching system

Country Status (1)

Country Link
KR (1) KR100324276B1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100439857B1 (en) * 2001-12-24 2004-07-12 엘지전자 주식회사 System and method of duplexing database in private branch exchange and telecommunication system and synchronizing method of duplexed server
US7599969B2 (en) * 2006-12-20 2009-10-06 International Business Machines Corporation Method and system for scheduling workload in databases

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101107564B1 (en) 2009-12-03 2012-01-25 (주)한국아이오테크 Method of managing data storage service based on analysis of log and computer-readable medium having thereon program performing function embodying the same

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR930009854B1 (en) * 1990-12-31 1993-10-12 한국전기통신공사 Database backing-up & restoring method
KR930010285B1 (en) * 1990-12-31 1993-10-16 한국전기통신공사 Database processing method in electronic exchange
KR960014198B1 (en) * 1993-09-14 1996-10-14 조백제 Data base management system
KR0154477B1 (en) * 1995-11-21 1998-11-16 유기범 Method capable of backup the log file in the full electronic switching system
KR100420254B1 (en) * 1998-09-03 2004-05-31 엘지전자 주식회사 Database Management Method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100439857B1 (en) * 2001-12-24 2004-07-12 엘지전자 주식회사 System and method of duplexing database in private branch exchange and telecommunication system and synchronizing method of duplexed server
US7599969B2 (en) * 2006-12-20 2009-10-06 International Business Machines Corporation Method and system for scheduling workload in databases

Also Published As

Publication number Publication date
KR100324276B1 (en) 2002-02-21

Similar Documents

Publication Publication Date Title
EP3002672B1 (en) Apparatus for increasing data storage capacity
US7281032B2 (en) File sharing system with data mirroring by storage systems
US7617218B2 (en) Persistent key-value repository with a pluggable architecture to abstract physical storage
US6741982B2 (en) System and method for retrieving data from a database system
US5829001A (en) Database updates over a network
US8762480B2 (en) Client, brokerage server and method for providing cloud storage
US7707337B2 (en) Object-based storage device with low process load and control method thereof
US20040068563A1 (en) Method, system, and program for managing locks enabling access to a shared resource
US6711559B1 (en) Distributed processing system, apparatus for operating shared file system and computer readable medium
KR19990029323A (en) Application program interface, how to implement it, and computer program products
RU96120166A (en) SYSTEM AND METHOD FOR EFFECTIVE USE OF CACHE MEMORY IN A DISTRIBUTED FILE SYSTEM
US5995972A (en) System and method for retrieving data
CN112256676A (en) Method, device, equipment and medium for migrating database
US20070022133A1 (en) Method and apparatus for automatically and configurably adjusting allocated database resources to avoid denial of service
US11921683B2 (en) Use of time to live value during database compaction
US20050091266A1 (en) Data file system, data access server and data access program storage medium
KR100324276B1 (en) method for data backup of DBMS in switching system
US5802557A (en) System and method for caching information in a digital data storage subsystem
US6834281B1 (en) Method and apparatus to support multi-node direct access to file system data
CN114490540A (en) Data storage method, medium, device and computing equipment
KR20020046410A (en) Direct interpersonal distributed network system for communicatian by using jointly-owned back-up storage device on the web
KR20030055482A (en) Method of managing a cache selectively and apparatus
US7130931B2 (en) Method, system, and article of manufacture for selecting replication volumes
KR20040050958A (en) Memory database back-up apparatus by duplicating management and method thereof
WO1993019420A1 (en) Remote file access system

Legal Events

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

Payment date: 20080102

Year of fee payment: 7

LAPS Lapse due to unpaid annual fee