Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0738203B2 - Seat reservation system - Google Patents
[go: Go Back, main page]

JPH0738203B2 - Seat reservation system - Google Patents

Seat reservation system

Info

Publication number
JPH0738203B2
JPH0738203B2 JP27474588A JP27474588A JPH0738203B2 JP H0738203 B2 JPH0738203 B2 JP H0738203B2 JP 27474588 A JP27474588 A JP 27474588A JP 27474588 A JP27474588 A JP 27474588A JP H0738203 B2 JPH0738203 B2 JP H0738203B2
Authority
JP
Japan
Prior art keywords
seat
serial number
management table
information
files
Prior art date
Legal status (The legal status 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 status listed.)
Expired - Lifetime
Application number
JP27474588A
Other languages
Japanese (ja)
Other versions
JPH02120977A (en
Inventor
秀生 大須賀
成美 山本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP27474588A priority Critical patent/JPH0738203B2/en
Publication of JPH02120977A publication Critical patent/JPH02120977A/en
Publication of JPH0738203B2 publication Critical patent/JPH0738203B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、コンピュータにより座席予約を行うシステム
に利用するに適する。本発明は更新系の処理が複数発生
する座席予約システムのオンライン系の更新処理に関す
る。
DETAILED DESCRIPTION OF THE INVENTION [Industrial field of application] The present invention is suitable for use in a system for seat reservation by a computer. The present invention relates to an online update process of a seat reservation system in which a plurality of update processes occur.

〔概要〕〔Overview〕

本発明は複数の座席取り処理部、座席管理を行う座席管
理テーブルを含む主記憶部および座席ファイルを含む外
部記憶部を備え、座席の予約を行う座席予約システムの
座席取り方式において、 座席ファイルを複数個備え、座席要求情報をこの複数個
ある座席ファイルのどのファイルに復旧情報を入れるか
を通番によって管理することにより、 更新処理のレスポンスを改善できるようにしたものであ
る。
The present invention includes a plurality of seating processing units, a main storage unit including a seat management table for seat management, and an external storage unit including seat files. By providing a plurality of seat request information, which file of the plurality of seat files contains the restoration information by managing the serial number, the response of the updating process can be improved.

〔従来の技術〕[Conventional technology]

従来、この種の座席取りシステムは複数の座席取り処理
部と、座席管理を行う座席管理テーブルを含む主記憶装
置と、外部記憶装置とにより構成されているが、外部記
憶部上の座席ファイルが一つだけのために、同時に複数
の座席要求情報が出されると座席ファイル待ちの状態が
発生していた。
Conventionally, this type of seating system is composed of a plurality of seating processing units, a main storage device including a seat management table for seat management, and an external storage device. Because of only one, when a plurality of seat request information is issued at the same time, a state of waiting for a seat file occurs.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

上述した従来の座席取り方式は、外部記憶部(復旧情報
ファイル)の座席ファイルが一つであったために更新処
理の際に座席ファイルの排他処理により待ちが発生する
ため、複数の座席要求情報が同時に発生した場合座席フ
ァイル待ちによりレスポンスに悪影響を与える欠点があ
った。
In the conventional seating method described above, since there is only one seat file in the external storage unit (restoration information file), waiting occurs due to exclusive processing of the seat file during update processing, so multiple seat request information is stored. If they occur at the same time, there is a drawback that waiting for seat files adversely affects the response.

本発明はこのような欠点を除去するもので、座席ファイ
ル待ち時間を分散し、更新処理のレスポンスを改善する
方式を提供することを目的とする。
The present invention eliminates such drawbacks, and an object of the present invention is to provide a method of distributing seat file waiting times and improving response of update processing.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は、座席の予約状況を管理する座席管理テーブル
を有する主記憶部と、座席要求情報の入力手段と、上記
座席管理テーブルを読出し、入力された座席要求情報に
より座席取りの処理を行う複数の座席取り処理部を有す
る座席要求情報処理部と、上記座席管理テーブルの情報
を一時記憶する複数の座席ファイルを有する外部記憶部
とを備えた座席予約システムの座席取り方式において、
上記主記憶部に、上記複数の座席ファイルのどの座席フ
ァイルに復旧情報を記録するかを通番により管理する通
番管理テーブルを含み、上記複数の座席取り処理部は、
データ識別名ごとに座席取り処理の更新を行う都度その
通番を加算し、上記複数の座席ファイルに分散させて更
新された情報を格納し、併せて上記通番管理テーブル
に、データ識別名と新しい通番とを対応させて格納する
手段を含むことを特徴とする。
The present invention relates to a main storage unit having a seat management table for managing seat reservation status, an input unit for seat request information, a plurality of seat reading tables that read out the seat management table, and perform a seat taking process according to the input seat request information. In the seat reservation system of the seat reservation system including the seat request information processing unit having the seat acquisition processing unit and the external storage unit having a plurality of seat files for temporarily storing the information of the seat management table,
The main storage unit includes a serial number management table that manages, by serial numbers, in which seat file of the plurality of seat files the recovery information is recorded.
Each time a seating process is updated for each data identification name, the serial number is added, and the updated information is stored by being distributed to the multiple seat files, and the data identification name and new serial number are also stored in the serial number management table. It is characterized in that it includes means for storing and in correspondence with each other.

〔作用〕[Action]

座席要求情報が到来すると、座席取り処理部が座席の管
理を行う座席管理テーブルを読出し座席取りの処理を行
う。この座席取り処理の更新を行う都度、データ識別名
ごとに通番を加算して通番管理テーブルに格納し、あわ
せて更新された情報を複数の座席ファイルに分散させて
格納する。複数の座席ファイルのどの座席ファイルに格
納するかは通番管理テーブルに格納されたデータ識別名
ごとの最新通番により管理する。
When the seat request information arrives, the seat removal processing unit reads out the seat management table that manages seats and performs the seat removal processing. Each time the seating process is updated, the serial number is added for each data identification name and stored in the serial number management table, and the updated information is distributed and stored in a plurality of seat files. Which seat file of a plurality of seat files is stored is managed by the latest serial number for each data identification name stored in the serial number management table.

このように座席管理テーブルに一時格納された情報を複
数の座席ファイルに最新の情報として分散して格納する
ことにより、複数の座席要求情報が同時に到来しても座
席取り処理部が該当する座席ファイルとの間で処理を行
うために、従来のような座席ファイルの排他処理による
待ちの状態をなくすことができ、座席予約における更新
処理の応答を速やかに行うことができる。
In this way, the information temporarily stored in the seat management table is distributed and stored as the latest information in a plurality of seat files, so that even if a plurality of pieces of seat request information arrive at the same time, the seat picking processing unit applies the corresponding seat file. Therefore, the waiting state due to the exclusive processing of the seat file can be eliminated, and the response of the update processing in the seat reservation can be promptly performed.

〔実施例〕〔Example〕

次に、本発明実施例を図面に基づいて説明する。第1図
は本発明実施例の構成を示すブロック図である。本発明
実施例では列車の座席予約システムについて、座席取り
処理部を四つ備えた場合について説明する。
Next, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing the configuration of the embodiment of the present invention. In the embodiment of the present invention, a train seat reservation system will be described in the case where four seating processing units are provided.

本発明実施例の座席予約システム(トランザクション処
理システム)は、座席の管理を行う座席管理テーブル10
を有する主記憶部3と、座席要求情報aの入力手段1
と、座席管理テーブル10を読出し、この座席要求情報に
より座席取りの処理を行う複数の座席取り処理部5〜8
を有する座席要求情報処理部2と、座席管理テーブル10
の情報を一時記録する複数の座席ファイル11〜14を有す
る外部記憶部4とを備え、主記憶部3に、複数の座席フ
ァイル11〜14のどの座席ファイルに復旧情報を記録する
かを通番により管理する通番管理テーブル9を含み、複
数の座席取り処理部5〜8は、データ識別名ごとに座席
取り処理の更新を行う都度その通番を加算し、複数の座
席ファイル11〜14に分散させて更新された情報を格納
し、併せて通番管理テーブル9に、データ識別名と新し
い通番とを対応させて格納する手段を含み、座席管理テ
ーブル10に障害発生時に通番管理テーブル9を参照し
て、最新の通番の座席更新情報を格納している座席ファ
イル11〜14から座席更新情報を復旧する手段を備えてい
る。
The seat reservation system (transaction processing system) according to the embodiment of the present invention includes a seat management table 10 for managing seats.
And a main storage unit 3 having an input unit 1 for seat request information a
, The seat management table 10 is read out, and a plurality of seat removal processing units 5 to 8 for performing seat removal processing according to this seat request information.
Seat request information processing unit 2 having a seat management table 10
The external storage unit 4 having a plurality of seat files 11 to 14 for temporarily recording the information of the above is provided, and in the main storage unit 3, the seat file of the plurality of seat files 11 to 14 in which the restoration information is recorded is determined by a serial number. Each of the seating processing units 5 to 8 including the serial number management table 9 to be managed adds the serial number each time the seating processing is updated for each data identification name, and distributes it to the plurality of seat files 11 to 14. A means for storing the updated information and also storing the serial number management table 9 in association with the data identification name and the new serial number, and referring to the serial number management table 9 when a failure occurs in the seat management table 10, A means for restoring the seat update information from the seat files 11 to 14 storing the seat update information of the latest serial number is provided.

通番管理テーブル9は列車識別名ごとに最新通番を有
し、座席管理テーブル10は列車識別名ごとに一列者分の
座席ピットパターンを有する。また、座席要求情報処理
部2は主記憶装置3の通番管理テーブル9、座席管理テ
ーブル10および外部記憶部4の座席ファイル11、12、1
3、14から入出力を行う。
The serial number management table 9 has the latest serial number for each train identification name, and the seat management table 10 has a seat pit pattern for one row for each train identification name. Further, the seat request information processing unit 2 uses the serial number management table 9, the seat management table 10 of the main storage device 3 and the seat files 11, 12, 1 of the external storage unit 4.
Input and output from 3 and 14.

第2図は本発明実施例の復旧情報15のイメージを示す図
である。この復旧情報15は外部記憶部4上に復旧情報フ
ァイルとして設定される。復旧情報15は列車識別名(デ
ータ識別名)16と、通番17と、一列車分の座席ビットパ
ターン18で構成される。通番17は列車識別名16ごとに確
保され各通番は1ずつ加算される。座席取り処理部5、
6、7、8は一定の規則により列車識別名16ごとに通番
管理テーブル9内の通番17に加算し、各座席要求情報a
に対する復旧情報15の通番を付与する。
FIG. 2 is a diagram showing an image of the restoration information 15 according to the embodiment of the present invention. This restoration information 15 is set as a restoration information file on the external storage unit 4. The restoration information 15 is composed of a train identification name (data identification name) 16, a serial number 17, and a seat bit pattern 18 for one train. A serial number 17 is secured for each train identification name 16, and each serial number is incremented by 1. Seating processing section 5,
6, 7, 8 are added to the serial number 17 in the serial number management table 9 for each train identification name 16 according to a certain rule, and each seat request information a
The recovery information 15 serial number is added to.

座席要求情報(トランザクション)aは一定の規則によ
り座席取り処理部5、6、7、8に振り分けられ、各座
席取り処理部5、6、7、8は同時並行的にそれぞれの
座席要求情報に基づき処理を開始する。
The seat request information (transaction) a is distributed to the seat removal processing units 5, 6, 7, 8 according to a certain rule, and the respective seat removal processing units 5, 6, 7, 8 simultaneously convert the seat request information into the respective seat request information. Based on this, processing is started.

座席取り処理部は、第一に、座席要求情報aの列車識別
名をキーにして座席管理テーブル10の中から一列車の座
席ビットパターンを参照し、この一列車分の座席ビット
パターンについては、他の座席取り処理部6、7、8か
らの参照および更新を一時的に不可とする。そして、座
席要求情報aの座席数情報が座席管理テーブル10から参
照した列車の座席数以下である一定の条件を満たせば座
席を取り、座席管理テーブル10の該当した一列車の座席
ビットパターンを更新し、かつ座席取り処理部内に更新
後の一列車の座席ビットパターンを保存し、該当する一
列車の座席ビットパターンについては他の座席取り処理
部からの参照更新を可能にする。
First, the seating processing unit refers to the seat bit pattern of one train from the seat management table 10 by using the train identification name of the seat request information a as a key, and regarding the seat bit pattern for this one train, References and updates from other seating processing units 6, 7, and 8 are temporarily disabled. Then, if the seat number information of the seat request information a satisfies a certain condition that is equal to or less than the number of seats of the train referenced from the seat management table 10, the seat is taken and the seat bit pattern of the corresponding one train of the seat management table 10 is updated. In addition, the seat bit pattern of one train after the update is stored in the seat take processing unit, and the seat bit pattern of the corresponding one train can be referenced and updated from another seat take processing unit.

第二に、座席要求情報aの列車識別名をキーにして通番
管理テーブル9の中から通番を参照し、この通番につい
ては他の座席取り処理部からの参照および更新を一時的
に不可とする。そして、参照した列車識別名の通番に1
を加算し通番管理テーブル9の該当通番を更新し、かつ
座席取り処理部内に加算後の通番を保存し、通番管理テ
ーブル9の該当通番については他の座席取り処理部から
の参照および更新を可能にする。
Secondly, the train identification name of the seat request information a is used as a key to refer to the serial number from the serial number management table 9, and this seat number cannot be temporarily referenced or updated by other seating processing units. . And 1 for the serial number of the referenced train identification name
Is added to update the corresponding serial number in the serial number management table 9, and the serial number after addition is saved in the seat picking processing unit, and the corresponding serial number in the serial number management table 9 can be referred to and updated from another seat picking processing unit. To

第三に、復旧情報を更新すべき座席ファイルの割り当て
は、通番管理テーブル9から保存した通番を座席ファイ
ル数の4で割ったときの剰余が1のとき座席ファイル11
を割り当て、剰余が2のとき座席ファイル12を割り当
て、剰余が3のとき座席ファイル13を割り当て、剰余が
0のとき座席ファイル14を割り当てるようにする。更新
する座席ファイルが割り当てられたら、座席要求情報a
の列車識別名と通番管理テーブル9および座席管理テー
ブル10から保存した通番と一列車分の座席のビットパタ
ーンから復旧情報15を作り割り当てられた座席ファイル
を更新する。
Thirdly, the allocation of the seat file for which the recovery information is to be updated is such that when the remainder when the serial number stored from the serial number management table 9 is divided by 4 of the seat file is 1, the seat file 11
When the remainder is 2, the seat file 12 is assigned, when the remainder is 3, the seat file 13 is assigned, and when the remainder is 0, the seat file 14 is assigned. When the seat file to be updated is assigned, seat request information a
Restoration information 15 is created from the train identification name, the serial number management table 9 and the seat management table 10 and the bit pattern of the seats for one train, and the assigned seat file is updated.

次に、座席管理テーブル10に障害が発生した場合の復旧
方法について説明する。まず一列車に着目すると、一列
車に対しては座席ファイルが四つあるため、一列車につ
き一列車分の復旧情報15は四つ存在する。その中の最新
通番(通番は1つの要求につき1ずつ増加するため通番
の最大値が最新通番となる)の座席ビットパターンのみ
を座席管理テーブル10へ移すことにより一列車に対して
は復旧が可能となる。同様に、全ての列車識別名ごと
に、最新通番の復旧情報15中の一列車分の座席ビットパ
ターン18を座席管理テーブル10へ移すことにより、座席
管理テーブル10の復旧が可能となる。
Next, a method of recovery when a failure occurs in the seat management table 10 will be described. First, focusing on one train, because there are four seat files for one train, there are four pieces of restoration information 15 for one train per train. Restoration is possible for one train by moving only the seat bit pattern of the latest serial number (the serial number increases by 1 for each request, so the maximum serial number is the latest serial number) to the seat management table 10. Becomes Similarly, the seat management table 10 can be restored by moving the seat bit pattern 18 for one train in the restoration information 15 of the latest serial number to the seat management table 10 for every train identification name.

また座席管理テーブル10に障害が発生し、さらに座席フ
ァイル11、12、13、14の1つに障害が発生しても、複数
の座席ファイル11、12、13、14をもっているため、障害
を起こしていない座席ファイルから列車識別名ごとに復
旧情報15の最大通番の座席ビットパターンを使い、各列
車ごとに最新通番または最新通番の1つ前の座席ビット
パターンに復旧することができる。
In addition, even if the seat management table 10 fails and one of the seat files 11, 12, 13, and 14 also fails, it fails because there are multiple seat files 11, 12, 13, and 14. By using the seat bit pattern of the maximum serial number of the recovery information 15 for each train identification name from a seat file that is not stored, the latest serial number or the seat bit pattern immediately before the latest serial number can be restored for each train.

〔発明の効果〕〔The invention's effect〕

以上説明したように本発明によれば、座席ファイルを複
数個用意し、列車別に一つずつ増加する通番を座席ファ
イル数で割った剰余により更新する座席ファイルの割り
当て先を決定し、割り当てられた座席ファイルを更新し
て更新する座席ファイルと、更新時の座席のファイル待
ち時間を分散することにより、更新処理のレスポンスを
改善することができる効果がある。
As described above, according to the present invention, a plurality of seat files are prepared, and the allocation destination of the seat file to be updated is determined and assigned by the remainder obtained by dividing the serial number, which increases by one for each train, by the number of seat files. Distributing the seat file to be updated after updating the seat file and the file waiting time of the seat at the time of updating have the effect of improving the response of the update process.

【図面の簡単な説明】[Brief description of drawings]

第1図は本発明情報のブロック図。 第2図は本発明実施例の座席ファイルに格納される復旧
情報イメージ図。 1……入力手段、2……座席要求情報(トランザクショ
ン)処理部、3……主記憶部、4……外部記憶部(復旧
情報ファイル)、5、6、7、8……座席取り処理部、
9……通番管理テーブル、10……座席管理テーブル、1
1、12、13、14……座席ファイル、15……復旧情報、16
……列車識別名(データ識別名)、17……通番、18……
一列車分の座席のビットパターン。
FIG. 1 is a block diagram of information of the present invention. FIG. 2 is an image diagram of restoration information stored in the seat file according to the embodiment of the present invention. 1 ... Input means, 2 ... Seat request information (transaction) processing section, 3 ... Main storage section, 4 ... External storage section (restoration information file), 5, 6, 7, 8 ... Seat picking processing section ,
9 …… Serial number management table, 10 …… Seat management table, 1
1, 12, 13, 14 …… Seat file, 15 …… Recovery information, 16
…… Train identification name (data identification name), 17 …… Serial number, 18 ……
Bit pattern of seats for one train.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】座席の予約状況を管理する座席管理テーブ
ルを有する主記憶部と、 座席要求情報の入力手段と、 上記座席管理テーブルを読出し、入力された座席要求情
報により座席取りの処理を行う複数の座席取り処理部を
有する座席要求情報処理部と、 上記座席管理テーブルの情報を一時記録する複数の座席
ファイルを有する外部記憶部と を備えた座席予約システムの座席取り方式において、 上記主記憶部に、上記複数の座席ファイルのどの座席フ
ァイルに復旧情報を記録するかを通番により管理する通
番管理テーブルを含み、 上記複数の座席取り処理部は、 データ識別名ごとに座席取り処理の更新を行う都度その
通番を加算し、上記複数の座席ファイルに分散させて更
新された情報を格納し、併せて上記通番管理テーブル
に、データ識別名と新しい通番とを対応させて格納する
手段 を含むことを特徴とする座席予約システムの座席取り方
式。
1. A main storage unit having a seat management table for managing seat reservation status, an input unit for seat request information, the seat management table is read, and a seat taking process is performed according to the input seat request information. In the seat reservation system of the seat reservation system, which includes a seat request information processing unit having a plurality of seat processing units and an external storage unit having a plurality of seat files for temporarily recording the information of the seat management table, The section includes a serial number management table that manages, by serial number, which seat file of the plurality of seat files the recovery information is recorded, and the plurality of seat take processing units update the seat take processing for each data identification name. Each time it is performed, the serial number is added, and the updated information is stored by being distributed to the above-mentioned seat files. A seat reservation system for a seat reservation system, which includes a means for storing an alias and a new serial number in association with each other.
JP27474588A 1988-10-31 1988-10-31 Seat reservation system Expired - Lifetime JPH0738203B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27474588A JPH0738203B2 (en) 1988-10-31 1988-10-31 Seat reservation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27474588A JPH0738203B2 (en) 1988-10-31 1988-10-31 Seat reservation system

Publications (2)

Publication Number Publication Date
JPH02120977A JPH02120977A (en) 1990-05-08
JPH0738203B2 true JPH0738203B2 (en) 1995-04-26

Family

ID=17546000

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27474588A Expired - Lifetime JPH0738203B2 (en) 1988-10-31 1988-10-31 Seat reservation system

Country Status (1)

Country Link
JP (1) JPH0738203B2 (en)

Also Published As

Publication number Publication date
JPH02120977A (en) 1990-05-08

Similar Documents

Publication Publication Date Title
US6397309B2 (en) System and method for reconstructing data associated with protected storage volume stored in multiple modules of back-up mass data storage facility
JP3050510B2 (en) Image data management device
EP0623877A2 (en) System and method for storing persistent and non-persistent queued data
KR920001374A (en) Method and device for managing status identifier for effective recovery
JPH061447B2 (en) How to back up the database
US6584457B1 (en) Parallel data base record distribution method and parallel data base management system
JPH0423144A (en) Journal system
JPH06274394A (en) Distributed database control method
JPH0738203B2 (en) Seat reservation system
JPH0126099B2 (en)
JP2741999B2 (en) Data storage management method
JPH02292641A (en) Method for controlling data base
JPH07334397A (en) Deleted file managing system
JPH07104809B2 (en) Memory data recovery data acquisition method
JP3274188B2 (en) Backup file management method and backup method
JPH03202935A (en) Synchronization update system in distributed processing system
JP3112628B2 (en) Case-based processing method
JP2960417B2 (en) Data recovery method
JPH0778121A (en) Data management method for distributed processing system
JPH09305455A (en) Group integration method for distributed database
JPH01140353A (en) Database data preservation method
JP2000020366A (en) Replication system
JP3057685B2 (en) Version control method
JPH0721071A (en) Data base restoration system
JP2006330782A (en) Redundant configuration system and method for second computer system to immediately recover when first computer system fails