JPS63269224A - Data base access system - Google Patents

Data base access system

Info

Publication number
JPS63269224A
JPS63269224A JP62105076A JP10507687A JPS63269224A JP S63269224 A JPS63269224 A JP S63269224A JP 62105076 A JP62105076 A JP 62105076A JP 10507687 A JP10507687 A JP 10507687A JP S63269224 A JPS63269224 A JP S63269224A
Authority
JP
Japan
Prior art keywords
database
information
data
business program
request
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
JP62105076A
Other languages
Japanese (ja)
Inventor
Toshimitsu Watanabe
利光 渡辺
Seiji Ueno
上野 成児
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 JP62105076A priority Critical patent/JPS63269224A/en
Publication of JPS63269224A publication Critical patent/JPS63269224A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To facilitate generation of an application program which accesses a data base, by storing information of the data structure related to the data base and information of the processing process of the application program to the data base. CONSTITUTION:The data structure of a constituting element or the like of a data base 1-2 is stored in a data structure storage part 1-4, and records or the like processed by an application program 1-1 till then are stored in a processing process storage part 1-42. A data structure retrieving part 1-52 retrieves a storage part 1-41 on the basis of request information from a request data input means 1-3 by the function of a flat access control part 1-51 and reads out information of the data structure of the base 1-2 related to request information. A processing process storage retrieving part 1-53 checks contents of the storage part 1-42 and reads out information of the processing process executed till then of the base 1-2 related to request information. Thus, the control part 1-51 assembles a series of instruction execution procedures by which the data base can be accessed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はデータベースアクセス方式に関する。[Detailed description of the invention] [Industrial application field] The present invention relates to a database access method.

〔従来の技術〕[Conventional technology]

従来のデータベースアクセス方式では、データベースを
アクセスする業務プログラムは、そのデータベースが使
用しているデータ構造に従って、一連のデータ操作命令
が論理的に順序正しく配列されて、コボル言語などで記
述されている必要がある。とりわけ階層型のデータベー
スの場合には、上位階層から下位階層へと、順次一連の
データ操作命令がそのデータベースの階層構造に従って
、秩序正しく記述されていなければならない。
In conventional database access methods, a business program that accesses a database must be written in a language such as Kobol, with a series of data manipulation instructions arranged in a logical order according to the data structure used by the database. There is. Particularly in the case of a hierarchical database, a series of data manipulation instructions must be written in an orderly manner from the upper hierarchy to the lower hierarchy according to the hierarchical structure of the database.

第2図は、従来のデータベースアクセス方式の一例を示
すブロック図である。
FIG. 2 is a block diagram showing an example of a conventional database access method.

第2図において、取引き履歴表を作成する業務プログラ
ム2−1は、データベース2−2をアクセスして利用す
る。データベース2−2はソフトウェアでファイル情報
を管理するデータベース管理システム2−21と大容量
の磁気ディスク装置にファイル情報を記憶するデータベ
ースディスクファイル2−22とから構成されている。
In FIG. 2, a business program 2-1 that creates a transaction history table accesses and utilizes a database 2-2. The database 2-2 is composed of a database management system 2-21 that manages file information using software and a database disk file 2-22 that stores file information in a large-capacity magnetic disk device.

データベースディスクファイル2−22には、顧客レコ
ードと、顧客レコード内にある顧客セットで関係づけら
れた元帳レコードと、元帳レコード内にある元帳セット
で関係づけられた取引き履歴レコードなどが階層構造で
ファイルされている。
The database disk file 2-22 has a hierarchical structure of customer records, ledger records related by customer sets in customer records, transaction history records related by ledger sets in ledger records, etc. Filed.

この場合、データベース中のレコードのアクセス経路は
、第1階層にファイルされている顧客レコードをアクセ
スして始めて顧客セットが得られるので、第2階層の元
帳レコードをアクセスすることができ、さらに第2階層
の元帳レコードをアクセスして始めて元帳セットが得ら
れるので、第3階層の取引き履歴レコードをアクセスす
ることができる構造になっているので、業務プログラム
2−1はこの階層構造のデータ構造に従って、一つ一つ
データ操作命令を秩序正しく論理的に配列して記述して
いなければならない。
In this case, the record access path in the database is such that the customer set is obtained only by accessing the customer records filed in the first layer, so the ledger records in the second layer can be accessed, and then the ledger records in the second layer can be accessed. Since the ledger set can only be obtained by accessing the ledger records in the hierarchy, the structure is such that the transaction history records in the third hierarchy can be accessed, so the business program 2-1 follows this hierarchical data structure. , each data manipulation instruction must be written in an orderly and logical arrangement.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来のデータベースアクセス方式は、(A)業
務プログラムを記述するとき、データベースのデータ構
造を考慮して、一つ一つ正しい順序で論理的に記述しな
ければならないので、業務プログラムは複雑で難しい、 (B)業務プログラムの作成に当って、データベースに
関する熟練知識が必要となるため、業務プログラムの作
成要員の教育および養成が大変である、 (C)データ操作命令の記述量が多いため、業務10グ
ラムの作成工数が大きい、 という問題点がある。
In the conventional database access method described above, (A) when writing a business program, the data structure of the database must be considered and each item must be logically written in the correct order, making the business program complex. Difficult. (B) Creating business programs requires expert knowledge of databases, making it difficult to educate and train the staff who create business programs. (C) Because there are a large number of data manipulation instructions. The problem is that it takes a lot of man-hours to create 10 grams of work.

本発明の目的は、データベースに関する知識が乏しくと
も、データベースをアクセスする業務プログラムの作成
を容易に行うことができるとともにその業務プログラム
を作成する工数が少なくて済むデータベースアクセス方
式を提供することである。
SUMMARY OF THE INVENTION An object of the present invention is to provide a database access method that allows even a person with little knowledge of databases to easily create a business program that accesses a database, and that requires less man-hours to create the business program.

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

本発明のデータベースアクセス方式は、業務プログラム
と、その業務プログラムで使用するデータベースとを備
えたシステムのデータベースアクセス方式において、前
記業務プログラムから前記データベースに書込みや読出
しなど各種のデータ操作を行うために出される要求およ
びこれらに必要なデータを受け取る要求・データ入力手
段と、前記データベースに関するデータ構造の情報およ
び前記業務プログラムによる前記データベースへの処理
過程の情報を記憶する記憶手段と、前記要求・データ入
力手段からの入力情報および前記記憶手段からの記憶情
報に基づいて前記業務プログラムからの要求を満たす前
記データベースへの一連の命令実行手順を組立てるフラ
ットアクセス制御手段と、この一連の命令実行手順に従
って前記データベースに対して一連の命令を送ることに
より前記業務プログラムから要求されたデータ繰作の実
行を指示する命令処理手段と、前記命令処理手段の指示
による実行結果の情報を前記業務プログラムに出力する
データ出力手段とを備えて構成されている。
The database access method of the present invention is a database access method for a system that includes a business program and a database used by the business program. request/data input means for receiving requests and data necessary for these; storage means for storing information on a data structure regarding the database and information on a processing process for the database by the business program; and the request/data input means. flat access control means for assembling a series of command execution procedures for the database that satisfies a request from the business program based on input information from the storage means and stored information from the storage means; command processing means for instructing the execution of data manipulation requested by the business program by sending a series of commands to the business program; and data output means for outputting information on the execution results according to the instructions of the command processing means to the business program. It is composed of:

〔実施例〕〔Example〕

次に本発明の実施例について図面を参照して説明する。 Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明のデータベースアクセス方式の一実施例
を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of the database access method of the present invention.

第1図において、業務プログラム1−1はデータベース
1−2をアクセスして使用する業務を処理するプログラ
ムである。データベース1−2はソフトウェアでファイ
ル情報を管理するデータベース管理システム1−21と
大容量の磁気ディスク装置にファイル情報を記憶するデ
ータベースディスクファイル1−22とを備えて構成さ
れている。
In FIG. 1, a business program 1-1 is a program that processes a business that accesses and uses a database 1-2. The database 1-2 includes a database management system 1-21 that manages file information using software, and a database disk file 1-22 that stores file information in a large-capacity magnetic disk device.

業務プログラム1−1は、データベース1−2のデータ
構造に関係なく、データベース1−2をアクセスするた
めに、処理したいレコードとその動作に関して、各種の
要求とそれに付随するパラメータおよびデータベース1
−2に書込むデータなどを要求・データ入力手段1−3
に送る。要求・データ入力手段1−3は、これらを受け
取って、データベース1−2にアクセスするための情報
が整っているか否かを調べ、整っていなければ業務プロ
グラム1−1に知らせ、整っていれば以下のアクセス動
作へ移行する。
Regardless of the data structure of the database 1-2, the business program 1-1 makes various requests and associated parameters regarding records to be processed and their operations in order to access the database 1-2.
Request data to be written to -2/Data input means 1-3
send to The request/data input means 1-3 receives these and checks whether the information for accessing the database 1-2 is available, and if the information is not available, it informs the business program 1-1, and if the information is available, it informs the business program 1-1. Move to the following access operation.

記憶手段1−4は、データベース1−2の構成要素など
のデータ構造を記憶しているデータ構造記憶部1−41
と、業務プログラム1−1でこれまでに処理したレコー
ドおよびそのキー値などを記憶している処理過程記憶部
1−42とを備えて構成されている。
The storage means 1-4 includes a data structure storage unit 1-41 that stores data structures such as constituent elements of the database 1-2.
and a processing process storage unit 1-42 that stores records processed so far by the business program 1-1 and their key values.

フラットアクセス制御手段1−5は、フラットアクセス
制御部1−51の機能により、要求データ入力手段1−
3からの要求情報に基づいて、データ構造検索部1−5
2を働かせてデータ構造記憶部1−41を検索し、要求
情報に関するデータベース1−2のデータ構造の情報を
読出し、さらに処理過程記憶部検索部1−53を動かせ
て処理過程記憶部1−42を調べ、要求情報に関するデ
ータベース1−2のこれ迄の処理経過の情報を読出す。
The flat access control means 1-5 uses the function of the flat access control section 1-51 to input request data input means 1-5.
Based on the request information from 3, the data structure search unit 1-5
2 to search the data structure storage section 1-41 and read data structure information of the database 1-2 related to the request information. , and reads out the information on the processing progress so far in the database 1-2 regarding the request information.

これらの記憶手段1−4からの情報に基づいて、フラッ
トアクセス制御部1−51は、業務プログラム1−1か
らの要求情報を満たすことができ、出来るだけ簡単にデ
ータベースへアクセスできる一連の命令実行手順を組立
てる。
Based on the information from these storage means 1-4, the flat access control unit 1-51 executes a series of instructions that can satisfy the requested information from the business program 1-1 and access the database as easily as possible. Assemble the steps.

また、フラットアクセス制御部1−51は、これらの一
連の命令実行手順で、今回処理するレコードおよびその
キー値などの情報を、処理過程記憶部更新部1−54を
働かせて、処理過程記憶°部1−42に記憶させる。
In addition, the flat access control unit 1-51 activates the processing process storage unit updating unit 1-54 to store information such as the record to be processed this time and its key value in the processing process storage unit 1-54 in these series of command execution procedures. 1-42.

命令処理手段1−6は、これらの一連の命令実行手順に
従って、データベース1−2に対して一連の命令を送り
、データベース管理システム1−21を働かせてデータ
ベースディスクファイル1−22のデータ操作を実行し
、その結果として読出しデータなどの必要な情報を得る
The instruction processing means 1-6 sends a series of instructions to the database 1-2 in accordance with these series of instruction execution procedures, and operates the database management system 1-21 to execute data operations on the database disk file 1-22. As a result, necessary information such as read data is obtained.

データ出力手段1−7は、命令処理手段1−6からこれ
らの読出しデータなどの上記実行結果として得られた情
報を得て、これらを業務プログラム1−1に出力する。
The data output means 1-7 obtains information obtained as the execution results such as these read data from the instruction processing means 1-6, and outputs them to the business program 1-1.

第3図はデータベース1−2のデータ構造を表している
データ構造記憶部1−41の記憶内容の一例を示す説明
図である。
FIG. 3 is an explanatory diagram showing an example of the stored contents of the data structure storage section 1-41 representing the data structure of the database 1-2.

第3図において、ルート情報3−1はデータベース1−
2のアクセスパスであるアクセスのルートを示し、Aル
ートのレコードアドレスが示す記憶位置にレコード情報
3−2があり、Aルー1へのキーアドレス1が示す記憶
位置にキー情報3−3があることを示している。
In FIG. 3, route information 3-1 is database 1-
The record information 3-2 is located at the storage location indicated by the record address of the A route, and the key information 3-3 is located at the storage location indicated by the key address 1 to A route 1. It is shown that.

レコード情報3−2の内容は、データベース1−2の第
1階層に顧客インデックスにより主索引できる顧客レコ
ード、第2階層に第1階層の顧客レコードにある顧客セ
ットを経由(バイア)してアクセスできる元帳レコード
、第3階層に第2階層の元帳レコードにある元帳セット
を経由(バイア)してアクセスできる取引き履歴レコー
ドが、それぞれファイルされていることを示している。
The contents of the record information 3-2 can be accessed via the customer record in the first layer of the database 1-2 that can be indexed as the main index using the customer index, and the customer set in the customer record in the first layer in the second layer. This shows that transaction history records that can be accessed via the ledger set in the ledger record in the second layer are respectively filed in the ledger record and the third layer.

また、キー情報3−3の内容は、上記の各レコードが顧
客番号により読出されるX属性(英数字であることを示
す)の6桁であることを示している。
Further, the contents of the key information 3-3 indicate that each of the above records has a 6-digit X attribute (indicating that it is an alphanumeric character) read out by a customer number.

一方、第4図は処理過程記憶部1−42の記憶内容の一
例を示す説明図である。
On the other hand, FIG. 4 is an explanatory diagram showing an example of the storage contents of the process storage section 1-42.

第4図において、処理過程情報4−1は業務プログラム
1−1でこれまでに処理したレコードとして、直前に読
出しを行った顧客番号oooootの顧客レコード、直
前に読出しを行った連続位置(NEXT)にあった元帳
レコード、直前に読出しを行った連続位置(NEXT)
にあった取引き履歴レコードの情報がそれぞれ記憶され
ていることを示している。業務プログラム1−1の要求
は、これまでに処理した動作と同じ動作を要求する場合
が多いので、これらの情報は続いて行う後の要求で使用
される場合が多い。
In FIG. 4, processing process information 4-1 includes records processed so far by the business program 1-1, including the customer record of customer number oooooot that was read immediately before, and the consecutive position (NEXT) that was read immediately before. Ledger record that was in the previous sequential position (NEXT)
This indicates that the information of the transaction history record corresponding to the previous transaction history record is stored. Since requests from the business program 1-1 often request the same operations as those processed so far, this information is often used in subsequent requests.

このように、第3図に示したデータ構造に関する情報お
よび第4図に示した処理過程に関する情報が記憶手段1
−4に記憶されていることにより、フラットアクセス制
御手段1−5は、業務プログラム1−1の要求を満たす
ことができる一連の命令実行手順を組立てることができ
る。
In this way, the information regarding the data structure shown in FIG. 3 and the information regarding the processing process shown in FIG. 4 are stored in the storage means 1.
-4, the flat access control means 1-5 can assemble a series of instruction execution procedures that can satisfy the requirements of the business program 1-1.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明のデータベースアクセス方
式は、 (A)業務プログラムを記述するとき、データベースの
データ構造に関係なく、処理したいレコードとその動作
を記述することができるので、業務プログラムの記述が
簡潔である、(B)業務プログラムの作成に当って、デ
ータベースに関する熟練知識を必要としないため、業務
プログラムの作成要員の教育および養成が容易である、 (C)データ操作命令の記述量が少ないため、業務プロ
グラムの作成工数が少ない、 という効果がある。
As explained above, the database access method of the present invention has the following advantages: (A) When writing a business program, records to be processed and their operations can be described regardless of the data structure of the database; (B) Creating a business program does not require expert knowledge of databases, so it is easy to educate and train business program creators. (C) The amount of data manipulation instructions written is small. This has the effect of reducing the number of man-hours required to create business programs.

すなわち、本発明のデータベースアクセス方式は、デー
タベースに関する知識が乏しくとも、データベースをア
クセスする業務プログラムの作成を容易に行うことがで
きるとともにその業務プログラムを作成する工数が少な
くて済むという効果を有する。
That is, the database access method of the present invention has the advantage that even if one has little knowledge about databases, it is possible to easily create a business program that accesses a database, and the number of man-hours required to create the business program can be reduced.

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

第1図は本発明のデータベースアクセス方式の一実施例
を示すブロック図、第2図は従来のデータベースアクセ
ス方式の一例を示すブロック図、第3図はデータ構造記
憶部の記憶内容の一例を示す説明図、第4図は処理過程
記憶部部の記憶内容の一例を示す説明図である。 1−1.2−1・・・業務プログラム、1−2゜2−2
・・・データベース、1−21.2−21・・・データ
ベース管理システム、1−22.2−22・・・データ
ベースディスクファイル、1−3・・・要求・データ入
力手段、■−4・・・記憶手段、1−41・・・データ
構造記憶部、1−42・・・処理過程記憶部、1−5・
・・フラットアクセス制御手段、1−51・・・フラッ
トアクセス制御部、1−52・・・データ構造検索部、
1−53・・・処理過程検索部、1−54・・・処理過
程更新部、1−6・・・命令処理手段、1−7・・・デ
ータ出力手段、3−1・・・ルート情報、3−2・・・
レコード情報、3−3・・・キー情報、4−1・・・処
理過程情報。
FIG. 1 is a block diagram showing an embodiment of the database access method of the present invention, FIG. 2 is a block diagram showing an example of the conventional database access method, and FIG. 3 is an example of the storage contents of the data structure storage section. Explanatory diagram, FIG. 4 is an explanatory diagram showing an example of the storage contents of the processing process storage section. 1-1.2-1...Business program, 1-2゜2-2
...Database, 1-21.2-21...Database management system, 1-22.2-22...Database disk file, 1-3...Request/data input means, ■-4... - Storage means, 1-41... Data structure storage unit, 1-42... Processing process storage unit, 1-5.
... flat access control means, 1-51 ... flat access control section, 1-52 ... data structure search section,
1-53... Processing process search unit, 1-54... Processing process updating unit, 1-6... Command processing means, 1-7... Data outputting unit, 3-1... Route information , 3-2...
Record information, 3-3...Key information, 4-1...Processing process information.

Claims (1)

【特許請求の範囲】[Claims] 業務プログラムと、その業務プログラムで使用するデー
タベースとを備えたシステムのデータベースアクセス方
式において、前記業務プログラムから前記データベース
に書込みや読出しなど各種のデータ操作を行うために出
される要求およびこれらに必要なデータを受け取る要求
・データ入力手段と、前記データベースに関するデータ
構造の情報および前記業務プログラムによる前記データ
ベースへの処理過程の情報を記憶する記憶手段と、前記
要求・データ入力手段からの入力情報および前記記憶手
段からの記憶情報に基づいて前記業務プログラムからの
要求を満たす前記データベースへの一連の命令実行手順
を組立てるフラットアクセス制御手段と、この一連の命
令実行手順に従って前記データベースに対して一連の命
令を送ることにより前記業務プログラムから要求された
データ操作の実行を指示する命令処理手段と、前記命令
処理手段の指示による実行結果の情報を前記業務プログ
ラムに出力するデータ出力手段とを備えることを特徴と
するデータベースアクセス方式。
In a database access method for a system that includes a business program and a database used by the business program, requests issued by the business program to perform various data operations such as writing and reading from the database, and the data necessary for these operations. a request/data input means for receiving the request/data input means; a storage means for storing information on a data structure regarding the database and information on a process of processing the database by the business program; and input information from the request/data input means and the storage means. flat access control means for assembling a series of instruction execution procedures for the database that satisfies a request from the business program based on stored information from the computer; and sending a series of instructions for the database in accordance with the series of instruction execution procedures. A database comprising: an instruction processing means for instructing the execution of a data operation requested by the business program; and a data output means for outputting information on the execution result according to the instructions of the instruction processing means to the business program. Access method.
JP62105076A 1987-04-27 1987-04-27 Data base access system Pending JPS63269224A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62105076A JPS63269224A (en) 1987-04-27 1987-04-27 Data base access system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62105076A JPS63269224A (en) 1987-04-27 1987-04-27 Data base access system

Publications (1)

Publication Number Publication Date
JPS63269224A true JPS63269224A (en) 1988-11-07

Family

ID=14397846

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62105076A Pending JPS63269224A (en) 1987-04-27 1987-04-27 Data base access system

Country Status (1)

Country Link
JP (1) JPS63269224A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03152640A (en) * 1989-11-09 1991-06-28 Oki Electric Ind Co Ltd Data base inquiry processor
US7778955B2 (en) 2005-02-23 2010-08-17 International Business Machines Corporation Database access system and database access method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03152640A (en) * 1989-11-09 1991-06-28 Oki Electric Ind Co Ltd Data base inquiry processor
US7778955B2 (en) 2005-02-23 2010-08-17 International Business Machines Corporation Database access system and database access method

Similar Documents

Publication Publication Date Title
US10042955B2 (en) System and method for non-programmers to dynamically manage multiple sets of XML document data
US6519601B1 (en) Relational database compiled/stored on a memory structure providing improved access through use of redundant representation of data
KR100402913B1 (en) Parallel processing system for traversing a data base
EP0633538A2 (en) Relational database management system
JPH0475170A (en) Data base operation system
JP2644728B2 (en) Data dictionary directory system
EP0167725A2 (en) Dynamic data type conversion system
EP0898753B1 (en) Relational database compiled/stored on a memory structure
JPH0756794A (en) Document managing device
JPS63269224A (en) Data base access system
US7225196B2 (en) Data conversion method and computer system therefor
JPH0465427B2 (en)
JPS63205741A (en) File managing method
JP2837525B2 (en) Derived database processing method
JPS63245720A (en) Data base system
JP2523642B2 (en) Database access optimization method
JPH01282635A (en) Index maintaining system
JPH0822405A (en) Management system for relational data base
JPH08137933A (en) System and method for managing drawing data
JPH0467223A (en) Magnetic tape managing system
Holste et al. The Implementation of a Multi-lingual Database System--multi-backend Database System Interface
JPH01156831A (en) Access control system for table
JPS63214831A (en) Control method for file in work station
JPH06231152A (en) Method for processing business slip
JPH0312337B2 (en)