KR100243169B1 - Database management system having automatic database connection facility using log file and automatic connection method thereof - Google Patents
Database management system having automatic database connection facility using log file and automatic connection method thereof Download PDFInfo
- Publication number
- KR100243169B1 KR100243169B1 KR1019960043109A KR19960043109A KR100243169B1 KR 100243169 B1 KR100243169 B1 KR 100243169B1 KR 1019960043109 A KR1019960043109 A KR 1019960043109A KR 19960043109 A KR19960043109 A KR 19960043109A KR 100243169 B1 KR100243169 B1 KR 100243169B1
- Authority
- KR
- South Korea
- Prior art keywords
- database
- log file
- immediately before
- used immediately
- program
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1471—Saving, restoring, recovering or retrying involving logging of persistent data for recovery
Abstract
본 발명은 데이터베이스관리시스템에 있어서 로그 파일을 이용한 데이터베이스 연결 장치 및 방법에 관한 것으로서, 데이터베이스 연결 장치는 프로그램 종료시 로그 파일에 직전에 사용한 데이터베이스에 연결하는데 필요한 정보를 저장하는 로그 파일 생성부; 프로그램 기동시 로그 파일에서 데이터베이스에 연결하는데 필요한 정보를 읽어들여 이로부터 직전에 사용한 데이터베이스에 연결하는 데이터베이스 연결부를 포함함을 특징으로 한다. 데이터베이스 연결 방법은 직전에 사용한 데이터베이스에 연결하는데 필요한 정보를 로그 파일에 저장하는 단계; 프로그램 기동시에 로그 파일에서 데이터베이스에 연결하는데 필요한 정보를 읽어들이는 단계; 데이터베이스에 연결하는데 필요한 정보를 이용하여 데이터베이스에 직접 연결하는 단계를 포함함을 특징으로 한다.The present invention relates to a database connection apparatus and method using a log file in a database management system, the database connection apparatus comprising: a log file generation unit for storing information necessary for connecting to a database used immediately before a log file at the time of program termination; And a database connection unit for reading the information necessary for connecting to the database from the log file when the program is started and connecting the database to the database used immediately before. The database connection method includes the steps of storing information necessary for connecting to the database used immediately before in a log file; Reading the information needed to connect to the database from the log file at program startup; And directly connecting to the database using information necessary for connection to the database.
본 발명에 의하면, 데이터베이스관리시스템을 사용함에 있어 직전에 사용했던 데이터베이스에 바로 연결되므로 사용자는 데이터베이스를 선택하는 번거로운 작업을 하지 않아도 되며, 프로그램의 상세 정보가 숨겨지므로 초보자들도 쉽게 데이터베이스관리시스템을 기동할 수 있게 된다.According to the present invention, since the database management system is directly connected to the database used immediately before, the user does not have to carry out cumbersome work of selecting the database, and detailed information of the program is hidden, so even novice users can easily operate the database management system .
Description
본 발명은 데이터베이스관리시스템(DBMS:DataBase Management System)에 있어서 데이터베이스를 접속하는 장치 및 방법에 관한 것으로서, 특히 로그 파일을 이용하여 데이터베이스에 자동으로 연결하는 장치 및 방법에 관한 것이다.The present invention relates to an apparatus and method for connecting a database in a database management system (DBMS), and more particularly, to an apparatus and method for automatically connecting to a database using a log file.
통상 사용자들이 데이터베이스관리시스템을 사용하여 데이터베이스에 연결할 때 거의 모든 경우 직전에 사용한 데이터베이스와 연결하여 작업을 진행하고 있다. 그러나, 기존의 데이터베이스관리시스템은 프로그램을 기동한 후 사용자가 원하는 데이터베이스를 다시 선택하여야만 그 이후의 작업을 계속 진행할 수 있도록 하여, 사용자는 이전에 사용한 데이터베이스와 같은 데이터베이스를 선택하는 경우에도 데이터베이스관리시스템의 계속적인 진행을 위하여 항상 추가의 조작을 하여야만 한다.Typically, when users connect to a database using a database management system, almost all of them are working with the database they just used. However, the existing database management system allows the user to select a desired database after the program is started, so that the user can continue the subsequent operation. Therefore, even if the user selects the same database as the previously used database, You must always do additional operations to keep going.
도 1은 종래기술에 의한 데이터베이스관리시스템에서 데이터베이스 연결 모듈의 시간적 흐름에 따른 순서도를 도시한 것으로서, 이에 의하면 프로그램이 기동된 후(100단계) 사용자는 데이터베이스를 선택하는 번거로운 작업(110단계)을 하여야만 선택된 데이터베이스에 연결(120단계)되어 데이터베이스 관련 작업들을 수행할 수 있게 된다.FIG. 1 is a flowchart illustrating a temporal flow of a database connection module in a database management system according to the related art. According to the flowchart, after a program is activated (operation 100), the user must perform a cumbersome operation The selected database is connected (step 120) and the database related operations can be performed.
본 발명은 상기한 문제점을 해결하기 위하여 창작된 것으로서, 데이터베이스관리시스템을 사용함에 있어서 프로그램을 종료한 후 다시 사용할 때 종료시 사용한 데이터베이스를 다시 사용하는 경우가 거의 대부분을 차지하는 것에 착안한 것이다.SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and it is a general object of the present invention that a database management system is used to reuse a database used at the time of termination when a program is terminated.
따라서, 본 발명은 프로그램의 종료시 현재 사용중인 데이터베이스 소스명(DataBase Source Name)과 사용자 식별자(User ID), 패스워드(Password)를 해당 프로그램의 로그 파일(Log File)에 기록한 후 해당 프로그램을 다시 기동할 때 로그 파일을 참조하여 이전에 사용한 데이터베이스에 자동 연결하도록 함으로써, 데이터베이스관리시스템의 수행을 간편하게 하고 데이터베이스관리시스템의 구조에 대해 잘 알지 못하는 초보자들도 쉽게 데이터베이스관리시스템을 이용할 수 있도록 로그 파일을 이용한 데이터베이스 연결 장치 및 방법을 제공함에 그 목적이 있다.Accordingly, at the end of the program, the present invention records the data base source name, the user ID, and the password currently being used in the log file of the corresponding program, and then restarts the corresponding program The log file is referenced to automatically connect to the previously used database, thereby simplifying the operation of the database management system and allowing the novice user who is not familiar with the structure of the database management system to easily use the database management system. And a connecting device and method.
도 1은 종래기술에 의한 데이터베이스관리시스템에서 데이터베이스 연결 모듈의 시간적 흐름에 따른 순서도.1 is a flowchart showing a temporal flow of a database connection module in a database management system according to the related art.
도 2는 본 발명에 의한 데이터베이스 연결 장치에 대한 구성도.2 is a configuration diagram of a database connection device according to the present invention;
도 3은 도 2의 로그 파일 생성부에 대한 시간적 흐름에 따른 순서도.3 is a flowchart showing a temporal flow of the log file generation unit of FIG. 2;
도 4는 도 2의 데이터베이스 연결부에 대한 시간적 흐름에 따른 순서도.FIG. 4 is a flowchart according to a temporal flow of the database connection unit of FIG. 2;
상기의 목적을 달성하기 위한 본 발명에 따른 데이터베이스관리시스템에 있어서 로그 파일을 이용한 데이터베이스 연결 장치는 프로그램 종료시 로그 파일에 직전에 사용한 데이터베이스에 연결하는데 필요한 정보를 저장하는 로그 파일 생성부; 프로그램 기동시 상기한 로그 파일에서 상기한 정보를 읽어들여 이로부터 직전에 사용한 데이터베이스에 연결하는 데이터베이스 연결부를 포함함을 특징으로 한다.According to an aspect of the present invention, there is provided a database management system comprising: a log file generation unit for storing information necessary for connecting to a database used immediately before a log file at the end of a program; And a database connection unit for reading the information from the log file when the program is started and connecting to the database used immediately before.
상기의 목적을 달성하기 위한 본 발명에 따른 데이터베이스관리시스템에 있어서 로그 파일을 이용한 데이터베이스 연결 방법은 직전에 사용한 데이터베이스에 연결하는데 필요한 정보를 로그 파일에 저장하는 단계; 프로그램 기동시에 로그 파일에서 상기한 정보를 읽어들이는 단계; 상기한 정보를 이용하여 데이터베이스에 직접 연결하는 단계를 포함함을 특징으로 한다.According to another aspect of the present invention, there is provided a method for connecting a database using a log file, the method comprising: storing information required to connect to a database used immediately before in a log file; Reading the information from the log file when the program is started; And directly connecting to the database using the above-described information.
이하에서 첨부된 도면을 참조하여 본 발명을 상세히 설명한다. 본 발명이 동작되는 장치의 구조는 도 2에 도시된 바와 같이 로그 파일 생성부(220)와 데이터베이스 연결부(210)로 구성된다. 로그 파일(230)에 저장되는 정보는 직전에 사용된 데이터베이스에 연결하기 위한 정보로서 데이터베이스 소스명, 사용자 식별자, 패스워드로 구성될 수 있다. 상기 패스워드는 타인에 대한 보안을 목적으로 암호화될 필요가 있다. 본 발명에 의한 로그 파일에 의한 데이터베이스 자동 연결 장치를 사용하지 않고자 하는 사용자를 위하여 상기한 각 모듈 선두에 옵션기능을 둘 수 있다.DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will now be described in detail with reference to the accompanying drawings. The structure of the apparatus in which the present invention operates is constituted by a log file generation unit 220 and a database connection unit 210 as shown in FIG. The information stored in the log file 230 may include a database source name, a user identifier, and a password as information for connecting to a database used immediately before. The password needs to be encrypted for security purposes against others. For the user who does not want to use the automatic database connection device by the log file according to the present invention, an optional function may be provided at the head of each module.
로그 파일 생성부(220)는 프로그램 종료시 로그 파일에 직전에 사용한 데이터베이스에 연결하는데 필요한 정보를 저장하는 모듈 구성부이며, 데이터베이스 연결부(210)은 프로그램 기동시 상기한 로그 파일에서 상기한 정보를 읽어들여 이로부터 직전에 사용한 데이터베이스에 연결하는 모듈 구성부로서, 상기와 같은 모듈별 구성을 시간적 흐름의 관점에서 순서도로 도시한 것이 도 3와 도 4이다,The log file generation unit 220 is a module configuration unit for storing information required to connect to the database used immediately before the log file at the end of the program. The database connection unit 210 reads the information from the log file when the program is started 3 and 4 are flowcharts illustrating the above-described module-specific configuration from the viewpoint of temporal flow,
이하에서는 본 발명의 하나의 실시예를 들어 그 동작을 상세히 설명한다.Hereinafter, the operation will be described in detail with reference to one embodiment of the present invention.
예를 들어 직전에 사용한 데이터베이스 소스명이 patent_info.db이고, 사용자 식별자가 user_name, 패스워드가 passwd9876이라고 하면, 이들 정보에 각각 20바이트씩 할당하여 로그 파일 db_info.log를 생성할 수 있다.For example, if the database source name used immediately before is patent_info.db, the user identifier is user_name, and the password is passwd9876, 20 bytes can be allocated to each of these pieces of information to generate a log file db_info.log.
도 3은 로그 파일 생성부(220)를 순서도로 도시한 것으로서, 먼저 데이터베이스 자동 연결 옵션을 선택(ON)하였다고 가정하자(300단계). 이 경우 만약 db_info.log 파일이 이전에 이미 존재하고 있으면 기존의 파일에 중첩하여 새로운 내용을 쓰게 될 것이고, db_info.log 파일이 존재하지 않은 경우에는 이 파일을 새로이 만들게 된다. 그 다음, 상기 로그 파일 생성부는 db_info.log 파일에 patent_info.db와 user_name을 기록(310단계,320단계)하고, passwd9876를 다른 사용자들이 쉽게 그 내용을 알아볼 수 없도록 암호화(330단계)하여 기록(340단계)한 다음, 프로그램을 종료 처리(350단계)한다. 만약 사용자가 자동 연결 옵션을 선택하지 않았다면(OFF), 상기 로그 파일 생성부는 db_info.log 파일을 생성하지 않고 또한 기존의 db_info.log 파일이 있다면 이를 없애고 프로그램을 종료 처리(350단계)한다.FIG. 3 is a flowchart illustrating the log file generation unit 220. It is assumed that an automatic database connection option is selected (step 300). In this case, if the db_info.log file already exists, it will be overwritten and overwritten. If the db_info.log file does not exist, this file will be newly created. Then, the log file generation unit writes the patent_info.db and the user_name in the db_info.log file (step 310, step 320), encrypts the passwd9876 so that other users can not easily recognize the content (step 330) (Step 350), and terminates the program (step 350). If the user does not select the automatic connection option (OFF), the log file generation unit does not generate the db_info.log file, and if there is an existing db_info.log file, terminates the program and terminates the program (step 350).
도 4는 데이터베이스 연결부(210)를 순서도로 도시한 것으로서, 상기 로그 파일 생성부의 경우와 같이 먼저 데이터베이스 자동 연결 옵션을 선택(ON)하였다고 가정하자(400단계). 이 경우 데이터베이스관리시스템의 최근 종료시 상기 로그 파일 생성부에서 작성한 db_info.log 파일로부터 patent_info.db, user_name, 암호화된 passwd9876을 읽어들여(410단계,420단계,430단계), 암호화된 passwd9876을 해독할 수 있다(440단계). 그 다음, 이들 정보를 이용하여 직전에 이용하였던 patent_info.db에 자동으로 연결하여줌으로써(450단계) 데이터베이스관리시스템을 쉽게 기동 처리할 수 있도록 한다(460단계). 만약 사용자가 선택할 데이터베이스가 직전에 사용한 patent_info.db가 아니라 trade_mark_info.db이라면, 사용자는 자동 연결 옵션을 선택하지 않고(OFF) 통상의 방법에 의하여 사용자 식별자, 패스워드 및 새롭게 선택할 데이터베이스 소스명 즉 trade_mark_info.db를 직접 입력하여(110단계) trade_mark_info.db에 연결할 수 있다(120단계).FIG. 4 is a flowchart showing the database connection unit 210. It is assumed that an automatic database connection option is selected (step 400) as in the case of the log file generation unit. In this case, patent_info.db, user_name, and encrypted passwd9876 are read from the db_info.log file created by the log file creation unit at the latest termination of the database management system (steps 410, 420, 430), and the encrypted passwd9876 can be decrypted (Step 440). Next, in step 460, the database management system can be easily started by automatically connecting to the patent_info.db used immediately before using the information (step 450). If the database you want to select is not trade_mark_info.db but the patent_info.db you just used, the user does not select the auto-connect option (OFF) and the user identifier, password, and the new database source name to select, trade_mark_info.db (Step 110) and connect to trade_mark_info.db (step 120).
상기한 바와 같이 본 발명에 의하면, 데이터베이스관리시스템을 사용함에 있어 직전에 사용했던 데이터베이스에 바로 연결되어 데이터베이스를 선택하는 번거로운 작업이 필요하지 않으므로 종래 2단계에 의한 연결보다 사용자에게 편의성을 제공하고, 프로그램의 상세 정보를 숨김으로써 초보자들도 쉽게 데이터베이스관리시스템을 기동할 수 있게 한다.As described above, according to the present invention, since a database management system is used, a troublesome operation of directly connecting to a database used immediately before and selecting a database is not required. Therefore, By hiding the details of the database management system, even beginners can easily start.
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019960043109A KR100243169B1 (en) | 1996-09-30 | 1996-09-30 | Database management system having automatic database connection facility using log file and automatic connection method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019960043109A KR100243169B1 (en) | 1996-09-30 | 1996-09-30 | Database management system having automatic database connection facility using log file and automatic connection method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
KR19980023611A KR19980023611A (en) | 1998-07-06 |
KR100243169B1 true KR100243169B1 (en) | 2000-02-01 |
Family
ID=19475689
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1019960043109A KR100243169B1 (en) | 1996-09-30 | 1996-09-30 | Database management system having automatic database connection facility using log file and automatic connection method thereof |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR100243169B1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5956723A (en) * | 1997-03-21 | 1999-09-21 | Lsi Logic Corporation | Maintaining identifier information in a memory using unique identifiers as a linked list |
KR100744296B1 (en) * | 2000-12-27 | 2007-07-30 | 삼성전자주식회사 | Apparatus and method for managing log file in exchange system |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR950011056A (en) * | 1993-10-29 | 1995-05-15 | 테릴 켄트 팔레이 | Polishing and finishing method of optical lens |
-
1996
- 1996-09-30 KR KR1019960043109A patent/KR100243169B1/en not_active IP Right Cessation
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR950011056A (en) * | 1993-10-29 | 1995-05-15 | 테릴 켄트 팔레이 | Polishing and finishing method of optical lens |
Also Published As
Publication number | Publication date |
---|---|
KR19980023611A (en) | 1998-07-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8234500B2 (en) | Apparatus and method for securing data on a portable storage device | |
CA2253585C (en) | Cryptographic file labeling system for supporting secured access by multiple users | |
EP0862124A2 (en) | File access system for efficiently accessing a file having encrypted data within a storage device | |
JPH09510812A (en) | How to simplify communication with chip cards | |
EP2372596A1 (en) | Content use control device, recording device, reproduction device, recording medium, and content use control method | |
US7334135B2 (en) | Data protection system for removable recording medium | |
JPH05334253A (en) | Method for utilizing information processing workstation with password and information processing workstation utilizing the method | |
US20090119514A1 (en) | Content data structure and memory card | |
JPH09218777A (en) | Computer system | |
KR100243169B1 (en) | Database management system having automatic database connection facility using log file and automatic connection method thereof | |
US20030046564A1 (en) | Storage medium and method for storing data decrypting algorithm | |
US20050142526A1 (en) | Music apparatus with selective decryption of usable component in loaded composite content | |
US20090150592A1 (en) | Storage device with multiple management identity and management method thereof | |
CN113326526B (en) | Data access method, device, equipment and storage medium | |
JPH09237228A (en) | Access control method | |
US6611723B1 (en) | Device and method for monitoring the running of processes in a digital computer | |
JP2880045B2 (en) | Data processing device | |
JP2003295964A (en) | Data supply system, program and data supply method | |
JP2002169740A (en) | Information reproducing terminal and ic card | |
CN100412819C (en) | Method and system for keeping portable data storage drive functionality and operation configuration | |
JP2002099456A (en) | Encryption apparatus, encryption method and record medium recorded program for the apparatus | |
JP2892996B2 (en) | Test signal frame pattern generator | |
KR100583050B1 (en) | Method for encoding and decoding file using USB token key and System using the method | |
WO2020179851A1 (en) | Recording control system, control device, recording control method, and recording medium | |
JP2003085015A (en) | Method, system and program for version management of shared file, and recording medium for recording version management program of shared file |
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: 20071030 Year of fee payment: 9 |
|
LAPS | Lapse due to unpaid annual fee |