KR100343163B1 - Multiple database table accessors and methods - Google Patents

Multiple database table accessors and methods Download PDF

Info

Publication number
KR100343163B1
KR100343163B1 KR1019980035238A KR19980035238A KR100343163B1 KR 100343163 B1 KR100343163 B1 KR 100343163B1 KR 1019980035238 A KR1019980035238 A KR 1019980035238A KR 19980035238 A KR19980035238 A KR 19980035238A KR 100343163 B1 KR100343163 B1 KR 100343163B1
Authority
KR
South Korea
Prior art keywords
program
database
database table
command
data block
Prior art date
Application number
KR1019980035238A
Other languages
Korean (ko)
Other versions
KR20000015365A (en
Inventor
박희영
Original Assignee
삼성전자 주식회사
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 삼성전자 주식회사 filed Critical 삼성전자 주식회사
Priority to KR1019980035238A priority Critical patent/KR100343163B1/en
Publication of KR20000015365A publication Critical patent/KR20000015365A/en
Application granted granted Critical
Publication of KR100343163B1 publication Critical patent/KR100343163B1/en

Links

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Software Systems (AREA)

Abstract

본 발명은 다중 데이터베이스 테이블 접근 장치 및 방법에 관한 것으로, 다중 데이터베이스 테이블 접근 장치는 서로 다른 형태의 레코드 구조를 갖는 복수의 테이블을 구비한 데이터베이스; 데이터베이스 테이블에 접근하려는 복수의 프로그램을 구비한 프로그램부; 및 프로그램부의 제1프로그램이 데이터베이스의 테이블에 접근하고자 할 때, 다른 프로그램이 테이블의 데이터 화일을 이미 사용하고 있으면 대기명령을 제1프로그램에 리턴하거나, 테이블의 데이터 화일이 사용중이 아니면 제1프로그램이 생성한 데이터 블록을 분석하고 제1프로그램이 생성한 명령의 수행결과를 제1프로그램에 리턴하는 다중 데이터베이스 테이블 연결부를 포함함을 특징으로한다.The present invention relates to an apparatus and method for accessing multiple database tables, comprising: a database having a plurality of tables having different types of record structures; A program unit having a plurality of programs for accessing a database table; And when the first program of the program unit attempts to access a table in the database, if another program is already using the table's data file, it returns a wait instruction to the first program, or the first program does not use the table's data file. And a multi-database table connection unit for analyzing the generated data block and returning the execution result of the command generated by the first program to the first program.

본 발명에 의하면, 프로그램의 크기를 줄일 수 있으며, 명령과 함께 주어지는 데이터 블록에 의해 데이터베이스 화일의 테이블에 접근하므로 테이블의 레코드 구조와 무관하게 프로그램을 사용할 수 있다.According to the present invention, the size of the program can be reduced, and since the table of the database file is accessed by the data block given with the command, the program can be used regardless of the record structure of the table.

Description

다중 데이터베이스 테이블 접근 장치 및 방법Multiple database table access device and method

본 발명은 다중 데이터베이스 테이블 접근 장치 및 방법에 관한 것으로, 서로 다른 프로그램이 서로 다른 형태의 레코드 구조를 갖는 복수의 데이터베이스 테이블에 접근하는 장치 및 방법에 관한 것이다.The present invention relates to an apparatus and method for accessing multiple database tables, and more particularly, to an apparatus and method for accessing a plurality of database tables having different types of record structures.

도 1은 종래의 데이터베이스 테이블 접근 장치에 대한 구조도이다. 도 1에 따른 장치는 프로그램(100) 및 서로 다른 레코드 구조를 갖는 테이블을 구비한 데이터베이스(110)로 구성된다.1 is a structural diagram of a conventional database table access device. The apparatus according to FIG. 1 consists of a database 110 having a program 100 and tables having different record structures.

프로그램(100)은 데이터베이스(110)의 데이터 화일에 접근시 프로그램 코드에서 직접 테이블의 레코드 구조에 맞게 코딩해야 하고, 테이블의 데이터 화일에접근(읽기, 쓰기 등)하는 경우 원하는 동작을 수행하기위해서 명령을 내린다.When the program 100 accesses the data file of the database 110, the program code should be coded according to the record structure of the table directly in the program code, and in order to perform a desired operation when accessing (reading or writing) the data file of the table. Down.

상술한 바와 같은 종래의 다중 테이블 접근 장치는 다음과 같은 문제점이 있다. 1) 프로그램의 크기가 커진다. 2) 데이터베이스 화일의 테이블이 갖는 레코드 구조에 절대적으로 의존하므로 테이블의 레코드 변경시 프로그램의 코드를 수정해야 한다. 3) 데이터베이스 화일의 테이블이 증감함에 따라서 프로그램을 추가 또는 삭제해야한다. 4) 프로그램간 공유가 불가능하므로 모든 프로그램이 원하는 부분을 작성해야한다.The conventional multi-table access device as described above has the following problems. 1) The size of the program increases. 2) The code of the program must be modified when changing the record of the table because it is absolutely dependent on the record structure of the table in the database file. 3) As the tables in the database file increase and decrease, programs must be added or deleted. 4) It is impossible to share between programs, so all the programs should write the part they want.

본 발명이 이루고자하는 기술적 과제는 여러 프로그램이 공유할 수 있는 다중 데이터베이스 테이블 연결부(Multi-Table Connector, 이하 MTC로 약함)를 구비하여 데이터베이스 화일이 갖는 레코드 구조에 독립적인 프로그램을 구현할 수 있는 다중 데이터베이스 테이블 접근 방법 및 장치를 제공하는데 있다.SUMMARY OF THE INVENTION The present invention provides a multi-database table capable of implementing a program independent of a record structure of a database file by having a multi-table connector (hereinafter referred to as MTC) that can be shared by multiple programs. An approach and apparatus are provided.

도 1은 종래의 데이터베이스 테이블 접근 장치에 대한 구조도이다.1 is a structural diagram of a conventional database table access device.

도 2는 본 발명에 따른 다중 데이터베이스 테이블 접근 장치에 관한 블록도이다.2 is a block diagram of an apparatus for accessing multiple database tables according to the present invention.

도 3은 본 발명에 따른 다중 데이터베이스 테이블 접근 방법에 대한 흐름도이다.3 is a flowchart illustrating a method of accessing multiple database tables in accordance with the present invention.

상기 기술적 과제를 이루기위한, 본 발명은 서로 다른 형태의 레코드 구조를 갖는 복수의 테이블을 구비한 데이터베이스; 상기 데이터베이스 테이블에 접근하려는 복수의 프로그램을 구비한 프로그램부; 및 상기 프로그램부의 제1프로그램이 상기 데이터베이스의 테이블에 접근하고자할 때, 다른 프로그램이 상기 테이블의 데이터 화일을 이미 사용하고 있으면 대기명령을 상기 제1프로그램에 리턴하거나, 상기 테이블의 데이터 화일이 사용중이 아니면 상기 제1프로그램이 생성한 데이터 블록을 분석하고 상기 제1프로그램이 생성한 명령의 수행결과를 상기 제1프로그램에리턴하는 다중 데이터베이스 테이블 연결부를 포함함을 특징으로한다.To achieve the above technical problem, the present invention provides a database having a plurality of tables having different types of record structures; A program unit having a plurality of programs for accessing the database table; And when the first program of the program unit attempts to access a table of the database, if another program is already using the data file of the table, a standby command is returned to the first program, or the data file of the table is in use. Or a multi-database table connection unit for analyzing the data block generated by the first program and returning the execution result of the command generated by the first program to the first program.

상기 기술적 과제를 이루기위한, 본 발명은 서로 다른 형태의 레코드 구조를 갖는 복수의 데이터베이스 테이블에 접근하는 데이터베이스 테이블 접근 방법에 있어서, 제1프로그램이 데이터베이스의 한 테이블에 접근하기위한 명령과 소정 데이터 블록을 생성하여 다중 데이터베이스 테이블 연결부로 전달하는 단계; 다른 프로그램이 상기 테이블의 해당 데이터 화일을 사용하고 있다면, 상기 다중 데이터베이스 테이블 연결부는 상기 제1프로그램에게 대기명령을 리턴하는 단계; 및 상기 다중 데이터베이스 테이블 연결부는 상기 데이터 블록이 상기 테이블의 레코드 구조와 일치하면 상기 데이터 블록에 포함된 명령을 수행하고 그 결과를 상기 제1프로그램에게 리턴하는 단계를 포함함을 특징으로한다.In order to achieve the above technical problem, the present invention provides a database table access method for accessing a plurality of database tables having different types of record structures, comprising: a command and a predetermined data block for accessing a table of a database by a first program; Generating and transferring the generated data to the multiple database table connection; If another program is using the corresponding data file of the table, the multiple database table connection unit returns a wait command to the first program; And if the data block matches the record structure of the table, performing the command included in the data block and returning the result to the first program.

이하에서 첨부된 도면을 참조하여 본 발명의 실시예를 보다 상세히 설명하기로 한다. 도 2는 본 발명에 따른 다중 데이터베이스 테이블 접근 장치에 관한 블록도이다. 도 2에 따른 장치는 복수의 프로그램을 구비하는 프로그램부(200), MTC(202) 및 데이터 화일들을 구비한 데이터베이스(204)를 포함한다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings. 2 is a block diagram of an apparatus for accessing multiple database tables according to the present invention. The apparatus according to FIG. 2 includes a program unit 200 having a plurality of programs, an MTC 202 and a database 204 having data files.

그 동작을 도 3의 흐름도를 참조하여 설명하기로 한다. 도 3은 본 발명에 따른 다중 데이터베이스 테이블 접근 방법에 대한 흐름도이다. 도 3에 따른 방법은 명령 및 데이터 블록 생성단계(300), 다른 프로그램이 해당 테이블의 데이터 화일을 사용중인지를 판단하는 단계(302), 사용중이면 대기명령을 리턴하는 단계(304), 사용중이 아니면 데이터 블록과 테이블의 레코드 구조를 비교하는 단계(306), 명령 수행 단계(308) 및 결과를 리턴하는 단계(310)를 포함한다.The operation will be described with reference to the flowchart of FIG. 3. 3 is a flowchart illustrating a method of accessing multiple database tables in accordance with the present invention. The method according to FIG. 3 comprises a step 300 of generating a command and a data block, a step 302 of determining whether another program is using a data file of the corresponding table, a step 304 of returning a waiting command if in use, or Comparing the record structure of the data block with the table (306), performing the command (308) and returning the result (310).

이를 보다 상세히 설명하면 다음과 같다. 프로그램부(200)의 복수의 프로그램중 제1프로그램이 데이터베이스의 한 테이블의 데이터 화일에 접근하고할 경우, 제1프로그램은 데이터 화일에 접근하기위한 명령과 소정 형식의 데이터 블록을 생성하여 MTC로 전달한다(300단계). 여기서, MTC(202)는 데이터 링크 제어 순서에 따라 두 인접 시스템간에서 데이터를 송수신하거나 데이터 회선상의 전송 오류를 처리하는 데이터연결계층(Data Link Layer)의 형식으로 구성된다. 또한 데이터 블록은 소정 형태의 구조체로서, 테이블 이름, 필드 수 및 필드 타입 등의 정보를 갖는다.This will be described in more detail as follows. When a first program of a plurality of programs of the program unit 200 accesses a data file of a table of a database, the first program generates a command for accessing the data file and a data block of a predetermined format and delivers the data block to the MTC. (Step 300). In this case, the MTC 202 is configured in the form of a data link layer that transmits and receives data between two adjacent systems or processes transmission errors on a data line in a data link control order. In addition, the data block is a structure of a predetermined type and has information such as a table name, the number of fields, and a field type.

MTC(202)는 해당 데이터 화일을 다른 프로그램이 사용하고 있는지를 점검한다(302단계). 다른 프로그램이 이미 사용중이면, MTC(202)는 제1프로그램에 대기명령을 리턴한다(304단계). 사용중이 아니면, MTC(202)는 전달된 데이터 블록을 분석하여 테이블의 레코드 구조와 일치하는지 확인한다(306단계). 일치하면, 명령을 수행하고(308단계) 그 결과를 제1프로그램에 리턴한다(310단계). 일치하지않으면, 그 결과를 제1프로그램에 리턴한다(310단계).The MTC 202 checks whether another program is using the data file (step 302). If another program is already in use, the MTC 202 returns a wait command to the first program (step 304). If not, the MTC 202 analyzes the passed data block to see if it matches the record structure of the table (step 306). If there is a match, the command is executed (step 308) and the result is returned to the first program (step 310). If it does not match, the result is returned to the first program (step 310).

한편, 상술한 본 발명의 다중 데이터베이스 테이블 접근 방법에 대한 실시예는 컴퓨터에서 실행될 수 있는 프로그램으로 작성가능하다. 그리고 컴퓨터에서 사용되는 매체로부터 상기 프로그램을 동작시키는 범용 디지털 컴퓨터에서 구현될 수 있다. 상기 매체는 마크네틱 저장매체(예: 롬, 플로피디스크, 하드디스크 등), 광학적 판독매체(예:CD-ROM 등) 및 캐리어 웨이브(예: 인터넷을 통해 전송)와 같은 저장매체를 포함한다.Meanwhile, the above-described embodiment of the method for accessing multiple database tables of the present invention can be written as a program that can be executed on a computer. And it can be implemented in a general-purpose digital computer for operating the program from a medium used in the computer. The medium includes storage media such as a magnetic storage medium (e.g., ROM, floppy disk, hard disk, etc.), an optical reading medium (e.g., CD-ROM, etc.) and a carrier wave (e.g., transmitted over the Internet).

상기 기록매체는 적어도 서로 다른 형태의 레코드 구조를 갖는 복수의 데이터베이스 테이블에 접근하는 데이터베이스 테이블 접근 방법에 있어서, 제1프로그램이 데이터베이스의 한 테이블에 접근하기위한 명령과 소정 데이터 블록을 생성하여 다중 데이터베이스 테이블 연결부로 전달하는 단계; 다른 프로그램이 상기 테이블의 해당 데이터 화일을 사용하고 있다면, 상기 다중 데이터베이스 테이블 연결부는 상기 제1프로그램에게 대기명령을 리턴하는 단계; 및 상기 다중 데이터베이스 테이블 연결부는 상기 데이터 블록이 상기 테이블의 레코드 구조와 일치하면 상기 데이터 블록에 포함된 명령을 수행하고 그 결과를 상기 제1프로그램에게 리턴하는 단계를 컴퓨터에서 실행할 수 있는 프로그램 코드를 저장한다. 그리고 상기 다중 데이터베이스 테이블 연결부는 데이터연결계층의 형식으로 구성되는 프로그램 코드를 구비한다.In the method of accessing a database table in which the recording medium accesses a plurality of database tables having a record structure of at least a different type, the first program generates a command and a predetermined data block for accessing one table of the database, thereby generating the multiple database table. Delivering to a connection; If another program is using the corresponding data file of the table, the multiple database table connection unit returns a wait command to the first program; And if the data block matches the record structure of the table, the multi-database table connection unit stores program code that executes a command included in the data block and returns the result to the first program. do. The multiple database table connection unit includes program code configured in the form of a data connection layer.

그리고 본 발명을 구현하기 위한 기능적인(functional) 프로그램, 코드 및 코드 세그먼트들은 본 발명이 속하는 기술분야의 프로그래머들에 의해 용이하게 추론될 수 있다.And functional programs, codes and code segments for implementing the present invention can be easily inferred by programmers in the art to which the present invention belongs.

본 발명에 의하면, 1) 프로그램의 크기를 줄일 수 있다. 2) 명령과 함께 주어지는 데이터 블록에 의해 데이터베이스 화일의 테이블에 접근하므로 테이블의 레코드 구조와 무관하게 프로그램을 사용할 수 있다. 3) 데이터베이스 화일의 테이블이 증감해도 프로그램의 추가 또는 삭제없이 사용할 수 있다. 4) 여러 프로그램이 공유할 수 있다.According to the present invention, 1) the size of the program can be reduced. 2) Because the data block given with the command accesses the table in the database file, the program can be used regardless of the table record structure. 3) Even if tables in database files are increased or decreased, they can be used without adding or deleting programs. 4) Multiple programs can share.

Claims (3)

서로 다른 형태의 레코드 구조를 갖는 복수의 테이블을 구비한 데이터베이스;A database having a plurality of tables having different types of record structures; 상기 데이터베이스 테이블에 접근하려는 복수의 프로그램을 구비한 프로그램부; 및A program unit having a plurality of programs for accessing the database table; And 상기 프로그램부로부터 소정 명령과 데이터 블록을 전달받아서 상기 데이터 블록을 분석하고 분석결과에 해당하는 데이터베이스 테이블에 접근하여 상기 명령을 수행하며 그 결과를 상기 프로그램부로 리턴하되, 상기 데이터 블록의 구조가 상기 데이터베이스 테이블의 구조와 일치하지 않아도되는 다중 데이터베이스 테이블 연결부를 포함함을 특징으로하는 다중 데이블 접근 장치.Receives a predetermined command and data block from the program unit, analyzes the data block, accesses a database table corresponding to an analysis result, executes the command, and returns the result to the program unit, wherein the structure of the data block is the database. Multiple table access devices, comprising multiple database table connections that do not have to match the structure of the table. 서로 다른 형태의 레코드 구조를 갖는 복수의 데이터베이스 테이블에 접근하는 데이터베이스 테이블 접근 방법에 있어서,In a database table access method for accessing a plurality of database tables having different types of record structures, 제1프로그램이 상기 복수의 데이터베이스 테이블중 하나에 접근하기위한 명령과 소정 데이터 블록을 생성하여 다중 데이터베이스 테이블 연결부로 전달하는 단계;Generating, by a first program, a command for accessing one of the plurality of database tables and a predetermined data block, and passing the same to a multiple database table connection unit; 다른 프로그램이 상기 테이블의 해당 데이터 화일을 사용하고 있다면, 상기 다중 데이터베이스 테이블 연결부는 상기 제1프로그램에게 대기명령을 리턴하는 단계; 및If another program is using the corresponding data file of the table, the multiple database table connection unit returns a wait command to the first program; And 상기 다중 데이터베이스 테이블 연결부는, 그 구조에 있어서 상기 데이터베이스 테이블 구조와 일치하지 않아도되는 상기 데이터 블록을 분석하고 분석결과에 해당하는 데이터베이스 테이블에 접근하여 상기 명령을 수행하고 그 결과를 상기 제1프로그램으로 리턴하는 단계를 포함함을 특징으로하는 다중 테이블 접근 방법.The multiple database table connection unit analyzes the data block that does not have to match the database table structure in the structure, accesses the database table corresponding to the analysis result, executes the command, and returns the result to the first program. And a multi-table approach. 제2항에 있어서, 상기 다중 데이터베이스 테이블 연결부는The method of claim 2, wherein the multiple database table connection unit 데이터연결계층의 형식으로 구성됨을 특징으로하는 다중 테이블 접근 방법.Multi-table approach characterized in that the data connection layer is formed.
KR1019980035238A 1998-08-28 1998-08-28 Multiple database table accessors and methods KR100343163B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019980035238A KR100343163B1 (en) 1998-08-28 1998-08-28 Multiple database table accessors and methods

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019980035238A KR100343163B1 (en) 1998-08-28 1998-08-28 Multiple database table accessors and methods

Publications (2)

Publication Number Publication Date
KR20000015365A KR20000015365A (en) 2000-03-15
KR100343163B1 true KR100343163B1 (en) 2002-09-12

Family

ID=19548740

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019980035238A KR100343163B1 (en) 1998-08-28 1998-08-28 Multiple database table accessors and methods

Country Status (1)

Country Link
KR (1) KR100343163B1 (en)

Also Published As

Publication number Publication date
KR20000015365A (en) 2000-03-15

Similar Documents

Publication Publication Date Title
US7457933B2 (en) Methods and systems for archiving data
EP1559039B1 (en) Methods and systems for controlling access to a data object by means of locks
US20030065901A1 (en) System for conserving metadata about data snapshots
JPS58155464A (en) Detection of sequential data stream
KR20020080458A (en) A method for repartitioning physical sectors of a storage system with use of virtual disc drives, a data processing apparatus and a data storage apparatus
US6882795B1 (en) Image mastering API
US7058692B2 (en) Computer, computer system, and data transfer method
US7756813B2 (en) Electronic data structure for controlling access to data objects using locks
JPH03160534A (en) Access control system for shared file
US6993636B2 (en) Subsystem and method of organizing multiplexed data
US7761630B2 (en) Application programming interface for fusion message passing technology
KR100343163B1 (en) Multiple database table accessors and methods
JP2005108239A (en) Storage system for storing data in hierarchical data structure
US20060149696A1 (en) Method and systems for controlling access to a data object by means of locks
US6449705B1 (en) Method and apparatus for improving performance of drive linking through use of hash tables
US7949632B2 (en) Database-rearranging program, database-rearranging method, and database-rearranging apparatus
KR102122968B1 (en) System and method for analyzing of application installation information
US20080027956A1 (en) Distributed hierarchical cache
US6266739B1 (en) Method and apparatus for ultra high-speed formatting of a disk drive volume
JP2008191796A (en) Analysis device, analysis method and program
KR100485332B1 (en) Tape data storage system and method thereof and media that can record computer program sources for method thereof
US20050007811A1 (en) Storage device and data conversion program
US7302452B2 (en) Method and apparatus for handling requests for files in a data processing system
GB2162992A (en) A method of recording a computer program
JPH02151944A (en) Data processor

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20080529

Year of fee payment: 7

LAPS Lapse due to unpaid annual fee