KR20070039246A - Apparatus and method for database auto backup in switching system - Google Patents
Apparatus and method for database auto backup in switching system Download PDFInfo
- Publication number
- KR20070039246A KR20070039246A KR1020050094352A KR20050094352A KR20070039246A KR 20070039246 A KR20070039246 A KR 20070039246A KR 1020050094352 A KR1020050094352 A KR 1020050094352A KR 20050094352 A KR20050094352 A KR 20050094352A KR 20070039246 A KR20070039246 A KR 20070039246A
- Authority
- KR
- South Korea
- Prior art keywords
- database
- file
- backup
- database backup
- switching system
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
- G06F11/1464—Management of the backup or restore process for networked environments
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M3/00—Automatic or semi-automatic exchanges
- H04M3/42—Systems providing special services or facilities to subscribers
Abstract
본 발명에 따른 교환 시스템의 데이터베이스 자동 백업 장치 및 방법은, 서버가 교환 시스템의 데이터베이스를 주기적으로 미리 약속된 시간에 압축된 데이터베이스 백업 파일로 생성하여 저장하도록 하고, 교환 시스템의 데이터베이스에 문제가 발생하면 서버가 저장하고 있던 데이터베이스 백업 파일을 교환 시스템에 전송하도록 함으로써, 교환 시스템의 데이터베이스 복원 시간을 감소시키고 시스템의 신뢰성을 높일 수 있다. The apparatus and method for automatically backing up the database of the switching system according to the present invention allows the server to periodically generate and store the database of the switching system as a compressed database backup file at a predetermined time, and if a problem occurs in the database of the switching system. By having the server transfer the database backup file stored in the exchange system, the database restoration time of the exchange system can be reduced and the system reliability can be increased.
또한 서버가 데이터베이스 백업 파일을 미리 약속된 소정의 개수만큼을 저장하도록 함으로써, 데이터베이스의 이력을 남길 수 있으며, 교환 시스템이 과거의 데이터베이스로도 복원하도록 할 수 있다. In addition, by having the server store a predetermined number of database backup files in advance, it is possible to leave a history of the database, and to allow the switching system to restore the database in the past.
Description
도 1은 본 발명의 일 실시예에 따른 교환 시스템의 데이터베이스 자동 백업 장치를 나타낸 전체 블록도.1 is an overall block diagram showing an automatic database backup device of the exchange system according to an embodiment of the present invention.
도 2는 본 발명의 일 실시예에 따른 교환 시스템의 데이터베이스 자동 백업 동작을 나타낸 흐름도.2 is a flowchart illustrating an automatic database backup operation of an exchange system according to an embodiment of the present invention.
도 3은 본 발명의 일 실시예에 따른 데이터베이스 자동 백업을 위한 교환 시스템의 내부 구성도.3 is an internal configuration diagram of an exchange system for automatic database backup according to an embodiment of the present invention.
도 4는 본 발명의 일 실시예에 따른 교환 시스템의 데이터베이스 자동 백업을 위한 서버의 내부 구성도.4 is an internal configuration diagram of a server for automatic database backup of the exchange system according to an embodiment of the present invention.
도 5는 본 발명의 일 실시예에 따른 서버에서의 교환 시스템 데이터베이스 자동 백업 동작을 나타낸 플로우챠트.Fig. 5 is a flowchart showing an operation of automatic switching system database backup in a server according to an embodiment of the present invention.
도 6은 본 발명의 일 실시예에 따른 서버에서의 데이터베이스 전송 동작을 나타낸 플로우챠트.6 is a flowchart illustrating a database transmission operation in a server according to an embodiment of the present invention.
*도면의 주요 부분에 대한 부호의 설명** Description of the symbols for the main parts of the drawings *
100 : 교환 시스템 200 : 서버100: exchange system 200: server
300 : 관리자 단말기300: administrator terminal
본 발명은 교환 시스템의 데이터베이스 자동 백업 장치 및 방법에 관한 것이다.The present invention relates to an automatic database backup device and method of a switching system.
일반적으로 교환 시스템은 내부 가입자의 내선 전화기 상호간 또는 내선 전화기와 국선(전화국 전화회선)간의 호 처리를 수행하는 시스템이다. In general, a switching system is a system that performs call processing between extension telephones of internal subscribers or between extension telephones and trunk lines (telephone line telephone lines).
이와 같은 교환 시스템은 데이터베이스를 사용하여 호 처리를 수행한다. 여기서 데이터베이스는 가입자 전화번호 정보 및 가입자 관리 정보 등과 같은 가입자 정보를 포함한다.Such a switching system uses a database to perform call processing. The database includes subscriber information such as subscriber telephone number information and subscriber management information.
즉, 데이터베이스는 교환 시스템의 호 처리를 위해 반드시 필요하며, 교환 시스템은 데이터베이스가 손상되면 호 처리를 할 수 없게 된다. In other words, the database is necessary for the call processing of the switching system, and the switching system cannot handle the call if the database is damaged.
그런데, 교환 시스템의 데이터베이스는 운영자의 실수, 소프트웨어적인 버그(Bug), 하드웨어적인 장애 등에 의해 손상될 수 있으며, 교환 시스템은 데이터베이스가 손상되면 호 처리를 위한 데이터베이스 복원을 수행해야 한다. However, the database of the switching system may be damaged by an operator's mistake, a software bug, a hardware failure, and the switching system should perform a database restoration for call processing when the database is damaged.
따라서, 교환 시스템은 데이터베이스 복원을 위해 모든 가입자 정보를 일일이 다시 입력하는 작업을 수행해야하며, 교환 시스템은 이와 같은 작업으로 인해 일정시간 이상 정상 동작을 수행하지 못하게 된다. Therefore, the exchange system must perform the task of re-entering all subscriber information in order to restore the database, and the exchange system cannot perform normal operation for a predetermined time due to such a task.
따라서, 본 발명은 상기한 종래 기술에 따른 문제점을 해결하기 위한 것으로, 본 발명의 목적은 교환 시스템에서 데이터베이스 복원 시간을 감소시키도록 하기 위한 교환 시스템의 데이터베이스 자동 백업 장치 및 방법을 제공함에 있다.Accordingly, an object of the present invention is to provide an apparatus and method for automatically backing up a database of a switching system for reducing a database restoration time in a switching system.
상기한 목적을 달성하기 위한 본 발명의 일 측면에 따른 교환 시스템의 데이터베이스 자동 백업 장치는, 상기 교환 시스템의 데이터베이스 파일을 전송받아 저장하고, 주기적으로 상기 저장된 데이터베이스 파일을 압축하여 데이터베이스 백업 파일을 생성하는 제어부; 상기 교환 시스템으로부터 전송받은 데이터베이스 파일 및 상기 제어부에서 생성한 데이터베이스 백업 파일을 저장하는 저장부를 포함한다.Automatic database backup device of the switching system according to an aspect of the present invention for achieving the above object, receiving and storing the database file of the switching system, and periodically compresses the stored database file to generate a database backup file Control unit; And a storage unit for storing the database file received from the exchange system and the database backup file generated by the controller.
상기 제어부는, 상기 데이터베이스 백업 파일을 생성할 경우, 미리 약속된 시간이 되었는지를 판단하여 상기 시간이 되었으면 상기 데이터베이스 백업 파일을 생성한다.When the database backup file is generated, the controller determines whether a predetermined time is reached and generates the database backup file when the time is reached.
상기 저장부는, 상기 제어부가 상기 주기적으로 생성한 데이터베이스 백업 파일을 미리 약속된 개수만큼 저장하여 데이터베이스 이력을 남긴다.The storage unit stores the database backup file generated by the controller periodically as many as a predetermined number and leaves a database history.
상기 제어부는, 상기 데이터베이스 백업 파일을 생성할 경우, 상기 저장부에 이미 저장된 데이터베이스 백업 파일의 개수가 상기 미리 약속된 개수 이상인지를 판단하고, 상기 미리 약속된 개수 이상이면 상기 이미 저장된 파일 중 가장 오래된 파일을 삭제한 후 상기 데이터베이스 백업 파일을 생성한다.When generating the database backup file, the controller determines whether the number of database backup files already stored in the storage unit is greater than or equal to the predetermined number, and if the database backup file is greater than or equal to the predetermined number, the oldest of the previously stored files. Delete the file and create the database backup file.
상기 제어부는, 상기 교환 시스템이 데이터베이스 복원을 요청할 경우, 상기 저장부에 저장된 데이터베이스 백업 파일 목록을 표시화면으로 디스플레이하여 상기 교환 시스템이 복원을 요청한 파일을 관리자로부터 선택받고, 상기 선택받은 파일의 압축을 해제하여 상기 압축 해제된 데이터베이스를 상기 교환 시스템에 전송한다.When the exchange system requests database restoration, the controller displays a list of database backup files stored in the storage on a display screen, selects a file requested for restoration by the exchange system from an administrator, and decompresses the selected file. Decompress and transmit the decompressed database to the switching system.
한편, 상기한 목적을 달성하기 위한 본 발명의 다른 측면에 따른 교환 시스템의 데이터베이스 자동 백업 방법은, 상기 교환 시스템으로부터 데이터베이스 파일을 전송받아 저장하는 단계; 상기 데이터베이스 파일을 저장한 후, 미리 약속된 시간이 되었는지를 판단하는 단계; 상기 미리 약속된 시간이 되었으면, 이미 저장된 데이터베이스 백업 파일의 개수가 미리 약속된 개수 이상인지를 판단하는 단계; 상기 저장된 데이터베이스 백업 파일의 개수가 상기 미리 약속된 개수 이상이면 상기 저장된 파일 중 가장 오래된 파일을 삭제하고, 상기 저장된 데이터베이스를 압축하여 새로운 데이터베이스 백업 파일을 생성하여 저장하는 단계를 포함한다.On the other hand, the database automatic backup method of the exchange system according to another aspect of the present invention for achieving the above object, the step of receiving and storing a database file from the exchange system; After storing the database file, determining whether a predetermined time has come; Determining whether the number of previously stored database backup files is equal to or greater than the predetermined number when the predetermined time is reached; And deleting the oldest file among the stored files, compressing the stored database, and generating and storing a new database backup file when the number of stored database backup files is equal to or greater than the predetermined number.
그리고, 교환 시스템의 데이터베이스 자동 백업 방법은, 상기 교환 시스템이 데이터베이스 복원을 요청할 경우, 상기 저장된 데이터베이스 백업 파일 목록을 디스플레이하여 상기 교환 시스템이 복원을 요청한 파일을 관리자로부터 선택받고, 상기 선택받은 파일의 압축을 해제하여 상기 압축 해제된 데이터베이스를 상기 교환 시스템에 전송 하는 단계를 더 포함한다.And, when the exchange system requests to restore the database, the database automatic backup method of the switching system displays a list of the stored database backup files, selects a file requested by the switching system from the administrator, and compresses the selected file. Decompressing and transmitting the decompressed database to the switching system.
이하 본 발명에 따른 교환 시스템의 데이터베이스 자동 백업 장치 및 방법을 첨부한 도면을 참조하여 상세히 설명한다.Hereinafter, with reference to the accompanying drawings, a database automatic backup device and method of an exchange system according to the present invention will be described in detail.
도 1은 본 발명의 일 실시예에 따른 교환 시스템의 데이터베이스 자동 백업 장치를 나타낸 전체 블록도이다.1 is a block diagram illustrating an automatic database backup apparatus of an exchange system according to an exemplary embodiment of the present invention.
도 1에 도시된 바와 같이 교환 시스템의 데이터베이스 자동 백업 장치는 교환 시스템(100), 서버(200) 및 관리자 단말기(300)를 포함하도록 구성될 수 있다.As shown in FIG. 1, the apparatus for automatically backing up a database of the switching system may be configured to include the
교환 시스템(100)은 내부에 저장된 데이터베이스를 이용하여 호 처리를 수행하여 소수의 국선을 다수의 내선 가입자가 공유하여 사용하도록 할 수 있다. 여기서, 데이터베이스는 가입자 전화번호 정보 및 가입자 관리 정보 등과 같은 가입자 정보를 포함한다.The
서버(200)는 교환 시스템(100)과 외부 부가 장비 사이의 인터페이스(Interface)를 제공할 수 있다. 또한 서버(200)는 교환 시스템(100)의 데이터베이스를 파일로 저장할 수 있으며, 저장된 데이터베이스를 압축하여 데이터베이스 백업 파일을 생성할 수 있다. The
관리자 단말기(300)는 교환 시스템(100)의 상태를 관리할 수 있다. 또한, 관리자 단말기(300)는 교환 시스템(100)의 데이터베이스를 조회 및 수정 할 수 있다. The
이와 같은 구성을 갖는 교환 시스템의 데이터베이스 자동 백업 장치의 동작 에 대하여 첨부한 도면을 참조하여 자세히 살펴보도록 한다.The operation of the automatic database backup device of the exchange system having such a configuration will be described in detail with reference to the accompanying drawings.
도 2는 본 발명의 일 실시예에 따른 교환 시스템의 데이터베이스 자동 백업 동작을 나타낸 흐름도이다.2 is a flowchart illustrating a database automatic backup operation of an exchange system according to an embodiment of the present invention.
도 2에 도시된 바와 같이, 관리자 단말기(300)는 교환 시스템(100)의 데이터베이스를 조회하고, 조회된 데이터베이스의 수정을 요청하는 데이터베이스 수정 메시지를 서버(200)에 전송할 수 있다(S11). 데이터베이스의 수정은 데이터베이스가 포함하고 있는 가입자 정보에 문제가 발생하는 경우나 가입자 정보를 추가, 삭제 및 변경해야하는 경우 수행될 수 있다.As illustrated in FIG. 2, the
서버(200)는 관리자 단말기(300)로부터 데이터베이스 수정 메시지를 입력받고, 입력된 데이터베이스 수정 메시지를 교환 시스템(100)에 전송할 수 있다(S13). 즉, 서버(200)는 관리자 단말기(300)로부터의 데이터베이스 수정 메시지를 교환 시스템(100)에 전달하는 중간 역할을 수행할 수 있다.The
교환 시스템은(100)은 서버(200)로부터 데이터베이스 수정 메시지를 입력받고, 입력받은 데이터베이스 수정 메시지에 따라 데이터베이스를 갱신할 수 있다(S14).The
교환 시스템(100)은 데이터베이스를 갱신하였으면, 갱신된 데이터베이스를 서버(200)에 전송할 수 있다(S15). If the
한편, 서버(200)는 교환 시스템(100)의 데이터베이스를 파일로써 저장부에 저장할 수 있다. 그리고 서버(200)는 교환 시스템(100)으로부터 갱신된 데이터베이스를 입력받으면, 전체 데이터베이스 중 갱신된 데이터베이스의 위치를 파악할 수 있다. 서버(200)는 갱신된 데이터베이스의 위치를 파악하였으면 해당 위치의 데이터베이스를 갱신된 데이터베이스로 변환하여 저장할 수 있다(S16). Meanwhile, the
그리고, 서버(200)는 주기적으로 미리 약속된 시간에, 저장되어 있는 데이터베이스 파일을 압축하여 데이터베이스 백업 파일을 생성하고, 생성된 데이터베이스 백업 파일을 저장하여 보관할 수 있다(S17). 일예로 서버(200)는 매일 오전 3시 19초에 데이터베이스 백업 파일을 생성할 수 있다.In addition, the
또한, 서버(200)는 주기적으로 생성되는 데이터베이스 백업 파일을 생성 순서별로 저장함으로써 데이터베이스의 이력을 남길 수 있다. In addition, the
여기서, 서버(200)는 데이터베이스 이력을 남기는 방법의 일 실시예로 미리 약속된 개수만큼의 데이터베이스 백업 파일을 저장할 수 있다. 이는 서버(200)가 임의의 용량만큼 파일을 저장할 수 있기 때문에 저장될 수 있는 파일의 개수를 미리 약속하는 것이다. Here, the
따라서, 서버(200)는 데이터베이스 백업 파일을 생성할 경우, 이미 저장되어 있는 데이터베이스 백업 파일이 미리 약속된 개수 이상인지를 분석하여, 미리 약속된 개수 이상이면 가장 오래된 파일을 삭제할 수 있다. 서버(200)는 가장 오래된 파일을 삭제하였으면 데이터베이스 백업 파일을 생성하고, 생성한 데이터베이스 백업 파일을 저장할 수 있다.Therefore, when the database backup file is generated, the
일예로 매일 1회 미리 약속된 시간에 데이터베이스 백업 파일을 생성하는 서버(200)가 최대 30개까지의 데이터베이스 백업 파일을 저장할 수 있다고 가정하면, 서버(200)는 30일 동안의 백업 파일을 저장할 수 있다. 또한, 서버(200)는 저장하 고 있는 백업 파일의 개수가 30개일 경우, 가장 오래된 파일을 삭제함으로써 저장하고 있는 데이터베이스 백업 파일을 29개로 감소시킨 후 새로운 데이터베이스 백업 파일을 생성할 수 있다. For example, assuming that the
한편, 이와 같이 서버(200)에 데이터베이스를 백업한 교환 시스템(100)은 데이터베이스에 문제가 발생하여 최근의 데이터베이스로 또는 과거의 데이터베이스로 복원해야하는 경우가 발생할 수 있다.On the other hand, the
여기서, 최근의 데이터베이스로 복원해야하는 경우는, 일예로 현제 저장된 데이터베이스가 손상되었을 경우 발생할 수 있다. 과거의 데이터베이스로 복원해야하는 경우는 일예로 현제 저장된 데이터베이스가 잘못된 정보를 가지고 있을 때, 현제 데이터베이스 이전 또는 그 이전의 데이터제이스로 복원해야하는 경우이다.In this case, when the current database needs to be restored, it may occur when the currently stored database is damaged. When you need to restore the old database, for example, when the currently stored database contains incorrect information, you need to restore the previous or previous database.
이와 같이 교환 시스템(100)이 데이터베이스를 복원해야하는 경우, 교환 시스템은 데이터베이스 복원을 서버(200)에 요청할 수 있다.As such, when the
서버(200)는 교환 시스템(100)으로부터 데이터베이스 복원을 요청받으면, 저장된 데이터베이스 백업 파일을 표시화면을 통해 디스플레이함으로써 관리자로부터 교환 시스템(100)이 복원을 원하는 데이터베이스 백업 파일을 입력받을 수 있다.When the
서버(200)는 복원할 데이터베이스 백업 파일을 입력받았으면 해당 데이터베이스 백업 파일의 압축을 해제하고, 압축 해제된 데이터베이스를 교환 시스템(100)에 전송할 수 있다. When the
이와 같이 교환 시스템(100)은 매일 갱신된 데이터베이스를 서버(200)에 전송하여 서버(200)가 파일로써 저장하도록 함으로써 서버(200)와 함께 데이터베이스 를 공유하고, 서버(200)가 저장된 데이터베이스 파일을 압축하여 데이터베이스 백업 파일을 생성하도록 할 수 있다. 또한 교환 시스템(100)은 서버(200)가 생성된 데이터베이스 백업 파일에 대해서 미리 약속된 소정의 개수만큼 저장하고 있도록 함으로써 데이터베이스의 이력을 남길 수 있으며, 데이터베이스 복원이 필요한 경우 서버(200)에 저장된 데이터베이스 백업 파일 중 복원을 파일을 선택하여 해당 데이터베이스를 복원할 수 있다.As such, the
도 3은 본 발명의 일 실시예에 따른 데이터베이스 백업을 위한 교환 시스템의 내부 구성도이다.3 is an internal configuration diagram of an exchange system for database backup according to an embodiment of the present invention.
도 3에 도시된 바와 같이 교환 시스템(100)은 제어부(110), 송수신부(120) 및 데이터베이스부(130)를 포함하도록 구성될 수 있다.As shown in FIG. 3, the
교환 시스템(100)에서 제어부(110)는 후술되는 송수신부(120), 데이터베이스부(130)를 제어하며, 호 처리를 비롯한 교환 시스템(100)의 전반적인 동작을 제어할 수 있다.In the
송수신부(120)는 서버(200)와 TCP/IP 통신을 수행할 수 있다.The
데이터베이스부(130)는 사용자 전화번호 정보, 사용자 관리 정보 등과 같은 사용자 정보들을 포함한 데이터베이스를 저장할 수 있다.The
이와 같은 구성을 갖는 교환 시스템(100)의 데이터베이스 백업 동작에 대하여 자세히 살펴보도록 한다.The database backup operation of the
먼저 송수신부(120)는 서버(200)로부터 데이터베이스 수정 메시지를 전송받고, 전송받은 데이터베이스 수정 메시지를 제어부(110)에 출력할 수 있다.First, the
제어부(110)는 송수신부(120)로부터 데이터베이스 수정 메시지를 입력받으면, 입력된 데이터베이스 수정 메시지를 분석할 수 있다. 제어부(110)는 데이터베이스 수정 메시지의 분석을 통해 데이터베이스부(130)에 저장되어 있는 데이터베이스를 갱신할 수 있다. When the
제어부(110)는 데이터베이스를 갱신하였으면, 갱신된 데이터베이스를 송수신부(120)를 통해 서버(200)에 전송할 수 있다.If the
도 4는 본 발명의 일 실시예에 따른 교환 시스템의 데이터베이스 백업을 위한 서버의 내부 구성도이다.4 is an internal configuration diagram of a server for database backup of the exchange system according to an embodiment of the present invention.
도 4에 도시된 바와 같이 서버(200)는 제1송수신부(210), 제어부(220), 제2송수신부(230), 저장부(240), 입력부(250) 및 표시부(260)를 포함하도록 구성될 수 있다. As shown in FIG. 4, the
서버(200)에서 제1송수신부(210)는 교환 시스템(100)과의 TCP/IP 통신을 수행하고, 제2송수신부(230)는 관리자 단말기(300)와의 TCP/IP 통신을 수행할 수 있다.In the
제어부(220)는 서버(200)의 전반적인 제어를 수행하고, 데이터베이스 백업 파일을 생성할 수 있다. 또한 제어부(220)는 저장되어 있는 데이터베이스 백업 파일을 교환 시스템(100)으로 전송할 수 있다. 그리고 제어부(220)는 관리자 단말기(300)와 교환 시스템(100) 양단간의 통신을 위한 중간 역할을 수행할 수 있다.The
저장부(240)는 데이터베이스 파일 및 데이터베이스 백업 파일을 저장할 수 있다. The
입력부(250)는 관리자로부터 데이터베이스 백업 및 데이터베이스 전송 신호를 입력받을 수 있다.The
표시부(260)는 표시화면을 통해 데이터베이스 백업 및 데이터베이스 전송 입력 신호 및 동작 결과를 사용자에게 디스플레이 할 수 있다.The
이와 같은 구성을 갖는 서버(200)에서의 교환 시스템 데이터베이스 백업을 위한 동작을 자세히 살펴보도록 한다.The operation for backing up the exchange system database in the
먼저, 제2송수신부(230)는 관리자 단말기(300)로부터 데이터베이스 수정 메시지를 전송받으면, 전송받은 메시지를 제어부(220)에 출력할 수 있다. First, when the second transmitter /
제어부(220)는 입력된 데이터베이스 수정 메시지를 분석하여 제1송수신부(210)를 이용하여 교환 시스템(100)에 전송할 수 있다. 제어부(220)는 데이터베이스 수정 메시지 전송 후 교환 시스템(100)으로부터 제1송수신부(210)를 통해 데이터베이스 수정 메시지에 따라 갱신된 데이터베이스를 전송받을 수 있다.The
제어부(220)는 전송받은 갱신된 데이터베이스를 분석하고, 저장부(240)에 저장된 데이터베이스 파일에서 갱신 위치를 파악할 수 있다. 제어부(220)는 갱신 위치가 파악되었으면, 해당 위치에 전송받은 데이터베이스를 저장할 수 있다.The
한편, 제어부(220)는 주기적으로 미리 약속된 시간에 따라 저장부(240)에 저장된 데이터베이스 파일을 압축하여, 데이터베이스 백업 파일을 생성할 수 있다. 그리고, 제어부(220)는 생성된 데이터베이스 백업 파일을 저장부(240)에 저장할 수 있다.Meanwhile, the
저장부(240)는 제어부(220)에 의해 주기적으로 생성되는 데이터베이스 백업 파일을 생성 순서별로 저장함으로써 데이터베이스의 이력을 남길 수 있다. The
여기서, 저장부(240)는 데이터베이스 이력을 남기는 방법의 일 실시예로 미리 약속된 개수만큼의 데이터베이스 백업 파일을 저장할 수 있다. 이는 저장부(240)가 임의의 용량만큼 파일을 저장할 수 있기 때문에 저장될 수 있는 파일의 개수를 미리 약속하는 것이다. Here, the
따라서, 제어부(220)는 데이터베이스 백업 파일 생성할 경우, 저장부(240)에 저장된 백업 파일의 개수를 분석하여, 이미 저장된 백업 파일이 미리 약속된 개수 이상이면 가장 오래된 백업 파일을 삭제할 수 있다. 그리고, 제어부(220)는 가장 오래된 백업 파일을 삭제하였으면 새로운 데이터베이스 백업 파일을 생성하여 저장부(240)에 저장할 수 있다.Therefore, when the database backup file is generated, the
이와 같이 저장부(240)에 데이터베이스 백업 파일을 저장한 제어부(220)는 입력부(250)로부터 데이터베이스 백업 파일 전송 신호를 입력받을 수 있다. 제어부(220)는 입력부(250)로부터 데이터베이스 백업 파일 전송 신호를 입력받으면 표시부(260)에 저장부(240)에 저장된 데이터베이스 백업 파일 목록을 디스플레이할 수 있다. As such, the
입력부(250)는 표시부(260)에 디스플레이된 데이터베이스 백업 파일 목록 중 교환 시스템(100)이 복원을 원하는 데이터베이스 백업 파일을 관리자로부터 입력받을 수 있으며, 입력받은 해당 데이터베이스 백업 파일을 제어부(220)에 출력할 수 있다.The
제어부(220)는 입력부(250)로부터 데이터베이스 백업 파일을 입력받으면, 저 장부(240)에 저장된 해당 데이터베이스 백업 파일의 압축을 해제하고, 압축 해제된 데이터베이스를 제1송수신부(210)를 이용하여 교환 시스템(100)에 전송할 수 있다.When the
이와 같이 서버(200)는 교환 시스템(100)으로부터 전송받은 데이터베이스를 백업할 수 있으며, 백업된 데이터베이스를 다시 교환 시스템(100)에 전송 할 수 있다. As such, the
다음으로 교환 시스템의 데이터베이스 자동 백업 및 전송에 따른 동작의 일 실시예를 첨부한 도면을 참조하여 더욱 자세히 살펴보도록 한다.Next, with reference to the accompanying drawings an embodiment of the operation according to the automatic backup and transfer of the database of the switching system will be described in more detail.
도 5는 본 발명의 일 실시예에 따른 서버에서의 교환 시스템 데이터베이스 백업 동작을 나타낸 플로우챠트이다.5 is a flowchart illustrating an operation of backing up a switching system database in a server according to an embodiment of the present invention.
도 5에서는 일예로 서버(200)에서 저장할 수 있는 데이터베이스 백업 파일의 개수를 30개로 가정하였으며, 데이터베이스 백업 파일 생성 시간을 매일 오전 3시 19초로 가정하였다. 또한, 'DB_backup_daily'는 데이터베이스 백업을 담당하는 쓰레드(Thread)로 가정하였으며, 'DB_backup_daily_flag'는 데이터베이스 백업 수행 플래그(flag)로 가정하였다.In FIG. 5, for example, it is assumed that the number of database backup files that can be stored in the
먼저, 서버(200)는 전원이 온(ON)되어 기본적인 동작이 수행되면, 데이터베이스 백업을 담당하는 쓰레드 'DB_backup_daily'를 생성할 수 있다.First, when the power is turned on and the basic operation is performed, the
서버(200)는 'DB_backup_daily_flag'가 참(True)인지 거짓(False)인지를 분석하고(S21), 거짓이면 'DB_backup_daily' 쓰레드를 다시 생성할 수 있다(S22).The
서버(200)는 'DB_backup_daily_flag'가 참이면, 미리 약속된 시간 오전 3시 19초가 되었는지를 분석할 수 있다(S23).If 'DB_backup_daily_flag' is true, the
서버(200)는 오전 3시 19초가 아니면 다시 'DB_backup_daily_flag'를 분석하며, 오전 3시 19초이면 이미 저장되어 있는 데이터베이스 백업 파일의 개수가 30개 이상인지를 분석할 수 있다(S24).The
서버(200)는 이미 저장되어 있는 데이터베이스 백업 파일이 30개 이상이면 가장 오래된 백업 파일을 삭제할 수 있다(S25).The
서버(200)는 이미 데이터베이스 백업 파일 개수 분석을 통해 데이터베이스 백업 파일이 30개 미만으로 분석되었거나, 이미 저장된 백업 파일의 개수가 30개 이상이어서 가장 오래된 백업 파일을 삭제하였으면, 저장되어 있는 데이터베이스 파일을 하나의 압축된 데이터베이스 백업 파일로 생성할 수 있다(S26).If the
서버(200)는 데이터베이스 백업 파일을 생성하였으면, 생성된 백업 파일을 저장할 수 있다(S27).When the
도 6은 본 발명의 일 실시예에 따른 서버에서의 데이터베이스 전송 동작을 나타낸 플로우챠트이다.6 is a flowchart illustrating a database transmission operation in a server according to an embodiment of the present invention.
도 6에서는 'DBUnZip_to_Inst'를 데이터베이스 백업 파일 전송 명령(Command)으로 가정하였다. 또한, 'Install_DB'를 압축된 데이터베이스 백업 파일의 압축 해제 명령으로 가정하였다.In FIG. 6, it is assumed that 'DBUnZip_to_Inst' is a database backup file transfer command. In addition, it is assumed that 'Install_DB' is a command to extract the compressed database backup file.
먼저, 서버(200)는 관리자로부터 'DBUnZip_to_Inst'를 입력받을 수 있다(S31).First, the
서버(200)는 'DBUnZip_to_Inst'를 입력받으면, 저장되어 있는 데이터베이스 백업 파일의 목록을 표시화면을 통해 디스플레이할 수 있다(S32). When the
서버(200)가 데이터베이스 백업 파일의 목록을 디스플레이하면, 관리자는 디스플레이된 목록 중 교환 시스템(100)에 복원할 데이터베이스 백업 파일을 선택할 수 있다. 즉, 서버(200)는 관리자로부터 디스플레이된 데이터베이스 백업 파일 중 하나의 파일을 입력받을 수 있다(S33). When the
서버(200)는 관리자로부터 하나의 데이터베이스 백업 파일을 입력받으면, 입력된 파일을 복사할 임의의 위치(Directory)를 설정하고, 해당 위치에 관리자로부터 입력받은 데이터베이스 백업 파일을 복사할 수 있다(S34).When the
서버(200)는 임의의 위치 아래에 데이터베이스 백업 파일을 복사하였으면 관리자로부터 'Install_DB'를 입력받고(S35), 해당 임의의 위치 아래에 데이터베이스 백업 파일의 압축을 해제할 수 있다(S36). 여기서, 데이터베이스 백업 파일은 압축 해제됨으로써 정당 데이터베이스로 복원될 수 있다.If the
서버(200)는 복원된 데이터베이스를 교환 시스템(100)에 전송할 수 있다(S37).The
이와 같이 교환 시스템(100)은 서버(200)에 임의의 개수만큼의 데이터베이스를 저장시킴으로써 데이터베이스의 이력을 남길 수 있으며, 저장된 데이터베이스 백업 파일 중 복원을 원하는 데이터베이스를 선택하여 선택된 데이터베이스를 복원할 수 있다.As such, the
상기한 바와 같은 본 발명에 따른 교환 시스템의 데이터베이스 자동 백업 장 치 및 방법은, 서버가 교환 시스템의 데이터베이스를 주기적으로 미리 약속된 시간에 압축된 데이터베이스 백업 파일로 생성하여 저장하도록 하고, 교환 시스템의 데이터베이스에 문제가 발생하면 서버가 저장하고 있던 데이터베이스 백업 파일을 교환 시스템에 전송하도록 함으로써, 교환 시스템의 데이터베이스 복원 시간을 감소시키고 시스템의 신뢰성을 높일 수 있다. The automatic database backup device and method of the switching system according to the present invention as described above allows the server to periodically generate and store the database of the switching system as a compressed database backup file at a predetermined time, and the database of the switching system. If a problem occurs, the server can transmit the database backup file stored in the switching system, thereby reducing the database restoration time of the switching system and increasing the reliability of the system.
또한 서버가 데이터베이스 백업 파일을 미리 약속된 소정의 개수만큼을 저장하도록 함으로써, 데이터베이스의 이력을 남길 수 있으며, 교환 시스템이 과거의 데이터베이스로도 복원하도록 할 수 있다. In addition, by having the server store a predetermined number of database backup files in advance, it is possible to leave a history of the database, and to allow the switching system to restore the database in the past.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020050094352A KR20070039246A (en) | 2005-10-07 | 2005-10-07 | Apparatus and method for database auto backup in switching system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020050094352A KR20070039246A (en) | 2005-10-07 | 2005-10-07 | Apparatus and method for database auto backup in switching system |
Publications (1)
Publication Number | Publication Date |
---|---|
KR20070039246A true KR20070039246A (en) | 2007-04-11 |
Family
ID=38160147
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020050094352A KR20070039246A (en) | 2005-10-07 | 2005-10-07 | Apparatus and method for database auto backup in switching system |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR20070039246A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101393845B1 (en) * | 2011-03-16 | 2014-05-12 | 가부시끼가이샤 도시바 | Image recording and reproducing apparatus and operation history log managing method |
-
2005
- 2005-10-07 KR KR1020050094352A patent/KR20070039246A/en not_active Application Discontinuation
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101393845B1 (en) * | 2011-03-16 | 2014-05-12 | 가부시끼가이샤 도시바 | Image recording and reproducing apparatus and operation history log managing method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100287137B1 (en) | Method for managing version of portable information terminal | |
US7672005B1 (en) | Methods and apparatus for scan block caching | |
US7035629B2 (en) | User interface control method and system for a mobile terminal | |
CN1547698A (en) | Downloading application software to mobile terminal | |
RU2493600C2 (en) | Image processor, image generator and computer programme | |
AU2005203359A1 (en) | Communication system | |
CN112165520A (en) | Screen projection control method, screen projection receiving end and storage medium | |
CN111147599B (en) | Cache data updating method and device, server and storage medium | |
US8068811B2 (en) | Mobile communication terminal device | |
JP2002175237A (en) | Relay system, program relay system, relay method, and computer readable recording medium recording relay program | |
KR20070039246A (en) | Apparatus and method for database auto backup in switching system | |
JPH08263409A (en) | Method and system for down loading communication software | |
US20040204124A1 (en) | Method of minimizing the quantity of information stored in a wireless device | |
CN115765998A (en) | Encryption machine cluster migration upgrade access method and device | |
CN112351107B (en) | Method, apparatus, electronic device and readable storage medium for encoding file | |
US20030139203A1 (en) | Computer-readable storage medium containing program instructions for managing data in communication terminal | |
KR20040095412A (en) | Method for managing Data in wireless Communication Terminal | |
US7760651B2 (en) | System and method for debugging internet protocol phones | |
KR20030026680A (en) | Control system and method for remote computer using personal digital assistance and record medium stored above method and terminal device having above record medium | |
KR100359993B1 (en) | Backup method for subscriber's data of home location register | |
CN110324289B (en) | Call method, server and computer readable storage medium | |
CN110324294B (en) | Call method, server and computer readable storage medium | |
KR20020070555A (en) | Mass storage data file management method of mobile communication terminal | |
KR101076559B1 (en) | Alert sound backup method for mobile communication terminal | |
KR100456720B1 (en) | Control Apparatus And Method For Configuration Management In EMS System |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
WITN | Withdrawal due to no request for examination |