JPH08305621A - Data base access sharing system - Google Patents

Data base access sharing system

Info

Publication number
JPH08305621A
JPH08305621A JP7108486A JP10848695A JPH08305621A JP H08305621 A JPH08305621 A JP H08305621A JP 7108486 A JP7108486 A JP 7108486A JP 10848695 A JP10848695 A JP 10848695A JP H08305621 A JPH08305621 A JP H08305621A
Authority
JP
Japan
Prior art keywords
program
management system
database management
path
access
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
JP7108486A
Other languages
Japanese (ja)
Inventor
Koji Tokumaru
浩二 徳丸
Toshihiro Motoda
敏浩 元田
Nobuharu Sato
信春 佐藤
Hirohiko Kurokawa
裕彦 黒川
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP7108486A priority Critical patent/JPH08305621A/en
Publication of JPH08305621A publication Critical patent/JPH08305621A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To provide a data base access sharing system which manages the transactions and the data operation state, i.e., the state of a cursor, etc., in a data base management system and enables plural application programs to share and have accesses to the state of a data base. CONSTITUTION: A server machine 20 is provided with a data base management system 21, and a memory of a client machine 10 is provided with the application programs 11 and 15, a server access program 12, a path management program 13 and a path management table 14. Then the programs 11 and 15 communicate with the program 12 and share the communication channel used for a data base management system 21. Thus the state of the system 21 can be shared by both programs 11 and 15.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、所謂クライアント/サ
ーバ型システムにおいてサーバのデータベース管理シス
テムにクライアントからアクセスを行うデータベースア
クセス共有方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a database access sharing system in which a client accesses a database management system of a server in a so-called client / server type system.

【0002】[0002]

【従来の技術】従来は応用プログラムからデータベース
管理システムを利用する場合は、データベース管理シス
テムと通信を行う機能は応用プログラムに直接組み込ま
れていた。図7に従来の方式によるデータベース管理シ
ステムへのアクセス方式を示す。応用プログラム11と
応用プログラム15はそれぞれデータベース管理システ
ム21へアクセスを行う。データベース管理システム2
1では応用プログラム11と応用プログラム15からの
アクセスの状態をそれぞれ個別に保持している。データ
ベース管理システム21へのアクセスの状態は個々の応
用プログラムのプログラムロジック等によって保持され
ている。
2. Description of the Related Art Conventionally, when using a database management system from an application program, the function of communicating with the database management system was directly incorporated in the application program. FIG. 7 shows a conventional method for accessing a database management system. The application program 11 and the application program 15 each access the database management system 21. Database management system 2
In No. 1, the access states from the application program 11 and the application program 15 are individually held. The state of access to the database management system 21 is held by the program logic of each application program.

【0003】[0003]

【発明が解決しようとする課題】従来の方式では、複数
の応用プログラムが同一のデータベース管理システムを
利用する場合であっても、トランザクション等のデータ
ベース管理システムの状態を複数の応用プログラムで共
有することができないという問題がある。
According to the conventional method, even if a plurality of application programs use the same database management system, the states of the database management system such as transactions are shared by the plurality of application programs. There is a problem that you can not.

【0004】本発明は、上記に鑑みてなされたもので、
その目的とするところは、データベース管理システムの
トランザクションやデータ操作の状態(所謂、カーソ
ル)等の状態を管理して、複数の応用プログラムがデー
タベースの状態を共有してアクセスし得るデータベース
アクセス共有方式を提供することにある。
The present invention has been made in view of the above,
Its purpose is to manage the state of transactions and data operations of the database management system (so-called cursor), and to provide a database access sharing method that allows multiple application programs to share and access the state of the database. To provide.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するた
め、請求項1記載の本発明は、業務処理を行う複数の応
用プログラムで構成されるシステムにおいて、データベ
ース管理システムと、該データベース管理システムにア
クセスするための機能を有するサーバアクセスプログラ
ムとを有し、前記複数の応用プログラムが前記サーバア
クセスプログラムと通信を行い、前記データベース管理
システムへの通信路を共有することにより、データベー
ス管理システムの状態を共有することを要旨とする。
To achieve the above object, the present invention according to claim 1 provides a database management system and a database management system in a system composed of a plurality of application programs for performing business processing. A server access program having a function for accessing, wherein the plurality of application programs communicate with the server access program and share a communication path to the database management system, thereby changing the status of the database management system. The point is to share.

【0006】また、請求項2記載の本発明は、業務処理
を行う複数の応用プログラムで構成されるシステムにお
いて、データベース管理システムと、該データベース管
理システムにアクセスするための機能を有するサーバア
クセスプログラムとを有し、前記複数の応用プログラム
が前記サーバアクセスプログラムと通信を行い、前記デ
ータベース管理システムへの通信路を共有することによ
り、データベース管理システムの状態を共有し、前記複
数の応用プログラムのある応用プログラムが1または複
数のサーバアクセスプログラムを経由して前記データベ
ース管理システムにアクセスするとともに、他の応用プ
ログラムが起動する場合に、応用プログラムとサーバア
クセスプログラムとの間、または応用プログラム同士の
アクセス経路であるパスの番号と当該パスの両端のプロ
グラム名を保持したパス管理テーブルを使用して、複数
の応用プログラムが前記データベース管理システムを共
有することを要旨とする。
The present invention according to claim 2 is, in a system including a plurality of application programs for performing business processing, a database management system, and a server access program having a function for accessing the database management system. The plurality of application programs communicate with the server access program and share a communication path to the database management system, thereby sharing the state of the database management system, and an application of the plurality of application programs. When the program accesses the database management system via one or more server access programs and another application program is started, the access path is between the application program and the server access program or between the application programs. Ah Using a path management table which holds the program name of the ends of the number and the path of the path, a plurality of application programs is summarized in that sharing the database management system.

【0007】[0007]

【作用】請求項1記載の本発明にあっては、複数の応用
プログラムがサーバアクセスプログラムと通信を行い、
データベース管理システムへの通信路を共有することに
より、データベース管理システムの状態を共有してい
る。
In the present invention according to claim 1, a plurality of application programs communicate with the server access program,
The state of the database management system is shared by sharing the communication path to the database management system.

【0008】また、請求項2記載の本発明にあっては、
複数の応用プログラムがサーバアクセスプログラムと通
信を行い、データベース管理システムへの通信路を共有
することにより、データベース管理システムの状態を共
有し、ある応用プログラムが1または複数のサーバアク
セスプログラムを経由してデータベース管理システムに
アクセスするとともに、他の応用プログラムが起動する
場合に、応用プログラムとサーバアクセスプログラムと
の間、または応用プログラム同士のアクセス経路である
パスの番号と当該パスの両端のプログラム名を保持した
パス管理テーブルを使用して、複数の応用プログラムが
データベース管理システムを共有している。
According to the present invention of claim 2,
A plurality of application programs communicate with the server access program and share a communication path to the database management system, thereby sharing the state of the database management system, and an application program passes through one or more server access programs. Holds the number of the path that is the access route between the application program and the server access program, or the access path between the application programs, and the program names at both ends of the path when the database management system is accessed and other application programs are started. A plurality of application programs share a database management system using the path management table.

【0009】[0009]

【実施例】以下、図面を用いて本発明の実施例を説明す
る。
Embodiments of the present invention will be described below with reference to the drawings.

【0010】図1は、本発明の一実施例に係るデータベ
ースアクセス共有方式の構成を示す図である。同図にお
いて、応用プログラム11および応用プログラム15は
サーバアクセスプログラム12を介してデータベース管
理システム21へアクセスする。これらのアクセスを、
データベース管理システム21ではサーバアクセスプロ
グラム12からのアクセスの要求として同一の状態とし
て保持している。サーバアクセスプログラム12はデー
タベース管理システム21のアクセスの状態を管理す
る。
FIG. 1 is a diagram showing the configuration of a database access sharing system according to an embodiment of the present invention. In the figure, the application programs 11 and 15 access the database management system 21 via the server access program 12. Access these
The database management system 21 holds the same state as the access request from the server access program 12. The server access program 12 manages the access status of the database management system 21.

【0011】次に、図2〜図6に示すシステム構成図を
参照して、図1に示す実施例の作用を説明する。
Next, the operation of the embodiment shown in FIG. 1 will be described with reference to the system configuration diagrams shown in FIGS.

【0012】図2は図1に示すシステム構成の初期状態
を示す図である。同図に示すように、サーバマシン20
はデータベース管理システム21を有し、クライアント
マシン10上のメモリには初期状態では応用プログラム
11,15、パス管理プログラム13、および空きのパ
ス管理テーブル14のみが設けられている。
FIG. 2 is a diagram showing an initial state of the system configuration shown in FIG. As shown in FIG.
Has a database management system 21, and the memory on the client machine 10 is provided with only the application programs 11 and 15, the path management program 13, and the empty path management table 14 in the initial state.

【0013】図2に示す初期状態から、図3〜図6に示
すように、応用プログラム11,15が同一サーバアク
セスプログラム12を介してデータベース管理システム
21を利用できる状態になるまでのデータベースアクセ
ス共有方式の動作を説明する。
Database access sharing from the initial state shown in FIG. 2 to the state where the application programs 11 and 15 can use the database management system 21 via the same server access program 12 as shown in FIGS. 3 to 6. The operation of the method will be described.

【0014】ステップS1 応用プログラム11がパス
管理プログラム13に対し、データベース管理システム
21に接続するように要求する。
Step S1 The application program 11 requests the path management program 13 to connect to the database management system 21.

【0015】ステップS2 パス管理プログラム13は
サーバアクセスプログラム12を起動する。
Step S2 The path management program 13 activates the server access program 12.

【0016】ステップS3 サーバアクセスプログラム
12はサーバマシン20のデータベース管理システム2
1に接続処理を行う。
Step S3 The server access program 12 is the database management system 2 of the server machine 20.
Connect processing to 1.

【0017】ステップS4 パス管理プログラム13は
一意なパス番号001を生成し、パス管理テーブル14
にパス番号001とサーバアクセスプログラム12、応
用プログラム11等のデータベース管理システムのアク
セスパスに必要な情報を追加する。
Step S4 The path management program 13 generates a unique path number 001, and the path management table 14
Then, information necessary for the access number of the database management system such as the path number 001 and the server access program 12 and the application program 11 is added.

【0018】ステップS5 パス管理プログラム13
は、パス番号001を応用プログラム11に返却する
(図3)。
Step S5 Path management program 13
Returns the pass number 001 to the application program 11 (FIG. 3).

【0019】ステップS6 応用プログラム11はパス
管理テーブル14からパス番号001に対応するサーバ
アクセスプログラム12を取得し、サーバアクセスプロ
グラム12を介してデータベース管理システム21にア
クセスする。
Step S6 The application program 11 acquires the server access program 12 corresponding to the path number 001 from the path management table 14 and accesses the database management system 21 via the server access program 12.

【0020】ステップS7 応用プログラム11はパス
番号001のパスの2重化の要求をパス管理プログラム
13に対して行う。
Step S7 The application program 11 requests the path management program 13 to duplicate the path with the path number 001.

【0021】ステップS8 パス管理プログラム13は
一意なパス番号002を生成し、パス管理テーブル14
上の与えられたパス番号001の情報からサーバアクセ
スプログラム12と応用プログラム11の情報を取得し
てパス番号002とともにパス管理テーブル14に追加
する。
Step S8 The path management program 13 generates a unique path number 002, and the path management table 14
Information on the server access program 12 and the application program 11 is acquired from the information on the given path number 001 and added to the path management table 14 together with the path number 002.

【0022】ステップS9 パス管理プログラム13は
応用プログラム11に2重化されたパス番号002を返
却する(図4)。
Step S9 The path management program 13 returns the duplicated path number 002 to the application program 11 (FIG. 4).

【0023】ステップS10 応用プログラム11はパ
ス番号002を応用プログラム15に通知する。
Step S10 The application program 11 notifies the application program 15 of the path number 002.

【0024】ステップS11 応用プログラム15はパ
ス管理プログラム13に対してパス番号002の譲渡を
要求する。
Step S11 The application program 15 requests the path management program 13 to transfer the path number 002.

【0025】ステップS12 パス管理プログラム13
はパス管理テーブル14中のパス番号002の情報にあ
る応用プログラム11を変更し応用プログラム15と
し、要求の完了を応用プログラム15に通知する(図
5)。
Step S12 Path management program 13
Changes the application program 11 in the information of the path number 002 in the path management table 14 to the application program 15 and notifies the application program 15 of the completion of the request (FIG. 5).

【0026】ステップS13 応用プログラム15はパ
ス管理テーブル14からパス番号002に対応するサー
バアクセスプログラム12を取得し、サーバアクセスプ
ログラム12を介してデータベース管理システム21に
アクセスする。
Step S13 The application program 15 acquires the server access program 12 corresponding to the path number 002 from the path management table 14 and accesses the database management system 21 via the server access program 12.

【0027】ステップS14 応用プログラム11がパ
ス管理プログラム13に対し、データベース管理システ
ム22に新たに接続するように要求する。
Step S14 The application program 11 requests the path management program 13 to newly connect to the database management system 22.

【0028】ステップS15 パス管理プログラム13
は外部記憶装置(図示せず)もしくはクライアントマシ
ン10のメモリにあるサーバアクセスプログラム16を
起動する。
Step S15 Path management program 13
Activates the server access program 16 in an external storage device (not shown) or the memory of the client machine 10.

【0029】ステップS16 サーバアクセスプログラ
ム16はサーバマシン20のデータベース管理システム
22に接続処理を行う。
Step S16 The server access program 16 performs a connection process to the database management system 22 of the server machine 20.

【0030】ステップS17 パス管理プログラム13
は一意なパス番号003を生成し、パス管理テーブル1
4にパス番号003とサーバアクセスプログラム16、
応用プログラム11等のデータベース管理システムのア
クセスパスに必要な情報を追加する。
Step S17 Path management program 13
Generates a unique path number 003, and the path management table 1
4, pass number 003 and server access program 16,
Necessary information is added to the access path of the database management system such as the application program 11.

【0031】ステップS18 パス管理プログラム13
は、パス番号003を応用プログラム11に返却する
(図6)。
Step S18 Path management program 13
Returns the pass number 003 to the application program 11 (FIG. 6).

【0032】以上説明したように、本実施例によれば、
応用プログラム間でトランザクションやカーソルなどの
データベース管理システムの状態が共有できるため、柔
軟な応用プログラムの構成が可能となる。また、複数の
応用プログラムが同一のデータベース管理システムにア
クセスする場合に、データベース管理システムとの接続
処理が一回で済むため、接続に要する時間を短縮するこ
とができる。
As described above, according to this embodiment,
Since the states of the database management system such as transactions and cursors can be shared between application programs, flexible application program configuration is possible. Further, when a plurality of application programs access the same database management system, the connection processing with the database management system only needs to be performed once, so that the time required for the connection can be shortened.

【0033】[0033]

【発明の効果】以上、説明したように、本発明のデータ
ベースアクセス共有方式によれば、データベース管理シ
ステムのトランザクションやデータ操作の状態等を管理
して、複数の応用プログラムがデータベースの状態を共
有してアクセスすることが可能となる。
As described above, according to the database access sharing method of the present invention, the states of transactions and data operations of the database management system are managed so that a plurality of application programs share the state of the database. Can be accessed.

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

【図1】本発明の一実施例に係るデータベースアクセス
共有方式の構成を示す図である。
FIG. 1 is a diagram showing a configuration of a database access sharing system according to an embodiment of the present invention.

【図2】図1のデータベースアクセス共有方式の初期状
態を示すシステム構成図である。
FIG. 2 is a system configuration diagram showing an initial state of the database access sharing system of FIG.

【図3】図1のデータベースアクセス共有方式において
応用プログラムがデータベースに接続された状態を示す
システム構成図である。
3 is a system configuration diagram showing a state in which an application program is connected to a database in the database access sharing system of FIG.

【図4】図1のデータベースアクセス共有方式において
応用プログラムがパス番号001の2重化の依頼を行っ
た状態を示すシステム構成図である。
4 is a system configuration diagram showing a state in which an application program requests duplication of a path number 001 in the database access sharing system of FIG.

【図5】図1のデータベースアクセス共有方式において
応用プログラムがパス番号002を譲渡された状態を示
すシステム構成図である。
5 is a system configuration diagram showing a state in which an application program is assigned a pass number 002 in the database access sharing system of FIG.

【図6】図1のデータベースアクセス共有方式において
応用プログラムが新しくデータベースに接続を行った状
態を示すシステム構成図である。
FIG. 6 is a system configuration diagram showing a state in which an application program newly connects to a database in the database access sharing system of FIG.

【図7】従来のデータベース管理システムへのアクセス
方式を示す図である。
FIG. 7 is a diagram showing an access method to a conventional database management system.

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

11,15 応用プログラム 12 サーバアクセスプログラム 13 パス管理プログラム 14 パス管理テーブル 21 データベース管理システム 11, 15 Application program 12 Server access program 13 Path management program 14 Path management table 21 Database management system

───────────────────────────────────────────────────── フロントページの続き (72)発明者 黒川 裕彦 東京都千代田区内幸町1丁目1番6号 日 本電信電話株式会社内 ─────────────────────────────────────────────────── ─── Continued Front Page (72) Inventor Hirohiko Kurokawa 1-1-6 Uchisaiwaicho, Chiyoda-ku, Tokyo Nihon Telegraph and Telephone Corporation

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 業務処理を行う複数の応用プログラムで
構成されるシステムにおいて、 データベース管理システムと、該データベース管理シス
テムにアクセスするための機能を有するサーバアクセス
プログラムとを有し、前記複数の応用プログラムが前記
サーバアクセスプログラムと通信を行い、前記データベ
ース管理システムへの通信路を共有することにより、デ
ータベース管理システムの状態を共有することを特徴と
するデータベースアクセス共有方式。
1. A system comprising a plurality of application programs for performing business processing, comprising: a database management system; and a server access program having a function for accessing the database management system. A method of sharing a database access system, characterized in that the state of the database management system is shared by communicating with the server access program and sharing a communication path to the database management system.
【請求項2】 業務処理を行う複数の応用プログラムで
構成されるシステムにおいて、 データベース管理システムと、該データベース管理シス
テムにアクセスするための機能を有するサーバアクセス
プログラムとを有し、前記複数の応用プログラムが前記
サーバアクセスプログラムと通信を行い、前記データベ
ース管理システムへの通信路を共有することにより、デ
ータベース管理システムの状態を共有し、前記複数の応
用プログラムのある応用プログラムが1または複数のサ
ーバアクセスプログラムを経由して前記データベース管
理システムにアクセスするとともに、他の応用プログラ
ムが起動する場合に、応用プログラムとサーバアクセス
プログラムとの間、または応用プログラム同士のアクセ
ス経路であるパスの番号と当該パスの両端のプログラム
名を保持したパス管理テーブルを使用して、複数の応用
プログラムが前記データベース管理システムを共有する
ことを特徴とするデータベースアクセス共有方式。
2. A system including a plurality of application programs for performing business processing, comprising a database management system and a server access program having a function for accessing the database management system, wherein the plurality of application programs Communicate with the server access program and share a communication path to the database management system to share the state of the database management system, and one application program having the plurality of application programs is one or a plurality of server access programs. When the database management system is accessed via the server and another application program is started, the path number between the application program and the server access program or the access path between the application programs and both ends of the path. Using a path management table which holds the program name, database access sharing scheme in which a plurality of application programs, characterized in that sharing the database management system.
JP7108486A 1995-05-02 1995-05-02 Data base access sharing system Pending JPH08305621A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7108486A JPH08305621A (en) 1995-05-02 1995-05-02 Data base access sharing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7108486A JPH08305621A (en) 1995-05-02 1995-05-02 Data base access sharing system

Publications (1)

Publication Number Publication Date
JPH08305621A true JPH08305621A (en) 1996-11-22

Family

ID=14485987

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7108486A Pending JPH08305621A (en) 1995-05-02 1995-05-02 Data base access sharing system

Country Status (1)

Country Link
JP (1) JPH08305621A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02230373A (en) * 1988-05-19 1990-09-12 Hitachi Ltd Data base processing system
JPH05108452A (en) * 1991-10-15 1993-04-30 Oki Electric Ind Co Ltd Data base management system
JPH0765019A (en) * 1993-08-30 1995-03-10 Hitachi Ltd Data base service method and service controller using same method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02230373A (en) * 1988-05-19 1990-09-12 Hitachi Ltd Data base processing system
JPH05108452A (en) * 1991-10-15 1993-04-30 Oki Electric Ind Co Ltd Data base management system
JPH0765019A (en) * 1993-08-30 1995-03-10 Hitachi Ltd Data base service method and service controller using same method

Similar Documents

Publication Publication Date Title
US7644061B1 (en) Managing resource indexes in a networking environment
KR20020090520A (en) Parallel logging method of transaction processing system
JPH10222407A (en) Method for processing multiple data base transactions in same process for reducing process overhead and redundant retrieval from data base server
JPH01251258A (en) Shared area managing system in network system
CN110399383A (en) Applied to the data processing method of server, device, calculate equipment, medium
CN108319623A (en) A kind of fast resampling method, apparatus and data-base cluster
US6058425A (en) Single server access in a multiple TCP/IP instance environment
CN109684270A (en) Database filing method, apparatus, system, equipment and readable storage medium storing program for executing
CN115470156A (en) RDMA-based memory use method, system, electronic device and storage medium
JPH0392942A (en) Storing method and accessing method for file
JPH08305621A (en) Data base access sharing system
JPS63289657A (en) Common file access system
CN109254870A (en) The method and apparatus of data backup
JP2693773B2 (en) Exclusive control method for drawing information
WO2022057698A1 (en) Efficient bulk loading multiple rows or partitions for single target table
JP2747090B2 (en) Manufacturing process management system
JP3055498B2 (en) Database search method
JPH03252756A (en) Data managing system
CN116226274A (en) Metadata synchronization method, distributed database system, and storage medium
JPS63305438A (en) Exclusive control system for files to be used in common between plural host computers
JPH07262118A (en) Information utilization system
JPH04153844A (en) Data base update system
JPH02114343A (en) Common memory control system
JPH0387941A (en) Decentralized data base processing system
JPH05334163A (en) Exclusive control system for shared memory between plural systems