KR101049945B1 - Object reorganization apparuatus and method - Google Patents

Object reorganization apparuatus and method Download PDF

Info

Publication number
KR101049945B1
KR101049945B1 KR1020100029319A KR20100029319A KR101049945B1 KR 101049945 B1 KR101049945 B1 KR 101049945B1 KR 1020100029319 A KR1020100029319 A KR 1020100029319A KR 20100029319 A KR20100029319 A KR 20100029319A KR 101049945 B1 KR101049945 B1 KR 101049945B1
Authority
KR
South Korea
Prior art keywords
reorganization
information
objects
target
storage space
Prior art date
Application number
KR1020100029319A
Other languages
Korean (ko)
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 KR1020100029319A priority Critical patent/KR101049945B1/en
Application granted granted Critical
Publication of KR101049945B1 publication Critical patent/KR101049945B1/en

Links

Images

Classifications

    • 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/21Design, administration or maintenance of databases
    • G06F16/215Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors
    • 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/22Indexing; Data structures therefor; Storage structures

Abstract

PURPOSE: A device and method for reorganizing object are provided to prevent performance deterioration of a system according to a time which is not allowable for using when reorganizing the objects by reorganizing the object based on access level and automatically selecting objects to be reorganized. CONSTITUTION: An object information grasping unit(110) grasps object information including access information about the object and information about storing space of each object of database. A firstly selecting unit(120) uses information about the storing space of the object and selects a reorganized target object based on data storing distribution of the object. A secondly selecting unit(130) selects objects which are under a constant level as reorganizing object. A reorganizing unit(140) reorganizes objects corresponding to both the reorganizing target and available object.

Description

객체 재편성 장치 및 그 방법{Object reorganization apparuatus and method}Object reorganization apparatus and method {Object reorganization apparuatus and method}

본 발명은 산발적으로 분산되어 있는 데이터베이스의 객체 데이터들을 효율적으로 재배치하는 객체 재편성에 관한 것이다.The present invention relates to object reorganization that efficiently rearranges object data in a scattered database.

데이터베이스에서 객체의 빈번한 생성과 갱신에 의해 시간이 지날수록 그 객체의 데이터 분포는 산발적으로 되며, 따라서 객체에 대한 접근시간이 많이 소요되는 등 효율적인 객체 관리가 어려워진다.Due to the frequent creation and update of objects in the database, the data distribution of the objects becomes sporadic, and thus, it becomes difficult to manage the objects efficiently, which takes a lot of time to access the objects.

본 발명이 이루고자 하는 기술적 과제는, 데이터베이스 객체의 계속된 사용에 따라 산발적으로 분산되어 있는 데이터들을 효율적으로 재배치하고, 재편성 작업으로 인한 객체의 사용불가 시간을 최소화하며 시스템 가용성을 향상시키고 안정적인 시스템 운영이 가능하도록 하는 객체 재편성 장치 및 그 방법을 제공하는 데 있다.The technical problem to be achieved by the present invention is to efficiently rearrange scattered data according to the continuous use of database objects, minimize object downtime due to reorganization work, improve system availability and ensure stable system operation. An object reorganization apparatus and a method for enabling the same are provided.

상기의 기술적 과제를 해결하기 위한, 본 발명에 따른 객체 재편성 장치의 일 실시예는, 데이터베이스의 각 객체의 저장공간에 대한 정보 및 각 객체에 대한 접근 정보를 포함하는 객체에 관한 정보를 파악하는 객체정보 파악부; 상기 각 객체의 저장공간에 대한 정보를 기초로 각 객체의 데이터의 저장 분포가 기 설정된 재편성 대상 기준에 해당하는지 여부를 파악하여 재편성 대상 객체를 선별하는 1차 선별부; 상기 각 객체에 대한 접근 정보를 기초로 재편성 작업 예상 시간대에 객체에의 접근 건수가 일정 기준 이하인 객체들을 재편성 가능 객체로 선별하는 2차 선별부; 및 상기 재편성 대상 객체 및 재편성 가능 객체에 모두 해당하는 객체들에 대해 재편성을 수행하는 재편성부;를 포함한다.In order to solve the above technical problem, an embodiment of the object reorganization apparatus according to the present invention, an object for grasping information about the object including information about the storage space of each object in the database and access information for each object Information grasping unit; A primary sorting unit which selects a reorganization target object by identifying whether a storage distribution of data of each object corresponds to a preset reorganization target criterion based on the information on the storage space of each object; A secondary sorting unit configured to classify objects having a predetermined number of accesses to or below an object as a reorganizable object at an estimated time of reorganization operation based on the access information of each object; And a reorganization unit for reorganizing objects corresponding to both the reorganization target object and the reorganization object.

상기의 기술적 과제를 해결하기 위한, 본 발명에 따른 객체 재편성 방법의 일 실시예는, 데이터베이스의 각 객체의 저장공간에 대한 정보 및 각 객체에 대한 접근 정보를 포함하는 객체에 관한 정보를 파악하는 단계; 상기 각 객체의 저장공간에 대한 정보를 기초로 각 객체의 데이터의 저장 분포가 기 설정된 재편성 대상 기준에 해당하는지 여부를 파악하여 재편성 대상 객체를 선별하는 단계; 상기 각 객체에 대한 접근 정보를 기초로 재편성 작업 예상 시간대에 객체에의 접근 건수가 일정 기준 이하인 객체들을 재편성 가능 객체로 선별하는 단계; 및 상기 재편성 대상 객체 및 재편성 가능 객체에 모두 해당하는 객체들에 대해 재편성을 수행하는 단계;를 포함한다.In order to solve the above technical problem, an embodiment of the object reorganization method according to the present invention, the step of grasping information about the object including information about the storage space of each object in the database and access information for each object ; Selecting a reorganization target object by determining whether a storage distribution of data of each object corresponds to a predetermined reorganization target criterion based on the information on the storage space of each object; Selecting objects as reorganizable objects in which the number of accesses to the objects is less than or equal to a predetermined criterion in the expected reorganization work time based on the access information for each object; And performing reorganization on objects corresponding to both the reorganization target object and the reorganization object.

본 발명에 따르면, 재편성 작업을 위한 객체들을 소정의 기준에 따라 자동화된 방법으로 선별할 뿐만 아니라 객체의 접근 정도를 파악하여 그 정도가 낮은 경우 재편성을 수행하므로 객체의 재편성시 사용불가 시간에 따른 시스템의 성능저하를 방지할 수 있다. According to the present invention, not only objects for reorganization work are sorted by an automated method according to a predetermined criterion, but also the degree of access of the object is determined and the reorganization is performed when the degree is low, so the system according to the unavailability time when the object is reorganized. It can prevent the performance deterioration.

도 1은 본 발명에 따른 객체 재편성 장치의 일 예를 도시한 도면, 그리고,
도 2는 본 발명에 따른 객체 재편성 방법의 일 실시예를 도시한 흐름도이다.
1 is a view showing an example of an object reorganization apparatus according to the present invention, and
2 is a flowchart illustrating an embodiment of an object reorganization method according to the present invention.

이하에서, 첨부된 도면들을 참조하여 본 발명에 따른 객체 재편성 장치 및 그 방법에 대해 상세히 설명한다.Hereinafter, with reference to the accompanying drawings will be described in detail the object reorganization apparatus and method according to the present invention.

도 1은 본 발명에 따른 객체 재편성 장치의 일 예를 도시한 도면이다.1 is a diagram illustrating an example of an object reorganization apparatus according to the present invention.

도 1을 참조하면, 객체 재편성 장치(100)는 객체정보 추출부(110), 1차 선별부(120), 2차 선별부(130) 및 재편성부(140)를 포함한다. Referring to FIG. 1, the object reorganization apparatus 100 includes an object information extracting unit 110, a primary sorting unit 120, a secondary sorting unit 130, and a reorganizing unit 140.

객체정보 추출부(110)는 데이터베이스에 저장된 객체들에 대한 정보(150)를 파악한다. 객체정보 추출부(110)는 구체적으로 객체들이 저장된 디스크의 저장공간에 대한 정보, 각 객체의 권한, 데이터 유형과 루틴 등의 정보, 객체에 대한 접근 정보 등을 객체 정보 DB(150)로부터 수집한다. 이러한 정보 등을 통해 객체 데이터가 디스크 내 어떠한 분포로 저장되어 있는지, 그 객체의 인덱스가 어떻게 구성되어 있는지, 데이터의 증가량이 어떤지 등을 파악할 수 있다. 이러한 정보들은 일반적으로 데이터베이스가 구축된 시스템 프레임에서 제공하는 경우가 많으므로 이를 통해 얻는 것이 바람직하다. 예를 들어, IBM 메인프레임의 경우에 객체정보 추출부(110)는 DB2 카탈로그 테이블 및 DB2 RTS(Real-Time Statistics) 테이블(SYSTABLEPART, SYSINDEXPART, TABLESPACESTATS, INDEXSPACESTATS 등)을 조회하여 각 객체에 대한 정보를 수집하여 저장하고, IBM QM(Query Mointor)을 통해 DB 객체에 대한 SQL(Structured Query Language) 사용현황을 파악하여 일자별, 요일별 분석하여 저장할 수 있다. The object information extracting unit 110 grasps information 150 about the objects stored in the database. Specifically, the object information extracting unit 110 collects information on the storage space of the disk where the objects are stored, authority of each object, information such as data type and routine, and access information about the object from the object information DB 150. . Through such information, it is possible to determine what distribution of object data is stored in the disk, how the index of the object is configured, and how much data is increased. Since this information is usually provided by the system frame in which the database is constructed, it is desirable to obtain this information. For example, in the case of an IBM mainframe, the object information extractor 110 queries the DB2 catalog table and the DB2 Real-Time Statistics (RTS) table (SYSTABLEPART, SYSINDEXPART, TABLESPACESTATS, INDEXSPACESTATS, etc.) for information about each object. It can collect and store and analyze the usage status of SQL (Structured Query Language) for DB objects through IBM Query Mointor (QM) to analyze and save by date and day.

1차 선별부(120)는 객체정보 추출부(110)가 수집하여 분석 저장한 각 객체들에 대한 정보를 기초로 각 객체들이 재편성 대상 기준에 해당하는지 파악하여 재편성 대상 객체들을 선별한다. 재편성 대상 기준은 객체 데이터의 분포 성향, 객체의 인덱스 구성, 객체 데이터의 증가량 등을 이용할 수 있다. 재편성 대상 기준은 시스템의 성능이나 저장공간의 용량 등을 고려하여 데이터베이스 관리자(DBA, Database Administrator)가 적절하게 미리 설정하는 것이 바람직하다. 예를 들어, 객체 데이터의 실제 크기와 그 객체 데이터를 읽기 위하여 참조해야 하는 실제 저장공간의 크기가 일정 비율 이상인 경우, 즉 데이터의 분포 성향이 일정 기준 이상으로 분산되어 있는 경우가 재편성 대상 기준이 될 수 있다. 또는 데이터량의 증가량이 일정 이상인 경우가 재편성 대상 기준이 될 수도 있으며 이러한 각각의 조건이 함께 적용되어 모든 혹은 일부 조건을 만족할 때 재편성 대상 기준이 되도록 할 수도 있다. 1차 선별부는 선별된 재편성 대상 객체들에 대한 정보를 별도의 저장공간(데이터베이스 베이스 혹은 파일 등)에 저장하는 것이 바람직하다. The primary sorting unit 120 selects the objects to be reorganized by identifying whether the objects correspond to the reorganization target criteria based on the information on each object collected and analyzed by the object information extraction unit 110. The reorganization target criterion may use a distribution tendency of the object data, an index configuration of the object, an increase amount of the object data, and the like. The criteria for reorganization are preferably set in advance by a database administrator (DBA) in consideration of system performance and storage space. For example, if the actual size of the object data and the actual storage space to be referred to for reading the object data are more than a certain ratio, that is, if the distribution tendency of the data is distributed more than a certain standard, the reorganization target criteria may be used. Can be. Or, if the amount of data increase is more than a certain level may be a reorganization criteria, each of these conditions may be applied together to be a reorganization criteria when all or some conditions are satisfied. The primary sorting unit preferably stores information on the selected reorganization target objects in a separate storage space (database or file).

2차 선별부(130)는 현재 사용되고 있지 않거나 사용이 적은 객체들을 재편성 가능 객체로 선별한다. 예를 들어, 2차 선별부는 객체들의 SQL 사용현황 정보를 통해 현재 재편성 작업이 수행되는 시간대에 객체의 접근이 일정 기준 이하인 객체들을 선별한다. 예를 들어, 재편성 가능 기준이 SQL 사용 건수 1000건 미만으로 설정된 경우, 2차 선별부는 각 객체들에 대한 SQL 사용현황 정보를 기초로 재편성 예상 시간대의 SQL 사용건수가 통계적으로 1000건 미만인 객체들을 재편성 가능 객체로 선별한다. 2차 선별부(130)는 선별된 재편성 가능 객체들의 정보를 별도의 저장공간(데이터베이스 테이블 혹은 파일 등)에 저장하는 것이 바람직하다. 또한 2차 선별부(130)는 1차 선별부(120)에 의해 객체 대상 객체로 선별된 객체들에 대해서만 객체 가능 객체들을 선별하도록 구성할 수도 있다.The secondary sorting unit 130 sorts objects that are not currently used or use less as reorganizable objects. For example, the secondary sorting unit selects objects whose access is less than or equal to a predetermined criterion during the current reorganization operation through the SQL usage status information of the objects. For example, if the reorganization criterion is set to less than 1000 SQL usage, the secondary sorter reorganizes objects with statistically less than 1000 SQL usage in the expected reorganization time zone based on the SQL usage information for each object. Selectable objects. The secondary sorting unit 130 preferably stores information of the sorted reorganizable objects in a separate storage space (such as a database table or a file). In addition, the secondary sorting unit 130 may be configured to sort the object available objects only for the objects selected by the primary sorting unit 120 as the object target object.

재편성부(140)는 1차 선별부(120) 및 2차 선별부(130)에 의해 재편성 대상 객체 및 재편성 가능 객체로 동시에 선별된 객체들에 대한 재편성(140)을 수행한다. 재편성부(140)는 각 객체들에 대한 재편성 명령어를 수행하여 각 객체들에 대한 재편성 작업을 동시에 수행할 수 있다. 재편성 작업을 동시에 수행하는 경우는 최대 동시 수행 작업수를 제어하여 재편성 작업이 효율적으로 이루어지도록 하는 것이 바람직하다. 예를 들어, IBM 프레임에서 구현하는 경우, 재편성부(140)는 재편성을 위한 JCL(Job Control Language)을 생성하여 재편성을 수행한다.The reorganization unit 140 performs reorganization 140 on objects that are simultaneously selected as a reorganization target object and a reorganization object by the primary sorting unit 120 and the secondary sorting unit 130. The reorganization unit 140 may perform a reorganization operation on each object by performing a reorganization command for each object. In the case where the reorganization work is performed at the same time, it is desirable to control the maximum number of concurrently executed jobs so that the reorganization work is performed efficiently. For example, when implemented in an IBM frame, the reorganization unit 140 generates reorganization by generating a job control language (JCL) for reorganization.

재편성부(140)는 재편성을 수행하기 전에 재편성 가능한 객체들에 대해 다시 한 번 실제 재편성 수행 시간대에 재편성이 가능한지 확인하는 것이 바람직하다. 즉 시스템의 작업스케줄링에 의해 2차 선별부(130)에서 객체 선별시 적용한 재편성 예상 시간대와 실제 재편성 수행 시간대가 상이할 수 있으므로 재편성부(140)는 실제 재편성 수행 시간대에 2차 선별부의 선별 조건을 다시 한 번 적용하여 재편성이 가능한지 확인하는 것이 바람직하다. 재편성부(140)는 또한 필요한 경우 재편성 수행 전에 테이블 수정 작업(ALTER 작업)을 수행할 수 있다. 예를 들어, 재편성부(140)는 재편성 가능 객체들을 저장한 SAM 파일의 확장횟수가 일정 횟수(예, 3회)이상인 경우 테이블 수정 작업(ALTER 작업)을 수행한다. The reorganization unit 140 may check whether the reorganization is possible once again in the actual reorganization time slot for the reorganizable objects before performing the reorganization. That is, since the expected reorganization time zone and the actual reorganization execution time zone applied when the object is screened by the secondary screening unit 130 may be different due to the work scheduling of the system, the reorganization unit 140 selects the screening conditions of the secondary screening unit at the actual reorganization time zone. It is desirable to apply it again to see if reorganization is possible. The reorganization unit 140 may also perform a table modification operation (ALTER operation) before performing the reorganization if necessary. For example, the reorganization unit 140 performs a table modification operation (ALTER operation) when the extension number of the SAM file storing the reorganization objects is more than a predetermined number (for example, three times).

재편성부(140)는 이러한 작업 수행의 결과를 별도의 데이터베이스 테이블(160)에 저장함으로써 이후 관리자(170)가 재편성 작업의 오류나 수행 결과 등의 정보를 조회할 수 있도록 한다. The reorganization unit 140 stores the results of such work in a separate database table 160 so that the manager 170 can inquire information such as an error or a result of the reorganization work.

도 2는 본 발명에 따른 객체 재편성 방법의 일 실시예를 도시한 흐름도이다.2 is a flowchart illustrating an embodiment of an object reorganization method according to the present invention.

도 2를 참조하면, 객체 재편성 장치는 객체 정보를 수집 저장한다(S200). 객체정보에는 크게 객체들의 데이터 분포가 어느 정도 산발적인지 파악할 수 있는 객체 데이터의 저장공간에 대한 정보와 객체가 특정 시점에 어느 정도 사용되고 있는지 등에 관한 객체에 대한 접근 정도를 나타내는 정보 등이 있다. 이러한 객체 정보는 IBM의 경우에는 QM(Query Manager), DB2 카탈로그 테이블, DB2 RTS 테이블 등을 통해 파악할 수 있다. Referring to FIG. 2, the object reorganization apparatus collects and stores object information (S200). The object information includes information about the storage space of the object data to determine how sporadic the data distribution of the objects is, and information indicating the degree of access to the object, such as how much the object is used at a particular point in time. In the case of IBM, this object information can be obtained through QM (Query Manager), DB2 catalog table, DB2 RTS table, and so on.

객체 재편성 장치는 수집한 객체 정보를 이용하여 데이터의 분산 정도가 일정 기준 이상인 객체를 재편성 대상 객체로 선별한다(S210). 데이터의 분산 정도가 어느정도인지는 객체 데이터의 분포 상황을 통해 파악하거나 인덱스의 구성, 데이터의 증가량 등 다양한 정보를 통해 직간접적으로 파악할 수 있으며, 이는 관리자가 시스템의 관리 차원에서 다양하게 설정가능하다. 관리자의 재편성 대상 객체의 선별 기준의 지정에 따라 이에 필요한 객체 정보는 앞서 살핀 객체 정보 수집 단계에서 수집된다. The object reorganization apparatus selects an object having a degree of distribution of data equal to or more than a predetermined standard using the collected object information as a reorganization target object (S210). The degree of distribution of data can be determined through the distribution of object data or directly or indirectly through various information such as index composition and data increase, which can be set in various ways by the administrator in terms of system management. According to the selection criteria of the reorganization target object of the administrator, object information necessary for this is collected in the salping object information collecting step.

객체 재편성 장치는 또한 객체에의 접근 정도를 기초로 재편성 예상 시간대에 아무런 접근이 없거나 접근이 일정 기준치 이하인 객체를 재편성 가능 객체로 선별한다(S220). 재편성 가능 객체의 선별은 재편성 대상 객체의 선별 과정과 각각 별도로 수행되거나 재편성 대상으로 선별된 객체들에 대해서만 재편성 가능 객체를 선별하도록 구성할 수도 있다. The object reorganization apparatus also selects an object having no access in the reorganization expected time zone or access below a predetermined threshold value as a reorganizable object based on the degree of access to the object (S220). The reclassification of the reorganizable object may be configured to separate the reclassifiable object only for the objects that are performed separately from each screening process of the reorganization target object or selected for reorganization.

객체 재편성 장치는 재편성 대상 객체이고 재편성 가능 객체인 객체들에 대하여 재편성을 수행한다(S230). 재편성을 수행하는 실제시간과 재편성 가능 객체들을 선별할 때 예상한 재편성 예상 시간대는 시스템의 작업 스케줄링에 따라 상이할 수 있으므로, 재편성 수행 전에 다시 한 번 해당 객체들에 대해 재편성 실제 시간대에 객체에의 접근 정도가 일정 기준치 이하인 객체인지 여부를 선별하는 과정을 수행하는 것이 바람직하다. 또한 재편성 수행전에 필요하다면 데이터베이스 테이블 수정 작업(ALTER 작업)을 수행할 수도 있다.The object reorganization apparatus performs reorganization on objects that are a reorganization target object and a reorganization object (S230). Since the actual recombination time and the expected reorganization expected time when screening reorganizable objects may differ depending on the system's job scheduling, access to the objects in the real time of the reorganization for those objects once again before reorganization is performed. It is preferable to perform a process of screening whether or not the degree is an object of less than a predetermined reference value. You can also perform database table modifications (ALTER) if necessary before reorganization.

객체 재편성 장치는 재편성의 수행 결과를 별도의 테이블에 저장하여 관리자로 하여금 재편성이 바르게 수행되었는지, 재편성 수행시 장애가 발생하였다면 어떤 장애가 발생하였는지를 파악하게 한다.The object reorganization apparatus stores the result of the reorganization in a separate table so that the administrator can determine whether the reorganization is correctly performed or if a failure occurs when the reorganization is performed.

본 발명은 또한 컴퓨터로 읽을 수 있는 기록매체에 컴퓨터가 읽을 수 있는 코드로서 구현하는 것이 가능하다. 컴퓨터가 읽을 수 있는 기록매체는 컴퓨터 시스템에 의하여 읽혀질 수 있는 데이터가 저장되는 모든 종류의 기록장치를 포함한다. 컴퓨터가 읽을 수 있는 기록매체의 예로는 ROM, RAM, CD-ROM, 자기 테이프, 플로피디스크, 광데이터 저장장치 등이 있다. 또한 컴퓨터가 읽을 수 있는 기록매체는 네트워크로 연결된 컴퓨터 시스템에 분산되어 분산방식으로 컴퓨터가 읽을 수 있는 코드가 저장되고 실행될 수 있다.The present invention can also be embodied as computer-readable codes on a computer-readable recording medium. The computer-readable recording medium includes all kinds of recording devices in which data that can be read by a computer system is stored. Examples of computer-readable recording media include ROM, RAM, CD-ROM, magnetic tape, floppy disks, optical data storage devices, and the like. The computer readable recording medium can also be distributed over network coupled computer systems so that the computer readable code is stored and executed in a distributed fashion.

이제까지 본 발명에 대하여 그 바람직한 실시예들을 중심으로 살펴보았다. 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자는 본 발명이 본 발명의 본질적인 특성에서 벗어나지 않는 범위에서 변형된 형태로 구현될 수 있음을 이해할 수 있을 것이다. 그러므로 개시된 실시예들은 한정적인 관점이 아니라 설명적인 관점에서 고려되어야 한다. 본 발명의 범위는 전술한 설명이 아니라 특허청구범위에 나타나 있으며, 그와 동등한 범위 내에 있는 모든 차이점은 본 발명에 포함된 것으로 해석되어야 할 것이다.So far I looked at the center of the preferred embodiment for the present invention. Those skilled in the art will appreciate that the present invention can be implemented in a modified form without departing from the essential features of the present invention. Therefore, the disclosed embodiments should be considered in an illustrative rather than a restrictive sense. The scope of the present invention is shown in the claims rather than the foregoing description, and all differences within the scope will be construed as being included in the present invention.

Claims (9)

데이터베이스의 각 객체의 저장공간에 대한 정보 및 각 객체에 대한 접근 정보를 포함하는 객체에 관한 정보를 파악하는 객체정보 파악부;
상기 각 객체의 저장공간에 대한 정보를 기초로 각 객체의 데이터의 저장 분포가 기 설정된 재편성 대상 기준에 해당하는지 여부를 파악하여 재편성 대상 객체를 선별하는 1차 선별부;
상기 각 객체에 대한 접근 정보를 기초로 재편성 작업 예상 시간대에 객체에의 접근 건수가 일정 기준 이하인 객체들을 재편성 가능 객체로 선별하는 2차 선별부; 및
상기 재편성 대상 객체 및 재편성 가능 객체에 모두 해당하는 객체들에 대해 재편성을 수행하는 재편성부;를 포함하고,
상기 재편성부는,
상기 재편성 대상 객체 및 재편성 가능 객체에 모두 해당하는 객체들에 대해 재편성을 수행하기 전에 상기 재편성 예상 시간이 아닌 실제 재편성 수행 시간대에 대하여 객체에의 접근 건수가 일정 기준 이하인 객체들을 재선별하는 것을 특징으로 하는 객체 재편성 장치.
An object information grasping unit that grasps information about an object including information about a storage space of each object in a database and access information about each object;
A primary sorting unit which selects a reorganization target object by identifying whether a storage distribution of data of each object corresponds to a preset reorganization target criterion based on the information on the storage space of each object;
A secondary sorting unit configured to classify objects having a predetermined number of accesses to or below an object as a reorganizable object at an estimated time of reorganization operation based on the access information of each object; And
And a reorganization unit configured to reorganize objects corresponding to both the reorganization target object and the reorganization object.
The realignment unit,
Before reorganizing the objects corresponding to both the reorganization target object and the reorganization object, the objects of which the number of accesses to the object is less than or equal to a predetermined criterion for the actual reorganization time zone, not the estimated reorganization time, are reselected. Object reorganization device.
제 1항에 있어서, 상기 객체정보 파악부는,
DB2 카탈로그 테이블 및 DB2 RTS 테이블을 조회하여 각 객체의 저장공간에 대한 정보를 파악하고, SQL 사용현황을 통해 각 객체에 대한 접근 정보를 파악하는 것을 특징으로 하는 객체 재편성 장치.
The method of claim 1, wherein the object information grasping unit,
The DB2 catalog table and DB2 RTS table to query the information about the storage space of each object, the object reorganization device characterized in that to grasp the access information for each object through the SQL usage status.
삭제delete 제 1항에 있어서,
상기 재편성부는 상기 재편성의 수행 전에 데이터베이스 테이블의 수정작업을 수행하는 것을 특징으로 하는 객체 재편성 장치.
The method of claim 1,
And the reorganization unit performs a modification of a database table before performing the reorganization.
데이터베이스의 각 객체의 저장공간에 대한 정보 및 각 객체에 대한 접근 정보를 포함하는 객체에 관한 정보를 파악하는 단계;
상기 각 객체의 저장공간에 대한 정보를 기초로 각 객체의 데이터의 저장 분포가 기 설정된 재편성 대상 기준에 해당하는지 여부를 파악하여 재편성 대상 객체를 선별하는 단계;
상기 각 객체에 대한 접근 정보를 기초로 재편성 작업 예상 시간대에 객체에의 접근 건수가 일정 기준 이하인 객체들을 재편성 가능 객체로 선별하는 단계; 및
상기 재편성 대상 객체 및 재편성 가능 객체에 모두 해당하는 객체들에 대해 재편성을 수행하는 단계;를 포함하고,
상기 재편성을 수행하는 단계 전에, 상기 재편성 예상 시간이 아닌 실제 재편성 수행 시간대에 대하여 객체에의 접근 건수가 일정 기준 이하인 객체들을 재선별하는 단계;를 포함하는 것을 특징으로 하는 객체 재편성 방법
Identifying information about an object including information about a storage space of each object in the database and access information about each object;
Selecting a reorganization target object by determining whether a storage distribution of data of each object corresponds to a predetermined reorganization target criterion based on the information on the storage space of each object;
Selecting objects as reorganizable objects in which the number of accesses to the objects is less than or equal to a predetermined criterion in the expected reorganization work time based on the access information for each object; And
And performing reorganization on objects corresponding to both the reorganization target object and the reorganization object.
And re-selecting the objects whose number of accesses to the object is less than or equal to a predetermined criterion for the actual time of the reorganization, not the expected reorganization time, before performing the reorganization.
제 5항에 있어서, 상기 객체에 관한 정보를 파악하는 단계는,
DB2 카탈로그 테이블 및 DB2 RTS 테이블을 조회하여 각 객체의 저장공간에 대한 정보를 파악하는 단계; 및
SQL 사용현황을 통해 각 객체에 대한 접근 정보를 파악하는 단계;를 포함하는 것을 특징으로 하는 객체 재편성 방법.
The method of claim 5, wherein identifying information about the object comprises:
Querying the DB2 catalog table and the DB2 RTS table to obtain information about the storage space of each object; And
Identifying access information of each object through a SQL usage status; object reorganization method comprising a.
삭제delete 제 5항에 있어서,
상기 재편성을 수행하는 단계 전에, 데이터베이스 테이블의 수정작업을 수행하는 단계;를 더 포함하는 것을 특징으로 하는 객체 재편성 방법.
6. The method of claim 5,
And prior to performing the reorganization, performing a modification operation of a database table.
제5항 또는 제6항에 기재된 방법을 수행하기 위한 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록매체.A computer-readable recording medium having recorded thereon a program for performing the method according to claim 5 or 6.
KR1020100029319A 2010-03-31 2010-03-31 Object reorganization apparuatus and method KR101049945B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020100029319A KR101049945B1 (en) 2010-03-31 2010-03-31 Object reorganization apparuatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020100029319A KR101049945B1 (en) 2010-03-31 2010-03-31 Object reorganization apparuatus and method

Publications (1)

Publication Number Publication Date
KR101049945B1 true KR101049945B1 (en) 2011-07-15

Family

ID=44923733

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020100029319A KR101049945B1 (en) 2010-03-31 2010-03-31 Object reorganization apparuatus and method

Country Status (1)

Country Link
KR (1) KR101049945B1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002244898A (en) * 2001-02-19 2002-08-30 Hitachi Ltd Database managing program and database system
JP2008112276A (en) * 2006-10-30 2008-05-15 Hitachi Ltd Relocation system and relocation method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002244898A (en) * 2001-02-19 2002-08-30 Hitachi Ltd Database managing program and database system
JP2008112276A (en) * 2006-10-30 2008-05-15 Hitachi Ltd Relocation system and relocation method

Similar Documents

Publication Publication Date Title
US8239369B2 (en) Method and apparatus for enhancing performance of database and environment thereof
US6584474B1 (en) Method and apparatus for fast and comprehensive DBMS analysis
US11042550B2 (en) Data classification
US10318496B2 (en) Managing a database management system using a set of stream computing data
US9996558B2 (en) Method and system for accessing a set of data tables in a source database
US6529901B1 (en) Automating statistics management for query optimizers
US7694070B2 (en) Computer system for managing performances of storage apparatus and performance management method of the computer system
US5701471A (en) System and method for testing multiple database management systems
US10185745B2 (en) Managing a stream computing environment using a projected database object
US20090210445A1 (en) Method and system for optimizing data access in a database using multi-class objects
US20070271218A1 (en) Statistics collection using path-value pairs for relational databases
CN104714984A (en) Database optimization method and device
CN110795614A (en) Index automatic optimization method and device
KR101744892B1 (en) System and method for data searching using time series tier indexing
GB2378534A (en) SQL execution analysis
US20030167275A1 (en) Computation of frequent data values
US9117005B2 (en) Statistics collection using path-value pairs for relational databases
CN109189343B (en) Metadata disk-dropping method, device, equipment and computer-readable storage medium
US8229924B2 (en) Statistics collection using path-identifiers for relational databases
KR101049945B1 (en) Object reorganization apparuatus and method
CN116628023B (en) Waiting event type query method and device, storage medium and electronic equipment
US7974969B1 (en) Apparatus, method and computer-code for quantifying index overhead
US8280869B1 (en) Sharing intermediate results
KR101676467B1 (en) Privisioning method and apparatus
Alapati et al. Oracle Database 12c Performance Tuning Recipes: A Problem-Solution Approach

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

Year of fee payment: 4

FPAY Annual fee payment

Payment date: 20150629

Year of fee payment: 5

FPAY Annual fee payment

Payment date: 20160628

Year of fee payment: 6

LAPS Lapse due to unpaid annual fee