TW201807600A - Data storage method and system thereof including a disc storage module, a magnetic tape storage module, and a processing module - Google Patents

Data storage method and system thereof including a disc storage module, a magnetic tape storage module, and a processing module Download PDF

Info

Publication number
TW201807600A
TW201807600A TW105127796A TW105127796A TW201807600A TW 201807600 A TW201807600 A TW 201807600A TW 105127796 A TW105127796 A TW 105127796A TW 105127796 A TW105127796 A TW 105127796A TW 201807600 A TW201807600 A TW 201807600A
Authority
TW
Taiwan
Prior art keywords
file
data
tape
business data
processing module
Prior art date
Application number
TW105127796A
Other languages
Chinese (zh)
Other versions
TWI630496B (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 TW105127796A priority Critical patent/TWI630496B/en
Publication of TW201807600A publication Critical patent/TW201807600A/en
Application granted granted Critical
Publication of TWI630496B publication Critical patent/TWI630496B/en

Links

Abstract

A data storage system includes a disc storage module, a magnetic tape storage module comprising a plurality of magnetic tapes, and a processing module. The disc storage module is configured to store a plurality of business data each of which comprises a plurality of files, and magnetic tape numbering data, and store at least one comparison table corresponding to at least one previous period. The processing module calculates a magnetic tape region number corresponding to each file according to the amount of data of each file, the capacity of each magnetic tape and the magnetic tape numbering data, and stores each file in a region of the magnetic tape storage module corresponding to the magnetic tape region number, and further stores a comparison table corresponding to the mapping of the file name of each file and its magnetic tape region number. When the processing module receives a restore request, the processing module restores corresponding files according to the restore reques and the comparison tables.

Description

資料保存方法及其系統Data preservation method and system

本發明是有關於一種資料保存方法,特別是指一種須長期保存之資料的資料保存方法及其系統。The invention relates to a data preservation method, in particular to a data preservation method and system for materials that need to be stored for a long time.

因應相關政府法規之規定,銀行業者針對重要交易資料的保存時間相當地長,與一般檔案備份及保存方法不同,必須具有良好管理及嚴謹的稽核機制,以因應往後內部單位或外部單位調閱過去長期保存之資料的需求。Due to the requirements of relevant government regulations, the banking industry keeps important transaction data for a long time. Different from general file backup and preservation methods, it must have a good management and rigorous auditing mechanism in order to respond to internal or external units in the future. The need for long-term preservation of information.

現有的資料保存方法,在儲存多筆分別對應不同業務類別之業務資料時,為了儲存之方便,該等業務資料被零散地儲存在磁帶館中的多個位置彼此距離較遠之不同磁帶上,往後若欲調閱該等業務資料時,須藉由控制機器手臂分別至磁帶館的不同位置取出不同磁帶,以回存該等業務資料,當資料的儲存越零散,則調取的磁帶數量也隨之越多,如此一來,將花費大量時間在調取磁帶的作業上。此外,回存程序須先查詢所欲調閱之業務資料所儲存的磁帶,此時,往往需藉由人工方式將所欲調閱之檔名一筆一筆鍵入查詢,實屬不便且耗時,再者,需藉由人工方式複製儲存於磁帶上的業務資料,無法自動執行批次回存,因而會增加人工作業處理成本及嚴重影響資料回存所需的時間。In the existing data storage method, when a plurality of business data corresponding to different business categories are stored, for the convenience of storage, such business data are scattered on different magnetic tapes at different locations in the tape library. In the future, if you want to access such business information, you must control the robotic arm to take different tapes to different locations in the tape library to restore such business data. When the data storage becomes more scattered, the number of tapes retrieved The more it comes, the more time it takes to retrieve the tape. In addition, the retrieval process must first query the tapes stored in the business data you want to retrieve. At this time, you often need to manually type the file name you want to retrieve into the query one by one, which is inconvenient and time-consuming. In addition, the business data stored on the tape needs to be manually copied, and batch recovery cannot be performed automatically, which will increase the processing cost of manual operations and seriously affect the time required for data recovery.

因此,本發明之目的,即在提供一種可快速回存的資料保存方法。Therefore, the object of the present invention is to provide a data storage method which can be quickly restored.

於是,本發明資料保存方法,藉由一資料保存系統來實施,該資料保存系統包括一用於儲存多筆相關於一目前期別,且分別對應不同業務類別之業務資料,及包含一起始磁帶編號之磁帶編號資料,並儲存至少一對應於至少一先前期別之對照表的磁碟儲存模組、一包含多個磁帶的磁帶儲存模組,以及一電連接該磁碟儲存模組與該磁帶儲存模組的處理模組,每筆業務資料包含多個檔案,每一檔案具有各自不同的檔案內容,每一對應於一先前期別的對照表包含對應該先前期別之每一檔案的檔名與其磁帶區域編號之對應關係,該資料保存方法包含以下步驟:Therefore, the data storage method of the present invention is implemented by a data storage system. The data storage system includes a plurality of business data related to a current period and corresponding to different business categories, and includes a start tape. Numbered tape numbering data, and stores at least one magnetic disk storage module corresponding to at least one previous comparison table, a magnetic tape storage module including a plurality of magnetic tapes, and an electrical connection between the magnetic disk storage module and the The processing module of the magnetic tape storage module, each business data contains multiple files, each file has its own different file content, each correspondence table corresponding to a previous period contains each file corresponding to the previous period Correspondence between the file name and its tape area number, the method for saving the data includes the following steps:

(A)該處理模組根據儲存於該磁碟儲存模組之該等業務資料中的每一檔案之資料量、每一磁帶之容量及該磁帶編號資料,計算每一檔案對應的一磁帶區域編號;(A) The processing module calculates a tape area corresponding to each file according to the data amount of each file, the capacity of each tape, and the tape number data stored in the business data of the magnetic disk storage module. Numbering;

(B)該處理模組根據該等業務資料中的每一檔案所對應的該磁帶區域編號,將該等業務資料中的每一檔案儲存於該磁帶儲存模組中一對應於該磁帶區域編號的區域;(B) the processing module stores each file in the business data in the tape storage module according to the tape area number corresponding to each file in the business data, corresponding to the tape area number Area;

(C)該處理模組儲存對應於該目前期別,且包含該等業務資料中的每一檔案之檔名與其磁帶區域編號之一對應關係的一對照表於該磁碟儲存模組;(C) The processing module stores a comparison table corresponding to the current period and containing a correspondence between the file name of each file in the business data and one of its tape area numbers; on the disk storage module;

(D)當該處理模組接收到一包含一查詢期別及一查詢檔名的回存請求時,該處理模組根據該查詢期別獲得一含有相同於該查詢期別之期別的對照表,並根據該查詢檔名及所獲得的該對照表比對出該查詢檔名所對應的一磁帶區域編號;及(D) When the processing module receives a retrieval request including a query period and a query file name, the processing module obtains a comparison containing the same period type as the query period according to the query period Table, and compare a tape area number corresponding to the query file name according to the query file name and the obtained comparison table; and

(E)該處理模組根據所比對出的該磁帶區域編號,自該磁帶儲存模組回存對應於該磁帶區域編號的檔案至該磁碟儲存模組。(E) The processing module returns a file corresponding to the tape area number from the tape storage module to the magnetic disk storage module according to the compared tape area number.

本發明之另一目的,即在提供一種可快速回存的資料保存系統。Another object of the present invention is to provide a data storage system that can be quickly restored.

於是,本發明資料保存系統,包含一磁碟儲存模組、一包含多個磁帶的磁帶儲存模組,及一電連接該磁碟儲存模組與該磁帶儲存模組的處理模組。Therefore, the data storage system of the present invention includes a magnetic disk storage module, a magnetic tape storage module including a plurality of magnetic tapes, and a processing module electrically connecting the magnetic disk storage module and the magnetic tape storage module.

該磁碟儲存模組用於儲存多筆相關於一目前期別,且分別對應不同業務類別之業務資料,及包含一起始磁帶編號之磁帶編號資料,並儲存至少一對應於至少一先前期別之對照表,每筆業務資料包含多個檔案,每一檔案具有各自不同的檔案內容,每一對應於一先前期別的對照表包含對應該先前期別之每一檔案的檔名與其磁帶區域編號之對應關係。The magnetic disk storage module is used for storing a plurality of business data related to a current period and corresponding to different business categories, and tape number data including a starting tape number, and storing at least one corresponding to at least one previous period In the comparison table, each business data contains multiple files, each file has its own different file content, and each corresponding table contains a file name and tape area corresponding to each file in the previous period. Correspondence between numbers.

該磁帶儲存模組用於儲存相關於該目前期別之該等業務資料中的每一檔案,並儲存相關於該至少一先前期別之每一者所對應之多筆業務資料中的每一檔案。The tape storage module is used to store each file of the business data related to the current period, and store each of the plurality of business data corresponding to each of the at least one previous period. file.

該處理模組用於根據儲存於該磁碟儲存模組之該等業務資料中的每一檔案之資料量、每一磁帶之容量及該磁帶編號資料,計算每一檔案對應的一磁帶區域編號,且根據儲存於該磁碟儲存模組之該等業務資料中的每一檔案所對應的該磁帶區域編號,將該等業務資料中的每一檔案儲存於該磁帶儲存模組中一對應於該磁帶區域編號的區域,並儲存對應於該目前期別,且包含該等業務資料中的每一檔案之檔名與其磁帶區域編號之一對應關係的一對照表於該磁碟儲存模組,當該處理模組接收到一包含一查詢期別及一查詢檔名的回存請求時,該處理模組根據該查詢期別獲得一含有相同於該查詢期別之期別的對照表,並根據該查詢檔名及所獲得的該對照表比對出該查詢檔名所對應的一磁帶區域編號,該處理模組根據所比對出的該磁帶區域編號,自該磁帶儲存模組回存對應於該磁帶區域編號的檔案至該磁碟儲存模組。The processing module is used to calculate a tape area number corresponding to each file according to the data amount of each file, the capacity of each tape, and the tape number data stored in the business data of the magnetic disk storage module. , And according to the tape area number corresponding to each file in the business data stored in the disk storage module, each file in the business data is stored in the tape storage module corresponding to The area of the tape area number is stored in the disk storage module corresponding to the current period, and a comparison table containing the correspondence between the file name of each file in the business data and one of its tape area numbers, When the processing module receives a retrieval request including a query period and a query file name, the processing module obtains a comparison table containing the same period type as the query period according to the query period, and According to the query file name and the obtained comparison table, a tape area number corresponding to the query file name is compared, and the processing module obtains the tape storage module from the tape storage module according to the compared tape area number. Corresponding to the stored files to the tape area number storage module disk.

本發明之功效在於:藉由該處理模組集中地儲存每一期別中對應不同業務類別的業務資料,而非分散地將不同業務類別的業務資料分別儲存在多個位置彼此距離較遠之不同磁帶,可縮減機器手臂調閱磁帶所耗費的時間。此外,藉由該處理模組自動地根據該回存請求獲得該查詢檔名所對應的該磁帶區域編號,並自動地自該磁帶儲存模組回存對應於該磁帶區域編號的檔案至該磁碟儲存模組,可減少人工作業並加速回存時間。The effect of the present invention is that the processing data corresponding to different business categories in each period are stored centrally by the processing module, rather than the business data of different business categories are stored separately in multiple locations at different distances from each other. Different tapes can reduce the time it takes for the robot to read the tape. In addition, the processing module automatically obtains the tape area number corresponding to the query file name according to the retrieval request, and automatically retrieves a file corresponding to the tape area number from the tape storage module to the magnetic disk. Storage module can reduce manual work and speed up the return time.

參閱圖1,本發明資料保存系統之實施例包含一磁碟儲存模組11、一磁帶儲存模組12、一連接一通訊網路100的通訊模組13,及一電連接該磁碟儲存模組11、該磁帶儲存模組12與該通訊模組13的處理模組14。Referring to FIG. 1, an embodiment of a data storage system according to the present invention includes a magnetic disk storage module 11, a magnetic tape storage module 12, a communication module 13 connected to a communication network 100, and an electrical connection to the magnetic disk storage module. 11. The tape storage module 12 and the processing module 14 of the communication module 13.

該磁碟儲存模組11用於儲存多筆相關於一目前期別,且分別對應不同業務類別,如存款類、放款類、外匯類及信用卡類等之業務資料,及包含一起始磁帶編號之磁帶編號資料。每筆業務資料包含多個檔案,每一檔案具有各自不同的檔案內容。該磁碟儲存模組11還儲存至少一對應於至少一先前期別之對照表,及至少一對應於該至少一先前期別之資料表。每一對應於一先前期別的對照表包含對應該先前期別之每一檔案的檔名與其磁帶區域編號之對應關係。每一對應於該先前期別的資料表包含對應該先前期別之每一檔案之檔名及其所屬之業務資料的一對應關係、該檔案之大小,以及該檔案被儲存於該磁帶儲存模組12的一備份時間。值得一提的是,理想上,在每一固定時間期間如,每個月的15號,多個分別負責多個不同業務類別的業務員會利用其業務端裝置2產生相關於該目前期別,例如8月的該等業務資料並傳送至該處理模組14,以更新先前儲存於該磁碟儲存模組11的業務資料(亦即,以該目前期別的該等業務資料覆寫更新相關於該上一期別,例如7月的該等業務資料),其中,每一業務員係利用其業務端裝置2自一儲存有相關於銀行之多筆交易的多筆交易資料的核心系統交易模組(圖未示),下載所需之交易資料,以產生相關於該目前期別的該等業務資料。The magnetic disk storage module 11 is used to store a plurality of business data related to a current period and corresponding to different business categories, such as deposits, loans, foreign exchange, and credit cards, and a starting tape number. Tape number information. Each business data contains multiple files, each file has its own different file content. The magnetic disk storage module 11 also stores at least one comparison table corresponding to at least one previous period, and at least one data table corresponding to the at least one previous period. Each comparison table corresponding to a previous period contains the correspondence between the file name of each file corresponding to the previous period and its tape area number. Each data table corresponding to the previous period contains a correspondence between the file name of each file corresponding to the previous period and the business data to which it belongs, the size of the file, and the file is stored in the tape storage module A backup time for group 12. It is worth mentioning that, ideally, during each fixed time period, such as on the 15th of each month, multiple salesmen who are respectively responsible for multiple different business categories will use their business-end device 2 to generate relevant , For example, the business data of August and transmitted to the processing module 14 to update the business data previously stored in the disk storage module 11 (that is, to overwrite the update with the business data of the current period Related to the previous period, such as the business data in July), in which each salesperson uses its business-end device 2 to store a core system of multiple transaction data related to multiple transactions with the bank Transaction module (not shown), download required transaction information to generate such business information related to the current period.

該磁帶儲存模組12用於儲存相關於該目前期別之該等業務資料中的每一檔案,並儲存相關於該至少一先前期別之每一者所對應之多筆業務資料中的每一檔案。在本實施例中,該磁帶儲存模組12被實施為一包含一虛擬磁帶館及一包括多個磁帶的自動化磁帶館的自動化儲存設備。此外,每一期別的該等業務資料之業務類別是固定的,以先前所舉的存款類、放款類、外匯類及信用卡類之業務類別來說,每一期別皆含有對應存款類的業務資料、對應放款類的業務資料、對應外匯類的業務資料,及對應信用卡類的業務資料。而不同期別之每筆業務資料所包含之檔案的數目可能會有所不同,舉例來說,相關於上一期別之對應於存款類的業務資料例如包含一相關於外幣存款的檔案、一相關於活期存款的檔案,及一相關於定期存款的檔案。而相關於該目前期別之對應於存款類的業務資料除了包含一相關於外幣存款的檔案、一相關於活期存款的檔案,及一相關於定期存款的檔案之外,還包含一相關於黃金存摺的檔案。因此,該目前期別之對應於存款類的業務資料所包含之檔案數目為4,不同於該上一期別之對應於存款類的業務資料所包含之檔案數目為3。The tape storage module 12 is used to store each file of the business data related to the current period, and store each of the plurality of business data corresponding to each of the at least one previous period. A file. In this embodiment, the tape storage module 12 is implemented as an automated storage device including a virtual tape library and an automated tape library including multiple tapes. In addition, the business type of these business data for each period is fixed. In terms of the business types of deposits, loans, foreign exchange and credit cards listed previously, each period contains the corresponding deposit type. Business data, business data corresponding to loans, business data corresponding to foreign exchange, and business data corresponding to credit cards. The number of files contained in each piece of business data may not be the same during the same period. For example, the business data corresponding to the deposit type related to the previous period includes, for example, a file related to foreign currency deposits, a A file related to demand deposits and a file related to time deposits. The business data corresponding to the deposit category related to the current period contains a file related to foreign currency deposits, a file related to demand deposits, and a file related to time deposits, as well as a file related to gold Passbook file. Therefore, the number of files contained in the business data corresponding to the deposit type in the current period is 4, which is different from the number of files contained in the business data corresponding to the deposit type in the previous period to 3.

在該處理模組14經由該通訊模組13接收到至少一筆來自至少一業務端裝置2的業務資料時,該處理模組14將至少一筆先前已儲存於該磁碟儲存模組11且對應該至少一筆業務資料的先前業務資料更新為所接收到的該至少一筆業務資料。對於目前儲存於該磁碟儲存模組11的每筆業務資料,該處理模組14還根據對應於該上一期別的一資料表,獲得該業務資料對應於該上一期別的業務資料所包含之一檔案數目(亦即,獲得對應該上一期別且與該業務資料屬於同一業務類別的該業務資料所包含之該檔案數目),並根據目前儲存於該磁碟儲存模組11的該業務資料,獲得對應該目前期別的該業務資料所包含之一檔案數目。該處理模組14比較對應該上一期別的業務資料之檔案數目與對應該目前期別的業務資料之檔案數目是否相等。當該處理模組14比較出對應該上一期別的業務資料之檔案數目不等於對應該目前期別的業務資料之檔案數目時,該處理模組14產生一檔案數目異常指示輸出並經由該通訊模組13傳送至對應產生並傳送該業務資料的一業務端裝置2,其中,當該處理模組14比較出對應該上一期別的業務資料之檔案數目小於對應該目前期別的業務資料之檔案數目時,該處理模組14所產生的該檔案數目異常指示輸出會指示出檔案數目異常增加,當該處理模組14比較出對應該上一期別的業務資料之檔案數目大於對應該目前期別的業務資料之檔案數目時,該處理模組14所產生的該檔案數目異常指示輸出會指示出檔案數目異常減少。當該處理模組14比較出對應該上一期別的業務資料之檔案數目等於對應該目前期別的業務資料之檔案數目時,該處理模組14產生一檔案數目無異常指示輸出。When the processing module 14 receives at least one piece of business data from at least one business-end device 2 through the communication module 13, the processing module 14 stores at least one piece of data previously stored in the disk storage module 11 and corresponds to The previous business data of the at least one business data is updated to the received at least one business data. For each piece of business data currently stored in the disk storage module 11, the processing module 14 also obtains the business data corresponding to the previous period of business data according to a data table corresponding to the previous period. The number of files included (that is, the number of files included in the business data corresponding to the previous period and belonging to the same business category as the business data), and based on the current storage in the disk storage module 11 The number of files included in the business data corresponding to the current period is obtained. The processing module 14 compares whether the number of files corresponding to the business data of the previous period is equal to the number of files corresponding to the business data of the current period. When the processing module 14 compares that the number of files corresponding to other business data in the previous period is not equal to the number of files corresponding to current business data in the current period, the processing module 14 generates an abnormal number of files and outputs the The communication module 13 transmits to a service-end device 2 corresponding to the business data that is generated and transmitted. When the processing module 14 compares the number of files corresponding to the business data of the previous period to less than the business data corresponding to the current period When the number of files is data, the abnormal output of the number of files generated by the processing module 14 will indicate an abnormal increase in the number of files. When the processing module 14 compares the number of files corresponding to other business data in the previous period is greater than When the number of files of the current business data is required, the abnormal output of the number of files generated by the processing module 14 indicates that the number of files is abnormally reduced. When the processing module 14 compares that the number of files corresponding to other business data of the previous period is equal to the number of files corresponding to current business data of the current period, the processing module 14 generates a file number without abnormal indication output.

值得一提的是,銀行業者恐會隨客戶需求提供不同的服務,如先前所舉之對應存款類的業務資料,因應客戶的黃金存摺需求,銀行業者推出了黃金存摺服務,故該目前期別之對應於存款類的業務資料還包含相關於黃金存摺的該檔案。除了增加服務項目外,銀行業者亦有可能減少服務項目,例如往後即不提供外幣存款服務,因而相關於下一期別之對應於存款類的業務資料就不再包含一相關於外幣存款的檔案。惟,當該上一期別的業務資料之檔案數目不等於對應該目前期別的業務資料之檔案數目時,原因除了因客戶需求而進行服務項目的調整外,也有可能是業務員利用其業務端裝置2,產生該目前期別之業務資料的多個檔案時,少產生一個檔案。此時,藉由本發明資料保存系統之處理模組14自動比較該上一期別的業務資料之檔案數目與該目前期別的業務資料之檔案數目是否相等,當該處理模組14比較出對應該上一期別的業務資料之檔案數目不等於對應該目前期別的業務資料之檔案數目時,該處理模組14適時地產生該檔案數目異常指示輸出並傳送至對應的業務端裝置2,以提醒業務員,進而避免因業務員疏忽而導致檔案數目異常的情形發生。當該業務端裝置2接收到該檔案數目異常指示輸出時,該業務端裝置2經由所對應之業務員的一輸入操作產生一指示出異常原因的第一回覆並傳送至該處理模組14。當該處理模組14經由該通訊模組13接收到來自該業務端裝置2的該第一回覆時,該處理模組14儲存對應於該目前期別的該第一回覆於該磁碟儲存模組11。It is worth mentioning that the bankers may provide different services according to customer needs. For example, the business information of the corresponding deposit type was previously listed. In response to the customer's gold passbook requirements, the bankers have launched gold passbook services, so the current period The business data corresponding to the deposit category also contains the file related to the gold passbook. In addition to increasing service items, banks may also reduce service items. For example, foreign currency deposit services will not be provided in the future. Therefore, the business information corresponding to the next period corresponding to the deposit category will no longer include a foreign currency deposit related service. file. However, when the number of files of business information in the previous period is not equal to the number of files corresponding to the current period of business information, in addition to adjusting service items due to customer needs, it may also be that the salesperson uses his business The terminal device 2 generates one file when generating multiple files of the current period of service data. At this time, the processing module 14 of the data storage system of the present invention automatically compares the number of files of the business data of the previous period with the number of files of the business data of the current period. When the processing module 14 compares When the number of files of the business data in the previous period is not equal to the number of files corresponding to the business data in the current period, the processing module 14 timely generates an abnormal indication of the number of files and sends it to the corresponding business-end device 2, In order to remind the salesman, and then avoid the situation that the number of files is abnormal due to the negligence of the salesman. When the business-end device 2 receives the output of the file number abnormality indication, the business-end device 2 generates a first reply indicating the cause of the abnormality through an input operation of the corresponding salesman and transmits the first reply to the processing module 14. When the processing module 14 receives the first reply from the business-end device 2 via the communication module 13, the processing module 14 stores the first reply corresponding to the current period in the magnetic disk storage module. Group 11.

對於每筆業務資料的每一檔案,該處理模組14還根據對應於該上一期別的該資料表,獲得該檔案對應於該上一期別之檔案的一備份時間(亦即,獲得對應該上一期別且與該檔案之檔名相同的該檔案的該備份時間),並根據目前儲存於該磁碟儲存模組11的該檔案,獲得對應該目前期別的該檔案的一儲存時間。該處理模組14還判定對應該上一期別的該檔案的該備份時間是否晚於對應該目前期別的該檔案的該儲存時間,當該處理模組14判定出對應該上一期別的該檔案的該備份時間晚於對應該目前期別的該檔案的該儲存時間時,該處理模組14產生一檔案逾期異常指示輸出並經由該通訊模組13傳送至對應產生並傳送該檔案的一業務端裝置2。當該處理模組14判定出對應該上一期別的該檔案的該備份時間不晚於對應該目前期別的該檔案的該儲存時間時,該處理模組14產生一檔案期限無異常指示輸出。值得一提的是,若有業務員不慎忘記產生該目前期別的業務資料,導致儲存於該磁碟儲存模組11之業務資料是尚未更新之該上一期別的業務資料時,藉由本發明資料保存系統之處理模組14判定對應該上一期別的該檔案的該備份時間是否晚於對應該目前期別的該檔案的該儲存時間,當該處理模組14判定出對應該上一期別的該檔案的該備份時間晚於對應該目前期別的該檔案的該儲存時間時,該處理模組14適時地產生該檔案逾期異常指示輸出並傳送至對應的業務端裝置2,以提醒業務員,進而避免因業務員疏忽而導致逾期未更新業務資料的情形發生。當該業務端裝置2接收到該檔案逾期異常指示輸出時,該業務端裝置2經由所對應之業務員的另一輸入操作產生一指示出異常原因的第二回覆並傳送至該處理模組14。當該處理模組14經由該通訊模組13接收到來自該業務員業務端裝置2的該第二回覆時,該處理模組14儲存對應於該目前期別的該第二回覆於該磁碟儲存模組11。此外,若所欲判定是否逾期的檔案僅包含在該目前期別的該等業務資料中,而不包含在該上一期別的該等業務資料中(亦即,對應該檔案的服務項目是最近才開始提供),則該處理模組14不會獲得該檔案對應於該上一期別的該檔案的備份時間,因而,無須判定對應該上一期別的該檔案的該備份時間是否晚於對應該目前期別的該檔案的該儲存時間。For each file of each business data, the processing module 14 also obtains a backup time of the file corresponding to the file of the previous period according to the data table corresponding to the previous period (ie, obtains Corresponding to the backup time of the file with the same file name as the previous period), and according to the file currently stored in the disk storage module 11, a file corresponding to the file with the current period is obtained Storage time. The processing module 14 also determines whether the backup time corresponding to the file in the previous period is later than the storage time corresponding to the file in the current period. When the processing module 14 determines that the file should be in the previous period, When the backup time of the file is later than the storage time of the file corresponding to the current period, the processing module 14 generates a file overdue abnormality indication output and transmits to the corresponding generation and transmission of the file via the communication module 13 Of a business-end device 2. When the processing module 14 determines that the backup time corresponding to the file in the previous period is not later than the storage time corresponding to the file in the current period, the processing module 14 generates a file period without exception indication Output. It is worth mentioning that if a salesperson accidentally forgets to generate the business data of the current period, which causes the business data stored in the disk storage module 11 to be the business data of the previous period that has not been updated, borrow The processing module 14 of the data storage system of the present invention determines whether the backup time corresponding to the file in the previous period is later than the storage time corresponding to the file in the current period. When the processing module 14 determines that the corresponding When the backup time of the file in the previous period is later than the storage time corresponding to the file in the current period, the processing module 14 generates the file overdue abnormality indication output in a timely manner and sends it to the corresponding business-end device 2 To remind the salesperson, and thus avoid the situation that the business information is not updated due to the negligence of the salesperson. When the business-end device 2 receives the file overdue abnormality indication output, the business-end device 2 generates a second reply indicating the cause of the abnormality through another input operation of the corresponding salesman and sends it to the processing module 14 . When the processing module 14 receives the second reply from the salesman business-end device 2 via the communication module 13, the processing module 14 stores the second reply corresponding to the current period on the disk Storage module 11. In addition, if you want to determine whether the overdue files are only included in the business data in the current period, but not in the business data in the previous period (that is, the service items corresponding to the files are Only recently), the processing module 14 will not obtain the backup time of the file corresponding to the previous period of the file, so there is no need to determine whether the backup time of the file corresponding to the previous period is late The storage time corresponding to the current period of the file.

該處理模組14還根據儲存於該磁碟儲存模組11之該等業務資料中的每一檔案之資料量、每一磁帶之容量及該磁帶編號資料,計算每一檔案對應的一磁帶區域編號,及該等業務資料所需使用的一磁帶數量,其中,相鄰兩檔案所對應的磁帶區域編號是連續不間斷的。在本實施例中,每一磁帶之容量皆相同,因而該處理模組14可僅根據任一磁帶之容量、該等業務資料中的每一檔案之資料量及該磁帶編號資料,計算每一檔案對應的該磁帶區域編號,及該磁帶數量,該處理模組14還將該磁帶數量儲存於該磁碟儲存模組11,但不限於此。該處理模組14根據儲存於該磁碟儲存模組11之該等業務資料中的每一檔案所對應的該磁帶區域編號,將該等業務資料中的每一檔案儲存於該磁帶儲存模組12中一對應於該磁帶區域編號的區域,並儲存一對應於該目前期別,且包含該等業務資料中的每一檔案之檔名與其磁帶區域編號之一對應關係的對照表於該磁碟儲存模組11。該處理模組14還儲存一包含該目前期別之每一檔案之檔名及其所屬之業務資料的一對應關係、該檔案之大小,以及該檔案被儲存於該磁帶儲存模組12之一備份時間的資料表,且根據最後一筆資料中之最後的檔案對應的一最後的磁帶區域編號,更新該磁帶編號資料中之起始磁帶編號。在本實施例中,該處理模組14係以最後的該磁帶區域編號加上一單位編號,如1之和,來更新該磁帶編號資料中的起始磁帶編號。The processing module 14 also calculates a tape area corresponding to each file according to the data amount of each file, the capacity of each tape, and the tape number data stored in the business data of the magnetic disk storage module 11. Number, and the number of tapes required for these business materials, in which the tape area numbers corresponding to two adjacent files are continuous and uninterrupted. In this embodiment, the capacity of each tape is the same, so the processing module 14 can calculate each of the tapes based on the capacity of any tape, the data volume of each file in the business data, and the tape number data. The tape area number corresponding to the file and the number of tapes. The processing module 14 also stores the number of tapes in the disk storage module 11, but is not limited thereto. The processing module 14 stores each file in the business data in the tape storage module according to the tape area number corresponding to each file in the business data stored in the magnetic disk storage module 11. An area corresponding to the tape area number in 12 is stored in a corresponding table corresponding to the current period and containing a correspondence relationship between the file name of each file in the business data and one of its tape area numbers. Disk storage module 11. The processing module 14 also stores a corresponding relationship including the file name of each file of the current period and the business data to which it belongs, the size of the file, and the file is stored in one of the tape storage modules 12 Backup the data table of time, and update the starting tape number in the tape number data according to a last tape area number corresponding to the last file in the last piece of data. In this embodiment, the processing module 14 updates the start tape number in the tape number data by adding the last tape area number plus a unit number, such as the sum of 1.

當該處理模組14接收到一包含一查詢期別及一查詢檔名的回存請求時,該處理模組14根據該查詢期別獲得一含有相同於該查詢期別之期別的對照表,並根據該查詢檔名及所獲得的該對照表比對出該查詢檔名所對應的一磁帶區域編號,該處理模組14根據所比對出的該磁帶區域編號,自該磁帶儲存模組12回存對應於該磁帶區域編號的檔案至該磁碟儲存模組11。在本實施例中,該回存請求僅包含一查詢期別及一查詢檔名,然而,在本發明之其他實施例中,該回存請求可包含多筆查詢期別及多筆查詢檔名。值得一提的是,當所欲查詢的查詢期別及查詢檔名之數量很多時,藉由該處理模組14自動獲得每一所欲查詢之查詢檔名所對應的一磁帶區域編號,可大幅減少由人工將該等查詢檔名一筆一筆鍵入以搜尋出所對應之磁帶區域編號的作業時間,此外,每一期別中對應不同業務類別的業務資料係連續且集中地儲存於多個位置彼此鄰近的不同磁帶中,由於該等業務資料集中儲存的關係,所欲查詢的該等查詢檔名所對應之檔案甚至有可能集中儲存在同一捲磁帶中,因此,調閱儲存有對應該等查詢檔名之檔案的磁帶所需耗費之時間亦可被縮減,再者,藉由該處理模組14根據所獲得的多個磁帶區域編號,自動地自該磁帶儲存模組12回存對應於該等磁帶區域編號的檔案至該磁碟儲存模組11,可大幅減少藉由人工作業從所調閱的磁帶中自行複製對應於該等查詢檔名之檔案的作業時間。When the processing module 14 receives a retrieval request including a query period and a query file name, the processing module 14 obtains a comparison table containing the same period type as the query period according to the query period. And compares a tape region number corresponding to the query file name according to the query file name and the obtained comparison table, and the processing module 14 retrieves the tape storage module from the tape storage module according to the compared tape region number. 12 returns a file corresponding to the tape area number to the magnetic disk storage module 11. In this embodiment, the retrieval request includes only a query period and a query file name. However, in other embodiments of the present invention, the retrieval request may include multiple query periods and multiple query file names. . It is worth mentioning that when the number of query periods and query file names to be queried is large, the processing module 14 automatically obtains a tape area number corresponding to each query file name to be queried. Reduce the operation time of manually typing the query file names one by one to search for the corresponding tape area number. In addition, business data corresponding to different business categories in each period are continuously and centrally stored in multiple locations adjacent to each other. In different magnetic tapes, due to the centralized storage of these business data, the files corresponding to the query file names that are to be queried may even be stored in the same tape. The time required for the tape of the file can also be reduced. Furthermore, the processing module 14 automatically restores the tapes corresponding to the tapes from the tape storage module 12 according to the multiple tape area numbers obtained. Area numbered files to the disk storage module 11 can greatly reduce manual copying of files corresponding to these query file names from the retrieved tapes Of operating time.

以下將配合所附圖式來說明利用該資料保存系統所實施的本發明資料保存方法之實施例,本實施例依序包含有一資料儲存程序及一資料回存程序。An embodiment of the data storage method of the present invention implemented by using the data storage system will be described below with reference to the accompanying drawings. This embodiment includes a data storage program and a data recovery program in this order.

參閱圖1、圖2與圖3,該資料保存系統實施本發明資料保存方法之資料儲存程序。該資料儲存程序說明了如何將該目前期別的該等業務資料儲存於該磁帶儲存模組11,並包含下列步驟。Referring to FIG. 1, FIG. 2 and FIG. 3, the data storage system implements a data storage program of the data storage method of the present invention. The data storage procedure explains how to store the current business data in the tape storage module 11 and includes the following steps.

在步驟301中,當該處理模組14經由該通訊模組13接收到該至少一筆業務資料時,該處理模組14將該至少一筆先前已儲存於該磁碟儲存模組11且對應該至少一筆業務資料的先前業務資料更新為所接收到的該至少一筆業務資料。In step 301, when the processing module 14 receives the at least one piece of business data via the communication module 13, the processing module 14 stores the at least one piece of previously stored in the disk storage module 11 and corresponds to at least one The previous business data of a business data is updated to the received at least one business data.

在步驟302中,對於目前儲存於該磁碟儲存模組11的每筆業務資料,該處理模組14根據對應於該上一期別的該資料表,獲得該業務資料對應於該上一期別的業務資料所包含之該檔案數目,並根據目前儲存於該磁碟儲存模組11的業務資料,獲得對應該目前期別的業務資料所包含之該檔案數目。In step 302, for each business data currently stored in the magnetic disk storage module 11, the processing module 14 obtains the business data corresponding to the previous period according to the data table corresponding to the previous period. The number of the files included in other business data, and according to the business data currently stored in the disk storage module 11, the number of the files included in the business data corresponding to the current period is obtained.

在步驟303中,該處理模組14比較對應該上一期別的業務資料之檔案數目與對應該目前期別的業務資料之檔案數目是否相等。當該處理模組14比較出對應該上一期別的業務資料之檔案數目不等於對應該目前期別的業務資料之檔案數目時,流程進行至步驟304;否則,流程進行至步驟306。In step 303, the processing module 14 compares whether the number of files corresponding to the business data of the previous period is equal to the number of files corresponding to the business data of the current period. When the processing module 14 compares that the number of files corresponding to the business data of the previous period is not equal to the number of files corresponding to the business data of the current period, the flow proceeds to step 304; otherwise, the flow proceeds to step 306.

在步驟304中,該處理模組14產生該檔案數目異常指示輸出並經由該通訊模組13傳送至對應產生並傳送該業務資料的該業務端裝置2。In step 304, the processing module 14 generates an output of the file number abnormality indication and transmits it to the service end device 2 corresponding to the service data generated and transmitted through the communication module 13.

在步驟305中,當該處理模組14經由該通訊模組13接收到來自該業務端裝置2且指示出異常原因的該第一回覆時,該處理模組14儲存對應於該目前期別的該第一回覆於該磁碟儲存模組11。In step 305, when the processing module 14 receives the first reply from the service-side device 2 and indicates the cause of the abnormality via the communication module 13, the processing module 14 stores the first response corresponding to the current period. The first reply is to the magnetic disk storage module 11.

在步驟306中,對於目前儲存於該磁碟儲存模組11的每筆業務資料的每一檔案,該處理模組14根據對應於該上一期別的該資料表,獲得該檔案對應於該上一期別之檔案的該備份時間,並根據目前儲存於該磁碟儲存模組11的該檔案,獲得對應該目前期別的該檔案的該儲存時間。In step 306, for each file of each business data currently stored in the disk storage module 11, the processing module 14 obtains the file corresponding to the file according to the data table corresponding to the previous period. The backup time of the files in the previous period is obtained according to the file currently stored in the disk storage module 11 to obtain the storage time corresponding to the file in the current period.

在步驟307中,該處理模組14判定對應該上一期別的該檔案的該備份時間是否晚於對應該目前期別的該檔案的該儲存時間。當判定出對應該上一期別的該檔案的該備份時間晚於對應該目前期別的該檔案的該儲存時間時,流程進行至步驟308;否則,流程進行至步驟310。In step 307, the processing module 14 determines whether the backup time corresponding to the file in the previous period is later than the storage time corresponding to the file in the current period. When it is determined that the backup time corresponding to the file in the previous period is later than the storage time corresponding to the file in the current period, the flow proceeds to step 308; otherwise, the flow proceeds to step 310.

在步驟308中,該處理模組14產生該檔案逾期異常指示輸出並經由該通訊模組13傳送至對應產生並傳送該檔案的該業務端裝置2。In step 308, the processing module 14 generates the file overdue abnormality indication output and transmits it to the service-side device 2 corresponding to the file generated and transmitted through the communication module 13.

在步驟309中,當該處理模組14經由該通訊模組13接收到來自該業務端裝置2且指示出異常原因的該第二回覆時,該處理模組14儲存對應於該目前期別的該第二回覆於該磁碟儲存模組11。In step 309, when the processing module 14 receives the second reply from the service-side device 2 and indicates the cause of the abnormality via the communication module 13, the processing module 14 stores the response corresponding to the current period. The second reply is to the magnetic disk storage module 11.

在步驟310中,該處理模組14根據儲存於該磁碟儲存模組11之該等業務資料中的每一檔案之資料量、每一磁帶之容量及該磁帶編號資料,計算每一檔案對應的該磁帶區域編號。In step 310, the processing module 14 calculates the correspondence of each file according to the data amount of each file, the capacity of each tape, and the tape number data stored in the business data of the magnetic disk storage module 11. The tape area number.

在步驟311中,該處理模組14根據該等業務資料中的每一檔案所對應的該磁帶區域編號,將該等業務資料中的每一檔案儲存於該磁帶儲存模組12中對應於該磁帶區域編號的該區域。In step 311, the processing module 14 stores each file in the business data in the tape storage module 12 according to the tape area number corresponding to each file in the business data. The area of the tape area number.

在步驟312中,該處理模組14儲存對應於該目前期別,且包含該等業務資料中的每一檔案之檔名與其磁帶區域編號之該對應關係的該對照表於該磁碟儲存模組11,並儲存包含該目前期別之每一檔案之檔名及其所屬之業務資料的該對應關係、該檔案之大小,以及該檔案被儲存於該磁帶儲存模組12之該備份時間的資料表,且根據最後一筆資料中之最後的檔案對應之該最後的磁帶區域編號,更新該磁帶編號資料中之起始磁帶編號。在本實施例中,該處理模組14係以最後的該磁帶區域編號加上一單位編號,如1之和,來更新該磁帶編號資料中的起始磁帶編號。In step 312, the processing module 14 stores the comparison table corresponding to the current period and containing the correspondence between the file name of each file in the business data and its tape area number in the disk storage module. Group 11 and stores the corresponding relationship between the file name of each file of the current period and the business data to which it belongs, the size of the file, and the backup time of the file stored in the tape storage module 12 Data table, and update the starting tape number in the tape number data according to the last tape area number corresponding to the last file in the last piece of data. In this embodiment, the processing module 14 updates the start tape number in the tape number data by adding the last tape area number plus a unit number, such as the sum of 1.

參閱圖1與圖4,該資料保存系統實施本發明資料保存方法之資料回存程序。該資料回存程序說明了如何將所欲查詢的該查詢期別及該查詢檔名回存至該磁碟儲存模組11,並包含下列步驟。Referring to FIG. 1 and FIG. 4, the data storage system implements a data recovery program of the data storage method of the present invention. The data retrieval procedure explains how to retrieve the query period and the query file name to be retrieved to the disk storage module 11 and includes the following steps.

在步驟313中,當該處理模組14接收到包含該查詢期別及該查詢檔名的回存請求時,該處理模組14根據該查詢期別獲得含有相同於該查詢期別之期別的該對照表,並根據該查詢檔名及所獲得的該對照表比對出該查詢檔名所對應的該磁帶區域編號。In step 313, when the processing module 14 receives a retrieval request including the query period and the query file name, the processing module 14 obtains a period containing the same period as the query period according to the query period. And compare the query file name with the tape area number corresponding to the query file name and the obtained comparison table.

在步驟314中,該處理模組14根據所比對出的該磁帶區域編號,自該磁帶儲存模組12回存對應於該磁帶區域編號的檔案至該磁碟儲存模組11。In step 314, the processing module 14 returns a file corresponding to the tape area number from the tape storage module 12 to the disk storage module 11 according to the compared tape area number.

綜上所述,本發明資料保存方法及其系統,藉由該處理模組14集中地儲存每一期別中對應不同業務類別的業務資料,而非分散地將不同業務類別的業務資料分別儲存在多個位置彼此距離較遠之磁帶,可避免往後在調閱該等業務資料時,須藉由控制機器手臂分別至該自動化磁帶館的不同位置取出不同磁帶,因而耗費大量的調閱時間。此外,藉由該處理模組14自動地根據該回存請求獲得該查詢檔名所對應的該磁帶區域編號,並自動地自該磁帶儲存模組12回存對應於該磁帶區域編號的檔案至該磁碟儲存模組11,可減少人工作業並加速回存時間,再者,藉由該處理模組14比較該上一期別的業務資料之檔案數目與該目前期別的業務資料之檔案數目,並判定該上一期別的該檔案的該備份時間是否晚於該目前期別的該檔案的該儲存時間,以自動監管各業務員利用其業務端裝置2所產生的業務資料是否有異常狀況,故確實能達成本發明之目的。In summary, according to the data storage method and system of the present invention, the processing module 14 centrally stores business data corresponding to different business categories in each period, rather than separately storing business data of different business categories. Tapes that are far away from each other in multiple locations can avoid the need to control the robotic arm to take out different tapes to different locations in the automated tape library when reading such business data in the future, thus consuming a lot of reading time . In addition, the processing module 14 automatically obtains the tape area number corresponding to the query file name according to the retrieval request, and automatically retrieves a file corresponding to the tape area number from the tape storage module 12 to the tape area number. The magnetic disk storage module 11 can reduce manual operations and speed up the recovery time. Furthermore, the processing module 14 compares the number of files of the business data in the previous period with the number of files of the business data in the current period. And determine whether the backup time of the file in the previous period is later than the storage time of the file in the current period to automatically supervise whether the sales data generated by each salesperson using its business-end device 2 is abnormal Conditions, it can indeed achieve the purpose of the invention.

惟以上所述者,僅為本發明之實施例而已,當不能以此限定本發明實施之範圍,凡是依本發明申請專利範圍及專利說明書內容所作之簡單的等效變化與修飾,皆仍屬本發明專利涵蓋之範圍內。However, the above are only examples of the present invention. When the scope of implementation of the present invention cannot be limited in this way, any simple equivalent changes and modifications made in accordance with the scope of the patent application and the content of the patent specification of the present invention are still Within the scope of the invention patent.

11‧‧‧磁碟儲存模組
12‧‧‧磁帶儲存模組
13‧‧‧通訊模組
14‧‧‧處理模組
100‧‧‧通訊網路
2‧‧‧業務端裝置
301~314‧‧‧步驟
11‧‧‧Disk storage module
12‧‧‧Tape Storage Module
13‧‧‧Communication Module
14‧‧‧Processing Module
100‧‧‧Communication Network
2‧‧‧Business Device
301 ~ 314‧‧‧step

本發明之其他的特徵及功效,將於參照圖式的實施方式中清楚地呈現,其中: 圖1是本發明資料保存系統之實施例的一方塊圖; 圖2與圖3配合地說明本發明資料保存方法之實施例中的一資料儲存程序;及 圖4是一流程圖,說明本發明資料保存方法之實施例中的一資料回存程序。Other features and effects of the present invention will be clearly presented in the embodiment with reference to the drawings, in which: FIG. 1 is a block diagram of an embodiment of the data storage system of the present invention; FIG. 2 and FIG. 3 illustrate the present invention in cooperation A data storage program in the embodiment of the data storage method; and FIG. 4 is a flowchart illustrating a data recovery program in the embodiment of the data storage method of the present invention.

11‧‧‧磁碟儲存模組 11‧‧‧Disk storage module

12‧‧‧磁帶儲存模組 12‧‧‧Tape Storage Module

13‧‧‧通訊模組 13‧‧‧Communication Module

14‧‧‧處理模組 14‧‧‧Processing Module

100‧‧‧通訊網路 100‧‧‧Communication Network

2‧‧‧業務端裝置 2‧‧‧Business Device

Claims (10)

一種資料保存方法,藉由一資料保存系統來實施,該資料保存系統包括一用於儲存多筆相關於一目前期別,且分別對應不同業務類別之業務資料,及包含一起始磁帶編號之磁帶編號資料,並儲存至少一對應於至少一先前期別之對照表的磁碟儲存模組、一包含多個磁帶的磁帶儲存模組,以及一電連接該磁碟儲存模組與該磁帶儲存模組的處理模組,每筆業務資料包含多個檔案,每一檔案具有各自不同的檔案內容,每一對應於一先前期別的對照表包含對應該先前期別之每一檔案的檔名與其磁帶區域編號之對應關係,該資料保存方法包含以下步驟: (A)該處理模組根據儲存於該磁碟儲存模組之該等業務資料中的每一檔案之資料量、每一磁帶之容量及該磁帶編號資料,計算每一檔案對應的一磁帶區域編號; (B)該處理模組根據該等業務資料中的每一檔案所對應的該磁帶區域編號,將該等業務資料中的每一檔案儲存於該磁帶儲存模組中一對應於該磁帶區域編號的區域; (C)該處理模組儲存對應於該目前期別,且包含該等業務資料中的每一檔案之檔名與其磁帶區域編號之一對應關係的一對照表於該磁碟儲存模組; (D)當該處理模組接收到一包含一查詢期別及一查詢檔名的回存請求時,該處理模組根據該查詢期別獲得一含有相同於該查詢期別之期別的對照表,並根據該查詢檔名及所獲得的該對照表比對出該查詢檔名所對應的一磁帶區域編號;及 (E)該處理模組根據所比對出的該磁帶區域編號,自該磁帶儲存模組回存對應於該磁帶區域編號的檔案至該磁碟儲存模組。A data storage method is implemented by a data storage system. The data storage system includes a plurality of business data related to a current period and corresponding to different business categories, and a tape including a starting tape number. Numbering data, and storing at least one magnetic disk storage module corresponding to at least one previous comparison table, a magnetic tape storage module including a plurality of magnetic tapes, and an electrical connection between the magnetic disk storage module and the magnetic tape storage module Processing module of the group, each business data contains multiple files, each file has its own different file content, each correspondence table corresponding to a previous period contains the file name of each file corresponding to the previous period and Correspondence between tape area numbers, the data storage method includes the following steps: (A) the processing module according to the amount of data of each file and the capacity of each tape in the business data stored in the disk storage module And the tape number data, calculate a tape area number corresponding to each file; (B) the processing module corresponds to each file in the business data The tape area number stores each file in the business data in an area corresponding to the tape area number in the tape storage module; (C) the processing module stores the corresponding current period and contains A comparison table of the correspondence between the file name of each file in the business data and one of its tape area numbers is on the disk storage module; (D) when the processing module receives a file containing a query period and a When inquiring the file name retrieval request, the processing module obtains a comparison table containing the same period type as the query period according to the query period, and compares the query file name and the obtained comparison table according to the query period. A tape area number corresponding to the query file name; and (E) the processing module returns a file corresponding to the tape area number from the tape storage module to the disk according to the compared tape area number Storage module. 如請求項1所述的資料保存方法,在步驟(A)之前,還包含一步驟(F)當該處理模組接收到至少一筆業務資料時,該處理模組將至少一筆先前已儲存於該磁碟儲存模組且對應該至少一筆業務資料的先前業務資料更新為所接收到的該至少一筆業務資料。According to the method for saving data described in claim 1, before step (A), it further comprises a step (F). When the processing module receives at least one piece of business data, the processing module stores at least one piece of data previously stored in the The disk storage module and the previous business data corresponding to the at least one piece of business data are updated to the received at least one piece of business data. 如請求項1所述的資料保存方法,該磁碟儲存模組還儲存至少一對應於該至少一先前期別之資料表,每一對應於該先前期別的資料表包含對應該先前期別之每一檔案之檔名及其所屬之業務資料的一對應關係,在步驟(A)之前,還包含以下步驟: (G)對於目前儲存於該磁碟儲存模組的每筆業務資料,該處理模組根據對應於上一期別的一資料表,獲得該業務資料對應於該上一期別的業務資料所包含之一檔案數目,並根據目前儲存於該磁碟儲存模組的業務資料,獲得對應該目前期別的業務資料所包含之一檔案數目;及 (H)該處理模組比較對應該上一期別的業務資料之檔案數目與對應該目前期別的業務資料之檔案數目是否相等;及 (I)當該處理模組比較出對應該上一期別的業務資料之檔案數目不等於對應該目前期別的業務資料之檔案數目時,該處理模組產生一異常指示輸出。According to the data saving method described in claim 1, the magnetic disk storage module further stores at least one data table corresponding to the at least one previous period, and each data table corresponding to the previous period includes a corresponding previous period. The correspondence between the file name of each file and the business data to which it belongs belongs to. Before step (A), it also includes the following steps: (G) For each business data currently stored in the disk storage module, the The processing module obtains the number of files in the business data corresponding to the business data of the previous period according to a data table corresponding to the previous period, and according to the business data currently stored in the disk storage module To obtain the number of files included in the business data corresponding to the current period; and (H) the processing module compares the number of files corresponding to the business data in the previous period with the number of files corresponding to the business data in the current period. Whether they are equal; and (I) when the processing module compares the number of files corresponding to the business data of the previous period not equal to the number of files corresponding to the business data of the current period, the processing module generates an exception Indication output. 如請求項1所述的資料保存方法,該磁碟儲存模組還儲存至少一對應於該至少一先前期別之資料表,每一對應於該先前期別的資料表包含對應該先前期別之每一檔案之檔名及其被儲存於該磁帶儲存模組的一備份時間,在步驟(A)之前,還包含以下步驟: (J)對於目前儲存於該磁碟儲存模組的每筆業務資料的每一檔案,該處理模組根據對應於上一期別的一資料表,獲得該檔案對應於該上一期別之檔案的一備份時間,並根據目前儲存於該磁碟儲存模組的該檔案,獲得對應該目前期別的該檔案的一儲存時間; (K)該處理模組判定對應該上一期別的該檔案的該備份時間是否晚於對應該目前期別的該檔案的該儲存時間;及 (L)當判定出對應該上一期別的該檔案的該備份時間晚於對應該目前期別的該檔案的該儲存時間時,該處理模組產生一異常指示輸出。According to the data saving method described in claim 1, the magnetic disk storage module further stores at least one data table corresponding to the at least one previous period, and each data table corresponding to the previous period includes a corresponding previous period. The file name of each file and its backup time stored in the tape storage module, before step (A), also include the following steps: (J) For each transaction currently stored in the disk storage module For each file of business data, the processing module obtains a backup time of the file corresponding to the file of the previous period according to a data table corresponding to the previous period, and according to the current storage in the disk storage module Group of the files to obtain a storage time corresponding to the current period of the file; (K) the processing module determines whether the backup time of the file corresponding to the previous period is later than that of the file corresponding to the current period The storage time of the file; and (L) when it is determined that the backup time corresponding to the file in the previous period is later than the storage time corresponding to the file in the current period, the processing module generates an abnormal indication Output. 如請求項1所述的資料保存方法,在步驟(A)之後,還包含一步驟(M),該處理模組根據最後一筆資料中之最後的檔案對應的一最後的磁帶區域編號,更新該磁帶編號資料中之起始磁帶編號。According to the data saving method described in claim 1, after step (A), a step (M) is further included, and the processing module updates the last tape area number corresponding to the last file area corresponding to the last file in the last piece of data. The starting tape number in the tape number data. 一資料保存系統,包含: 一磁碟儲存模組,用於儲存多筆相關於一目前期別,且分別對應不同業務類別之業務資料,及包含一起始磁帶編號之磁帶編號資料,並儲存至少一對應於至少一先前期別之對照表,每筆業務資料包含多個檔案,每一檔案具有各自不同的檔案內容,每一對應於一先前期別的對照表包含對應該先前期別之每一檔案的檔名與其磁帶區域編號之對應關係; 一磁帶儲存模組,包含多個磁帶,並用於儲存相關於該目前期別之該等業務資料中的每一檔案,並儲存相關於該至少一先前期別之每一者所對應之多筆業務資料中的每一檔案;及 一處理模組,電連接該磁碟儲存模組與該磁帶儲存模組,並用於根據儲存於該磁碟儲存模組之該等業務資料中的每一檔案之資料量、每一磁帶之容量及該磁帶編號資料,計算每一檔案對應的一磁帶區域編號,且根據儲存於該磁碟儲存模組之該等業務資料中的每一檔案所對應的該磁帶區域編號,將該等業務資料中的每一檔案儲存於該磁帶儲存模組中一對應於該磁帶區域編號的區域,並儲存對應於該目前期別,且包含該等業務資料中的每一檔案之檔名與其磁帶區域編號之一對應關係的一對照表於該磁碟儲存模組,當該處理模組接收到一包含一查詢期別及一查詢檔名的回存請求時,該處理模組根據該查詢期別獲得一含有相同於該查詢期別之期別的對照表,並根據該查詢檔名及所獲得的該對照表比對出該查詢檔名所對應的一磁帶區域編號,該處理模組根據所比對出的該磁帶區域編號,自該磁帶儲存模組回存對應於該磁帶區域編號的檔案至該磁碟儲存模組。A data storage system including: a magnetic disk storage module for storing multiple pieces of business data related to a current period and corresponding to different business categories, and tape numbering data including a starting tape number, and storing at least A comparison table corresponding to at least one previous period, each business data contains multiple files, each file has its own different file content, each comparison table corresponding to a previous period contains each corresponding to the previous period The correspondence between the file name of a file and its tape area number; a tape storage module containing multiple tapes, and used to store each file in the business data related to the current period, and store the file related to the at least Each file in the plurality of business data corresponding to each of the previous periods; and a processing module, which electrically connects the magnetic disk storage module and the magnetic tape storage module and is used to store the magnetic disk storage module according to The data amount of each file in the business data of the storage module, the capacity of each tape, and the tape number data, and calculate a tape area number corresponding to each file And according to the tape area number corresponding to each file in the business data stored in the disk storage module, each file in the business data is stored in the tape storage module corresponding to the The area of the tape area number is stored in the disk storage module corresponding to the current period and contains a comparison table of the correspondence between the file name of each file in the business data and one of its tape area numbers. When the processing module receives a retrieval request including a query period and a query file name, the processing module obtains a comparison table containing the same period type as the query period according to the query period, and according to The query file name and the obtained comparison table compare a tape region number corresponding to the query file name, and the processing module restores the corresponding tape region number from the tape storage module according to the compared tape region number. The file of the tape area number is sent to the disk storage module. 如請求項6所述的資料保存系統,其中,當該處理模組接收到至少一筆業務資料時,該處理模組將至少一筆先前已儲存於該磁碟儲存模組且對應該至少一筆業務資料的先前業務資料更新為所接收到的該至少一筆業務資料。The data storage system according to claim 6, wherein, when the processing module receives at least one piece of business data, the processing module stores at least one piece of business data previously stored in the disk storage module and corresponds to at least one piece of business data The previous business data of is updated to the at least one business data received. 如請求項6所述的資料保存系統,其中,該磁碟儲存模組還儲存至少一對應於該至少一先前期別之資料表,每一對應於該先前期別的資料表包含對應該先前期別之每一檔案之檔名及其所屬之業務資料的一對應關係,對於目前儲存於該磁碟儲存模組的每筆業務資料,該處理模組還根據對應於上一期別的一資料表,獲得該業務資料對應於該上一期別的業務資料所包含之一檔案數目,並根據目前儲存於該磁碟儲存模組的該業務資料,獲得對應該目前期別的該業務資料所包含之一檔案數目,該處理模組比較對應該上一期別的業務資料之檔案數目與對應該目前期別的業務資料之檔案數目是否相等,當該處理模組比較出對應該上一期別的業務資料之檔案數目不等於對應該目前期別的業務資料之檔案數目時,該處理模組產生一異常指示輸出。The data storage system according to claim 6, wherein the disk storage module further stores at least one data table corresponding to the at least one previous period, and each data table corresponding to the previous period includes a corresponding first There is a correspondence between the file name of each file in the previous period and the business data to which it belongs. For each business data currently stored in the disk storage module, the processing module also corresponds to the corresponding one in the previous period. Data table to obtain the business data corresponding to the number of files included in the business data of the previous period, and to obtain the business data corresponding to the current period based on the business data currently stored in the disk storage module Whether the number of files included in the processing module is equal to the number of files corresponding to the business data of the previous period and the number of files corresponding to the business data of the current period is equal. When the number of files of periodical business data is not equal to the number of files corresponding to the current period of business data, the processing module generates an abnormal instruction output. 如請求項6所述的資料保存系統,其中,該磁碟儲存模組還儲存至少一對應於該至少一先前期別之資料表,每一對應於該先前期別的資料表包含對應該先前期別之每一檔案之檔名及其被儲存於該磁帶儲存模組的一備份時間,對於目前儲存於該磁碟儲存模組的每筆業務資料的每一檔案,該處理模組還根據對應於上一期別的一資料表,獲得該檔案對應於該上一期別之檔案的一備份時間,並根據目前儲存於該磁碟儲存模組的該檔案,獲得對應該目前期別的該檔案的一儲存時間,該處理模組還判定對應上一期別的該檔案的該備份時間是否晚於對應該目前期別的該檔案的該儲存時間,當該處理模組判定出對應該上一期別的該檔案的該備份時間晚於對應該目前期別的該檔案的該儲存時間時,該處理模組產生一異常指示輸出。The data storage system according to claim 6, wherein the disk storage module further stores at least one data table corresponding to the at least one previous period, and each data table corresponding to the previous period includes a corresponding first The file name of each file in the previous period and a backup time stored in the tape storage module. For each file of each business data currently stored in the disk storage module, the processing module also Corresponds to a data table of the previous period, obtains a backup time of the file corresponding to the file of the previous period, and obtains a file corresponding to the current period according to the file currently stored in the disk storage module. A storage time of the file, the processing module also determines whether the backup time corresponding to the file in the previous period is later than the storage time corresponding to the file in the current period, and when the processing module determines that it should When the backup time of the file in the previous period is later than the storage time corresponding to the file in the current period, the processing module generates an abnormal indication output. 如請求項6所述的資料保存系統,其中,該處理模組還根據最後一筆資料中之最後的檔案對應的一最後的磁帶區域編號,更新該磁帶編號資料中之起始磁帶編號。The data storage system according to claim 6, wherein the processing module further updates a start tape number in the tape number data according to a last tape area number corresponding to a last file in the last piece of data.
TW105127796A 2016-08-30 2016-08-30 Data storage method and system thereof TWI630496B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW105127796A TWI630496B (en) 2016-08-30 2016-08-30 Data storage method and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW105127796A TWI630496B (en) 2016-08-30 2016-08-30 Data storage method and system thereof

Publications (2)

Publication Number Publication Date
TW201807600A true TW201807600A (en) 2018-03-01
TWI630496B TWI630496B (en) 2018-07-21

Family

ID=62189618

Family Applications (1)

Application Number Title Priority Date Filing Date
TW105127796A TWI630496B (en) 2016-08-30 2016-08-30 Data storage method and system thereof

Country Status (1)

Country Link
TW (1) TWI630496B (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6408310B1 (en) * 1999-10-08 2002-06-18 Unisys Corporation System and method for expediting transfer of sectioned audit files from a primary host to a secondary host
US8719809B2 (en) * 2006-12-22 2014-05-06 Commvault Systems, Inc. Point in time rollback and un-installation of software
TWM535831U (en) * 2016-08-30 2017-01-21 First Commercial Bank Co Ltd Data storage system

Also Published As

Publication number Publication date
TWI630496B (en) 2018-07-21

Similar Documents

Publication Publication Date Title
EP3834363A1 (en) Splittable security token
CN111898139B (en) Data reading and writing method and device and electronic equipment
CN110032598B (en) Method and device for updating field and electronic equipment
JP4272186B2 (en) Collection agency system
CN108090225A (en) Operation method, device, system and the computer readable storage medium of database instance
US11003648B2 (en) Systems and methods for use in loading data from backup databases to task databases
CN107451918B (en) Asset data management method and device
TW520476B (en) System and method for retrieving data from a database using a data management system
CN112131305A (en) Account processing system
US11650922B2 (en) Cache coherency engine
US7716092B2 (en) Use of separate rib ledgers in a computerized enterprise resource planning system
TWI685808B (en) Management method and system for credit line
US20230073883A1 (en) Multi-blockchain token rebalancer
TWM535831U (en) Data storage system
TW201807600A (en) Data storage method and system thereof including a disc storage module, a magnetic tape storage module, and a processing module
WO2019056769A1 (en) Related party based transaction data processing optimization method, device, and computer device
JPH0667944A (en) Database management system
JP5758948B2 (en) Electronic record receivable liquidation management system
CN111506613A (en) Method, system, device and equipment for querying incidence relation of data record
TWM596918U (en) Automatic Recognition System for Key Customer Deals
JP6130979B1 (en) Credit management system, method, and program
CN105893393B (en) Data save method and device
US20240064032A1 (en) Systems and methods for managing metrics in blockchain networks
JP5441602B2 (en) Data conversion apparatus, data conversion method and program
US20220245732A1 (en) Data reconciliation for disparate databases by automatic generation of relevant action items