JPH1031608A - Process data backup method - Google Patents

Process data backup method

Info

Publication number
JPH1031608A
JPH1031608A JP8187222A JP18722296A JPH1031608A JP H1031608 A JPH1031608 A JP H1031608A JP 8187222 A JP8187222 A JP 8187222A JP 18722296 A JP18722296 A JP 18722296A JP H1031608 A JPH1031608 A JP H1031608A
Authority
JP
Japan
Prior art keywords
data
master
database
process data
time
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.)
Pending
Application number
JP8187222A
Other languages
Japanese (ja)
Inventor
Takao Sawada
孝雄 澤田
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.)
Fuji Facom Corp
Original Assignee
Fuji Facom 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 Fuji Facom Corp filed Critical Fuji Facom Corp
Priority to JP8187222A priority Critical patent/JPH1031608A/en
Publication of JPH1031608A publication Critical patent/JPH1031608A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Safety Devices In Control Systems (AREA)
  • Control By Computers (AREA)

Abstract

PROBLEM TO BE SOLVED: To efficiently perform data backup when collecting/recording process data while duplexing a database system. SOLUTION: When collecting/recording the process data from a controller 103 and connecting two database systems 101 and 102 and the controller 103 to a network (LAN) 104, the files of the respective database systems 101 and 102 are provided with recording areas for master/slave information and when recording the process data, the master/slave information is recorded together so that data backup is possible and reliability can be improved.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明はプロセス制御シス
テム、特にプロセスデータの等値化を含むデータバック
アップ方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a process control system, and more particularly to a data backup method including equalization of process data.

【0002】[0002]

【従来の技術】一般に、データベース装置を2台用意
し、その各々に同じプロセスデータを保持させることで
バックアップを行なうシステム(以下、二重化システム
ともいう)では、データベース装置の一方が停止したと
きは、その復旧時に他方のデータベース装置から停止期
間中のデータを利用して等値化を行なうようにしてい
る。また、データベース内の保存データを読み出すに当
たっては、どちらか一方のデータベース装置(通常は、
マスタ(主)として使用する側)から専ら読み出すよう
にしているため、読み出される側のデータベース装置が
停止等によってそのデータが欠落した場合は、他方のデ
ータベース装置から欠落期間のデータの等値化処理をし
ない限り、データを読み出すことができない。
2. Description of the Related Art Generally, in a system in which two database devices are prepared and the same process data is held in each of them to perform backup (hereinafter, also referred to as a redundant system), when one of the database devices is stopped, At the time of restoration, equalization is performed using data during the suspension period from the other database device. Also, when reading the stored data in the database, either one of the database devices (usually,
Since the data is exclusively read from the master (the side used as the master), if the data on the side to be read is lost due to a stop etc., the data equalization processing of the data in the missing period from the other database is performed. Data cannot be read unless

【0003】図6にこの種の等値化方法の従来例を示
す。図6(イ),(ロ)はマスタ,スレーブデータベー
ス装置の各内容を示し、(イ)に示すマスタデータベー
ス装置に図示の如き停止期間があるときは、オフライン
状態にしてオペレータがスレーブデータベース装置内の
全てのデータ、つまり、図6(ニ)の全データを図6
(ハ)のように複写することにより等値化するのが一般
的である。
FIG. 6 shows a conventional example of this kind of equalization method. FIGS. 6 (a) and 6 (b) show the contents of the master and slave database devices. When the master database device shown in (a) has a stop period as shown in FIG. All the data of, that is, all the data of FIG.
It is common to perform equalization by copying as shown in (c).

【0004】[0004]

【発明が解決しようとする課題】しかし、上記のような
データ等値化方法には、下記のような問題がある。 (1)等値化処理をオフライン状態で行なうようにして
いるため、等値化処理中はデータの収集が停止するた
め、その期間のデータが欠落する。 (2)全データを等値化処理するため、時間が掛かる。 (3)停止等によってデータが欠落している場合には、
もう一方のデータベースを用いて等値化処理(データの
復元)をしてから読み出す必要がある。 つまり、信頼性や性能に問題があることになる。したが
って、この発明の課題はデータの等値化処理を基本的に
は不要として処理のための時間や負担を軽減すること、
また、データの等値化をオンラインで可能にしてデータ
の欠落を防止することにより、信頼性や性能の向上を図
ることにある。
However, the above data equalization method has the following problems. (1) Since the equalization process is performed off-line, the data collection is stopped during the equalization process, and the data for that period is lost. (2) It takes time because all data are equalized. (3) If data is missing due to suspension, etc.
It is necessary to perform the equalization processing (data restoration) using the other database and then read it. That is, there is a problem in reliability and performance. Therefore, an object of the present invention is to basically eliminate the data equalization processing and reduce the time and burden for the processing.
Another object of the present invention is to improve reliability and performance by enabling data equalization online to prevent data loss.

【0005】[0005]

【課題を解決するための手段】このような課題を解決す
べく、請求項1の発明では、プロセス制御システムにお
けるプロセスデータを収集し、二重化されたデータベー
ス装置に記録するに当たり、前記データベース装置の各
ファイルにマスタ/スレーブ情報領域を設け、収集した
プロセスデータをデータベース装置に記録するときは、
収集データ毎にマスタ/スレーブ情報を併せて記録する
ようにしている。上記請求項1の発明では、前記マスタ
/スレーブ情報により、マスタ時のデータのみを読み出
し可能にすることができ(請求項2の発明)、この請求
項2の発明では、前記プロセスデータに時刻データとそ
のときのデータ量とを記録しておき、マスタ時のデータ
を時系列順に結合してデータの読み出し要求元に送信可
能にすることができる(請求項3の発明)。
In order to solve such a problem, in the invention of claim 1, in collecting the process data in the process control system and recording it in the duplicated database device, each of the database devices is When a master / slave information area is provided in a file and the collected process data is recorded in a database device,
Master / slave information is recorded together for each collected data. According to the first aspect of the present invention, only the data at the time of mastering can be made readable by the master / slave information (the second aspect of the present invention). The amount of data at that time and the amount of data at that time can be recorded, and the data at the time of master can be combined in time series order and can be transmitted to the data read request source (the invention of claim 3).

【0006】請求項4の発明では、プロセス制御システ
ムにおけるプロセスデータを収集し、二重化されたデー
タベース装置に記録するに当たり、前記データベース装
置の各ファイルにマスタ/スレーブ情報領域を設けて、
収集データ毎にマスタ/スレーブ情報を併せて記録する
とともに、前記データベース装置のいずれかが停止した
ときは、その復旧時にマスタ時のデータのみを相手側デ
ータベース装置から読み出して、データの等値化を行な
うようにしている。
According to a fourth aspect of the present invention, in collecting process data in the process control system and recording it in the duplicated database device, a master / slave information area is provided in each file of the database device,
Master / slave information is also recorded for each collected data, and when any of the above database devices is stopped, only the master data is read from the other database device at the time of restoration and data equalization is performed. I do it.

【0007】[0007]

【発明の実施の形態】図1はこの発明の実施の形態を示
す全体構成図である。この種のシステムはデータベース
装置101,102およびコントローラ(データ発生
元)103が、ネットワークシステムとしてのLAN
(ローカルエリアネットワーク)104に接続されて構
成される。すなわち、データベース装置101,102
を二重化し、例えば101をマスタ(主装置)、102
をスレーブ(予備装置)として運用する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is an overall configuration diagram showing an embodiment of the present invention. In this type of system, database apparatuses 101 and 102 and a controller (data generation source) 103 are connected to a LAN as a network system.
(Local area network) 104. That is, the database devices 101 and 102
Are duplicated, for example, 101 is a master (main device), 102
Is operated as a slave (standby device).

【0008】このような構成において、データベース装
置101,102はコントローラ103から同じプロセ
スデータを例えば、LAN上のステータス情報により収
集し記録するが、その際、お互いのデータベース装置の
稼働状態を判断し、1データ毎にマスタ/スレーブ情報
を付加して記録する。具体的には、データベース装置1
01で収集したデータは、この装置をマスタとしている
ためデータベース装置102の稼働状態にかかわらず必
ずマスタデータとして記録する。一方、データベース装
置102で収集したデータは、この装置をスレーブとし
ているため、データベース装置101が稼働中であれば
スレーブデータ、停止中であればマスタデータとして記
録する。こうして収集・記録するデータベースの1例を
図2に示す。これまでのものに比べて、マスタ/スレー
ブ情報の記録(記憶)領域を設けた点が特徴である。
In such a configuration, the database devices 101 and 102 collect and record the same process data from the controller 103 based on, for example, status information on the LAN. Master / slave information is added and recorded for each data. Specifically, the database device 1
The data collected in 01 is always recorded as master data regardless of the operating state of the database device 102 because this device is the master. On the other hand, the data collected by the database device 102 is recorded as slave data when the database device 101 is in operation, and as master data when the database device 101 is stopped, since this device is a slave. FIG. 2 shows an example of a database collected and recorded in this way. The feature is that a recording (storage) area for master / slave information is provided as compared with the conventional one.

【0009】図3はこの発明の第2の実施の形態を説明
するための説明図である。これは、図1,図2で説明し
たように収集・記録したプロセスデータを、例えば計算
機2からの要求によりデータベース装置101,102
から読み出す場合、読み出し要求を受けたデータベース
装置101,102は、データに図2の如く付されてい
るマスタ/スレーブ情報を判断し、マスタデータにその
期間情報(先頭時刻,データ数)を付加してデータ要求
元である計算機200に送信するもので、ここでは、マ
スタデータD1M,D2M,D3Mが計算機200に送
信されることになる。こうすることにより、従来のよう
に、一方のデータベース装置が停止した場合でも、その
データベース装置が復旧後に停止期間中のデータを等値
化しなくても、データを確保することができその読み出
しも可能である。
FIG. 3 is an explanatory diagram for explaining a second embodiment of the present invention. This is because the process data collected and recorded as described with reference to FIGS. 1 and 2 are stored in the database devices 101 and 102 in response to a request from the computer 2, for example.
When reading from the database, the database devices 101 and 102 that have received the read request judge the master / slave information added to the data as shown in FIG. 2, and add the period information (start time, number of data) to the master data. In this case, the master data D1M, D2M, and D3M are transmitted to the computer 200 as the data request source. By doing so, even if one of the database devices is stopped as in the past, data can be secured and read out even if that database device does not equalize the data during the stop period after restoration. It is.

【0010】図4はこの発明の第3の実施の形態を説明
するための説明図である。これは、図3の如く読み出し
たデータについて、その先頭時刻,データ数(量)を含
む期間情報にもとづきデータを時系列順に結合し、先頭
時刻およびデータ数を更新した後、データ読み出し要求
元に送信するようにしたものである。ここでは、先頭時
刻T1,データ数N1のマスタデータD1M,先頭時刻
T2,データ数N2のマスタデータD3M,先頭時刻T
3,データ数N3のマスタデータD2Mを結合し、先頭
時刻T4,データ数N4のデータとして結合した例を示
している。
FIG. 4 is an explanatory diagram for explaining a third embodiment of the present invention. This is because data read out as shown in FIG. 3 is combined with data in chronological order based on period information including the start time and the number of data (amount), and the start time and the number of data are updated. It is designed to be sent. Here, the start time T1, the master data D1M having the data number N1, the start time T2, the master data D3M having the data number N2, and the start time T
3, an example is shown in which master data D2M having the number of data N3 are combined and combined as data having the start time T4 and the number of data N4.

【0011】図5はこの発明の第4の実施の形態を説明
するための説明図である。これは、従来は相手側データ
ベース装置の内容を全て読み出し、自己のデータベース
装置に複写して等値化するのが一般的であったのに対し
(図6参照)、ここでは、上記期間情報を利用すること
で、停止期間がある場合は相手のデータベース装置から
マスタデータのみを読み出して等値化するようにしたも
のである。こうすることで、等値化処理時間が短縮さ
れ、負担を軽減することができる。
FIG. 5 is an explanatory view for explaining a fourth embodiment of the present invention. Conventionally, it was common to read all the contents of the other side database device and copy it to its own database device for equalization (see FIG. 6). By using this, when there is a suspension period, only the master data is read out from the partner database device and equalized. By doing so, the equalization processing time can be shortened and the burden can be reduced.

【0012】[0012]

【発明の効果】この発明によれば、下記のような効果を
期待することができる。 (1)データベース内のデータにマスタ/スレーブ情報
を付加するようにしたので、一方のデータベース装置停
止後の復旧時に、データ等値化処理をしなくても、2台
のデータベース装置からマスタデータを読み出すだけ
で、停止期間のデータを得ることが可能となる。 (2)一方のデータベース装置からマスタデータのみを
読み出して等値化処理ができるのでデータ量が少なくな
り、処理時間,負担が軽減されるだけでなく、オンライ
ン状態により任意のタイミング(停止後に復旧したタイ
ミング)で等値化処理を起動できるので、連続したデー
タ収集ができデータの欠落も防止することができる。
According to the present invention, the following effects can be expected. (1) Since the master / slave information is added to the data in the database, the master data can be transferred from two database devices at the time of recovery after stopping one of the database devices without performing data equalization processing. The data of the suspension period can be obtained only by reading. (2) Since only master data can be read from one of the database devices and the equalization process can be performed, the amount of data is reduced, the processing time and burden are not only reduced, but also the online state allows arbitrary timing (restoration after restoration). Since the equalization process can be started at the timing, continuous data collection can be performed and data loss can be prevented.

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

【図1】この発明の第1の実施の形態を示す全体構成図
である。
FIG. 1 is an overall configuration diagram showing a first embodiment of the present invention.

【図2】この発明で用いられるデータベースの構造説明
図である。
FIG. 2 is a structural explanatory view of a database used in the present invention.

【図3】この発明の第2の実施の形態を説明する説明図
である。
FIG. 3 is an explanatory diagram illustrating a second embodiment of the present invention.

【図4】この発明の第3の実施の形態を説明する説明図
である。
FIG. 4 is an explanatory diagram illustrating a third embodiment of the present invention.

【図5】この発明の第4の実施の形態を説明する説明図
である。
FIG. 5 is an explanatory diagram illustrating a fourth embodiment of the present invention.

【図6】従来例の説明図である。FIG. 6 is an explanatory diagram of a conventional example.

【符号の説明】[Explanation of symbols]

101,102…データベース装置、103…コントロ
ーラ、104…LAN(ローカルエリアネットワー
ク)、200…計算機。
101, 102 ... Database device, 103 ... Controller, 104 ... LAN (Local Area Network), 200 ... Computer.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 プロセス制御システムにおけるプロセス
データを収集し、二重化されたデータベース装置に記録
するに当たり、 前記データベース装置の各ファイルにマスタ/スレーブ
情報領域を設け、収集したプロセスデータをデータベー
ス装置に記録するときは、収集データ毎にマスタ/スレ
ーブ情報を併せて記録することを特徴とするプロセスデ
ータバックアップ方法。
When collecting process data in a process control system and recording it in a duplicated database device, a master / slave information area is provided in each file of the database device, and the collected process data is recorded in the database device. In this case, the process data backup method is characterized in that master / slave information is recorded together for each collected data.
【請求項2】 前記マスタ/スレーブ情報により、マス
タ時のデータのみを読み出し可能にしたことを特徴とす
る請求項1に記載のプロセスデータバックアップ方法。
2. The process data backup method according to claim 1, wherein only master data can be read by the master / slave information.
【請求項3】 前記プロセスデータに時刻データとその
ときのデータ量とを記録しておき、マスタ時のデータを
時系列順に結合してデータの読み出し要求元に送信可能
にしたことを特徴とする請求項2に記載のプロセスデー
タバックアップ方法。
3. The process data is recorded with time data and the amount of data at that time, and the data at the time of master is combined in chronological order so that the data can be transmitted to a data read request source. The process data backup method according to claim 2.
【請求項4】 プロセス制御システムにおけるプロセス
データを収集し、二重化されたデータベース装置に記録
するに当たり、 前記データベース装置の各ファイルにマスタ/スレーブ
情報領域を設けて、収集データ毎にマスタ/スレーブ情
報を併せて記録するとともに、前記データベース装置の
いずれかが停止したときは、その復旧時にマスタ時のデ
ータのみを相手側データベース装置から読み出して、デ
ータの等値化を行なうことを特徴とするプロセスデータ
バックアップ方法。
4. When collecting process data in a process control system and recording the data in a duplicated database device, a master / slave information area is provided in each file of the database device, and master / slave information is collected for each collected data. A process data backup method for simultaneously recording and, when one of the database devices is stopped, reading out only the data at the time of the master from the partner database device at the time of recovery, and equalizing the data. Method.
JP8187222A 1996-07-17 1996-07-17 Process data backup method Pending JPH1031608A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8187222A JPH1031608A (en) 1996-07-17 1996-07-17 Process data backup method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8187222A JPH1031608A (en) 1996-07-17 1996-07-17 Process data backup method

Publications (1)

Publication Number Publication Date
JPH1031608A true JPH1031608A (en) 1998-02-03

Family

ID=16202213

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8187222A Pending JPH1031608A (en) 1996-07-17 1996-07-17 Process data backup method

Country Status (1)

Country Link
JP (1) JPH1031608A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19990078538A (en) * 1998-12-26 1999-11-05 김형순 Data queue for database synchronization and method for operating it
KR100501904B1 (en) * 1999-12-14 2005-07-25 주식회사 케이티 Database replication and synchronization method using object identifier
JP2014112439A (en) * 2014-03-13 2014-06-19 Sharp Corp Management system, management device and management method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19990078538A (en) * 1998-12-26 1999-11-05 김형순 Data queue for database synchronization and method for operating it
KR100501904B1 (en) * 1999-12-14 2005-07-25 주식회사 케이티 Database replication and synchronization method using object identifier
JP2014112439A (en) * 2014-03-13 2014-06-19 Sharp Corp Management system, management device and management method

Similar Documents

Publication Publication Date Title
US8676760B2 (en) Maintaining data integrity in data servers across data centers
JP4264136B2 (en) Mirrored data copy image generation method and system using reference labels
CN101079896B (en) A method for constructing multi-availability mechanism coexistence framework of concurrent storage system
CN110807064B (en) Data recovery device in RAC distributed database cluster system
US20050182888A1 (en) Disk array apparatus and disk array apparatus control method
JP2007249776A (en) Database replication program, database replicator, and database replication method
US8527454B2 (en) Data replication using a shared resource
CN107135097A (en) The disaster tolerance system and disaster recovery method filed based on bookkeeping
KR101605455B1 (en) Method for Replicationing of Redo Log without Data Loss and System Thereof
JPH05120110A (en) Automatic backup system for file
CN112463459A (en) Database backup method, system, device and medium
JPH1031608A (en) Process data backup method
JPH0561704A (en) System for access from duplex part standby system to single part
US20220150304A1 (en) Data replication processing method between management modules in rugged environment
JPS59201297A (en) Information inspecting system
US20080072001A1 (en) System, Method and Computer Program Product for Copying Data
JPH08110840A (en) Restoration system for magnetic disk device of double redundancy constitution
JP2004295363A (en) Backup method
JP4064553B2 (en) Broadcast material data transmission system
CN112711632A (en) Asynchronous data stream replication method and system for high-availability cluster
JPH0944317A (en) Registering system for alternate sector
JPH09204319A (en) On-line data restoration system
JPH0944450A (en) Distributed duplex type fault countermeasure device
JPH08212094A (en) Wide area network system for power system information
JP2001051861A (en) Doubled system