JP2002207618A - Off-line database editing system - Google Patents

Off-line database editing system

Info

Publication number
JP2002207618A
JP2002207618A JP2001003084A JP2001003084A JP2002207618A JP 2002207618 A JP2002207618 A JP 2002207618A JP 2001003084 A JP2001003084 A JP 2001003084A JP 2001003084 A JP2001003084 A JP 2001003084A JP 2002207618 A JP2002207618 A JP 2002207618A
Authority
JP
Japan
Prior art keywords
data
record
editing
database
file
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
JP2001003084A
Other languages
Japanese (ja)
Inventor
Tomoki Yajima
智樹 矢嶌
Masaki Ito
正樹 伊藤
Hitoshi Tamao
斎 玉生
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.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing Co Ltd
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 Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP2001003084A priority Critical patent/JP2002207618A/en
Publication of JP2002207618A publication Critical patent/JP2002207618A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a mechanism which can edit record data of a database at a plurality of places on an offline computer in parallel. SOLUTION: This system is equipped with an online editing device 2 mounted with an editing data extracting means which reads in record data of some part and generates an editing data file having recording units of recording numbers, data contents, and editing flags for discriminating the kind of editing operation, an offline editing device 31 mounted with an offline editing means which records different flag values in editing flag fields according to rewrite, delete, and new add instructions from an editor, and records data contents in the data record field with an indicated record number for rewriting and generates a tentative record number and records the data contents in the data recording field for new addition, and an online registering device 41 mounted with a data registering means which updates an original database file according to the updated editing data file contents.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、データベースの運
用管理を合理的に遂行させるためのデータベースオフラ
イン編集システムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a database off-line editing system for rationally performing operation management of a database.

【0002】[0002]

【従来技術】一元管理されたレコードデータを複数のオ
ペレータで同時に編集作業を行いたい場合、データベー
スサーバーとネットワークに接続された複数のクライア
ントマシンで構成され、排他制御を持つデータベース編
集システムを使用するのが一般的である。一般にデータ
ベースのデータを読みだす時、それらはレコード単位ま
たは定められたデータのまとまり単位で読み出される
が、単なる参照のための読み出しと、内容を書換える
(更新する)ための読み出しは区別して扱われる。前者
は「参照読出し」であって、排他制御機能を動作させる
必要はない。後者は「更新読出し」であって、データベ
ース内容の一貫性を維持させるため、更新された内容が
戻されるまでは、当該レコード、またはデータ読み出し
単位に対する他のユーザーの「更新読出し」を禁止させ
る。これが排他制御機能である。
2. Description of the Related Art When it is desired to edit record data managed in a unified manner by a plurality of operators at the same time, it is necessary to use a database editing system having exclusive control, comprising a database server and a plurality of client machines connected to a network. Is common. Generally, when reading database data, they are read in units of records or in units of specified data, but reading for mere reference and reading for rewriting (updating) the contents are treated separately. . The former is “reference reading”, and there is no need to operate the exclusive control function. The latter is "update reading", and in order to maintain the consistency of the database contents, "update reading" of another user for the record or the data reading unit is prohibited until the updated contents are returned. This is the exclusive control function.

【0003】図5は、通常のデータベースシステムにお
ける、データベースの更新処理を説明する図である。図
5の左側はデータ抽出時を表している。クライアント装
置(図中はクライアント1)がデータベースファイルか
らNo3とNo4のレコードを更新するために読み出した(更
新読み出しした)時、データベースファイルでは、それ
らのレコードが他のユーザーから書込みされないように
排他制御のロックがかけられる(影を付けて排他制御の
ロックがかかったことを表している)。図5の右側は、
クライアント装置で、読込んだ2件のデータのうち1件
を削除した後データベースに、データを戻す様子を示し
ている。クライアント装置で編集したデータが無事元の
データベースファイルに戻し終わると、排他制御のロッ
クは解除される。
FIG. 5 is a diagram for explaining a database update process in a normal database system. The left side of FIG. 5 shows the time of data extraction. When a client device (client 1 in the figure) reads (updates and reads) No. 3 and No. 4 records from a database file for updating, exclusive control is performed so that those records are not written by other users in the database file. Is locked (shaded to indicate that exclusive control has been locked). The right side of FIG.
The figure shows that the client device deletes one of the two read data and returns the data to the database. When the data edited by the client device is successfully returned to the original database file, the exclusive control lock is released.

【0004】クライアント装置が、データベースファイ
ルを管理しているデータベースサーバーとオンラインで
(ネットワークを通して)接続できないマシンでは、排
他制御を正しく行うことができないため、一元管理した
いデータベースの編集を行うことができない。
In a machine in which the client device cannot be connected online (through a network) to a database server that manages database files, exclusive control cannot be performed correctly, so that a database to be centrally managed cannot be edited.

【0005】図6は、データベースファイルを従来技術
でオフライン編集する様子を示している。左側は、クラ
イアント装置1(図中はクライアント1)がデータベー
スファイルからその一部のレコードを更新するために取
出し、取出したデータをオフライン装置に移した所であ
る。この時、データベースファイル中の読み出されたレ
コードに対してクライアント装置1が更新読み出しした
ために排他制御フラグが記録されるが、通常、クライア
ント装置1(を通しログオンしていたユーザー)がログ
オフしてしまうとこの排他制御フラグはリセットされて
しまうので、従来技術ではオフライン編集結果を正しく
元のデータベースファイルに戻すことはできない。
FIG. 6 shows a state in which a database file is edited off-line by a conventional technique. The left side is a place where the client device 1 (the client 1 in the figure) retrieves a part of the record from the database file for updating, and transfers the retrieved data to the offline device. At this time, the exclusive control flag is recorded because the client device 1 has updated and read the read record in the database file. However, the client device 1 (the user who has logged on through the client device 1) normally logs off. If this happens, the exclusive control flag is reset, so that the conventional technique cannot correctly return the offline editing result to the original database file.

【0006】図6の左側は、オフライン装置上で、取出
したデータのうちの1件を削除した場合を示している。
この時、クライアント装置1がログオフされずにいたた
め、排他制御フラグが消えずに残っていたとしても、オ
フライン編集されたデータを元のデータベースファイル
に戻す際に不都合が生じる。すなわち、サーバー側は、
削除されたレコードがどれなのかの情報がないので、削
除したはずのレコードデータを消すことができないので
ある。
The left side of FIG. 6 shows a case where one of the extracted data is deleted on the offline device.
At this time, since the client device 1 has not been logged off, even if the exclusive control flag remains without disappearing, inconvenience occurs when the data edited offline is returned to the original database file. That is, the server side
Because there is no information on which record was deleted, the record data that should have been deleted cannot be erased.

【0007】[0007]

【発明が解決しようとする課題】以上の理由によって、
一元管理されたデータベースの編集作業は、オンライン
マシンで行わなければならず、編集できる場所や人数に
制限があった。本発明はこのような問題点を考慮してな
されたものであり、データベースとして一元管理された
データを、オフラインコンピュータ上で、編集すること
ができる様にする仕組みを提供することを課題とする。
For the above reasons,
Editing work for a centrally managed database had to be performed on an online machine, and there were limitations on the places and number of people who could edit. The present invention has been made in view of such a problem, and it is an object of the present invention to provide a mechanism that enables data centrally managed as a database to be edited on an offline computer.

【0008】[0008]

【課題を解決するための手段】上記課題を解決する第1
の発明の第1の態様は、データベースファイルの一部分
のデータを読込んで、そのデータベースファイルを構成
するテーブルの1レコードに対応して、レコード番号、
データ内容、そのレコードデータに対する編集作業の種
類を区別する編集フラグを記録単位とした、編集データ
ファイルを生成し、元のデータベースファイルに対し
て、読込まれたレコードの排他制御を有効にさせるよう
制御フラグを書込む編集データ抽出手段を搭載したオン
ライン編集装置と、前記編集データファイルに対して、
データベースファイル編集者からのデータの書換え、削
除、新規追加命令を受付け、その命令に応じて前記編集
フラグ記入欄に異なるフラグ値を記録し、書換えの場合
はデータ内容を指示されたレコード番号のデータ記録欄
に記録し、新規追加の場合は、仮のレコード番号を発生
しデータ内容をその仮のレコード番号に対応したデータ
記録欄に記録するオフライン編集手段を搭載した、デー
タベースファイルを管理するデータベースサーバーとオ
フラインの状態にあるオフライン編集装置と、更新され
た前記編集データファイル内容にしたがって元のデータ
ベースファイルを更新するデータ登録手段を搭載した前
記データベースサーバーとオンライン接続されたオンラ
イン登録装置、を備えることにより、データベースファ
イルの編集作業をオフライン装置上でも可能にしたデー
タベース編集システムである。
Means for Solving the Problems A first method for solving the above problems is described below.
According to a first aspect of the present invention, data of a part of a database file is read, and a record number,
Creates an edit data file with a record unit of an edit flag that identifies the data content and the type of edit work on the record data, and controls the original database file to enable exclusive control of the read record for the original database file On-line editing apparatus equipped with editing data extraction means for writing a flag, and for the editing data file,
Receiving data rewriting, deletion, and new addition instructions from the database file editor, and recording different flag values in the edit flag entry field according to the instructions, and in the case of rewriting, data contents of the designated record number data A database server that manages database files and has offline editing means for recording in a record column and, in the case of new addition, generating a temporary record number and recording data contents in a data record column corresponding to the temporary record number. And an offline editing device in an offline state, and an online registration device online-connected to the database server equipped with data registration means for updating an original database file in accordance with the updated edited data file contents. , Editing database files Offline is a database editing system that enables even on the device.

【0009】本発明で対象とするデータベースは、リレ
ーショナルデータモデルに基づいて構築されたデータベ
ース、すなわちリレーショナルデータベースである。リ
レーショナルデータベースでは、幾つかの2次元のテー
ブルによってデータが記録される。データベースファイ
ルを構成するテーブルの1レコードとは、それらの2次
元のテーブルの1つの行(横1列)のことであり、その
テーブルのレコードの識別番号とそのテーブルが記録す
るデータ項目の実際の内容が含まれる。そして、これら
の内容に編集フラグ記入欄の値を加えたものが前記編集
データファイルの1レコードである。
The database targeted in the present invention is a database constructed based on a relational data model, that is, a relational database. In a relational database, data is recorded by several two-dimensional tables. One record of the table constituting the database file is one row (one horizontal row) of the two-dimensional table, and the identification number of the record of the table and the actual number of the data item recorded by the table are recorded. Content is included. One record of the edit data file is obtained by adding the content of the edit flag entry field to the above contents.

【0010】また上記課題を解決する第1の発明の別の
態様は、前記オフライン編集手段は、データベース編集
者からレコード削除または新規追加の指示が来た時だ
け、前記編集フラグ記入欄に、それらに対応したフラグ
値を記入するものである前記第1の態様のデータベース
編集システムである。前記編集データファイルに記録さ
れたレコードのうち書換え指示されたレコードと、書換
えも削除も何も指示されなかったレコードを区別しなく
ても、前記データ登録手段の処理を適切に制御させるこ
とにより元のデータベースファイルの更新は正しくでき
る。
In another aspect of the first invention for solving the above-mentioned problems, the off-line editing means sets the edit flag in the edit flag entry field only when an instruction to delete or add a record is received from a database editor. The database editing system according to the first aspect, wherein a flag value corresponding to the above is written. By properly controlling the processing of the data registration unit without discriminating between a record instructed to be rewritten among records recorded in the edited data file and a record in which neither rewriting nor deletion is instructed. Database files can be updated correctly.

【0011】また上記課題を解決する第1の発明の別の
態様は、前記編集データファイルのうち、レコード番号
と、そのレコードデータに対する編集作業の種類を区別
する編集フラグの項目を別のファイルにして扱う前記第
1の態様のデータベース編集システムである。
Another aspect of the first invention for solving the above-mentioned problem is that, in the edited data file, a record number and an edit flag item for distinguishing the type of editing work on the record data are stored in another file. The database editing system according to the first aspect.

【0012】さらに、上記課題を解決するための第2の
発明は、データベースファイルを構成するテーブルの1
レコードに対応して、レコード番号、データ内容、その
レコードデータに対する編集作業の種類を区別する編集
フラグを記録単位とした、元のデータベースファイルの
部分に対応する編集データファイルを生成するデータ取
出し工程と、前記編集データファイルを読込んだ、元の
データベースファイルを管理するデータベースサーバー
とオフラインの状態にある装置上で、データベースファ
イル編集者からのデータの書換え、削除、新規追加命令
を受付け、その命令に応じて前記編集フラグ記入欄に異
なるフラグ値を記録し、書換えの場合はデータ内容を指
示されたレコード番号のデータ記録欄に記録し、新規追
加の場合は、仮のレコード番号を発生しデータ内容をそ
の仮のレコード番号に対応したデータ記録欄に記録する
オフライン編集工程と、前記データベースサーバーとオ
ンライン接続された装置上で、更新された前記編集デー
タファイル内容にしたがって元のデータベースファイル
を更新するデータ登録工程、を順に実行する、オフライ
ンでデータベースの編集を可能とするデータベース編集
方法である。
Further, a second invention for solving the above-mentioned problem is that one of the tables constituting the database file is included.
A data extraction step for generating an edit data file corresponding to the original database file portion, with a record unit corresponding to a record, a record number, data content, and an edit flag for distinguishing the type of edit work on the record data; On a device that is offline with the database server that manages the original database file that has read the edited data file, accepts data rewrite, delete, and new add commands from the database file editor, and responds to the command. A different flag value is recorded in the edit flag entry field according to the above. In the case of rewriting, the data content is recorded in the data recording field of the designated record number, and in the case of new addition, a temporary record number is generated and the data content is generated. Offline editor that records the record in the data record column corresponding to the temporary record number And a data registration step of updating an original database file in accordance with the updated contents of the edited data file on a device online connected to the database server, and a database enabling offline editing of the database. Editing method.

【0013】[0013]

【発明の実施の形態】図1は本発明の一実施形態である
データベース編集システムの構成と、運用フローを説明
するブロック図である。このデータベース編集システム
は、データベースファイル11を管理するデータベース
サーバー10と、データベースサーバー10とネットワ
ーク9を通じて接続されているオンライン編集装置21
およびオンライン登録装置41、さらに、オフラインの
編集処理を行うオフライン編集装置31から構成され
る。
FIG. 1 is a block diagram illustrating the configuration and operation flow of a database editing system according to an embodiment of the present invention. The database editing system includes a database server 10 that manages a database file 11 and an online editing device 21 that is connected to the database server 10 via a network 9.
And an online registration device 41, and an offline editing device 31 for performing an offline editing process.

【0014】データベースサーバー10には、データベ
ースファイルに対する、検索、データ更新、レコード削
除、新規レコード追加などの要求を受付けて、それらに
したがってデータベースファイルを更新するデータベー
ス管理プロセスが稼動しており、一方オンライン編集装
置21およびオンライン登録装置41には、データベー
スに対する各種要求を発行し、前記データベース管理プ
ログラムとの間でデータベースデータをやり取りし、そ
の内容をデータベース編集者に表示するクライアントプ
ロセスが稼動しており、この2つのプロセスがネットワ
ークを介して論理的な通信路を形成し情報をやり取りす
ることでサーバークライアント型のデータベースシステ
ムが動作する。一方オフライン編集装置31には、前記
クライアントプロセスが稼動せず、前記データベース管
理プロセスと論理的な通信路を形成して対象とするデー
タベースファイルにアクセスすることはない。
The database server 10 operates a database management process that receives requests for searching, updating data, deleting records, and adding new records to the database file and updating the database file accordingly. In the editing device 21 and the online registration device 41, a client process for issuing various requests for a database, exchanging database data with the database management program, and displaying the contents to a database editor is operating, These two processes form a logical communication path via a network and exchange information, whereby a server-client type database system operates. On the other hand, in the offline editing apparatus 31, the client process does not operate, and a logical communication path is not formed with the database management process to access the target database file.

【0015】本発明では、前記クライアントプロセスを
利用して前記データベース管理プロセスとの間で設定さ
れる論理的な通信路を通じてデータベースファイルを更
新することを「オンライン編集」、そうでない場合を
「オフライン編集」と表現する。
According to the present invention, updating a database file through a logical communication path established with the database management process using the client process is referred to as "online editing", and otherwise, "offline editing". Is expressed.

【0016】オンライン編集装置21が搭載する編集デ
ータ抽出手段は、上記に述べたような通常のデータベー
スクライアント機能を有し、通常のデータベースクライ
アントととしてデータベース11の検索、更新を行うほ
か、データベースファイル11から、オフライン編集用
のレコードデータを抽出し、オフライン編集に使用する
編集データファイル22とコントロールファイル23を
作成する。
The editing data extracting means mounted on the online editing device 21 has the ordinary database client function as described above, and searches and updates the database 11 as a normal database client. , The record data for offline editing is extracted, and an edited data file 22 and a control file 23 used for offline editing are created.

【0017】オフライン編集装置31が搭載するオフラ
イン編集手段は、編集データファイル22とコントロー
ルファイル23を読込んで、オフライン編集を行い、結
果を、編集データファイル32、コントロールファイル
33に書出す。編集データファイル32、コントロール
ファイル33のフォーマットは、それぞれ編集データフ
ァイル22、コントロールファイル23と同じである。
The offline editing means mounted on the offline editing device 31 reads the edited data file 22 and the control file 23, performs offline editing, and writes the result to the edited data file 32 and the control file 33. The formats of the edit data file 32 and the control file 33 are the same as the edit data file 22 and the control file 23, respectively.

【0018】オンライン登録装置41が搭載するデータ
登録手段は、編集データファイル32、コントロールフ
ァイル33を読込んで、データベースファイル11を更
新する。
The data registration means mounted on the online registration device 41 reads the edited data file 32 and the control file 33 and updates the database file 11.

【0019】本発明のオフラインデータベース編集シス
テムにおいて、オンライン編集装置21上で編集データ
ファイル22とコントロールファイル23を作成する工
程をデータ取出し工程(S20)、オフライン編集装置
31上でオフライン編集を行い編集データファイル32
とコントロールファイル33を作成する工程をオフライ
ン編集工程(S30)、オンライン登録装置41上でオ
フライン編集結果に従ってデータベースファイル11を
更新する工程をデータ登録工程(S40)と呼ぶことに
する。
In the offline database editing system of the present invention, the process of creating the edited data file 22 and the control file 23 on the online editing device 21 is a data fetching step (S20). File 32
The step of creating the control file 33 is called an offline editing step (S30), and the step of updating the database file 11 on the online registration device 41 according to the result of the offline editing is called a data registration step (S40).

【0020】以下、データ取出し工程(S20)、オフ
ライン編集工程(S30)、データ登録工程(S40)
の順で、各装置の動作を詳細に説明する。
Hereinafter, a data fetching step (S20), an offline editing step (S30), and a data registration step (S40)
The operation of each device will be described in detail in this order.

【0021】(データ取り出し工程)データ取出し工程
(S20)では、オンライン装置21に備えられた編集
データ抽出手段の動作により、オンライン編集装置21
から、編集データファイル22とコントロールファイル
23が作成される。コントロールファイルは、オフライ
ン編集で、レコードデータの削除や新規レコードの追加
を行う場合に必要となる管理ファイルである。コントロ
ールファイルには、取り出しを行ったレコードデータの
IDキー(データベースがデータ管理のために内部的に
保有している一意のキー)がセットされ、IDキーに対
応したフラグ記入欄が作成される。オフライン編集でレ
コードデータが削除された場合は、このファイルのID
キーに対応したフラグ記入欄に削除フラグが書き込まれ
る。
(Data fetching step) In the data fetching step (S20), the online editing device 21
, An edit data file 22 and a control file 23 are created. The control file is a management file required when deleting record data or adding a new record in offline editing. In the control file, an ID key (a unique key internally held by the database for data management) of the retrieved record data is set, and a flag entry field corresponding to the ID key is created. If the record data was deleted by offline editing, the ID of this file
The deletion flag is written in the flag entry field corresponding to the key.

【0022】また、このデータ取り出し処理と同時に、
データベースファイル11側の取り出されたレコードデ
ータには、編集データ抽出手段がデータベースサーバー
10上のデータベース管理プロセスに対して「更新読出
し」をリクエストしたことにより、読み出したレコード
への排他制御フラグが自動的に書き込まれてロックがか
かり、そのレコードに対して、他の全てのオンライン編
集装置での編集及びオフライン編集用の取り出しができ
なくなるよう排他制御が働く(これは通常のデータベー
ス管理プロセスの作用である)。しかしながら、編集デ
ータ取り出し後、取り出し処理を行ったオンライン編集
装置21のクライアントプロセスを終了させた(編集者
がログアウトした)後も、データベース側の排他制御フ
ラグを有効なままに維持させるために、編集データ抽出
手段は、編集データ抽出処理を終了する(編集者がログ
アウトする)直前に取出したレコードの排他制御フラグ
をそのまま有効とさせるためのリクエストをデータベー
スサーバー10に対して発行する。このため、オフライ
ンでの編集結果をデータベースに戻すまでの間、取り出
したレコードはロックされた状態となる。
At the same time as the data fetching process,
The exclusion control flag for the read record is automatically added to the retrieved record data in the database file 11 because the edited data extraction unit has requested the database management process on the database server 10 to perform “update read”. , And exclusive control is performed so that the record cannot be edited by all other online editing devices and cannot be taken out for offline editing (this is a function of a normal database management process). ). However, after the editing data is extracted, even after the client process of the online editing apparatus 21 that has performed the extraction processing is terminated (the editor has logged out), the editing process is performed in order to keep the exclusive control flag on the database side valid. The data extraction unit issues a request to the database server 10 to make the exclusive control flag of the record taken out immediately before the edit data extraction process ends (the editor logs out) as it is. Therefore, the retrieved record is locked until the offline editing result is returned to the database.

【0023】図2は、データ取出し工程の様子を模式的
に説明した図である。図2では、データベースファイル
11から、レコードID100003および100004のデータが
取出され、それらのレコードデータは編集データファイ
ルとして作成される。コントロールファイルには、レコ
ードID100003および100004に対応するコントロール用
のテーブルが作成され、対応するフラグ記入欄が用意さ
れる。データベースファイル11には、取出されたレコ
ード(ID100003および100004)に関して、排他制御を
行わせるために、編集中のフラグが立てられる。
FIG. 2 is a diagram schematically illustrating the state of the data extracting step. In FIG. 2, data of record IDs 100003 and 100004 are extracted from the database file 11, and the record data is created as an edited data file. In the control file, control tables corresponding to the record IDs 100003 and 100004 are created, and corresponding flag entry columns are prepared. In the database file 11, an editing flag is set in order to perform exclusive control on the retrieved records (ID100003 and ID100004).

【0024】(オフライン編集工程)オフライン編集装
置31に備えられたオフライン編集手段による動作の結
果、データベースファイル登録用に、編集データファイ
ル32とコントロールファイル33が作成される。オフ
ライン編集手段は、まず、編集データファイル22、コ
ントロールファイル23の内容をそれぞれコピーした編
集データファイル32、コントロールファイル33を作
成する。次に、オンラインでデータベースファイルを編
集するクライアントプロセスと同様なユーザーインター
フェースを、オフライン編集装置31の入出力装置に提
供し、オフライン編集者の指示を受けつけ、その指示
(レコード削除、書換え、新規レコード追加)に従っ
て、編集データファイル32、コントロールファイル3
3を更新してゆく。
(Offline Editing Process) As a result of the operation of the offline editing means provided in the offline editing device 31, an edited data file 32 and a control file 33 are created for database file registration. The offline editing means first creates an edited data file 32 and a control file 33 by copying the contents of the edited data file 22 and the control file 23, respectively. Next, a user interface similar to the client process for editing the database file online is provided to the input / output device of the offline editing device 31, and the instructions of the offline editor are received, and the instructions (record deletion, rewriting, new record addition) are received. ), Edit data file 32, control file 3
Update 3

【0025】レコードデータの書換えを行った場合、編
集結果は、編集データファイル32のみに書き込まれ、
コントロールファイル33は、そのままの状態となる。
しかし、レコードデータ削除の場合は、コントロールフ
ァイル33のレコードIDに対して、削除フラグを書込
む。(後のデータベース登録時に、オンライン登録装置
41上で、このレコードIDに対する削除フラグが参照
される。)新規レコード追加の場合は、仮のレコードI
Dを生成し、コントロールファイル33の末尾にこの仮
のレコードIDに対応する編集フラグ記入欄を確保す
る。また編集データファイル32に新規レコードのデー
タ格納領域を確保して、そこに新規レコードのデータを
記録する。
When the record data is rewritten, the edited result is written only in the edited data file 32,
The control file 33 remains as it is.
However, in the case of record data deletion, a deletion flag is written to the record ID of the control file 33. (When registering the database later, the deletion flag for this record ID is referred to on the online registration device 41.) In the case of adding a new record, the temporary record I
D is generated, and an edit flag entry field corresponding to the temporary record ID is secured at the end of the control file 33. Also, a data storage area for a new record is secured in the edited data file 32, and data for the new record is recorded there.

【0026】図3は、オフライン編集工程(S30)の
様子を模式的に説明した図である。図3では、レコード
ID100003のレコードを削除した場合の様子を示してい
る。すなわち、オフライン編集装置31において、ある
レコードのデータを削除した場合は、編集結果を保存す
る時点で、編集データファイル上の削除したレコードデ
ータが削除され、コントロールファイルでは、削除され
たレコードIDの編集フラグ欄に「削除」を示すフラグ
が記入される。
FIG. 3 is a diagram schematically illustrating the state of the offline editing step (S30). FIG. 3 shows a case where the record with the record ID 100003 is deleted. That is, when the data of a certain record is deleted in the offline editing apparatus 31, the deleted record data in the edited data file is deleted at the time of saving the edited result, and the control file edits the deleted record ID. A flag indicating "delete" is entered in the flag column.

【0027】(データ登録工程)オンライン登録装置4
1に備えられたデータ登録手段の動作により、オフライ
ン編集装置31上で編集された編集データファイル32
とコントロールファイル33の内容に基づいて、元のデ
ータベースファイルの内容が更新される。図8のフロー
チャートに従って、データ登録手段の動作を説明する。
(Data Registration Step) Online Registration Device 4
1, the edited data file 32 edited on the offline editing device 31 by the operation of the data registration means provided in the
Then, the contents of the original database file are updated based on the contents of the control file 33. The operation of the data registration means will be described with reference to the flowchart of FIG.

【0028】まず、データ登録手段は、コントロールフ
ァイル33のポインタを先頭にセットする(S41)。
そして、ポインタの指すレコードIDとその編集フラグ
の値を読みだす(s42)。その値が、削除でも新規で
もなければ、元のデータベースファイルに対して、読み
出したレコードIDを持つレコードを、編集データファ
イル32の対応するレコードの内容で更新するリクエス
トを発行する(S44)。その結果そのレコードの内容
は更新され、当該レコードに対する排他制御は解除され
る。
First, the data registration means sets the pointer of the control file 33 to the head (S41).
Then, the record ID indicated by the pointer and the value of the edit flag are read (s42). If the value is neither deleted nor new, a request is issued to the original database file to update the record having the read record ID with the contents of the corresponding record in the edited data file 32 (S44). As a result, the contents of the record are updated, and the exclusive control on the record is released.

【0029】コントロールファイル33のレコードID
とその編集フラグを読み出した時、その値が、削除の場
合は、元のデータベースファイルに対して、そのレコー
ドIDを持つレコードの削除をリクエストする(S4
5)。その結果当該レコードは削除される。コントロー
ルファイル33のレコードIDとその編集フラグを読み
出した時、その値が、新規追加の場合は、元のデータベ
ースファイルに対して、編集データファイル32の対応
するレコードの内容で新規レコードを記録するリクエス
トを発行する(S46)。この結果、新しいレコードが
元のデータベースファイルに追加される。
Record ID of control file 33
If the value is "delete", the original database file is requested to delete the record having the record ID (S4).
5). As a result, the record is deleted. When the record ID of the control file 33 and its edit flag are read out and the value is a new addition, a request to record a new record in the original database file with the contents of the corresponding record in the edit data file 32 Is issued (S46). As a result, a new record is added to the original database file.

【0030】その後、コントロールファイル33のポイ
ンタをインクリメントし(S47)、まだ、コントロー
ルファイル33のおわりでなければ、ステップS42に
もどり、処理を繰り返す。全てのレコードに関して処理
を終えたら、排他制御のロックを解除するリクエストを
発行するなど、必要な後処理を行って、データ登録処理
は終る(S49)。
Thereafter, the pointer of the control file 33 is incremented (S47). If the control file 33 has not reached the end, the process returns to step S42 to repeat the processing. When the processing has been completed for all records, necessary post-processing such as issuing a request to release the lock of exclusive control is performed, and the data registration processing ends (S49).

【0031】図4は、データ登録工程(S40)の様子
を模式的に説明した図である。図4では、編集データフ
ァイルには、2件中、1件のデータが削除されたデータ
が記録されている。コントロールファイルには、削除さ
れたレコードID100003のフラグ欄には「削除」が記録
されている。データベースサーバー10は、オンライン
登録装置41から、レコードID100003の削除指示を受
け、当該レコードのデータをデータベースファイル11
から削除する。また、更新されたレコードID100004の
データをデータベースファイル11にもどし、排他制御
ロックを解除する。
FIG. 4 is a diagram schematically illustrating the data registration step (S40). In FIG. 4, in the edited data file, data in which one of two data has been deleted is recorded. In the control file, “deleted” is recorded in the flag column of the deleted record ID 100003. The database server 10 receives an instruction to delete the record ID 100003 from the online registration device 41, and stores the data of the record in the database file 11
Remove from. Further, the updated data of the record ID 100004 is returned to the database file 11, and the exclusive control lock is released.

【0032】以上本発明の一実施形態であるデータベー
ス編集システム1を説明した。本発明の実施形態として
は、データベース編集システム1と一部異なる態様も可
能である。データベース編集システム1は、編集データ
ファイルとコントロールファイルの2種類のファイルを
用いるシステムであるが、これらは1種類の編集データ
ファイルとして一体化されてもよい。すなわち、編集デ
ータファイルは、図10のように、レコードID(レコ
ード番号)、データ内容、そのレコードデータに対する
編集作業の種類を区別するフラグの記入欄(編集フラ
グ)、を1つのレコードとして構成するファイルであっ
てもよい。このレコードIDと編集フラグの項目は、デ
ータベース編集システム1ではコントロールファイル2
3、33に記録される内容である。このような一体化し
た編集データファイルを用いたデータベース編集システ
ム2の全体構成図を図9に示す。図9で24、34で示
されるのが図10に示した一体化された編集データファ
イルである。
The database editing system 1 according to one embodiment of the present invention has been described above. As an embodiment of the present invention, a mode partially different from the database editing system 1 is also possible. The database editing system 1 is a system that uses two types of files, an edit data file and a control file, but these may be integrated as one type of edit data file. That is, in the edited data file, as shown in FIG. 10, a record ID (record number), data contents, and an entry field (edit flag) of a flag for distinguishing the type of editing work on the record data are configured as one record. It may be a file. The record ID and the edit flag items are stored in the control file 2 in the database editing system 1.
3 and 33. FIG. 9 shows an overall configuration diagram of the database editing system 2 using such an integrated editing data file. In FIG. 9, reference numerals 24 and 34 denote the integrated edited data files shown in FIG.

【0033】また、本発明の実施形態としては、オフラ
イン編集装置31に「編集処理制限機能」を持たせた形
のオフライン編集システムであってもよい。「編集処理
制限機能」とは、オフライン編集装置31上での作業内
容を編集者に合わせて制限させる機能である。データベ
ースの編集作業は、既存レコードデータの「更新(書換
え)」、既存レコードデータの「削除」、新規レコード
の「追加」、に分類できるが、これらを編集者によって
制御する機能である。
Further, as an embodiment of the present invention, an off-line editing system in which the off-line editing apparatus 31 is provided with an "edit processing restriction function" may be used. The “editing processing restriction function” is a function of restricting the work content on the offline editing device 31 according to the editor. The database editing work can be classified into “update (rewrite)” of existing record data, “delete” of existing record data, and “addition” of new record. These functions are controlled by the editor.

【0034】例えば、「削除」や「追加」は、データベ
ース管理者のみに編集許可を与え、管理者以外の編集者
には、「更新」のみ許可し、「削除」や「追加」は、不
可とするといった制御を行うことができる。
For example, "delete" and "add" are given editing permission only to the database administrator, and editors other than the administrator are permitted only "update", and "delete" and "add" are not allowed. Can be performed.

【0035】この機能は、例えば、データベース管理者
が、図7のような、登録ユーザー毎に、ユーザー番号と
許可される作業内容を記述した作業許可ファイルを事前
に用意し、これを全てのオフライン編集装置31に記録
させておく。オフライン制御装置31のオフライン編集
手段は、作業者がログインした時に、前記作業許可ファ
イルを参照し、ログインした作業者に許可された編集作
業のみ行うように動作し、許可されていない処理を受付
けないよう動作する。
For this function, for example, a database administrator prepares in advance a work permission file describing a user number and permitted work contents for each registered user as shown in FIG. It is recorded in the editing device 31. The off-line editing means of the off-line control device 31 operates so as to refer to the work permission file and perform only the editing work permitted to the logged-in worker when the worker logs in, and does not accept processing that is not permitted. Works as follows.

【0036】[0036]

【発明の効果】本発明によって、一元管理されたデータ
ベースの編集作業をオンラインマシンだけではなく、オ
フラインマシンでも可能となったため、編集できる場所
や人数の制限を考慮することなく、例えば、遠方のスタ
ッフやオペレータが自宅で所有するパソコン等で、デー
タベースの編集作業をすることができる様になり、多人
数で並列的に作業することができるため、データベース
の編集作業を短時間で処理することが可能となるという
顕著な効果を奏する。
According to the present invention, editing work of a centrally managed database can be performed not only on an online machine but also on an offline machine. And the operator can edit the database on a personal computer owned at home, and can work in parallel with many people. This has a remarkable effect.

【0037】また、データベース管理者は、作業許可フ
ァイルを用意することにより、オフラインの編集者に対
し、編集作業(更新、削除、新規レコード追加)の範囲
を制限させることができるため、多数の作業者を使用し
ても、重要なデータを誤って消すような作業ミスを極力
排除することが可能となるという顕著な効果を奏するこ
とができる。
The database administrator can restrict the range of editing work (update, deletion, addition of new record) to the offline editor by preparing the work permission file. Even if a user is used, a remarkable effect that it is possible to eliminate as much as possible an operation error such as erroneously erasing important data can be achieved.

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

【図1】 本発明の一実施形態であるデータベース編集
システム1の全体構成図である。
FIG. 1 is an overall configuration diagram of a database editing system 1 according to an embodiment of the present invention.

【図2】 データ取出し工程の説明図である。FIG. 2 is an explanatory diagram of a data extracting step.

【図3】 オフライン編集工程の説明図である。FIG. 3 is an explanatory diagram of an offline editing process.

【図4】 データ登録工程の説明図である。FIG. 4 is an explanatory diagram of a data registration step.

【図5】 従来技術を説明する図である。FIG. 5 is a diagram illustrating a conventional technique.

【図6】 従来技術によるオフライン編集の問題点を説
明する図である。
FIG. 6 is a diagram illustrating a problem of offline editing according to the related art.

【図7】 作業許可ファイルを説明する図である。FIG. 7 is a diagram illustrating a work permission file.

【図8】 オンライン登録装置41に搭載されるデータ
登録手段の動作を説明するフローチャートである。
FIG. 8 is a flowchart illustrating an operation of a data registration unit mounted on the online registration device 41.

【図9】 本発明の一実施形態であるデータベース編集
システム2の全体構成図である。
FIG. 9 is an overall configuration diagram of a database editing system 2 according to an embodiment of the present invention.

【図10】編集データファイルの変形例を説明する図で
ある。
FIG. 10 is a diagram illustrating a modified example of an edit data file.

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

1 データベース編集システム 2 データベース編集システム 9 ネットワーク 10 データベースサーバー 11 データベースファイル 21 オンライン編集装置 22 編集データファイル 23 コントロールファイル 24 編集データファイル 31 オフライン編集装置 32 編集データファイル(オフライン編集後) 33 コントロールファイル(オフライン編集後) 34 編集データファイル(オフライン編集後) 41 オンライン登録装置 1 Database Editing System 2 Database Editing System 9 Network 10 Database Server 11 Database File 21 Online Editing Device 22 Editing Data File 23 Control File 24 Editing Data File 31 Offline Editing Device 32 Editing Data File (After Offline Editing) 33 Control File (Offline Editing) After) 34 Edited data file (after offline editing) 41 Online registration device

───────────────────────────────────────────────────── フロントページの続き (72)発明者 玉生 斎 東京都新宿区市谷加賀町一丁目1番1号 大日本印刷株式会社内 Fターム(参考) 5B075 NR03 NR20 QT06 5B082 FA18 GA03 GA14 GA16 GA18 GB01  ────────────────────────────────────────────────── ─── Continuing on the front page (72) Inventor: Sai, Tamo 1-1-1, Ichigaya-Kaga-cho, Shinjuku-ku, Tokyo Dai Nippon Printing Co., Ltd. F-term (reference) 5B075 NR03 NR20 QT06 5B082 FA18 GA03 GA14 GA16 GA18 GB01

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 データベースファイルの一部分のデータ
を読込んで、そのデータベースファイルを構成するテー
ブルの1レコードに対応して、レコード番号、データ内
容、そのレコードデータに対する編集作業の種類を区別
する編集フラグを記録単位とした、編集データファイル
を生成し、元のデータベースファイルに対して、読込ま
れたレコードの排他制御を有効にさせるよう制御フラグ
を書込む編集データ抽出手段を搭載したオンライン編集
装置と、前記編集データファイルに対して、データベー
スファイル編集者からのデータの書換え、削除、新規追
加命令を受付け、その命令に応じて前記編集フラグ記入
欄に異なるフラグ値を記録し、書換えの場合はデータ内
容を指示されたレコード番号のデータ記録欄に記録し、
新規追加の場合は、仮のレコード番号を発生しデータ内
容をその仮のレコード番号に対応したデータ記録欄に記
録するオフライン編集手段を搭載した、データベースフ
ァイルを管理するデータベースサーバーとオフラインの
状態にあるオフライン編集装置と、更新された前記編集
データファイル内容にしたがって元のデータベースファ
イルを更新するデータ登録手段を搭載した前記データベ
ースサーバーとオンライン接続されたオンライン登録装
置、を備えることにより、データベースファイルの編集
作業をオフライン装置上でも可能にしたデータベース編
集システム。
An editing flag for reading data of a part of a database file and for identifying a record number, data contents, and a type of editing work on the record data corresponding to one record of a table constituting the database file. An online editing apparatus equipped with an edit data extraction unit for generating an edit data file as a recording unit and writing a control flag to the original database file so as to enable exclusive control of the read record; and For the edited data file, data rewriting, deletion, and new addition instructions from the database file editor are accepted, and different flag values are recorded in the edit flag entry fields according to the instructions. Record in the data record column of the designated record number,
In the case of new addition, it is offline with the database server that manages the database file, equipped with offline editing means that generates a temporary record number and records the data content in the data record column corresponding to the temporary record number By providing an offline editing device and an online registration device connected online to the database server equipped with data registration means for updating an original database file in accordance with the updated edited data file contents, a database file editing operation Database editing system that can be used on offline devices.
【請求項2】 前記オフライン編集手段は、データベー
ス編集者からレコード削除または新規追加の指示が来た
時だけ、前記編集フラグ記入欄に、それらに対応したフ
ラグ値を記入するものである請求項1に記載のデータベ
ース編集システム。
2. The editing device according to claim 1, wherein the off-line editing unit writes the corresponding flag value in the editing flag entry column only when an instruction to delete or newly add a record is received from a database editor. Database editing system described in 1.
【請求項3】 前記編集データファイルのうち、レコー
ド番号と、そのレコードデータに対する編集作業の種類
を区別する編集フラグの項目を別のファイルにして扱う
請求項1に記載のデータベース編集システム。
3. The database editing system according to claim 1, wherein, in the edited data file, a record number and an item of an edit flag for distinguishing a type of an edit operation on the record data are handled as separate files.
【請求項4】 データベースファイルの一部分のデータ
を読込んで、そのデータベースファイルを構成するテー
ブルの1レコードに対応して、レコード番号、データ内
容、そのレコードデータに対する編集作業の種類を区別
する編集フラグを記録単位とした、編集データファイル
を生成し、元のデータベースファイルに対して、読込ま
れたレコードの排他制御を有効にさせるよう制御フラグ
を書込むデータ取出し工程と、前記編集データファイル
を読込んだ、元のデータベースファイルを管理するデー
タベースサーバーとオフラインの状態にある装置上で、
データベースファイル編集者からのデータの書換え、削
除、新規追加命令を受付け、その命令に応じて前記編集
フラグ記入欄に異なるフラグ値を記録し、書換えの場合
はデータ内容を指示されたレコード番号のデータ記録欄
に記録し、新規追加の場合は、仮のレコード番号を発生
しデータ内容をその仮のレコード番号に対応したデータ
記録欄に記録するオフライン編集工程と、前記データベ
ースサーバーとオンライン接続された装置上で、更新さ
れた前記編集データファイル内容にしたがって元のデー
タベースファイルを更新するデータ登録工程、を順に実
行する、オフラインでデータベースの編集を可能とする
データベース編集方法。
4. A part of data of a database file is read, and an edit flag for discriminating a record number, data contents, and a type of editing work on the record data corresponding to one record of a table constituting the database file is set. A data extraction step of generating an edit data file as a recording unit, writing a control flag to the original database file so as to enable exclusive control of the read record, and reading the edit data file On a device that is offline with the database server that manages the original database files,
Receiving data rewriting, deletion, and new addition instructions from the database file editor, recording different flag values in the edit flag entry field according to the instructions, and in the case of rewriting, the data contents of the designated record number data An off-line editing step of recording in a record section and, in the case of a new addition, generating a tentative record number and recording the data content in a data record section corresponding to the tentative record number; and an apparatus connected online with the database server. A data registration step of updating an original database file in accordance with the updated contents of the edited data file.
JP2001003084A 2001-01-10 2001-01-10 Off-line database editing system Pending JP2002207618A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001003084A JP2002207618A (en) 2001-01-10 2001-01-10 Off-line database editing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001003084A JP2002207618A (en) 2001-01-10 2001-01-10 Off-line database editing system

Publications (1)

Publication Number Publication Date
JP2002207618A true JP2002207618A (en) 2002-07-26

Family

ID=18871484

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001003084A Pending JP2002207618A (en) 2001-01-10 2001-01-10 Off-line database editing system

Country Status (1)

Country Link
JP (1) JP2002207618A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005099423A (en) * 2003-09-25 2005-04-14 Yamaha Corp Communication karaoke terminal for handling user information by individual, and musical piece selecting and reserving device
JP2007043352A (en) * 2005-08-02 2007-02-15 Felica Networks Inc Information processing apparatus and method, and program
WO2007037030A1 (en) * 2005-09-27 2007-04-05 Mitsubishi Denki Kabushiki Kaisha Information processing device, information processing method, and information storage medium used in the same
JP2008276475A (en) * 2007-04-27 2008-11-13 Daiwa Securities Group Inc Data processing system, terminal unit and program
JP2010200826A (en) * 2009-02-27 2010-09-16 Sanyo Product Co Ltd Game machine
JP2015170037A (en) * 2014-03-05 2015-09-28 株式会社東芝 Address database construction device, address database construction system, and address database construction method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005099423A (en) * 2003-09-25 2005-04-14 Yamaha Corp Communication karaoke terminal for handling user information by individual, and musical piece selecting and reserving device
JP2007043352A (en) * 2005-08-02 2007-02-15 Felica Networks Inc Information processing apparatus and method, and program
JP4698323B2 (en) * 2005-08-02 2011-06-08 フェリカネットワークス株式会社 Information processing apparatus and method, and program
WO2007037030A1 (en) * 2005-09-27 2007-04-05 Mitsubishi Denki Kabushiki Kaisha Information processing device, information processing method, and information storage medium used in the same
JP2008276475A (en) * 2007-04-27 2008-11-13 Daiwa Securities Group Inc Data processing system, terminal unit and program
JP4486108B2 (en) * 2007-04-27 2010-06-23 株式会社大和証券グループ本社 Data processing system, terminal device and program
JP2010200826A (en) * 2009-02-27 2010-09-16 Sanyo Product Co Ltd Game machine
JP2015170037A (en) * 2014-03-05 2015-09-28 株式会社東芝 Address database construction device, address database construction system, and address database construction method

Similar Documents

Publication Publication Date Title
DE60021465T2 (en) Security management system, data distribution device and portable terminal device
JP4903012B2 (en) Workflow system, workflow processing method, and workflow processing program
JP4275772B2 (en) Database system, data management method, and recording medium recording data management software
DE102006007084B4 (en) A system for providing programs to a user-operable device
US20080270463A1 (en) Document processing system and method therefor
CN101196896A (en) Document providing system and method
JP2001051887A (en) Editing device for common document
JPH0664547B2 (en) Electronic Document Management Method for Interactive Information Handling System
US7233949B2 (en) System and method for controlling user authorities to access one or more databases
JP4122042B1 (en) Access authority control system
JP2002207618A (en) Off-line database editing system
JPH08185349A (en) Data security device
JP4276717B2 (en) Database system
JP6391143B2 (en) Access control apparatus, information sharing system, program, and access control method
JP4758381B2 (en) Test data generation system, program thereof, recording medium thereof, and test data generation method
JP2009104646A (en) Database system and data management method
KR100658029B1 (en) Computer-readable recorded medium on which document creating program is recorded, document creating system, and document creating method
JP4836545B2 (en) Screen creation device and program
JP2001216319A (en) Document managing method and its implementation device, and recording medium stored with processing program thereof
JP4348770B2 (en) Design drawing editing history management system
JP2006235693A (en) Card information changing system, card information changing method, and card information changing program
KR102438329B1 (en) Method for managing virtual file, apparatus for the same, computer program for the same, and recording medium storing computer program thereof
JP4000916B2 (en) Data management apparatus and data management program
JP2019128867A (en) Design information managing system, design information managing method, and program
JP4882550B2 (en) Object management system, object management method, and computer program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20071211

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100812

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100819

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20101214