KR100852323B1 - Apparatus and method for monitoring data base - Google Patents

Apparatus and method for monitoring data base Download PDF

Info

Publication number
KR100852323B1
KR100852323B1 KR1020060133813A KR20060133813A KR100852323B1 KR 100852323 B1 KR100852323 B1 KR 100852323B1 KR 1020060133813 A KR1020060133813 A KR 1020060133813A KR 20060133813 A KR20060133813 A KR 20060133813A KR 100852323 B1 KR100852323 B1 KR 100852323B1
Authority
KR
South Korea
Prior art keywords
information
database
data
session
monitoring
Prior art date
Application number
KR1020060133813A
Other languages
Korean (ko)
Other versions
KR20080049578A (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 주식회사 케이티프리텔
Publication of KR20080049578A publication Critical patent/KR20080049578A/en
Application granted granted Critical
Publication of KR100852323B1 publication Critical patent/KR100852323B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/80Database-specific techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Quality & Reliability (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Debugging And Monitoring (AREA)

Abstract

본 발명은 데이터베이스 모니터링 장치에 관한 것으로서, 특히 정보처리시스템 내에 구비된 데이터베이스 관리 시스템(DataBase Management System: DBMS)의 운영 환경을 고려하여 상용화된 조건으로 필요한 데이터베이스의 상태 데이터만을 수집하여 모니터링할 수 있는 장치 및 방법에 관한 것이다. 이를 위하여 본 발명은 데이터베이스 관리 시스템을 이용하여 데이터베이스를 관리하며 그 데이터베이스의 상태를 모니터링하는 데이터베이스 모니터링 장치에 있어서, 여러 유저에 의해 공유되어 사용될 목적으로 통합적으로 조직되고 관리되는 운영 자료의 집합소인 데이터베이스와; 설정되는 모니터링 환경 설정정보에 의해 상기 데이터베이스로부터 상태 데이터를 선별적으로 수집하여 데이터베이스를 모니터링하는 데이터베이스 관리 시스템을 포함하여 구성된다.The present invention relates to an apparatus for monitoring a database, and in particular, an apparatus capable of collecting and monitoring only state data of a database required under commercialized conditions in consideration of an operating environment of a database management system (DBMS) provided in an information processing system. And to a method. To this end, the present invention provides a database monitoring apparatus for managing a database using a database management system and monitoring the state of the database, comprising: a database which is a collection of operational data integrated and managed for the purpose of being shared and used by multiple users; ; And a database management system that selectively collects state data from the database based on the monitoring environment setting information that is set, and monitors the database.

데이터베이스, 모니터링, SQL, 데이터베이스 관리 시스템(DBMS) Database, Monitoring, SQL, Database Management System (DBMS)

Description

데이터베이스 모니터링 장치 및 방법{APPARATUS AND METHOD FOR MONITORING DATA BASE}Database monitoring apparatus and method {APPARATUS AND METHOD FOR MONITORING DATA BASE}

도 1은 본 발명의 실시 예에 따른 데이터베이스 모니터링 장치의 구성을 보인 구성도.1 is a block diagram showing the configuration of a database monitoring apparatus according to an embodiment of the present invention.

도 2는 도 1에 있어, 데이터베이스 관리 시스템의 내부 구성을 보인 구성도.2 is a configuration diagram showing an internal configuration of a database management system in FIG.

도 3은 본 발명의 실시 예에 따른 데이터베이스 관리 시스템의 모니터링 툴의 설정화면데이터를 설명하기 위한 예시도.Figure 3 is an exemplary view for explaining the setting screen data of the monitoring tool of the database management system according to an embodiment of the present invention.

도 4는 본 발명의 실시 예에 따른 데이터베이스 관리 시스템의 모니터링 툴(Tool)을 설명하기 위한 예시도.4 is an exemplary diagram for explaining a monitoring tool of a database management system according to an exemplary embodiment of the present invention.

도 5는 본 발명의 실시 예에 따른 개별 세션의 화면데이터를 보인 예시도.5 is an exemplary view showing screen data of an individual session according to an embodiment of the present invention.

도 6은 본 발명의 실시 예에 따른 데이터베이스 모니터링 방법을 보인 흐름도.6 is a flowchart illustrating a database monitoring method according to an embodiment of the present invention.

도 7은 본 발명의 실시 예에 따른 데이터베이스 모니터링을 위한 환경설정과정을 보인 흐름도.7 is a flowchart illustrating an environment setting process for database monitoring according to an embodiment of the present invention.

<도면의 주요 참조부호에 대한 설명><Description of main reference numerals in the drawings>

10: 데이터베이스(DB) 20a~20n: 유저10: database 20a-20n: user

30: 로그파일 40: 관리자30: Log file 40: Administrator

100: 데이터베이스 관리 시스템 101: 환경설정부100: database management system 101: configuration unit

102: 데이터 수집부 103: 데이터 분석부102: data collection unit 103: data analysis unit

104: 사용자 인터페이스(UI) 105: 데이터 입출력부(I/O)104: user interface (UI) 105: data input and output (I / O)

106: 메모리 107: 제어부106: memory 107: control unit

본 발명은 데이터베이스 모니터링 장치에 관한 것으로서, 특히 정보처리시스템 내에 구비된 데이터베이스 관리 시스템(DataBase Management System: DBMS)의 운영 환경을 고려하여 상용화된 조건으로 필요한 데이터베이스의 상태 데이터만을 수집하여 모니터링할 수 있는 장치 및 방법에 관한 것이다.The present invention relates to an apparatus for monitoring a database, and in particular, an apparatus capable of collecting and monitoring only state data of a database required under commercialized conditions in consideration of an operating environment of a database management system (DBMS) provided in an information processing system. And to a method.

일반적으로, 데이터베이스(database)에는 서로 관련 있는 데이터들이 저장되어 있는데, 데이터베이스에 저장된 데이터들은 필요시마다 최신의 데이터로 갱신, 삽입, 삭제되는 것을 필요로 한다. 이를 위해 데이터베이스는 DBMS(DataBase Management System)라는 소프트웨어 시스템에 의해 관리되고 있는데, 데이터베이스 관리 시스템은 응용 프로그램과 데이터의 중재자로서 모든 응용 프로그램들이 데이터를 공유할 수 있도록 여러 응용 프로그램들이 사용하는 데이터를 하나의 장소에 모아 종합적으로 유지하고 관리해주는 소프트웨어이다. 즉, 데이터베이스 관리 시스템은 응용 프로그램들이 원하는 데이터를 검색하거나 변경하여 언제나 일관성 있는 결과를 응용 프로그램에 제공해주는 종합적인 데이터 관리 시스템이다. In general, a database stores data related to each other. The data stored in the database needs to be updated, inserted, or deleted as necessary. For this purpose, the database is managed by a software system called DBMS (Database Management System), which is a mediator of applications and data that allows data to be shared by multiple applications so that all applications can share data. Software that collects in place and maintains comprehensively. In other words, the database management system is a comprehensive data management system that provides applications with consistent results at all times by retrieving or changing the data desired by the applications.

이러한 상기 데이터베이스 관리 시스템은 사용자 요구사항들이나 다른 프로그램의 요구사항들을 관리함으로써, 사용자들이나 다른 프로그램들이 실제로 특정 데이터가 저장매체의 어느 곳에 저장되어 있는지를 알지 못하더라도 그 데이터를 이용할 수 있도록 해준다. 상기 데이터베이스 관리 시스템은 사용자 요구사항들을 처리함에 있어, 데이터의 무결성과 보안성을 보장한다. 관계형 데이터베이스 관리 시스템(RDBMS)은 가장 일반적인 형태의 데이터베이스 관리 시스템인데, 상기 관계형 데이터베이스 관리 시스템의 표준화된 사용자 및 프로그램 인터페이스를 SQL(Structured Query Language)이라고 부른다.The database management system manages user requirements or the requirements of other programs so that users or other programs can use the data even if they do not know where the particular data is actually stored on the storage medium. The database management system ensures the integrity and security of the data in handling user requirements. Relational Database Management System (RDBMS) is the most common type of database management system, and the standardized user and program interface of the relational database management system is called Structured Query Language (SQL).

한편, 정보처리시스템에서 그 구성요소인 데이터베이스를 효과적으로 구축하고, 운영하는 기술력은 그 정보처리시스템의 성패를 좌우하는 중요한 문제가 된다. 이에 따라, 데이터베이스 관리 시스템이 구축되어졌고, 이를 관리하기 위한 여러가지 방법들이 수행되어지고 있다.On the other hand, the technology to effectively build and operate the database as a component of the information processing system is an important problem that determines the success or failure of the information processing system. Accordingly, a database management system has been established, and various methods for managing the same have been performed.

이러한, 종래 데이터베이스 관리 시스템은 상용화된 데이터베이스 관리 시스템 툴(Tool)을 사용하여 데이터베이스의 상태를 모니터링을 하기에는 데이터베이스 관리 시스템마다 다른 업무 성격 및 운영 환경을 가지고 있기 때문에 원활한 데이테베이스 모니터링을 수행할 수 없었다. 여기서, 상기 데이터베이스 관리 시스템 툴은 미리 만들어진 툴이기 때문에 제공하는 데이터의 형태만이 존재하며, 이에 대한 재가공이나, 새로운 데이터의 수집이 불가능한 문제점이 있다. 예를 들면, 오라클(oracle) 데이터베이스에는 운영에 대한 여러가지 정보(일예로, v$로 시작하는 view)들을 내부 테이블에 저장해서 실시간으로 관리를 한다. 그러나, 상용화된 툴에서는 v$로 시작하는 view중에서 툴의 화면 설계에 나오는 정보만을 제공하는 문제점이 있다.Such a database management system has not been able to perform smooth database monitoring because the database management systems have different business characteristics and operating environments for monitoring the state of the database using a commercially available database management system tool. . Here, since the database management system tool is a pre-made tool, only the type of data provided exists, and there is a problem in that it cannot be reprocessed or collect new data. For example, in an Oracle database, various information about the operation (for example, views starting with v $) are stored in internal tables and managed in real time. However, there is a problem in commercially available tools that only provide information that appears in the screen design of the tool in the view starting with v $.

또한, 종래 데이터베이스 관리 시스템은 세션(Session) 레벨(level)의 정보를 제공하는 툴도 있으나, 몇 천개 이상의 세션이 존재하는 경우에는 수집이 어렵 기 때문에 데이터베이스 세션의 상세한 정보 제공에 한계가 있다. 즉, 데이터베이스 관리 시스템 성능을 고려해 취사선택하여 데이터를 수집하는 것이 불가능하다.In addition, although the conventional database management system also has a tool for providing session level information, it is difficult to provide detailed information of the database session because it is difficult to collect when there are more than several thousand sessions. In other words, it is impossible to collect data by selecting and considering the performance of the database management system.

본 발명은 상기와 같은 문제점을 감안하여 창출한 것으로, 정보처리시스템 내에 구비된 데이터베이스 관리 시스템의 상용화된 조건으로 필요한 데이터베이스의 상태 데이터만을 수집하여 모니터링할 수 있는 데이터베이스 모니터링 장치 및 방법을 제공함에 그 목적이 있다.SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and provides an apparatus and method for monitoring a database that can collect and monitor only state data of a required database under commercialized conditions of a database management system provided in an information processing system. There is this.

또한 본 발명의 목적은 데이터베이스 관리 시스템의 운영환경을 고려해서 선별적으로 데이터베이스의 상태 데이터(원시 정보 포함)를 수집할 수 있는 데이터베이스 모니터링 장치 및 방법을 제공함에 있다.Another object of the present invention is to provide an apparatus and method for monitoring a database that can selectively collect state data (including raw information) of a database in consideration of an operating environment of a database management system.

또한 본 발명의 다른 목적은 데이터베이스 관리 시스템의 부하를 고려해서 원하는 주기로 데이테베이스의 상태 데이터를 수집할 수 있는 데이터베이스 모니터링 장치 및 방법을 제공함에 있다.Another object of the present invention is to provide an apparatus and method for monitoring a database that can collect state data of a database at a desired interval in consideration of load of a database management system.

또한 본 발명의 또 다른 목적은 선별적으로 수집된 해당 데이터베이스 상태 데이터를 추이 비교하여 분석할 수 있는 데이터베이스 모니터링 장치 및 방법을 제공함에 있다.It is still another object of the present invention to provide an apparatus and method for monitoring a database that can analyze and analyze the corresponding database state data collected selectively.

상기와 같은 목적을 달성하기 위한 본 발명에 따른 데이터베이스 관리 시스템을 이용하여 데이터베이스를 관리하며 그 데이터베이스의 상태를 모니터링하는 데이터베이스 모니터링 장치는, 대량의 데이터와 데이터 상태 데이터가 저장, 관리되는 데이터베이스와; 관리자로부터 입력되는, 인스턴스 레벨의 통계정보와 대기사건 정보를 선별적으로 수집하기 위한 데이터 수집 항목과, 세션 레벨의 통계정보와 대기사건 정보를 선별적으로 수집하기 위한 적어도 하나 이상의 세션을 선택하는 세션 선택 정보 및 데이터 수집 주기를 포함하는 모니터링 환경설정정보를 설정하는 환경설정수단; 및 상기 데이터베이스로부터 실시간으로 제공되는 상태 데이터들로부터 상기 환경설정정보에 대응하는 원시 데이터(raw data)만을 선별적으로 수집하는 수집 수단을 포함한다. A database monitoring apparatus for managing a database using the database management system according to the present invention and monitoring the state of the database for achieving the above object comprises: a database in which a large amount of data and data state data are stored and managed; A session for selecting data collection items for selectively collecting instance level statistics and waiting event information input from an administrator, and at least one session for selectively collecting session level statistics and waiting event information. Environment setting means for setting monitoring environment setting information including selection information and a data collection period; And collecting means for selectively collecting only raw data corresponding to the configuration information from state data provided in real time from the database.

또한, 본 발명에 따른 데이터베이스 모니터링 장치는, 관리자로부터 상기 원시 데이터에 대한 조회 요청을 수신하고, 상기 모니터링을 위한 원시 데이터를 제공하는 서비스 수단 또는 관리자로부터 상기 원시 데이터에 대한 분석 요청을 수신하고, 상기 원시 데이터에 대한 추이를 비교, 분석하여 제공하는 분석 수단을 더 포함한다.
이때, 상기 세션 선택 정보는, 백그라운드 세션, 병렬 슬레이브 세션 및 액티브 세션중에서 선택된 적어도 하나 이상이다.
또한, 상기 원시 데이터는, 인스턴스 레벨의 통계 정보와 대기 사건 정보; 및 세션 레벨별 상세정보, 세션 레벨의 통계 정보, 세션 레벨의 대기 사건 정보 및 세션 레벨의 SQL 정보를 포함한다.
In addition, the database monitoring apparatus according to the present invention receives an inquiry request for the raw data from an administrator, and receives an analysis request for the raw data from a service means or an administrator for providing the raw data for the monitoring, It further includes an analysis means for comparing, analyzing and providing trends on the raw data.
In this case, the session selection information is at least one selected from a background session, a parallel slave session, and an active session.
Further, the raw data may include instance level statistical information and wait event information; And session level detail information, session level statistical information, session level waiting event information, and session level SQL information.

삭제delete

삭제delete

본 발명에 따른 다른 일 양태로서의 대량의 데이터와 상태 데이터를 저장, 관리하는 데이터베이스의 상태를 모니터링하는 방법은, 관리자로부터 데이터의 수집을 위한 세그먼트 유저와 데이터베이스 링크 설정정보를 입력받는 단계; 인스턴스 레벨의 통계정보와 대기사건 정보를 선별적으로 수집하기 위한 데이터 수집 항목과, 세션 레벨의 통계정보와 대기사건 정보를 선별적으로 수집하기 위한 적어도 하나 이상의 세션을 선택하는 세션 선택 정보 및 데이터 수집 주기를 포함하는 모니터링 환경설정정보를 설정하는 환경설정단계; 상기 데이터베이스로부터 실시간으로 제공되는 상태 데이터들로부터 상기 환경설정정보에 대응하는 원시 데이터(raw data)를 선별적으로 수집하는 데이터 수집단계; 및 상기 수집된 원시 데이터를 관리자에게 제공하는 데이터 서비스 단계를 포함한다. According to another aspect of the present invention, there is provided a method for monitoring a state of a database for storing and managing a large amount of data and state data, the method comprising: receiving segment user and database link setting information for collecting data from an administrator; Session selection information and data collection for selecting data collection items for selectively collecting instance-level statistics information and waiting event information, and selecting at least one session for selectively collecting session-level statistics information and waiting event information. An environment setting step of setting monitoring environment setting information including a cycle; A data collection step of selectively collecting raw data corresponding to the environment setting information from state data provided in real time from the database; And a data service step of providing the collected raw data to an administrator.

또한, 상기 데이터 서비스 단계는, 상기 관리자로부터 상기 원시 데이터의 조회 요청을 접수하는 단계; 및 상기 조회 요청에 따라 상기 수집된 원시 데이터를 관리자에게 제공하는 단계를 포함하거나 상기 관리자로부터 상기 원시 데이터의 분석 요청을 접수하는 단계; 및 상기 분석 요청에 따라 상기 수집된 원시 데이터에 대한 추이를 비교, 분석한 결과 데이터를 관리자에게 제공하는 단계를 포함할 수 있다. The data service step may further include: receiving an inquiry request for the raw data from the manager; And providing the collected raw data to an administrator according to the inquiry request or receiving a request for analyzing the raw data from the administrator. And comparing and analyzing trends of the collected raw data according to the analysis request and providing the manager with the result data.

삭제delete

하기의 설명에서는 본 발명에 따른 동작 및 작용을 이해하는데 필요한 부분만이 설명되며 그 이외 부분의 설명은 본 발명의 요지를 흩트리지 않도록 생략될 것이라는 것을 유의하여야 한다.It should be noted that in the following description, only parts necessary for understanding the operation and operation according to the present invention will be described, and descriptions of other parts will be omitted so as not to distract from the gist of the present invention.

또한 하기의 설명에서 본 발명의 데이터베이스 모니터링 장치 및 방법의 특정 상세들이 본 발명의 보다 전반적인 이해를 제공하기 위해 나타나 있다. 이들 특 정 상세들 없이 또한 이들의 변형에 의해서도 본 발명이 용이하게 실시될 수 있다는 것은 이 기술분야에서 통상의 지식을 가진 자에게 자명할 것이다.Also, in the following description, specific details of the database monitoring apparatus and method of the present invention are presented to provide a more general understanding of the present invention. It will be apparent to those skilled in the art that the present invention may be readily practiced without these specific details and also by their modifications.

하기의 설명에서 데이터베이스 상태 데이터는 "V$"로 시작하는 뷰(view)로서, 데이터베이스의 운영에 대한 여러 다양한 정보에 해당하는 데이터를 의미하는 바로 사용될 것이다. 또한 하기의 설명에서 코드성 테이블 정보는 관리자의 설정에 따라 가변되는 셋팅정보를 의미하며 "CT$"로 시작하는 뷰로서, 데이터베이스에서 제공하는 데이터를 사전에 정의한 정보들로 이루어진 정보를 의미하는 바로 사용될 것이다.In the following description, the database state data is a view starting with "V $" and will be used immediately to mean data corresponding to various various information about the operation of the database. In addition, in the following description, the codeability table information refers to setting information that varies according to the administrator's setting, and is a view starting with "CT $", and means information consisting of information previously defined in the data provided by the database. Will be used.

한편, 본 발명의 데이터베이스 모니터링 장치 및 방법은 운영환경 즉, 업무에 대해서 서로 다른 운영환경을 가지고 있더라도 관리자가 이를 고려하여 데이터베이스 모니터링 환경설정 정보를 설정함으로써, 그 환경 설정정보에 대응하여 데이터베이스의 상태 데이터를 수집할 수 있도록 하는 기술적 구성을 제안한다. 더불어, 상기 데이터베이스의 상태 정보를 구성하는 원시 정보를 수집할 수 있도록 하는 기술적 구성을 제안한다. 또한 수집된 데이터베이스의 상태 데이터를 조회할 수 있도록 하는 기술적 구성을 함께 제안한다.On the other hand, the database monitoring apparatus and method of the present invention, even if the operating environment, that is, have a different operating environment for the task by setting the database monitoring configuration information in consideration of this, the state data of the database corresponding to the environment setting information We propose a technical configuration to collect the data. In addition, a technical configuration for collecting raw information constituting the state information of the database is proposed. In addition, we propose a technical configuration that allows you to query the state data of the collected database.

이하, 본 발명에 따른 바람직한 실시 예를 첨부된 도면을 참조하여 상세히 설명하면 다음과 같다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.

도 1은 본 발명의 실시 예에 따른 데이터베이스 모니터링 장치의 구성을 보인 구성도이다.1 is a block diagram showing the configuration of a database monitoring apparatus according to an embodiment of the present invention.

상기 도 1을 참조하면, 우선, 데이터베이스 모니터링 장치는 대량의 데이터들과 선별적으로 데이터 상태 데이터가 구축된 데이터베이스(10), 상기 데이터베이스(10)를 이용하는 유저들(20a~20n), 상기 데이터베이스(10)를 관리하며, 설정되는 모니터링 환경정보에 대응하여 상기 데이터베이스(10)에서 선별적으로 해당 데이터를 수집 및 분석하여 상기 데이터베이스를 모니터링하도록 제어하는 데이터베이스 관리 시스템(100), 상기 데이터베이스 관리 시스템(100)을 운용 관리하는 관리자(40), 상기 데이터베이스 관리 시스템(100)의 실행정보들이 기록되는 로그 파일 저장부(30)를 포함한다. Referring to FIG. 1, first, a database monitoring apparatus includes a database 10 in which a large amount of data and data state data are selectively constructed, users 20a to 20n using the database 10, and the database ( 10), the database management system 100 and the database management system 100 to control to monitor the database by selectively collecting and analyzing the corresponding data in the database 10 in response to the set monitoring environment information ), A manager 40 for operation management, and a log file storage unit 30 in which execution information of the database management system 100 is recorded.

상기 데이터베이스(10)는 논리적으로 연관된 하나 이상의 자료의 모음으로 그 내용을 고도로 구조함으로써 검색과 갱신의 효율화를 꾀한 것이다. 즉, 몇 개의 자료 파일을 조직적으로 통합하여 자료 항목의 중복을 없애고 자료를 구조화하여 기억시켜 놓은 자료의 집합체라고 할 수 있다. The database 10 is a collection of one or more logically related data, which is highly structured to improve the efficiency of searching and updating. In other words, it is a collection of data that systematically integrates several data files to eliminate duplication of data items and to structure and remember the data.

상기 유저들(20a~20n)은 상기 데이터베이스(10)를 이용하는 사람, 응용프로그램, 클라이언트 또는 사용자 단말 등이다. 상기 유저들(20a~20n)은 데이터베이스(10)에 데이터를 정의, 등록, 삽입하는 작업이나 상기 데이터베이스(10)의 데이터를 검색, 갱신, 삭제, 변경, 참조, 응용, 조작하는 등의 작업을 한다. The users 20a to 20n are people, applications, clients, or user terminals using the database 10. The users 20a to 20n perform operations such as defining, registering, and inserting data into the database 10 or searching, updating, deleting, changing, referencing, applying, and manipulating data of the database 10. do.

상기 관리자(40)는 데이터베이스(10)와 데이터베이스 관리시스템(100)을 가장 좋은 상태로 유지하는 책임을 지는 개인 또는 집단이다. 또한 상기 관리자(40)는 데이터베이스(10)의 모니터링을 위해서 모니터링 환경 설정정보를 설정한다. The manager 40 is an individual or a group responsible for maintaining the database 10 and the database management system 100 in the best condition. In addition, the manager 40 sets monitoring environment setting information for monitoring the database 10.

상기 데이터베이스 관리 시스템(100)은 상기 데이터베이스(10)를 유지, 보수, 관리하며 상기 유저들(20a~20n)의 이용을 돕는 시스템이다. 보다 구체적으로 상기 데이터베이스 관리 시스템(100)은 데이터베이스(10)를 구성하고 이를 응용하기 위해 구성된 소프트웨어 시스템이다. 특히, 사용자나 응용 프로그램이 데이터베이스(10)를 쉽게 이용할 수 있도록 하는 기능을 포함한다. 그 기능은 크게 구성 기능, 조작 기능, 제어 기능으로 나눌 수 있다. 상기 구성 기능은 데이터베이스(10)에 저장될 자료의 구조와 응용 프로그램이 그것을 이용하는 방식을 정의하는 것으로, 레코드 구조의 정의, 데이터 모형의 정의, 물리적 구조의 정의 등을 포함한다. 또한 상기 조작 기능은 사용자의 요구에 따라 데이터베이스에 저장된 자료를 검색, 갱신, 삽입, 삭제할 수 있도록 하는 기능이다. 또한 상기 제어 기능은 데이터베이스(10)의 내용이 일관성을 유지하고 중복되지 않도록 하며, 허가되지 않은 접근을 제한하여 자료를 보호하는 기능이다. 또한 상기 데이터베이스 관리 시스템(100)은 본 발명의 실시 예에 따라 관리자(40)가 데이터베이스 모니터링을 위해 설정하는 모니터링 환경 설정정보에 대응하여 선별적으로 데이터베이스 상태 데이터를 데이터베이스(10) 혹은 데이터베이스 관리시스템(100)의 내부 메모리에 저장하여 관리한다. 이때, 선별적으로 수집된 상태 데이터를 테이블화시켜 저장하도록 한다. 여기서 상기 데이터베이스(10)가 일 예로, 오라클 데이터베이스인 경우에는 "V$"로 시작하는 뷰(view)가 상태 데이터가 된다. 또한 상기 데이터베이스 관리 시스템(100)은 수집된 데이터를 직접 조회가 가능하도록 하며, 다양한 형태로 분석 가능하도록 한다. The database management system 100 is a system that maintains, maintains, and manages the database 10 and helps the users 20a to 20n use them. More specifically, the database management system 100 is a software system configured to configure and apply the database 10. In particular, it includes a function that allows a user or an application to easily use the database 10. The functions can be broadly divided into configuration functions, operation functions, and control functions. The configuration function defines the structure of the data to be stored in the database 10 and the manner in which the application program uses it, and includes the definition of the record structure, the definition of the data model, the definition of the physical structure, and the like. In addition, the operation function is a function to search, update, insert, delete the data stored in the database according to the user's request. In addition, the control function is a function to protect the data by keeping the contents of the database 10 consistent and not duplicated, and restricts unauthorized access. In addition, the database management system 100 may selectively update the database state data to the database 10 or the database management system in response to the monitoring environment setting information set by the manager 40 for database monitoring according to an embodiment of the present invention. It is stored in the internal memory of 100) and managed. At this time, the selectively collected state data to be stored in a table. For example, when the database 10 is an Oracle database, a view starting with "V $" is state data. In addition, the database management system 100 allows the collected data to be directly inquired and analyzed in various forms.

이러한 상기 데이터베이스 관리 시스템(100)에 대한 내부구성을 첨부한 도면을 참조하여 상세히 설명한다.An internal configuration of the database management system 100 will be described in detail with reference to the accompanying drawings.

도 2는 도 1의 데이터베이스 관리 시스템(100)의 내부 구성을 구체화시킨 구성도이다.FIG. 2 is a diagram illustrating an internal configuration of the database management system 100 of FIG. 1.

상기 도 2를 참조하면, 데이터베이스 관리 시스템(100)은 관리자(40)로부터 입력되는 데이터베이스(10)의 모니터링을 위한 설정정보에 따라 모니터링 환경 설정정보가 설정될 수 있도록 하는 환경 설정부(101), 상기 환경 설정부(101)에 대응되는 데이터를 선별적으로 수집하는 데이터 수집부(102), 상기 관리자(40)가 데이터 분석을 요구하면, 상기 데이터 수집부(102)에 의해 수집된 데이터를 분석하는 데이터 분석부(103), 관리자(40)로부터 설정정보를 입력받는 사용자 인터페이스(104), 데이터베이스에 관한 데이터를 입출력하는 데이터 입출력부(105), 데이터베이스 모니터링을 위한 프로그램이 저장되는 메모리(106), 상기 데이터베이스 모니터링을 위한 전반적인 동작을 제어하는 제어부(107)를 포함하여 구성된다.Referring to FIG. 2, the database management system 100 may include an environment setting unit 101 configured to set monitoring environment setting information according to setting information for monitoring the database 10 input from the manager 40. Data collection unit 102 for selectively collecting data corresponding to the environment setting unit 101, when the manager 40 requests data analysis, the data collected by the data collection unit 102 is analyzed A data analysis unit 103, a user interface 104 for receiving setting information from the manager 40, a data input / output unit 105 for inputting and outputting data relating to a database, and a memory 106 for storing a program for database monitoring. And a control unit 107 for controlling the overall operation for monitoring the database.

상기 환경 설정부(101)는 상기 사용자 인터페이스(104)에 의해 설정정보를 입력받아 그 설정정보에 따라 모니터링 환경 설정정보가 설정될 수 있도록 한다. 이에, 수집 대상 항목과 수행간격 및 수집 항목 세부 속성을 설정할 수 있도록 한다. 이에 대한 상세한 설명은 후술하도록 한다.The environment setting unit 101 receives the setting information by the user interface 104 so that the monitoring environment setting information can be set according to the setting information. Thus, it is possible to set the collection target item, the execution interval, and the detailed property of the collection item. Detailed description thereof will be described later.

상기 데이터 수집부(102)는 상기 환경 설정부(101)의 환경설정정보에 대응하는 데이터를 선별적으로 데이터베이스(10)로부터 수집한다. 상기 데이터 수집부(102)에 의해 수집되는 데이터는 인스턴스 레벨(Instance level)의 통계정보 수집과 대기 사건에 대한 정보를 선별적으로 수집한다. 이때 상기 수집되는 데이터는 테이블화되어 저장될 수도 있다.The data collection unit 102 selectively collects data corresponding to the environment setting information of the environment setting unit 101 from the database 10. The data collected by the data collector 102 selectively collects instance level statistics and information on waiting events. In this case, the collected data may be stored in a table.

상기 데이터 분석부(103)는 상기 데이터 수집부(102)에 의해 수집된 데이터에 대한 추이를 비교 분석한다. The data analyzer 103 compares and analyzes the trends of the data collected by the data collector 102.

상기 사용자 인터페이스(104)는 관리자(40)의 설정정보 또는 유저들(20a~20n)의 요청신호가 데이터베이스 관리 시스템(100)에 입력될 수 있도록 인터페이스한다.The user interface 104 interfaces so that the setting information of the manager 40 or a request signal of the users 20a-20n can be input to the database management system 100.

상기 데이터 입출력부(105)는 데이터베이스(10)에 관한 데이터를 입력받고, 상기 데이터 수집부(102)와 데이터 분석부(103)의 해당 출력 데이터를 출력한다.The data input / output unit 105 receives data regarding the database 10, and outputs corresponding output data of the data collector 102 and the data analyzer 103.

상기 메모리(106)는 전술한 데이터베이스 모니터링을 위한 프로그램들이 저장된다. 또한 상기 메모리(106)는 데이터 수집부(102)에 의해 선별적으로 수집된 데이터베이스 상태 데이터 등이 저장될 수도 있다. The memory 106 stores programs for database monitoring described above. In addition, the memory 106 may store database state data, etc. selectively collected by the data collector 102.

다음은, 도 3을 통해, 상기 모니터링 환경설정정보를 설정하기 위한 화면 데이터를 설명하도록 한다.Next, the screen data for setting the monitoring environment setting information will be described with reference to FIG. 3.

상기 도 3의 화면 데이터에서 상기 관리자(40)는 참조부호 'a' 영역에서 수집 대상 항목(일 예로, 전체선택) 및 수행 간격(일 예로, 하루 한번)을 설정하게 된다. 즉, 데이터베이스(10)에서 제공하는 통계 정보, 대기 사건정보를 선별적으로 선택한다. 이와 동시에 상기 관리자(40)는 코드성 테이블 정보(혹은 마스터 정보)를 함께 설정한다. 상기 코드성 테이블 정보는 일 예로, "CT$"로 시작하는 뷰(view) 로서, 관리자의 설정에 따라 가변되는 셋팅정보를 의미한다. 여기서, 상기 데이터베이스 관리 시스템(100)에 부하가 많을 경우 각 세그먼트(Segment)별 통계정보 수집 주기를 하루에 한번 혹은 일주일에 한번처럼 관리자(40)가 원하는 주기로 설정할 수 있다. 또한 상기 관리자(40)는 상기 도 3의 화면 데이터에서 참조부호 'b' 영역에서 수집항목 세부 속성을 설정하게 된다. 즉, 세션 수집에 있어서도, 백그라운드(background)를 수집할지, 병렬 슬레이브(Parallel Slave)를 수집할지, 액티브(Active)를 수집할지 선택한다. 예를 들어, 데이터웨어하우스(DW; Data Warehouse)시스템의 경우는 병렬 슬레이브를 선택하는 것이 적당하고, OLTP(Online Transaction Processing) 시스템의 경우는 병렬 슬레이브를 제외시키는 것이 일반적으로 바람직하다. 여기서, 상기 OLTP는 네트워크상의 여러 이용자가 실시간으로 데이터베이스의 데이터를 갱신하거나 조회하는 등의 단위 작업을 처리하는 방식을 의미한다.In the screen data of FIG. 3, the manager 40 sets a collection target item (eg, all selections) and an execution interval (eg, once a day) in a region 'a'. That is, the statistical information and the waiting event information provided by the database 10 are selectively selected. At the same time, the manager 40 sets up the codeability table information (or master information) together. The codeability table information is, for example, a view starting with "CT $" and refers to setting information that varies according to a setting of an administrator. Here, when the database management system 100 has a heavy load, the manager 40 may set a cycle for collecting statistical information for each segment as once a day or once a week. In addition, the manager 40 sets the collection item detailed attribute in the region 'b' of the screen data of FIG. 3. That is, in session collection, it is selected whether to collect a background, a parallel slave, or an active. For example, in the case of a Data Warehouse (DW) system, it is appropriate to select a parallel slave, and in the case of an Online Transaction Processing (OLTP) system, it is generally preferable to exclude the parallel slave. Here, the OLTP refers to a method in which a plurality of users on a network process unit operations such as updating or inquiring data in a database in real time.

전술한 과정을 통해 선별적으로 데이터베이스 상태 데이터를 데이터베이스(10)에 테이블화하여 저장해서 관리하기 때문에 수집된 데이터에 대해 직접 조회가능하며, 다양한 형태로 분석할 수 있다. Through the above-described process, since the database state data is selectively tabled and stored in the database 10 and managed, the collected data can be directly inquired and analyzed in various forms.

이러한 본 발명의 데이터베이스 모니터링에 대한 상세한 설명을 위해 첨부한 도 4를 통해 선별적으로 상태 데이터를 획득하는 과정에 대해서 설명하도록 한다.For the detailed description of the database monitoring of the present invention will be described with respect to the process of selectively obtaining the state data through the accompanying FIG.

도 4는 본 발명의 실시 예에 따른 데이터베이스 관리 시스템의 모니터링 툴(Tool)을 설명하기 위한 예시도이다.4 is an exemplary diagram for describing a monitoring tool of a database management system according to an exemplary embodiment of the present invention.

상기 도 4를 참조하면, 우선 관리자(40)는 도 4의 (a)와 같은 화면상에서 모니터링을 위한 모니터링 환경을 설정한다. 이러한 환경설정에 대한 상세한 설명은 이미 기술하였으므로 생략하도록 한다.Referring to FIG. 4, first, the manager 40 sets a monitoring environment for monitoring on a screen as shown in FIG. 4A. The detailed description of such an environment setting has already been described and thus will be omitted.

이후, 데이터베이스 관리 시스템(100)은 상기 (a)의 화면데이터상에서 설정 된 모니터링 환경설정정보에 대응하는 상태 데이터를 데이터베이스(10)에서 실시간으로 제공받게 된다. Thereafter, the database management system 100 is provided with real-time state data corresponding to the monitoring configuration information set on the screen data of (a) in the database 10.

그러면 상기 데이터베이스 관리 시스템(100)은 도 4의 (b)와 같이 데이터베이스(10)로부터 실시간으로 제공되는 V$로 시작하는 정보중에서 관리자(40)에 의해 설정된 모니터링 환경설정 정보에 대응하는 해당 상태 데이터에 대한 원시(raw) 데이터를 얻도록 한다. 즉, 이를 위해 데이터베이스 관리 시스템(100)은 TPA_RUN 패키지(package)를 수행하여 데이터베이스(10)로부터 원시정보를 획득하기 위한 델타(delta) 값을 수집한다. 이로서, 상기 데이터베이스 관리 시스템(100)은 "GT$"로 시작하는 상태 정보를 획득할 수 있게 된다.Then, the database management system 100 corresponds to the state data corresponding to the monitoring configuration information set by the manager 40 among the information starting with V $ provided in real time from the database 10 as shown in FIG. Get raw data for. That is, for this purpose, the database management system 100 collects a delta value for obtaining raw information from the database 10 by performing a TPA_RUN package. As a result, the database management system 100 may obtain status information starting with "GT $".

그래서, 상술한 도 4의 (b)과정을 통해 수집된 델타값과 관리자에 의해 설정되는 코드성 테이블정보에 대해서 도시하고 있는 도 4의 (c)에 의해 모니터링 결과 화면데이터의 도 4의 (d)를 표시한다.Thus, FIG. 4D of the monitoring result screen data by FIG. 4C showing the delta values collected through the above-described FIG. 4B and the codeability table information set by the administrator. ) Is displayed.

도 5는 본 발명의 실시 예에 따른 개별 세션의 화면데이터를 보인 예시도이다.5 is an exemplary view showing screen data of an individual session according to an exemplary embodiment of the present invention.

상기 도 5를 참조하면, 데이터베이스 관리 시스템(100)의 개별 세션들에 대한 상세한 정보가 수집되어 지고, 개별 세션에 대한 통계 및 대기 사건 정보를 볼 수 있게 된다.Referring to FIG. 5, detailed information about individual sessions of the database management system 100 is collected, and statistics and waiting event information of the individual sessions can be viewed.

상기 개별 세션의 화면데이터중, 참조부호 'a'는 세션 레벨별 상세 정보를 제공하는 영역이고, 참조부호 'b'는 개별 세션의 통계 및 대기 사건 정보를 제공하는 영역이며, 참조부호 'c'는 해당 세션에서 수행하고 있는 SQL 정보를 제공하는 영역이다.Among the screen data of the individual session, reference numeral 'a' is an area for providing detailed information for each session level, reference numeral 'b' is an area for providing statistics and waiting event information of each session, and reference numeral 'c' Is the area that provides the SQL information running in the session.

여기서, 상기 세션 레벨별 상세정보는 세션 레벨의 소트(sort)정보, 취소(undo) 정보, 트랜잭션(transaction) 정보, 액세스 오브젝트명, PQ 마스터에 대한 슬레이브 프로세스 정보 등을 의미한다. 또한 상기 개별 세션의 통계 및 대기 사건 정보는 각 세션의 수집 주기 단위 시간의 통계정보, 대기 사건 정보를 의미하며, 이를 통해서 특정 프로세스의 통계, 대기 사건 정보에 대한 이력을 분석할 수 있다. 또한 상기 개별 세션에서 수행하고 있는 SQL 정보는 해당 세션에서 수행하고 있는 SQL을 의미한다.Herein, the detailed information for each session level means sort information, session information, undo information, transaction information, access object name, slave process information for the PQ master, and the like. In addition, the statistics and waiting event information of the individual session means the statistical information, the waiting event information of the collection period unit time of each session, through which the history of the statistics of the specific process, waiting event information can be analyzed. In addition, SQL information executed in the individual session means SQL executed in the corresponding session.

다음은 이러한 동작을 수행하는 데이터 베이스 모니터링 장치가 데이터베이스를 모니터링 하는 방법에 대해 상세히 설명하도록 한다.Next, a method for monitoring a database by a database monitoring device that performs such an operation will be described in detail.

도 6은 본 발명의 실시 예에 따른 데이터베이스 모니터링 방법을 보인 흐름도이고, 도 7은 본 발명의 실시 예에 따른 데이터베이스 모니터링을 위한 환경설정과정을 보인 흐름도이다.6 is a flowchart illustrating a database monitoring method according to an embodiment of the present invention, and FIG. 7 is a flowchart illustrating an environment setting process for database monitoring according to an embodiment of the present invention.

상기 도 6과 상기 도 7을 참조하면, 601단계에서 상기 데이터베이스 관리시스템(100)은 데이터베이스 상태 데이터의 수집을 위한 모니터링 환경설정 정보를 관리자(40)로부터 입력받는다. 여기서 상기 환경설정 정보는 다음과 같은 과정에 의해 설정된다.6 and 7, in step 601, the database management system 100 receives monitoring environment setting information for collecting database state data from the manager 40. Here, the environment setting information is set by the following process.

우선, 701단계에서 데이터베이스 관리 시스템(100)은 환경설정 실행시, 데이터 수집을 위한 세그먼트 유저와 데이터베이스 링크 설정정보를 입력받는다.First, in step 701, the database management system 100 receives a segment user and database link setting information for data collection when environment setting is executed.

이후, 703단계에서 상기 데이터베이스 관리 시스템(100)은 관리자(40)로부터 데이터베이스 모니터링을 위한 기본적인 환경 설정정보를 입력받는다.In step 703, the database management system 100 receives basic environment setting information for database monitoring from the manager 40.

이때, 상기 데이터베이스 관리 시스템(100)은 다음과 같은 기본적인 환경 설정정보를 입력받는다. 하기에서 환경 설정정보로 입력되는 설정정보의 입력순서와는 무관하게 설정해도 무방하다.At this time, the database management system 100 receives the following basic configuration information. In the following, the setting information input as the environment setting information may be set irrespective of the input order.

인스턴스 레벨의 통계정보 수집과 대기 사건에 대한 정보를 선별적으로 수집할 수 있도록 데이터 수집 기능을 입력받는다. 이때 상기 관리자(40)는 각 세그먼트별 통계정보 수집 주기를 설정할 수 있다. 또한 SQL 로그(Log) 정보를 함께 저장할 수 있도록 설정할 수 있다. 또한 데이터베이스(10)의 상태정보중 델타(delta)값에 의해 수집되는 원시 정보와 조합하여 원시정보를 서비스할 수 있도록 하는 코드성 테이블 정보도 함께 설정할 수 있다. 또한 세션 수집에 있어서도 세션 수집 정보를 설정할 수 있다. 즉, 백그라운드 세션, 병렬 슬레이브 세션, 액티브 세션중 원하는 세션에 대해 수집이 가능하다. 여기서 수집하고자 하는 세션은 적어도 하나 이상을 선택할 수 있도록 한다. 또한 데이터베이스 관리 시스템(100)에 과도한 부하가 걸릴 경우에는 각 세그먼트별 통계정보 수집 주기를 하루에 한번 혹은 1주일에 한번과 같이 관리자(40)가 희망하는 주기를 설정할 수 있다.It receives data collection function to collect statistics on instance level and selectively collect information on waiting events. At this time, the manager 40 may set a cycle for collecting statistical information for each segment. In addition, it can be set to save SQL log information together. In addition, it is also possible to set up the codeability table information to serve the source information in combination with the source information collected by the delta value of the state information of the database 10. In addition, session collection information can be set in session collection. That is, it can collect the desired session among the background session, parallel slave session, and active session. In this case, at least one session to be collected can be selected. In addition, when excessive load is applied to the database management system 100, the period for collecting the statistical information for each segment may be set by the manager 40 as once a day or once a week.

이러한 모니터링 환경 설정정보가 설정된 이후, 603단계에서 상기 데이터베이스 관리시스템(100)은 데이터베이스(10)로부터 실시간으로 제공되는 상태 데이터와 환경 설정 정보에 대응하는 해당 원시 데이터를 선별적으로 수집한후 605단계로 진행한다. 이에, 상기 데이터베이스 관리시스템(100)은 실시간으로 "V$"로 시작하는 뷰(view)를 수집한후, 해당 원시정보를 관리자에게 서비스할 수 있도록 특정 패 키지(TPA_RUN package)과정을 수행하여 그에 따른 원시정보를 수집한다. 여기서 상기 원시정보는 모니터링 환경 설정정보에 의해 설정되는 코드성 테이블 정보와 조합되어 수집된다. 이때 상기 데이터베이스 관리 시스템(100)은 상기 환경설정 정보에 따라 일정한 주기로 원시정보를 수집하여 저장한다. 여기서 상기 환경설정 정보에 따라 수집되는 원시정보에 해당하는 상태데이터는 테이블화되어 데이터베이스(10) 혹은 상기 데이터베이스 관리 시스템(100) 내부의 데이터 수집부(102)에 저장될 수도 있다.After the monitoring environment setting information is set, in step 603, the database management system 100 selectively collects the state data provided from the database 10 in real time and the corresponding raw data corresponding to the environment setting information. Proceed to Accordingly, the database management system 100 collects a view starting with "V $" in real time, and then performs a specific package (TPA_RUN package) process to service the corresponding raw information to the administrator. Collect raw information according to Here, the source information is collected in combination with the codeability table information set by the monitoring configuration information. At this time, the database management system 100 collects and stores the original information at regular intervals according to the environment setting information. Here, the state data corresponding to the raw information collected according to the environment setting information may be tabled and stored in the database 10 or the data collection unit 102 inside the database management system 100.

이후, 605단계에서 상기 데이터베이스 관리 시스템(100)은 상기 603단계를 통해 수집된 데이터베이스의 상태 데이터를 모니터링 환경설정정보에 따라 테이블화하여 관리한다. 이로써, 개별 세션들에 대한 상세한 정보가 수집되어, 이후 개별 세션들에 대한 통계 및 대기 사건 정보를 관리자에게 제공할 수 있는 기반이 된다.Thereafter, in step 605, the database management system 100 manages the state data of the database collected in step 603 by table according to the monitoring configuration information. In this way, detailed information about individual sessions is collected, which is then the basis for providing statistics and waiting event information for individual sessions to the administrator.

그래서 607단계에서 상기 데이터베이스 관리 시스템(100)은 관리자(40)가 수집된 상태 데이터 조회를 요구하는지 판단한다.Thus, in step 607, the database management system 100 determines whether the manager 40 requests the collected state data inquiry.

상기 판단결과 상기 상태 데이터 조회를 요구하면, 609단계에서 상기 데이터베이스 관리 시스템(100)은 수집된 상태 데이터를 관리자(40)에게 서비스한다. 이에 의해, 상기 관리자(40)는 개별 세션들에 대한 통계 및 대기 사건 정보를 제공받게 된다. 이와 더불어, 상기 개별 세션의 상세한 정보와 개별 세션에서 수행하고 있는 SQL을 제공받을 수 있게 된다. 여기서, 상기 개별 세션 상세정보는 세션 레벨의 소트(sort) 정보, 취소(undo) 정보, 트랜잭션(transaction) 정보, 액세스 오브젝트(access object) 명, PQ 마스터(master)에 대한 슬레이브 프로세스 정보 등이 된다. 상기 개별 세션의 통계 및 대기 사건 정보에 의해 특정 프로세스의 통계, 대기 사건에 대한 이력 분석이 가능하게 된다.In response to requesting the state data inquiry, the database management system 100 services the collected state data to the manager 40 in step 609. As a result, the manager 40 is provided with statistics and waiting event information for individual sessions. In addition, detailed information of the individual sessions and SQLs performed in the individual sessions can be provided. Here, the individual session details are sort level sort information, undo information, transaction information, access object name, slave process information for PQ master, and the like. . The statistics of the individual sessions and the wait event information enables the historical analysis of the statistics and wait events of a specific process.

그러나, 상기 판단결과 상기 상태 데이터 조회를 요구하지 않으면, 611단계에서 상기 데이터베이스 관리 시스템(100)은 수집된 상태 데이터 분석을 요구하는지를 판단한다. However, if it is determined that the state data inquiry is not requested, in step 611, the database management system 100 determines whether to analyze the collected state data.

상기 판단결과 상기 상태 데이터 분석을 요구하면, 613단계에서 상기 데이터베이스 관리 시스템(100)은 다양한 형태로 수집된 상태 데이터를 분석해서 그 분석결과를 관리자(40)에게 서비스한다.If the determination result requires the analysis of the state data, in step 613, the database management system 100 analyzes the state data collected in various forms and provides the analysis result to the manager 40.

따라서, 본 발명의 데이터베이스 모니터링 장치 및 방법은 OLTP에서 운영되는 데이터베이스와, 데이터웨어하우스(DW)에서 운영되는 데이터베이스와 같이 서로 다른 운영환경임에도 불구하고 원하는 정보를 상용화하여 데이터베이스로부터 실시간으로 계속 변하는 V$ 뷰(view)의 정보들을 설정 주기/조건/정보에 부합되게 상태 데이터를 별도로 수집/관리하여 추후에 데이터를 분석함과 동시에 개선할 수 있도록 활용하여 서비스한다.Accordingly, the apparatus and method for monitoring the database of the present invention are constantly changing in real time from the database by commercializing desired information despite different operating environments such as a database operated in OLTP and a database operated in a data warehouse (DW). It collects and manages state data separately according to setting cycles / conditions / information so that it can be analyzed and improved later.

한편 본 발명의 상세한 설명에서는 구체적인 실시 예에 관해 설명하였으나, 본 발명의 범위에서 벗어나지 않는 한도내에서 여러 가지 변형이 가능함은 물론이다. 그러므로 본 발명의 범위는 설명된 실시 예에 국한되어 정해져서는 안되며 후술하는 특허청구의 범위뿐만 아니라 이 특허청구의 범위와 균등한 것들에 의해 정해져야 한다.Meanwhile, in the detailed description of the present invention, specific embodiments have been described, but various modifications are possible without departing from the scope of the present invention. Therefore, the scope of the present invention should not be limited to the described embodiments, but should be determined not only by the scope of the following claims, but also by the equivalents of the claims.

이상에서 상세히 설명한 바와 같이 본 발명은 정보처리시스템 내에 구비된 데이터베이스 관리 시스템의 상용화된 조건으로 필요한 데이터베이스의 상태 데이터만을 수집하여 모니터링할 수 있는 효과가 있다.As described in detail above, the present invention has an effect of collecting and monitoring only state data of a database required for commercialization of a database management system provided in an information processing system.

또한 데이터베이스 관리 시스템의 운영환경을 고려해서 선별적으로 데이터베이스의 상태 데이터를 수집할 수 있도록 함으로써, 효율적으로 데이터베이스 관리 시스템을 운용할 수 있는 효과가 있다.In addition, by taking into account the operating environment of the database management system to selectively collect the state data of the database, it is effective to operate the database management system efficiently.

또한 데이터베이스 관리 시스템의 부하를 고려해서 원하는 주기로 데이테베이스의 상태 데이터를 수집할 수 있도록 함으로써, 효율적으로 데이터베이스 관리 시스템을 운용할 수 있는 효과가 있다.In addition, by taking into account the load of the database management system to collect the state data of the database at a desired interval, it is effective to operate the database management system efficiently.

또한 선별적으로 수집된 해당 데이터베이스 상태 데이터를 추이 비교하여 분석할 수 있도록 함으로써, 관리자가 데이터베이스의 상태를 체크하여 정상적으로 데이터베이스를 관리할 수 있는 효과가 있다.In addition, by selectively comparing and analyzing the corresponding database state data collected selectively, the administrator can check the state of the database to manage the database normally.

또한 화면으로 제공되는 데이터베이스의 상태 정보를 구성하는 원시 정보와 관련된 특정 정보를 서비스할 수 있는 효과가 있다.In addition, there is an effect that can service specific information related to the raw information constituting the state information of the database provided on the screen.

Claims (20)

데이터베이스 관리 시스템을 이용하여 데이터베이스를 관리하며 그 데이터베이스의 상태를 모니터링하는 데이터베이스 모니터링 장치에 있어서,A database monitoring apparatus for managing a database by using a database management system and monitoring the state of the database, 대량의 데이터와 데이터 상태 데이터가 저장, 관리되는 데이터베이스와;A database in which a large amount of data and data state data are stored and managed; 관리자로부터 입력되는, 인스턴스 레벨의 통계정보와 대기사건 정보를 선별적으로 수집하기 위한 데이터 수집 항목과, 세션 레벨의 통계정보와 대기사건 정보를 선별적으로 수집하기 위한 적어도 하나 이상의 세션을 선택하는 세션 선택 정보 및 데이터 수집 주기를 포함하는 모니터링 환경설정정보를 설정하는 환경설정수단; 및A session for selecting data collection items for selectively collecting instance level statistics and waiting event information input from an administrator, and at least one session for selectively collecting session level statistics and waiting event information. Environment setting means for setting monitoring environment setting information including selection information and a data collection period; And 상기 데이터베이스로부터 실시간으로 제공되는 상태 데이터들로부터 상기 환경설정정보에 대응하는 원시 데이터(raw data)만을 선별적으로 수집하는 수집 수단을 포함하는 것을 특징으로 하는 데이터베이스 모니터링 장치.And collecting means for selectively collecting only raw data corresponding to the configuration information from state data provided in real time from the database. 제 1 항에 있어서, The method of claim 1, 관리자로부터 상기 원시 데이터에 대한 조회 요청을 수신하고, 상기 원시 데이터를 상기 관리자에게 제공하는 서비스 수단을 더 포함하는 것을 특징으로 하는 데이터베이스 모니터링 장치.And a service means for receiving an inquiry request for the raw data from an administrator and providing the raw data to the administrator. 제 1 항에 있어서, The method of claim 1, 관리자로부터 상기 원시 데이터에 대한 분석 요청을 수신하고, 상기 원시 데이터에 대한 추이를 비교, 분석하여 제공하는 분석 수단을 더 포함하는 것을 특징으로 하는 데이터베이스 모니터링 장치.And analyzing means for receiving an analysis request for the raw data from an administrator and comparing, analyzing, and providing a trend for the raw data. 제 2 항 또는 제 3 항에 있어서, 상기 세션 선택 정보는, The method of claim 2 or 3, wherein the session selection information, 백그라운드 세션, 병렬 슬레이브 세션 및 액티브 세션중에서 선택된 적어도 하나 이상의 세션 정보인 것을 특징으로 하는 데이터베이스 모니터링 장치. And at least one session information selected from a background session, a parallel slave session, and an active session. 제 4 항에 있어서, 상기 원시 데이터는 The method of claim 4, wherein the raw data is 인스턴스 레벨의 통계 정보와 대기 사건 정보; 및 Instance level statistics and wait event information; And 세션 레벨별 상세정보, 세션 레벨의 통계 정보, 세션 레벨의 대기 사건 정보 및 세션 레벨의 SQL 정보를 포함하는 것을 특징으로 하는 데이터베이스 모니터링 장치. And session level detail information, session level statistical information, session level waiting event information, and session level SQL information. 제 5 항에 있어서, The method of claim 5, wherein 상기 세션 레벨별 상세정보는 세션 레벨의 소트(sort) 정보, 취소(undo) 정보, 트랜잭션 정보, 액세스 오브젝트명, PQ 마스터에 대한 슬레이브 프로세스 정보를 포함하는 것을 특징으로 하는 데이터베이스 모니터링 장치.The session level detailed information may include session level sort information, undo information, transaction information, an access object name, and slave process information for a PQ master. 대량의 데이터와 상태 데이터를 저장, 관리하는 데이터베이스의 상태를 모니터링하는 방법으로서,A method of monitoring the status of a database that stores and manages large amounts of data and status data. 관리자로부터 데이터의 수집을 위한 세그먼트 유저와 데이터베이스 링크 설정정보를 입력받는 단계; Receiving a segment user and database link setting information for collecting data from an administrator; 인스턴스 레벨의 통계정보와 대기사건 정보를 선별적으로 수집하기 위한 데이터 수집 항목과, 세션 레벨의 통계정보와 대기사건 정보를 선별적으로 수집하기 위한 적어도 하나 이상의 세션을 선택하는 세션 선택 정보 및 데이터 수집 주기를 포함하는 모니터링 환경설정정보를 설정하는 환경설정단계; Session selection information and data collection for selecting data collection items for selectively collecting instance-level statistics information and waiting event information, and selecting at least one session for selectively collecting session-level statistics information and waiting event information. An environment setting step of setting monitoring environment setting information including a cycle; 상기 데이터베이스로부터 실시간으로 제공되는 상태 데이터들로부터 상기 환경설정정보에 대응하는 원시 데이터(raw data)를 선별적으로 수집하는 데이터 수집단계; 및 A data collection step of selectively collecting raw data corresponding to the environment setting information from state data provided in real time from the database; And 상기 수집된 원시 데이터를 관리자에게 제공하는 데이터 서비스 단계를 포함하는 것을 특징으로 하는 데이터베이스 모니터링 방법.And a data service step of providing the collected raw data to an administrator. 제 7 항에 있어서, 상기 데이터 서비스 단계는, 다시 The method of claim 7, wherein the data service step, again 상기 관리자로부터 상기 원시 데이터의 조회 요청을 접수하는 단계; 및 Accepting a request for inquiry of the raw data from the manager; And 상기 조회 요청에 따라 상기 수집된 원시 데이터를 관리자에게 제공하는 단계를 포함하는 것을 특징으로 하는 데이터베이스 모니터링 방법. And providing the collected raw data to an administrator according to the inquiry request. 제 7 항에 있어서, 상기 데이터 서비스 단계는, 다시 The method of claim 7, wherein the data service step, again 상기 관리자로부터 상기 원시 데이터의 분석 요청을 접수하는 단계; 및 Receiving a request for analyzing the raw data from the manager; And 상기 분석 요청에 따라 상기 수집된 원시 데이터에 대한 추이를 비교, 분석한 결과 데이터를 관리자에게 제공하는 단계를 포함하는 것을 특징으로 하는 데이터베이스 모니터링 방법. And comparing and analyzing trends of the collected raw data according to the analysis request, and providing the administrator with the result data. 제 8 항 또는 제 9 항에 있어서, 상기 환경설정단계는 The method of claim 8 or 9, wherein the environment setting step is 관리자의 설정에 따라 가변되는 코드성 테이블 정보를 모니터링 환경설정정보의 하나로서 더 설정하는 것을 특징으로 하는 데이터베이스 모니터링 방법.And setting the codeability table information variable according to the setting of the administrator as one of the monitoring configuration information. 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete 삭제delete
KR1020060133813A 2006-11-30 2006-12-26 Apparatus and method for monitoring data base KR100852323B1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1020060120010 2006-11-30
KR20060120010 2006-11-30

Publications (2)

Publication Number Publication Date
KR20080049578A KR20080049578A (en) 2008-06-04
KR100852323B1 true KR100852323B1 (en) 2008-08-14

Family

ID=39805340

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020060133813A KR100852323B1 (en) 2006-11-30 2006-12-26 Apparatus and method for monitoring data base

Country Status (1)

Country Link
KR (1) KR100852323B1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101981310B1 (en) 2016-12-27 2019-05-22 주식회사 씨에스리 Apparatus and method for detecting anomaly of database system
KR101985905B1 (en) * 2019-03-05 2019-06-04 디지테크정보 주식회사 System link method and linked system using thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010106166A (en) * 2001-03-24 2001-11-29 조종암 Apparatus for monitoring performance of database and method thereof
KR20040027270A (en) * 2003-03-22 2004-04-01 (주)오알솔루션즈코리아 Method for monitoring database system
KR20040039648A (en) * 2002-11-04 2004-05-12 (주)키씨 Database tuning menagement method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010106166A (en) * 2001-03-24 2001-11-29 조종암 Apparatus for monitoring performance of database and method thereof
KR20040039648A (en) * 2002-11-04 2004-05-12 (주)키씨 Database tuning menagement method
KR20040027270A (en) * 2003-03-22 2004-04-01 (주)오알솔루션즈코리아 Method for monitoring database system

Also Published As

Publication number Publication date
KR20080049578A (en) 2008-06-04

Similar Documents

Publication Publication Date Title
US6996556B2 (en) Metadata manager for database query optimizer
US8688622B2 (en) Methods and systems for loading data into a temporal data warehouse
US7624094B2 (en) Automatic database statistics creation
US6366901B1 (en) Automatic database statistics maintenance and plan regeneration
US8346761B2 (en) Method and system for data mining for automatic query optimization
US7174345B2 (en) Methods and systems for auto-partitioning of schema objects
US8280907B2 (en) System and method for managing access to data in a database
US20080250057A1 (en) Data Table Management System and Methods Useful Therefor
US20080195578A1 (en) Automatically determining optimization frequencies of queries with parameter markers
US9020929B2 (en) Method and system for tracking performance by breaking down a query
US20060129609A1 (en) Database synchronization using change log
US8260761B2 (en) Detecting performance degrading design and algorithm issues in database applications
JP2007133452A (en) Data collection program and data collection device
KR20040027270A (en) Method for monitoring database system
US11354313B2 (en) Transforming a user-defined table function to a derived table in a database management system
KR100852323B1 (en) Apparatus and method for monitoring data base
US11455294B2 (en) Information lifecycle management notification framework
CN114925054A (en) Meta-model-based metadata management system and method
US11048695B2 (en) Context-aware data commenting system
KR20050036010A (en) System-monitoring system and method
US10558637B2 (en) Modularized data distribution plan generation
Strate et al. Index Analysis
Alapati et al. Monitoring System Performance
Brimhall et al. Chapter 22: Query Performance Tuning: by Jason Brimhall

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: 20110801

Year of fee payment: 4

LAPS Lapse due to unpaid annual fee