KR101747270B1 - Method, server and computer program stored in computer readable medium for synchronizing query result - Google Patents

Method, server and computer program stored in computer readable medium for synchronizing query result Download PDF

Info

Publication number
KR101747270B1
KR101747270B1 KR1020160101064A KR20160101064A KR101747270B1 KR 101747270 B1 KR101747270 B1 KR 101747270B1 KR 1020160101064 A KR1020160101064 A KR 1020160101064A KR 20160101064 A KR20160101064 A KR 20160101064A KR 101747270 B1 KR101747270 B1 KR 101747270B1
Authority
KR
South Korea
Prior art keywords
database server
synchronization
materialized view
master table
log
Prior art date
Application number
KR1020160101064A
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 KR1020160101064A priority Critical patent/KR101747270B1/en
Application granted granted Critical
Publication of KR101747270B1 publication Critical patent/KR101747270B1/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/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • G06F16/275Synchronous replication
    • G06F17/30575
    • 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
    • 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
    • G06F16/2282Tablespace storage structures; Management thereof
    • 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
    • G06F16/2358Change logging, detection, and notification
    • G06F17/30289
    • G06F17/30339
    • G06F17/30368

Abstract

본 발명의 일 실시예에 따라서, 제 1 데이터베이스 서버에서 수행되는 데이터베이스들 간의 쿼리 결과를 동기화하기 위한 방법이 개시된다. 상기 방법은: 제 1 데이터베이스 서버의 원격에 위치한 제 2 데이터베이스 서버에 존재하는 실체화 뷰(Materialized View)에 대한 동기화를 수행할 것을 결정하는 단계 ― 상기 실체화 뷰는 상기 제 1 데이터베이스 서버에 존재하는 마스터 테이블(Master Table)을 참조하는 실체화 뷰이며, 그리고 제 1 데이터베이스와 제 2 데이터베이스는 서로 이기종(heterogeneous)임 ―; 동기화 수행 결정에 응답하여, 상기 제 2 데이터베이스 서버로 전송될 동기화 명령을 생성하는 단계; 및 상기 생성된 동기화 명령을 상기 제 2 데이터베이스 서버로 전송하여, 상기 제 2 데이터베이스 서버로 하여금 상기 제 2 데이터베이스 서버에 존재하는 상기 실체화 뷰와 상기 제 1 데이터베이스 서버에 존재하는 상기 마스터 테이블 간의 동기화를 수행하도록 하는 단계를 포함할 수 있다.According to an embodiment of the present invention, a method for synchronizing query results between databases performed in a first database server is disclosed. The method comprising: determining to perform synchronization for a materialized view residing on a second database server located remotely on a first database server, the materialized view comprising a master table And the first database and the second database are heterogeneous; Generating a synchronization command to be transmitted to the second database server in response to the synchronization performing determination; And transmitting the generated synchronization command to the second database server to cause the second database server to perform synchronization between the materialized view existing in the second database server and the master table existing in the first database server .

Description

이기종 데이터베이스들 간의 쿼리 결과를 동기화하기 위한 방법, 서버 및 컴퓨터-판독가능 매체에 저장된 컴퓨터 프로그램{METHOD, SERVER AND COMPUTER PROGRAM STORED IN COMPUTER READABLE MEDIUM FOR SYNCHRONIZING QUERY RESULT} [0001] METHOD, SERVER AND COMPUTER PROGRAM STORED IN COMPUTER READABLE MEDIUM FOR SYNCHRONIZING QUERY RESULT [0002] BACKGROUND OF THE INVENTION [0003]

본 발명은 데이터베이스 관리 시스템(DBMS)에 관한 것으로서, 보다 구체적으로 원격 실체화 뷰(Materialized View)를 사용하여 이기종 데이터베이스들 사이에서 쿼리 결과를 동기화하는 것과 관련된다.The present invention relates to a database management system (DBMS), and more particularly to synchronizing query results between heterogeneous databases using a remote materialized view.

기업의 비즈니스는 폭발적인 데이터의 증가와 다양한 환경 및 플랫폼의 등장으로 빠르게 확장되고 있다. 새로운 비즈니스 환경이 도래함에 따라서, 보다 더 효율적이고 유연한 데이터 서비스와 정보의 처리, 데이터 관리 기능이 필요하게 되었다. 이러한 변화에 맞춰서 기업 비지니스 구현의 기반이되는 고성능, 고가용성 및 확장성의 문제를 해결하기 위한 데이터베이스에 대한 연구가 계속되고 있다.Businesses are rapidly expanding with explosive data growth and the emergence of diverse environments and platforms. With the advent of new business environments, more efficient and flexible data services, information processing and data management capabilities are required. In response to these changes, research is continuing on databases to solve the problems of high performance, high availability, and scalability that are the foundation of corporate business implementation.

데이터베이스 관리 시스템(DBMS)에서 데이터들은 데이터 저장소에 저장될 수 있다. 관계형 데이터베이스 관리 시스템(RDBMS)에서는 이러한 데이터 저장소는 테이블로 지칭될 수 있다. 이러한 테이블은 하나 이상의 로우들을 포함하고 하나 이상의 로우들 각각은 하나 이상의 컬럼들을 포함할 수 있다. In a database management system (DBMS), data can be stored in a data store. In a relational database management system (RDBMS), this data store can be referred to as a table. Such a table may include one or more rows and each of the one or more rows may include one or more columns.

데이터베이스가 수많은 양의 데이터를 포함하고 있는 경우, 사용자가 관심있어 하는 데이터를 리트리브하기 위한 쿼리를 수행하는데 있어서 상대적으로 긴 시간이 소요될 수 있다. 데이터베이스가 쿼리에 응답하는데 시간이 많이 소요되는 경우에는 데이터베이스의 성능에 있어서 악영향을 미칠 수 있다. If the database contains a large amount of data, it may take a relatively long time to perform a query to retrieve the data that the user is interested in. If the database takes a long time to respond to a query, it can adversely affect the performance of the database.

이러한 상황에서는 자주 그리고 다수의 사용자에 의해 액세스되는 컬럼 또는 테이블 등으로의 직접적인 액세스를 제한하는 것이 바람직하다. 이러한 문제는, 해당 컬럼 또는 테이블로의 직접적인 액세스가 아닌, "뷰(view)"를 통하여 해당 컬럼 또는 테이블로의 간접적인 액세스를 수행하는 경우 해결될 수 있다. 이러한 "뷰"는 하나 이상의 마스터 테이블로부터 유도된 마스터 테이블과 같은 형태의 물리적으로 존재하지 않는 가상의 또는 논리적인 테이블을 의미할 수 있다. 즉, 뷰를 실행하는 경우 정의된 쿼리의 결과 세트가 메모리 상에 생성되며, 세션이 종료되는 경우 해당 결과 세트는 사라지게 된다.In such situations it is desirable to limit direct access to columns or tables that are accessed frequently and by a large number of users. This problem can be solved when performing indirect access to the corresponding column or table through a "view " rather than directly accessing the corresponding column or table. This "view" may refer to a virtual or logical table that does not physically exist in the same form as a master table derived from one or more master tables. That is, when you execute a view, the result set of the defined query is created in memory, and the result set disappears when the session ends.

실체화 뷰(Materialized view)는 뷰 쿼리의 결과를 물리적으로 저장할 수 있는 테이블을 의미할 수 있다. 이러한 실체화 뷰는, 쿼리 실행의 수행 속도를 향상시키기 위해 쿼리의 별도의 수행 없이 쿼리 결과가 직접 저장된 테이블에서 해당 결과를 가져올 수 있다. 즉, 실체화 뷰는 해당 쿼리의 결과 세트가 테이블 스페이스의 테이블로 저장되기 때문에, 적은 비용으로 지속적인 업데이트가 용이해질 수 있다. 또한, 이러한 실체화 뷰는 복잡한 쿼리의 캐싱(caching) 또는 특정 테이블을 다른 데이터베이스로의 복제 등에 사용될 수 있다.A materialized view can refer to a table that can physically store the results of a view query. This materialized view can fetch the results directly from a table in which the query results are directly stored, without any extra processing of the query, to speed up the execution of the query. That is, an instantiation view can facilitate continuous updating at low cost, because the result set of the query is stored as a table in the tablespace. Such an instantiation view can also be used for caching complex queries or for replicating a particular table to another database.

실체화 뷰가 참조하고 있는 마스터 테이블의 데이터가 변경되는 경우, 쿼리 결과 값에 대한 일관성을 유지하기 위하여, 마스터 테이블에서 변경된 데이터는 이러한 실체화 뷰(즉, 실체화 뷰 테이블 또는 컨테이너 테이블)로 반영되어야할 것이다.When the data in the master table referenced by the materialized view changes, the data that has changed in the master table must be reflected in this materialized view (that is, the materialized view table or the container table) in order to maintain consistency in the query result values .

따라서, 이러한 실체화 뷰에 대한 동기화(즉, 리프레시(refresh))와 관련된 다양한 연구가 계속되고 있다. Therefore, various studies related to synchronization (i. E., Refresh) for such materialized views are continuing.

본 발명은 효율적인 방식으로 이기종 데이터베이스들 간의 쿼리 결과 동기화를 구현하기 위함이다.The present invention is for implementing query result synchronization between heterogeneous databases in an efficient manner.

본 발명은 서로 호환되지 않는 이기종 데이터베이스들 간의 실체화 뷰에 대한 고속 리프레시(fast refresh)를 구현하기 위함이다.The present invention is intended to implement a fast refresh for an instantiation view between heterogeneous databases that are incompatible with each other.

본 발명의 일 실시예에 따라서, 제 1 데이터베이스 서버에서 수행되는 데이터베이스들 간의 쿼리 결과를 동기화하기 위한 방법이 개시된다. 상기 방법은: 제 1 데이터베이스 서버의 원격에 위치한 제 2 데이터베이스 서버에 존재하는 실체화 뷰(Materialized View)에 대한 동기화를 수행할 것을 결정하는 단계 ― 상기 실체화 뷰는 상기 제 1 데이터베이스 서버에 존재하는 마스터 테이블(Master Table)을 참조하는 실체화 뷰이며, 그리고 상기 제 1 데이터베이스 서버와 상기 제 2 데이터베이스 서버는 서로 이기종(heterogeneous)임 ―; 동기화 수행 결정에 응답하여, 상기 제 2 데이터베이스 서버로 전송될 동기화 명령을 생성하는 단계; 및 상기 생성된 동기화 명령을 상기 제 2 데이터베이스 서버로 전송하여, 상기 제 2 데이터베이스 서버로 하여금 상기 제 2 데이터베이스 서버에 존재하는 상기 실체화 뷰와 상기 제 1 데이터베이스 서버에 존재하는 상기 마스터 테이블 간의 동기화를 수행하도록 하는 단계를 포함할 수 있다.According to an embodiment of the present invention, a method for synchronizing query results between databases performed in a first database server is disclosed. The method comprising: determining to perform synchronization for a materialized view residing on a second database server located remotely on a first database server, the materialized view comprising a master table Wherein the first database server and the second database server are heterogeneous; Generating a synchronization command to be transmitted to the second database server in response to the synchronization performing determination; And transmitting the generated synchronization command to the second database server to cause the second database server to perform synchronization between the materialized view existing in the second database server and the master table existing in the first database server .

본 발명의 일 실시예에 따라서, 제 2 데이터베이스 서버에서 수행되는 데이터베이스들 간의 쿼리 결과를 동기화하기 위한 방법이 개시된다. 상기 방법은: 상기 제 2 데이터베이스 서버의 원격에 위치한 제 1 데이터베이스 서버로부터의 동기화 명령을 수신하는 단계 ― 상기 제 1 데이터베이스 서버에는 마스터 테이블이 존재하며, 상기 제 2 데이터베이스 서버에는 상기 마스터 테이블을 참조하는 실체화 뷰가 존재하고, 그리고 상기 제 1 데이터베이스 서버와 상기 제 2 데이터베이스 서버는 서로 이기종임 ―; 및 상기 수신된 동기화 명령에 응답하여, 상기 제 2 데이터베이스 서버에 존재하는 상기 실체화 뷰와 상기 제 1 데이터베이스 서버에 존재하는 상기 마스터 테이블 간의 동기화를 수행하는 단계를 포함할 수 있다.According to an embodiment of the present invention, a method for synchronizing query results between databases performed in a second database server is disclosed. The method comprising the steps of: receiving a synchronization command from a first database server located remotely of the second database server, wherein the master database exists in the first database server and the master database is referred to the second database server Wherein the first database server and the second database server are heterogeneous; And performing synchronization between the materialized view residing in the second database server and the master table existing in the first database server in response to the received synchronization command.

본 발명의 일 실시예에 따라서, 데이터베이스들 간의 쿼리 결과를 동기화하기 위한 제 1 데이터베이스 서버가 개시된다. 상기 서버는: 상기 제 1 데이터베이스 서버의 원격에 위치한 제 2 데이터베이스 서버에 존재하는 실체화 뷰에 대한 동기화를 수행할 것을 결정하도록 구성되는 동기화 결정 모듈 ― 상기 실체화 뷰는 상기 제 1 데이터베이스 서버에 존재하는 마스터 테이블(Master Table)을 참조하는 실체화 뷰이며, 그리고 상기 제 1 데이터베이스 서버와 상기 제 2 데이터베이스 서버는 서로 이기종(heterogeneous)임 ―; 동기화 수행 결정에 응답하여, 상기 제 2 데이터베이스 서버로 전송될 동기화 명령을 생성하도록 구성되는 동기화 명령 생성 모듈; 및 상기 생성된 동기화 명령을 상기 제 2 데이터베이스 서버로 전송하여, 상기 제 2 데이터베이스 서버로 하여금 상기 제 2 데이터베이스 서버에 존재하는 상기 실체화 뷰와 상기 제 1 데이터베이스 서버에 존재하는 상기 마스터 테이블 간의 동기화를 수행하도록 허용하도록 구성되는 통신 모듈;을 포함할 수 있다.According to an embodiment of the present invention, a first database server for synchronizing query results between databases is disclosed. Wherein the server is configured to: determine to perform synchronization for an instantiation view residing on a second database server located remotely on the first database server, the instantiation view module comprising: Wherein the first database server and the second database server are heterogeneous; A synchronization command generation module configured to generate a synchronization command to be transmitted to the second database server in response to the synchronization performing determination; And transmitting the generated synchronization command to the second database server to cause the second database server to perform synchronization between the materialized view existing in the second database server and the master table existing in the first database server And a communication module configured to allow the communication module to communicate with the communication module.

본 발명의 일 실시예에 따라서, 데이터베이스들 간의 쿼리 결과를 동기화하기 위한 제 2 데이터베이스 서버가 개시된다. 상기 서버는: 상기 제 2 데이터베이스 서버의 원격에 위치한 제 1 데이터베이스 서버로부터의 동기화 명령을 수신하도록 구성되는 통신 모듈 ― 상기 제 1 데이터베이스 서버에는 마스터 테이블이 존재하며, 상기 제 2 데이터베이스 서버에는 상기 마스터 테이블을 참조하는 실체화 뷰가 존재하고, 그리고 상기 제 1 데이터베이스 서버와 상기 제 2 데이터베이스 서버는 서로 이기종임 ―; 및 상기 수신된 동기화 명령에 응답하여, 상기 제 2 데이터베이스 서버에 존재하는 상기 실체화 뷰와 상기 제 1 데이터베이스 서버에 존재하는 상기 마스터 테이블 간의 동기화를 수행하도록 구성되는 동기화 수행 모듈;을 포함할 수 있다.According to one embodiment of the present invention, a second database server for synchronizing query results between databases is disclosed. The server comprising: a communication module configured to receive a synchronization command from a first database server located remotely of the second database server, the communication module having a master table in the first database server, Wherein the first database server and the second database server are heterogeneous; And a synchronization performing module configured to perform synchronization between the materialized view existing in the second database server and the master table existing in the first database server in response to the received synchronization command.

본 발명의 일 실시예에 따라서, 인코딩된 명령들을 포함하는 컴퓨터 판독가능 매체에 저장된 컴퓨터 프로그램이 제공된다. 상기 컴퓨터 프로그램은 컴퓨터 시스템의 하나 이상의 프로세서들에 의해 실행되는 경우, 상기 하나 이상의 프로세서들로 하여금 이하의 동작들을 수행하도록 하며, 상기 동작들은: 제 1 데이터베이스 서버의 원격에 위치한 제 2 데이터베이스 서버에 존재하는 실체화 뷰에 대한 동기화를 수행할 것을 결정하는 동작 ― 상기 실체화 뷰는 상기 제 1 데이터베이스 서버에 존재하는 마스터 테이블을 참조하는 실체화 뷰이며, 그리고 상기 제 1 데이터베이스 서버와 상기 제 2 데이터베이스 서버는 서로 이기종임 ―; 동기화 수행 결정에 응답하여, 상기 제 2 데이터베이스 서버로 전송될 동기화 명령을 생성하는 동작; 및 상기 생성된 동기화 명령을 상기 제 2 데이터베이스 서버로 전송하여, 상기 제 2 데이터베이스 서버로 하여금 상기 제 2 데이터베이스 서버에 존재하는 상기 실체화 뷰와 상기 제 1 데이터베이스 서버에 존재하는 상기 마스터 테이블 간의 동기화를 수행하도록 하는 동작;을 포함할 수 있다.According to one embodiment of the invention, a computer program stored on a computer readable medium comprising encoded instructions is provided. The computer program, when executed by one or more processors of a computer system, causes the one or more processors to perform the following operations: the first database server Wherein the realization view is an instantiation view that references a master table present in the first database server, and wherein the first database server and the second database server are different from each other -; Generating a synchronization command to be transmitted to the second database server in response to the synchronization performing determination; And transmitting the generated synchronization command to the second database server to cause the second database server to perform synchronization between the materialized view existing in the second database server and the master table existing in the first database server And the like.

본 발명의 일 실시예에 따라서, 인코딩된 명령들을 포함하는 컴퓨터 판독가능 매체에 저장된 컴퓨터 프로그램이 제공된다. 상기 컴퓨터 프로그램은 컴퓨터 시스템의 하나 이상의 프로세서들에 의해 실행되는 경우, 상기 하나 이상의 프로세서들로 하여금 이하의 동작들을 수행하도록 하며, 상기 동작들은: 상기 제 2 데이터베이스 서버의 원격에 위치한 제 1 데이터베이스 서버로부터의 동기화 명령을 수신하는 동작 ― 상기 제 1 데이터베이스 서버에는 마스터 테이블이 존재하며, 상기 제 2 데이터베이스 서버에는 상기 마스터 테이블을 참조하는 실체화 뷰가 존재하고, 그리고 상기 제 1 데이터베이스 서버와 상기 제 2 데이터베이스 서버는 서로 이기종임 ―; 및 상기 수신된 동기화 명령에 응답하여, 상기 제 2 데이터베이스 서버에 존재하는 상기 실체화 뷰와 상기 제 1 데이터베이스 서버에 존재하는 상기 마스터 테이블 간의 동기화를 수행하는 동작;을 포함할 수 있다.According to one embodiment of the invention, a computer program stored on a computer readable medium comprising encoded instructions is provided. The computer program causing the one or more processors to perform the following operations when executed by one or more processors of a computer system, the operations comprising: receiving from a first database server remote from the second database server Wherein the first database server has a master table, the second database server has an instantiation view that refers to the master table, and the first database server and the second database server Are heterogeneous; And performing synchronization between the materialized view residing in the second database server and the master table existing in the first database server in response to the received synchronization command.

본 발명의 일 실시예에 따라서, 효율적인 방식으로 이기종 데이터베이스들 간의 쿼리 결과 동기화가 구현될 수 있다.According to one embodiment of the present invention, query result synchronization between heterogeneous databases can be implemented in an efficient manner.

본 발명의 일 실시예에 따라서, 서로 호환되지 않는 이기종 데이터베이스들 간의 실체화 뷰에 대한 고속 리프레시(fast refresh)가 구현될 수 있다.According to one embodiment of the present invention, a fast refresh for an instantiation view between heterogeneous databases incompatible with each other can be implemented.

다양한 양상들이 이제 도면들을 참조로 기재되며, 여기서 유사한 참조 번호들은 총괄적으로 유사한 구성요소들을 지칭하는데 이용된다. 이하의 실시예에서, 설명 목적을 위해, 다수의 특정 세부사항들이 하나 이상의 양상들의 총체적 이해를 제공하기 위해 제시된다. 그러나, 그러한 양상(들)이 이러한 특정 세부사항들 없이 실시될 수 있음은 명백할 것이다. 다른 예시들에서, 공지의 구조들 및 장치들이 하나 이상의 양상들의 기재를 용이하게 하기 위해 블록도 형태로 도시된다.
도 1은 본 발명의 일 실시예에 따른 데이터베이스 시스템에 대한 개략도를 도시한다.
도 2는 본 발명의 일 실시예에 따른 제 1 데이터베이스 서버에 대한 개략도를 도시한다.
도 3은 본 발명의 일 실시예에 따른 제 2 데이터베이스 서버에 대한 개략도를 도시한다.
도 4는 본 발명의 일 실시예에 따라 제 1 데이터베이스 서버에서 수행되는 데이터베이스들 간의 쿼리 결과를 동기화하기 위한 순서도를 도시한다.
도 5는 본 발명의 일 실시예에 따라 제 2 데이터베이스 서버에서 수행되는 데이터베이스들 간의 쿼리 결과를 동기화하기 위한 순서도를 도시한다.
도 6은 본 발명의 일 실시예에 따라 쿼리 결과를 동기화하기 위한 제 1 데이터베이스 서버 및 제 2 데이터베이스 서버의 개략도를 도시한다.
도 7은 본 발명의 실시예들이 구현될 수 있는 예시적인 컴퓨팅 환경에 대한 간략하고 일반적인 개략도를 도시한다.
Various aspects are now described with reference to the drawings, wherein like reference numerals are used to refer to like elements throughout. In the following examples, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of one or more aspects. However, it will be apparent that such aspect (s) may be practiced without these specific details. In other instances, well-known structures and devices are shown in block diagram form in order to facilitate describing one or more aspects.
Figure 1 shows a schematic diagram for a database system according to an embodiment of the invention.
2 shows a schematic diagram for a first database server according to an embodiment of the present invention.
3 shows a schematic diagram for a second database server according to an embodiment of the present invention.
4 illustrates a flowchart for synchronizing query results between databases performed in a first database server according to an embodiment of the present invention.
5 illustrates a flowchart for synchronizing query results between databases performed in a second database server according to an embodiment of the present invention.
6 illustrates a schematic diagram of a first database server and a second database server for synchronizing query results in accordance with one embodiment of the present invention.
Figure 7 illustrates a simplified schematic diagram of an exemplary computing environment in which embodiments of the present invention may be implemented.

다양한 실시예들 및/또는 양상들이 이제 도면들을 참조하여 개시된다. 하기 설명에서는 설명을 목적으로, 하나 이상의 양상들의 전반적 이해를 돕기 위해 다수의 구체적인 세부사항들이 개시된다. 그러나, 이러한 양상(들)은 이러한 구체적인 세부사항들 없이도 실행될 수 있다는 점 또한 본 발명의 기술 분야에서 통상의 지식을 가진 자에게 인식될 수 있을 것이다. 이후의 기재 및 첨부된 도면들은 하나 이상의 양상들의 특정한 예시적인 양상들을 상세하게 기술한다. 하지만, 이러한 양상들은 예시적인 것이고 다양한 양상들의 원리들에서의 다양한 방법들 중 일부가 이용될 수 있으며, 기술되는 설명들은 그러한 양상들 및 그들의 균등물들을 모두 포함하고자 하는 의도이다.Various embodiments and / or aspects are now described with reference to the drawings. In the following description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of one or more aspects. However, it will also be appreciated by those of ordinary skill in the art that such aspect (s) may be practiced without these specific details. The following description and the annexed drawings set forth in detail certain illustrative aspects of one or more aspects. It is to be understood, however, that such aspects are illustrative and that some of the various ways of practicing various aspects of the principles of various aspects may be utilized, and that the description set forth is intended to include all such aspects and their equivalents.

또한, 다양한 양상들 및 특징들이 다수의 디바이스들, 컴포넌트들 및/또는 모듈들 등을 포함할 수 있는 시스템에 의하여 제시될 것이다. 다양한 시스템들이, 추가적인 장치들, 컴포넌트들 및/또는 모듈들 등을 포함할 수 있다는 점 그리고/또는 도면들과 관련하여 논의된 장치들, 컴포넌트들, 모듈들 등 전부를 포함하지 않을 수도 있다는 점 또한 이해되고 인식되어야 한다. In addition, various aspects and features will be presented by a system that may include multiple devices, components and / or modules, and so forth. It should be understood that the various systems may include additional devices, components and / or modules, etc., and / or may not include all of the devices, components, modules, etc. discussed in connection with the drawings Must be understood and understood.

본 명세서에서 사용되는 "실시예", "예", "양상", "예시" 등은 기술되는 임의의 양상 또는 설계가 다른 양상 또는 설계들보다 양호하다거나, 이점이 있는 것으로 해석되지 않을 수도 있다. 아래에서 사용되는 용어들 '컴포넌트', '모듈', '시스템', '인터페이스' 등은 일반적으로 컴퓨터 관련 엔티티(computer-related entity)를 의미하며, 예를 들어, 하드웨어, 하드웨어와 소프트웨어의 조합, 소프트웨어를 의미할 수 있다.As used herein, the terms "an embodiment," "an embodiment," " an embodiment, "" an embodiment ", etc. are intended to indicate that any aspect or design described is better or worse than other aspects or designs. . As used herein, the terms 'component,' 'module,' 'system,' 'interface,' and the like generally refer to a computer-related entity and include, for example, hardware, It can mean software.

더불어, 용어 "또는"은 배타적 "또는"이 아니라 내포적 "또는"을 의미하는 것으로 의도된다. 즉, 달리 특정되지 않거나 문맥상 명확하지 않은 경우에, "X는 A 또는 B를 이용한다"는 자연적인 내포적 치환 중 하나를 의미하는 것으로 의도된다. 즉, X가 A를 이용하거나; X가 B를 이용하거나; 또는 X가 A 및 B 모두를 이용하는 경우, "X는 A 또는 B를 이용한다"가 이들 경우들 어느 것으로도 적용될 수 있다. 또한, 본 명세서에 사용된 "및/또는"이라는 용어는 열거된 관련 아이템들 중 하나 이상의 아이템의 가능한 모든 조합을 지칭하고 포함하는 것으로 이해되어야 한다. In addition, the term "or" is intended to mean " exclusive or " That is, it is intended to mean one of the natural inclusive substitutions "X uses A or B ", unless otherwise specified or unclear in context. That is, X uses A; X uses B; Or when X uses both A and B, "X uses A or B" can be applied to either of these cases. It should also be understood that the term "and / or" as used herein refers to and includes all possible combinations of one or more of the listed related items.

또한, "포함한다" 및/또는 "포함하는"이라는 용어는, 해당 특징 및/또는 구성요소가 존재함을 의미하지만, 하나 이상의 다른 특징, 구성요소 및/또는 이들의 그룹의 존재 또는 추가를 배제하지 않는 것으로 이해되어야 한다. 또한, 달리 특정되지 않거나 단수 형태를 지시하는 것으로 문맥상 명확하지 않은 경우에, 본 명세서와 청구범위에서 단수는 일반적으로 "하나 또는 그 이상"을 의미하는 것으로 해석되어야 한다.It is also to be understood that the term " comprises "and / or" comprising " means that the feature and / or component is present, but does not exclude the presence or addition of one or more other features, components and / It should be understood that it does not. Also, unless the context clearly dictates otherwise or to the contrary, the singular forms in this specification and claims should generally be construed to mean "one or more. &Quot;

본 명세서에서의 컴퓨터 판독가능 매체는 컴퓨터 시스템에 의해서 판독될 수 있도록 프로그램 및 데이터가 저장되는 모든 종류의 저장 매체를 포함할 수 있다. 본 발명의 일 양상에 따르면, 이러한 매체는 ROM(판독 전용 메모리), RAM(랜덤 액세스 메모리), CD(컴팩트 디스크)-ROM, DVD(디지털 비디오 디스크)-ROM, 자기 테이프, 플로피 디스크, 광 데이터 저장장치 등을 포함할 수 있다. 추가적으로, 이러한 매체는 네트워크로 연결된 시스템에 분산되어, 분산 방식으로 컴퓨터가 판독가능한 코드들 및/또는 명령들을 저장할 수도 있다.The computer readable media herein may include any type of storage medium in which programs and data are stored so that they can be read by a computer system. According to one aspect of the present invention, such medium may be a ROM (Read Only Memory), a RAM (Random Access Memory), a CD (Compact Disk) -ROM, a DVD Storage devices, and the like. Additionally, such media may be distributed over networked systems and may store computer readable codes and / or instructions in a distributed manner.

본 발명의 실시를 위한 구체적인 내용을 설명하기에 앞서, 본 발명의 기술적 요지와 직접적 관련이 없는 구성에 대해서는 본 발명의 기술적 요지를 흩뜨리지 않는 범위 내에서 생략하였음에 유의하여야 할 것이다. 또한, 본 명세서 및 청구범위에 사용된 용어 또는 단어는 발명자가 자신의 발명을 최선의 방법으로 설명하기 위해 적절한 용어의 개념을 정의할 수 있다는 원칙에 입각하여 본 발명의 기술적 사상에 부합하는 의미와 개념으로 해석되어야 할 것이다.Before describing the embodiments of the present invention in detail, it is to be understood that the present invention is not limited to the above-described embodiments, but may be modified and changed without departing from the scope and spirit of the invention. It is also to be understood that the terminology or words used in the present specification and claims should be interpreted with reference to the meaning of the inventive concept of the present invention based on the principle that the inventor can define the concept of appropriate terms to describe his invention in the best way It should be interpreted as a concept.

도 1은 본 발명의 일 실시예에 따른 데이터베이스 시스템(100)에 대한 개략도를 도시한다.1 illustrates a schematic diagram of a database system 100 in accordance with one embodiment of the present invention.

도 1에서 도시되는 바와 같이, 데이터베이스 시스템(100)은 클라이언트(110), 제 1 데이터베이스 서버(120), 및 제 2 데이터베이스 서버(130)를 포함할 수 있다.As shown in FIG. 1, the database system 100 may include a client 110, a first database server 120, and a second database server 130.

도 1에서 도시되는 바와 같이, 클라이언트(110)는 네트워크를 통하여 통신하기 위한 매커니즘을 갖는 데이터베이스 시스템에서의 노드(들)를 의미할 수 있다. 예를 들어, 클라이언트(110)는 PC, 랩탑 컴퓨터, 워크스테이션, 단말 및/또는 네트워크 접속성을 갖는 임의의 전자 디바이스를 포함할 수 있다. 또한, 클라이언트(110)는 에이전트(Agent), API(Application Programming Interface) 및 플러그-인(Plug-in) 중 적어도 하나에 의해 구현되는 임의의 서버를 포함할 수도 있다. 예를 들어, 도 1에서의 클라이언트(110)는 제 2 데이터베이스 서버(130)를 사용하는 사용자와 관련될 수 있다. 이러한 예시에서, 클라이언트(110)는 제 1 데이터베이스 서버(120)에서의 테이블을 참조하는 실체화 뷰를 제 2 데이터베이스 서버(130)를 통해 확인할 수 있다.As shown in FIG. 1, client 110 may refer to node (s) in a database system having a mechanism for communicating over a network. For example, the client 110 may include a PC, a laptop computer, a workstation, a terminal, and / or any electronic device having network connectivity. In addition, the client 110 may include any server implemented by at least one of an agent, an application programming interface (API), and a plug-in. For example, the client 110 in FIG. 1 may be associated with a user using the second database server 130. In this example, the client 110 can confirm the materialized view referring to the table in the first database server 120 through the second database server 130.

데이터베이스 서버(120 및 130)는, 예를 들어, 마이크로프로세서, 메인프레임 컴퓨터, 디지털 싱글 프로세서, 휴대용 디바이스 및 디바이스 제어기 등과 같은 임의의 타입의 컴퓨터 시스템 또는 컴퓨터 디바이스를 포함할 수 있다. 이러한 데이터베이스 서버(120 및 130)들 각각은 DBMS(Database Management System)(120a 및 130a) 및 영구 저장 매체(persistent storage)(120b 및 130b)를 포함할 수 있다. 제 1 데이터베이스 서버(120) 및 제 2 데이터베이스 서버(130)는 서로 원격에 위치한 이종의 데이터베이스 서버를 의미할 수 있다. 더불어, 도 1에서는 2개의 데이터베이스 서버를 도시하고 있으나, 이보다 많은 데이터베이스 서버들 또한 본 발명의 범위에 포함될 수 있다는 점이 당해 출원분야에 있어서 통상의 지식을 가진 자에게 명백할 것이다. Database servers 120 and 130 may include any type of computer system or computer device, such as, for example, a microprocessor, a mainframe computer, a digital single processor, a portable device and a device controller. Each of these database servers 120 and 130 may include a Database Management System (DBMS) 120a and 130a and persistent storage 120b and 130b. The first database server 120 and the second database server 130 may denote heterogeneous database servers located remotely from each other. In addition, although FIG. 1 shows two database servers, it will be apparent to those skilled in the art that many more database servers may be included within the scope of the present invention.

도 1에서는 도시되지 않았지만, 데이터베이스 서버(120 및 130)는 버퍼 캐시를 포함하는 하나 이상의 메모리를 포함할 수 있다. 또한, 도 1에서는 도시되지 않았지만, 데이터베이스 서버(120 및 130)는 하나 이상의 프로세서를 포함할 수 있다. 따라서, DBMS(120a 및 120b)는 상기 메모리 상에서 상기 프로세서에 의하여 동작될 수 있다. Although not shown in FIG. 1, the database servers 120 and 130 may include one or more memories containing a buffer cache. Also, although not shown in FIG. 1, database servers 120 and 130 may include one or more processors. Thus, DBMSs 120a and 120b may be operated by the processor on the memory.

여기서, 메모리는 동적 램(DRAM, dynamic random access memory), 정적 램(SRAM, static random access memory) 등의 랜덤 액세스 메모리(RAM)와 같은, 프로세서가 직접 접근하는 주된 저장 장치로서 전원이 꺼지면 저장된 정보가 순간적으로 지워지는 휘발성(volatile) 저장 장치를 의미할 수 있지만, 이들로 한정되는 것은 아니다. 이러한 메모리는 프로세서에 의하여 동작 될 수 있다. 메모리는 데이터 값을 포함하는 데이터 테이블(data table)을 임시로 저장할 수 있다. 상기 데이터 테이블은 데이터 값을 포함할 수 있으며, 본 발명의 일 실시예에서 상기 데이터 테이블의 데이터 값은 메모리로부터 영구 저장 매체에 기록될 수 있다. 추가적인 양상에서, 메모리는 버퍼 캐시를 포함하며, 상기 버퍼 캐시의 데이터 블록에는 데이터가 저장될 수 있다. 상기 데이터는 백그라운드 프로세스에 의하여 영구 저장 매체에 기록될 수 있다.Here, the memory is a main storage device directly accessed by the processor, such as a random access memory (RAM) such as a dynamic random access memory (DRAM), a static random access memory (SRAM) Volatile storage devices that are erased instantaneously, but are not limited to these. Such memory may be operated by the processor. The memory may temporarily store a data table containing data values. The data table may include a data value, and in an embodiment of the present invention, the data value of the data table may be written to the persistent storage medium from memory. In a further aspect, the memory includes a buffer cache, wherein data may be stored in a data block of the buffer cache. The data may be written to a persistent storage medium by a background process.

영구 저장 매체(120b 및 130b)는, 예를 들어 자기(magnetic) 디스크, 광학(optical) 디스크 및 광자기(magneto-optical) 저장 디바이스뿐만 아니라 플래시 메모리 및/또는 배터리-백업 메모리에 기초한 저장 디바이스와 같은, 임의의 데이터를 지속적으로 할 수 있는 비-휘발성(non-volatile) 저장 매체를 의미한다. 이러한 영구 저장 매체(120b 및 130b)는 다양한 통신 수단을 통하여 데이터베이스 서버(120 및 130)의 프로세서 및 메모리와 통신할 수 있다. 추가적인 실시예에서, 이러한 영구 저장 매체(120b 및 130b)는 데이터베이스 서버(120 및 130) 외부에 위치하여 데이터베이스 서버(120 및 130)와 통신가능할 수도 있다.The permanent storage media 120b and 130b may be, for example, magnetic disks, optical disks and magneto-optical storage devices as well as storage devices based on flash memory and / or battery- Quot; refers to a non-volatile storage medium that can continuously store any data. These persistent storage media 120b and 130b may communicate with the processors and memory of the database servers 120 and 130 via various communication means. In a further embodiment, these persistent storage media 120b and 130b may be external to the database servers 120 and 130 and may be capable of communicating with the database servers 120 and 130. [

DBMS(120a 및 130a)는 데이터베이스 서버(120 및 130)에서 필요한 데이터를 검색, 삽입, 수정 및/또는 삭제 등과 같은 동작들을 수행하는 것을 허용하기 위한 프로그램으로서, 전술한 바와 같이, 데이터베이스 서버(120 및 130)의 메모리에서 프로세서에 의하여 구현될 수 있다. The DBMSs 120a and 130a are programs for allowing the database servers 120 and 130 to perform operations such as retrieving, inserting, modifying, and / or deleting necessary data, 130 in a memory.

클라이언트(110)와 데이터베이스 서버(120 및 130) 또는 데이터베이스 서버들(120 및 130)은 네트워크(미도시)를 통하여 서로 통신할 수 있다. 본 발명의 일 실시예에 따른 네트워크는 공중전화 교환망(PSTN:Public Switiched Telephone Network), xDSL(x Digital Subscriber Line), RADSL(Rate Adaptive DSL), MDSL(Multi Rate DSL), VDSL(Very High Speed DSL), UADSL(Universal Asymmetric DSL), HDSL(High Bit Rate DSL) 및 근거리 통신망(LAN) 등과 같은 다양한 유선 통신 시스템들을 사용할 수 있다.The client 110 and the database servers 120 and 130 or the database servers 120 and 130 may communicate with each other via a network (not shown). The network according to an exemplary embodiment of the present invention may be a Public Switched Telephone Network (PSTN), a Digital Subscriber Line (xDSL), a Rate Adaptive DSL (RADSL), a Multi Rate DSL (MDSL) ), Universal Asymmetric DSL (UADSL), High Bit Rate DSL (HDSL), and Local Area Network (LAN).

또한, 본 명세서에서 제시되는 네트워크는 CDMA(Code Division Multi Access), TDMA(Time Division Multi Access), FDMA(Frequency Division Multi Access), OFDMA(Orthogonal Frequency Division Multi Access), SC-FDMA(Single Carrier-FDMA) 및 다른 시스템들과 같은 다양한 무선 통신 시스템들을 사용할 수 있다. 또한, 본 명세서에서의 네트워크는 데이터베이스 링크(dblink)를 포함할 수 있으며, 이에 따라 제 1 데이터베이스 서버(120) 및 제 2 데이터베이스 서버(130)는 이러한 데이터베이스 링크를 통해 서로 통신하여 다른 데이터베이스 서버로부터의 데이터를 가져올 수 있다. 일례로, 상기 데이터베이스 링크는 제 1 데이터베이스 서버(120)로부터 제 2 데이터베이스 서버(130)로의 데이터베이스 링크를 포함할 수 있다. 본 명세서에서 설명된 기술들은 위에서 언급된 네트워크들뿐만 아니라, 다른 네트워크들에서도 사용될 수 있다. In addition, the network presented in this specification can be applied to various wireless communication systems such as Code Division Multi Access (CDMA), Time Division Multi Access (TDMA), Frequency Division Multiple Access (FDMA), Orthogonal Frequency Division Multiple Access (OFDMA), Single Carrier- ), And other systems. In addition, the network herein may include a database link (dblink) such that the first database server 120 and the second database server 130 may communicate with each other via this database link to receive data from another database server You can import the data. In one example, the database link may include a database link from the first database server 120 to the second database server 130. The techniques described herein may be used in other networks as well as in the networks mentioned above.

도 1에서 도시되는 바와 같이, 제 1 데이터베이스 서버(120)는 제 2 데이터베이스 서버(130)의 원격에 위치할 수 있다. 또한, 제 1 데이터베이스 서버(120) 및 제 2 데이터베이스 서버는 서로 호환되지 않는 이기종의(heterogeneous) 데이터베이스 서버를 의미할 수 있다. 이러한 데이터베이스 서버들 중 하나의 데이터베이스 서버(예컨대, 제 1 데이터베이스 서버(120))는 마스터 테이블(즉, 쿼리에서 사용되는 FROM 절에 포함된 테이블)을 포함하고 있으며, 다른 데이터베이스 서버(예컨대, 제 2 데이터베이스 서버(130))는 상기 마스터 테이블에 대한 실체화 뷰(쿼리 결과가 저장된 테이블)를 포함하고 있다. 여기서의 실체화 뷰는 실체화 뷰 테이블, Mview 또는 컨테이너 테이블과 상호호환가능하게 사용될 수 있다. As shown in FIG. 1, the first database server 120 may be located remotely from the second database server 130. Also, the first database server 120 and the second database server may refer to a heterogeneous database server that is incompatible with each other. The database server (e.g., the first database server 120) of one of these database servers includes a master table (i.e., a table included in the FROM clause used in the query) The database server 130) includes an instantiation view (a table in which the query results are stored) for the master table. The materialized view here can be used interchangeably with the materialized view table, Mview, or container table.

본 명세서에서의 쿼리 결과 동기화(리프레시)란 실체화 뷰 쿼리의 결과를 실체화 뷰 테이블에 반영하는 것을 의미할 수 있다. 이러한 반영 방식은 실체화 뷰 테이블의 내용을 비우고 쿼리 전체 결과를 인서트하는 방식인 완전 리프레시(complete refresh) 방식 및 마스터 테이블의 변경 사항(diff)만을 변경하는 방식인 고속 리프레시(fast refresh) 방식을 포함할 수 있다. 완전 리프레시 방식의 경우 고속 리프레시 방식에 비하여 예를 들어 대량의 데이터를 처리하는 경우 많은 양의 처리 시간을 필요로 하기 때문에, 일반적으로 고속 리프레시 방식이 바람직하다. The query result synchronization (refresh) in this specification may mean reflecting the result of the materialized view query in the materialized view table. Such a reflection method includes a complete refresh method, which is a method of clearing the materialized view table and inserting the entire result of the query, and a fast refresh method, which is a method of changing only the change (diff) of the master table . In the case of the full refresh method, a high-speed refresh method is generally preferred because a large amount of processing time is required, for example, when a large amount of data is processed as compared with the high-speed refresh method.

도 1에서 도시되는 바와 같이 제 1 및 제 2 데이터베이스 서버들은 서로 이기종이며 원격에 위치하여 있기 때문에, 쿼리 결과의 동기화(즉, 리프레시)를 구현하는데 있어서 어려움이 존재한다. 즉, 고속 리프레시 방식에서는, 쿼리에서 사용되는 FROM 절에 포함된 테이블(즉, 마스터 테이블)에서의 변경이 쿼리 결과가 저장된 테이블(즉, 실체화 뷰)에 반영되기 위하여, 마스터 테이블에서의 변경 내용이 저장된 로그성 테이블들에 포함된 메타데이터들을 원격에 위치한 이종의 서버가 해석할 수 있어야 한다. 하지만, 다른 제조사에 의해 독립적으로 제작된 데이터베이스 서버들 간의 코딩 규칙, 권한 규칙, 통신 규칙, 암호화 규칙 등이 공유되기는 현실적으로 불가능하다. 따라서, 전술한 이종의 데이터베이스 서버들 간의 실체화 뷰의 고속 리프레시 대신에, 실체화 뷰 테이블의 데이터들을 모두 삭제하고 실체화 뷰와 관련된 쿼리를 다시 수행해서 상기 쿼리의 전체 결과 데이터를 실체화 뷰 테이블에 전부 삽입해야하는 방식(즉, complete refresh 방식)이 가능할 수 있다. 하지만, 이러한 방식은, 대용량 데이터를 처리하는데 있어서는 과도하게 시간이 많이 걸리게 될 뿐만 아니라 데이터베이스 서버의 성능에도 악영향을 미칠 수 있다.As shown in FIG. 1, since the first and second database servers are different from each other and located remotely, there is a difficulty in implementing synchronization (i.e., refresh) of query results. That is, in the high-speed refresh method, the change in the table included in the FROM clause used in the query (that is, the master table) is reflected in the table (i.e., the materialized view) The meta data contained in the stored log tables must be able to be interpreted by heterogeneous servers located remotely. However, it is practically impossible to share coding rules, authorization rules, communication rules, encryption rules, etc. between database servers independently manufactured by different manufacturers. Therefore, instead of high-speed refreshing of the realization view among the above-described different types of database servers, the entire data of the realization view table is deleted and the query related to the realization view is performed again to insert the entire result data of the query into the realization view table Method (i.e., a complete refresh method) may be possible. However, this method is not only time-consuming to process large amounts of data, but also adversely affects the performance of the database server.

도 2는 본 발명의 일 실시예에 따른 제 1 데이터베이스 서버(120)에 대한 개략도를 도시한다.2 illustrates a schematic diagram of a first database server 120 in accordance with one embodiment of the present invention.

도 2에서 도시되는 바와 같이, 제 1 데이터베이스 서버(120)는 동기화 결정 모듈(201), 동기화 명령 생성 모듈(203), 통신 모듈(205) 및 저장 모듈(207)을 포함할 수 있다. 제 1 데이터베이스 서버(120) 내의 각각의 모듈들은 서로 통신가능하다. 또한, 예를 들어, 전술한 제 1 데이터베이스 서버(120)의 컴포넌트들은 DBMS(120a) 내에 포함될 수도 있다. 또한, 전술한 제 1 데이터베이스 서버(120)의 컴포넌트들은 예시적인 것이며, 전술한 컴포넌트들 이외의 추가적인 컴포넌트들 또한 제 1 데이터베이스 서버(120)에 포함될 수 있다.2, the first database server 120 may include a synchronization determination module 201, a synchronization command generation module 203, a communication module 205, and a storage module 207. Each module in the first database server 120 is capable of communicating with each other. Also, for example, the components of the above-described first database server 120 may be included in the DBMS 120a. In addition, the components of the first database server 120 described above are exemplary, and additional components other than the above-described components may also be included in the first database server 120. [

동기화 결정 모듈(201)은 제 1 데이터베이스 서버의 원격에 위치한 제 2 데이터베이스 서버에 존재하는 실체화 뷰에 대한 동기화를 수행할 것을 결정할 수 있다. 예를 들어, 동기화 결정 모듈(201)은, 클라이언트(110)로부터의 동기화 요청, 제 2 데이터베이스 서버(130)로부터의 동기화 요청, 사전설정된 동기화 주기, 마스터 테이블의 데이터 변경이 발생되는 상황(예컨대, 커밋(commit) 발생) 중 적어도 하나에 기초하여 동기화를 수행할 지 여부를 결정할 수 있다. 예를 들어, 동기화 결정 모듈(201)은, 제 1 데이터베이스 서버(120)의 로그 테이블 세트를 체크하여 마스터 테이블에서의 데이터 변경이 있었는지 여부를 결정할 수 있다. 동기화 결정 모듈(201)은 데이터 변경이 있는 경우 동기화를 수행할 것을 결정할 수 있다. 또한, 동기화 결정 모듈(201)은 마스터 테이블에서의 데이터 변경이 존재하지 않는다고 결정되는 경우, 동기화를 수행하지 않을 것을 결정할 수 있다.The synchronization determination module 201 may determine to perform synchronization for the materialized view residing on a second database server located remotely from the first database server. For example, the synchronization determination module 201 may determine whether a synchronization request from the client 110, a synchronization request from the second database server 130, a predetermined synchronization period, Commit occurrence) based on at least one of the following: For example, the synchronization determination module 201 may check a set of log tables of the first database server 120 to determine whether there has been a data change in the master table. The synchronization determination module 201 may decide to perform synchronization if there is a data change. In addition, the synchronization determination module 201 may determine not to perform synchronization if it is determined that there is no data change in the master table.

동기화 명령 생성 모듈(203)은, 동기화 수행 결정에 응답하여, 제 2 데이터베이스 서버(139)로 전송될 동기화 명령을 생성할 수 있다. 예를 들어, 동기화 명령 생성 모듈(203)은 제 1 데이터베이스 서버(120)에 존재하는 실체화 뷰 객체(mview object)로부터, 상기 제 2 데이터베이스 서버(130)에 존재하는 실체화 뷰로 액세스하기 위한 연결 정보를 포함하는 메타데이터를 획득할 수 있다. 이러한 실체화 뷰 객체는 제 2 데이터베이스 서버(130)의 실체화 뷰를 참조할 수 있다. 동기화 명령 생성 모듈(203)은 상기 획득된 메타데이터에 기초하여 제 2 데이터베이스 서버(130)로 전송될 동기화 명령을 생성할 수 있다. 여기서의 메타데이터는 예를 들어 실체화 뷰에 대한 쿼리 정보, 제 1 및 제 2 데이터베이스들 간의 통신을 위한 데이터베이스 링크 정보, 및/또는 실체화 뷰 테이블의 네임 정보를 포함할 수 있다. 본 발명의 일 실시예에서, 동기화 명령 생성 모듈(203)에 의해 생성되는 동기화 명령은, 제 1 데이터베이스 테이블에 존재하고 상기 마스터 테이블과 연관된 제 로그 테이블 세트에서의 로그 정보를 상기 제 2 데이터베이스에 존재하는 제 2 실체화뷰 로그 테이블에 삽입(insert)하기 위한 명령을 포함할 수 있다. 추가적으로, 동기화 명령은 제 2 데이터베이스 서버(130)로의 프로시저 호출을 위한 정보를 포함할 수 있다.The synchronization command generation module 203 may generate a synchronization command to be transmitted to the second database server 139 in response to the synchronization execution decision. For example, the synchronization command generation module 203 generates connection information for accessing the materialized view existing in the second database server 130 from the mview object existing in the first database server 120 It is possible to acquire the metadata including the metadata. This materialized view object may reference the materialized view of the second database server 130. The synchronization command generation module 203 may generate a synchronization command to be transmitted to the second database server 130 based on the obtained metadata. The metadata herein may include, for example, query information for an instantiation view, database link information for communication between the first and second databases, and / or name information of the instantiation view table. In one embodiment of the present invention, the synchronization command generated by the synchronization command generation module 203 may include log information in the first database table and log information in the second log table set associated with the master table, To insert into the second materialized view log table. Additionally, the synchronization command may include information for a procedure call to the second database server 130.

통신 모듈(205)은, 제 2 데이터베이스 서버(130) 또는 클라이언트(110)와의 통신 기능을 제공할 수 있다. 예를 들어, 통신 모듈(205)은 생성된 동기화 명령을 제 2 데이터베이스 서버(130)로 전송할 수 있다. 또한, 통신 모듈(205)은 앞서 설명된 임의의 네트워크 및/또는 데이터베이스 링크를 사용하여, 제 2 데이터베이스 서버(130) 또는 클라이언트(110)와 통신할 수 있다. 또한, 통신 모듈(205)은 제 1 데이터베이스 서버(120)를 사용하는 클라이언트로부터의 데이터 저장, 조회 및 인덱스 빌드, 조회 요청 등을 수신할 수 있다. 또한, 통신 모듈(205)은 데이터 저장, 조회 및 인덱스 빌드, 조회 요청에 대한 결과 정보를 전달할 수도 있다. 더불어, 통신 모듈(205)은 제 2 데이터베이스 서버(130)로 프로시저를 호출하는 방식으로 동기화 명령을 제 2 데이터베이스 서버(130)로 전달할 수 있다. The communication module 205 may provide a communication function with the second database server 130 or the client 110. For example, the communication module 205 may send the generated synchronization command to the second database server 130. The communication module 205 may also communicate with the second database server 130 or the client 110 using any of the networks and / or database links described above. In addition, the communication module 205 can receive data from a client using the first database server 120, inquire, index build, inquiry request, and the like. In addition, the communication module 205 may transmit the result information on the data storage, the inquiry, the index build, and the inquiry request. In addition, the communication module 205 may forward the synchronization command to the second database server 130 by calling the procedure to the second database server 130.

저장 모듈(207)은, 실체화 뷰 객체, 마스터 테이블, 및 로그 테이블 세트를 포함할 수 있다. 저장 모듈(207)은 제 1 데이터베이스 서버(120)의 테스크 수행과 관련하여 저장되는 모든 데이터를 저장할 수 있다. 저장 모듈(207)은 DBMS(120a) 및/또는 영구저장매체(120b)에 포함될 수 있다. 추가적으로, 저장 모듈(207)은 제 1 데이터베이스 서버(120) 상에 마스터 테이블, 실체화 뷰 객체, 제 1 실체화 뷰 로그 테이블, DD_SLOG 테이블, DD_MLOG 테이블 등을 생성할 수도 있다. 다른 예시로, 이러한 테이블들의 생성은, 제어 모듈(미도시)과 같은 별도의 컴포넌트에 의해 수행될 수도 있다. 또한, 저장 모듈(207)은 데이터의 저장(업데이트 포함)과 관련된 요청을 처리 및 관리할 수 있다. 이러한 저장 모듈(207)은 데이터 및 인덱스 테이블 등을 저장할 것을 결정할 수 있다. 또한, 저장 모듈(207)은 데이터 및/또는 인덱스 테이블에 대한 저장 위치를 결정할 수 있다. 예를 들어, 저장 모듈(207)은 데이터에 대하여 데이터 테이블 상에서의 저장 위치를 결정할 수 있다. 다른 예시로, 저장 모듈(207)은 데이터에 대하여 영구 저장 매체(130a) 상의 저장 위치를 결정할 수 있다. The storage module 207 may include an instantiation view object, a master table, and a set of log tables. The storage module 207 may store all data stored in association with the task execution of the first database server 120. The storage module 207 may be included in the DBMS 120a and / or the persistent storage medium 120b. In addition, the storage module 207 may generate a master table, materialized view objects, a first materialized view log table, a DD_SLOG table, a DD_MLOG table, and the like on the first database server 120. In another example, the generation of such tables may be performed by a separate component, such as a control module (not shown). In addition, the storage module 207 may process and manage requests associated with storage (including updates) of data. Such a storage module 207 may decide to store data, index tables, and the like. The storage module 207 may also determine storage locations for data and / or index tables. For example, the storage module 207 may determine the storage location on the data table for the data. In another example, the storage module 207 may determine the storage location on the persistent storage medium 130a for the data.

도 3은 본 발명의 일 실시예에 따른 제 2 데이터베이스 서버(130)에 대한 개략도를 도시한다.3 illustrates a schematic diagram of a second database server 130 in accordance with one embodiment of the present invention.

도 3에서 도시되는 바와 같이, 제 2 데이터베이스 서버(130)는 동기화 수행 모듈(301), 통신 모듈(303) 및 저장 모듈(305)을 포함할 수 있다. 제 2 데이터베이스 서버(130) 내의 각각의 모듈들은 서로 통신가능하다. 또한, 예를 들어, 전술한 제 2 데이터베이스 서버(130)의 컴포넌트들은 DBMS(130a) 내에 포함될 수도 있다. 또한, 전술한 제 2 데이터베이스 서버(130)의 컴포넌트들은 예시적인 것이며, 전술한 컴포넌트들 이외의 추가적인 컴포넌트들 또한 제 2 데이터베이스 서버(130)에 포함될 수 있다.As shown in FIG. 3, the second database server 130 may include a synchronization performing module 301, a communication module 303, and a storage module 305. Each of the modules in the second database server 130 is capable of communicating with each other. Also, for example, the components of the second database server 130 described above may be included in the DBMS 130a. In addition, the components of the second database server 130 described above are exemplary, and additional components other than the above-described components may also be included in the second database server 130.

동기화 수행 모듈(301)은 제 1 데이터베이스 서버(120)로부터 수신된 동기화 명령에 응답하여, 실체화 뷰와 마스터 테이블 간의 동기화(고속 리프레시)를 수행할 수 있다. 예를 들어, 동기화 수행 모듈(301)은 제 1 데이터베이스 서버(120)에 존재하고 마스터 테이블과 연관된 로그 테이블 세트에서의 로그 정보를 제 2 데이터베이스 서버(130)에 존재하는 제 2 실체화 뷰 로그 테이블에 삽입할 수 있다. 또한, 동기화 수행 모듈(301)은 삽입된 로그 정보를 포함하는 제 2 실체화 뷰 로그 테이블과 실체화 뷰 테이블 간의 조인 연산을 수행함으로써 동기화를 수행할 수 있다. 추가적으로, 동기화 수행 모듈(301)은 제 2 데이터베이스 서버(130) 상에 제 2 실체화 뷰 로그 테이블 및 실체화 뷰 테이블을 생성할 수도 있다. 다른 예시로, 이러한 테이블들의 생성은, 저장 모듈(305) 및/또는 제어 모듈(미도시)과 같은 별도의 컴포넌트에 의해 수행될 수도 있다.The synchronization performing module 301 may perform synchronization (fast refresh) between the materialization view and the master table in response to the synchronization command received from the first database server 120. [ For example, the synchronization performing module 301 may store the log information in the log table set that is present in the first database server 120 and associated with the master table in the second materialized view log table existing in the second database server 130 Can be inserted. In addition, the synchronization executing module 301 may perform synchronization by performing a join operation between the second materialized view log table including the inserted log information and the materialized view table. In addition, the synchronization performing module 301 may generate a second materialized view log table and an materialized view table on the second database server 130. In another example, generation of these tables may be performed by a separate component, such as storage module 305 and / or control module (not shown).

통신 모듈(303)은, 제 1 데이터베이스 서버(120) 또는 클라이언트(110)와의 통신 기능을 제공할 수 있다. 예를 들어, 통신 모듈(303)은 제 1 데이터베이스 서버(120)로부터 동기화 명령을 수신할 수 있다. 또한, 통신 모듈(303)은 앞서 설명된 임의의 네트워크 및/또는 데이터베이스 링크를 사용하여, 제 1 데이터베이스 서버(120) 또는 클라이언트(110)와 통신할 수 있다. 또한, 통신 모듈(303)은 제 2 데이터베이스 서버(130)를 사용하는 클라이언트로부터의 데이터 저장, 조회 및 인덱스 빌드, 조회 요청 등을 수신할 수 있다. 또한, 통신 모듈(303)은 데이터 저장, 조회 및 인덱스 빌드, 조회 요청, 및 동기화 수행에 대한 결과 정보를 전달할 수도 있다. 더불어, 통신 모듈(303)은 제 1 데이터베이스 서버(120)로부터 프로시저 호출을 수신할 수 있다. The communication module 303 can provide a communication function with the first database server 120 or the client 110. [ For example, the communication module 303 may receive a synchronization command from the first database server 120. The communication module 303 may also communicate with the first database server 120 or the client 110 using any of the networks and / or database links described above. In addition, the communication module 303 can receive data from a client using the second database server 130, inquiry, index build, and inquiry request. The communication module 303 may also communicate the result information for data storage, lookup and index build, query request, and synchronization performance. In addition, the communication module 303 may receive a procedure call from the first database server 120.

저장 모듈(305)은, 실체화 뷰 테이블, 제 2 실체화 뷰 로그 테이블을 포함할 수 있다. 저장 모듈(305)은 제 2 데이터베이스 서버(130)의 테스크 수행과 관련하여 저장되는 모든 데이터를 저장할 수 있다. 저장 모듈(305)은 DBMS(130a) 및/또는 영구저장매체(130b)에 포함될 수 있다. 또한, 저장 모듈(305)은 데이터의 저장(업데이트 포함)과 관련된 요청을 처리 및 관리할 수 있다. 이러한 저장 모듈(305)은 데이터 및 인덱스 테이블 등을 저장할 것을 결정할 수 있다. 또한, 저장 모듈(305)은 데이터 및/또는 인덱스 테이블에 대한 저장 위치를 결정할 수 있다. 예를 들어, 저장 모듈(305)은 데이터에 대하여 데이터 테이블 상에서의 저장 위치를 결정할 수 있다. 다른 예시로, 저장 모듈(305)은 데이터에 대하여 영구 저장 매체(130b) 상의 저장 위치를 결정할 수 있다. The storage module 305 may include an materialized view table and a second materialized view log table. The storage module 305 may store all data stored in association with the task execution of the second database server 130. [ The storage module 305 may be included in the DBMS 130a and / or the persistent storage medium 130b. In addition, the storage module 305 may process and manage requests associated with storage (including updates) of data. Such a storage module 305 may decide to store data, index tables, and the like. The storage module 305 may also determine storage locations for data and / or index tables. For example, the storage module 305 may determine a storage location on the data table for the data. As another example, the storage module 305 may determine the storage location on the persistent storage medium 130b for the data.

도 4는 본 발명의 일 실시예에 따라 제 1 데이터베이스 서버(120)에서 수행되는 데이터베이스들 간의 쿼리 결과를 동기화하기 위한 순서도를 도시한다.FIG. 4 illustrates a flowchart for synchronizing query results between databases performed in the first database server 120 according to an embodiment of the present invention.

도 4에서 도시되는 순서도의 순서는 구현에 따라 가변적일 수 있으며, 일부 순서가 추가되거나 일부 순서가 생략될 수도 있다.The order of the flowchart shown in FIG. 4 may be variable depending on the implementation, and some of the sequences may be added or some sequences may be omitted.

도 4에서 도시되는 바와 같이, 제 1 데이터베이스 서버(120)는 제 1 데이터베이스 서버(120)의 원격에 위치한 제 2 데이터베이스 서버(130)에 존재하는 실체화 뷰에 대한 동기화를 수행할 것을 결정할 수 있다(401). 본 발명의 일 실시예에서, 제 1 데이터베이스 서버(120)는, 클라이언트(110)로부터의 동기화 요청, 제 2 데이터베이스 서버(130)로부터의 동기화 요청, 사전설정된 동기화 주기, 마스터 테이블의 데이터 변경이 발생되는 상황 중 적어도 하나에 기초하여 동기화를 수행할 지 여부를 결정할 수 있다. 또한, 제 1 데이터베이스 서버(120)는, 제 1 데이터베이스 서버(120)의 로그 테이블 세트를 체크하여 마스터 테이블에서의 데이터 변경이 있었는지 여부를 결정할 수 있다. 예를 들어, 제 1 데이터베이스 서버(120)는 이전의(최신) 동기화 시점에 대한 시간 정보를 고려하여, 최신의 동기화 시점 이후의 마스터 테이블에서의 데이터 변경이 있었는지 여부를 결정할 수 있다. 제 1 데이터베이스 서버(120)는 데이터 변경이 있는 경우 동기화를 수행할 것을 결정할 수 있다. 또한, 제 1 데이터베이스 서버(120)는 마스터 테이블에서의 데이터 변경이 존재하지 않는다고 결정되는 경우, 동기화를 수행하지 않을 것을 결정할 수 있다. 동기화를 수행할 것으로 결정된 경우, 제 1 데이터베이스 서버(120)는 로그 테이블 세트에서의 DD_MLOG 테이블에 포함된 각각의 실체화 뷰의 가장 최신의 리프레시 시점(youngest last refresh time)을 현 시점(즉, sysdata)으로 변경할 수 있다. 추가적인 실시예에서, 제 1 데이터베이스 서버(120)에서의 전술한 동기화 수행여부 결정은 제 2 데이터베이스 서버(130)로의 프로시저를 호출한 이후에 수행될 수도 있다.As shown in FIG. 4, the first database server 120 may determine to perform synchronization for the materialized views residing in the second database server 130 located remotely from the first database server 120 401). In one embodiment of the present invention, the first database server 120 may receive a synchronization request from the client 110, a synchronization request from the second database server 130, a preset synchronization cycle, Based on at least one of the following conditions: < RTI ID = 0.0 > < / RTI > Also, the first database server 120 may check the log table set of the first database server 120 to determine whether there has been data change in the master table. For example, the first database server 120 may determine whether there has been a data change in the master table since the latest synchronization point, taking into account the time information for the previous (latest) synchronization point in time. The first database server 120 may decide to perform synchronization if there is a data change. In addition, the first database server 120 may determine not to perform synchronization if it is determined that no data change in the master table is present. If it is determined to perform the synchronization, the first database server 120 stores the latest time (i.e., sysdata) of the youngest last refresh time of each materialized view included in the DD_MLOG table in the log table set, . In a further embodiment, the aforementioned determination of whether or not to perform synchronization at the first database server 120 may be performed after calling the procedure to the second database server 130.

본 발명의 일 실시예에서, 본 발명의 일 실시예에서, 제 1 데이터베이스 서버(120)는 제 1 데이터베이스 서버(120)에 존재하는 실체화 뷰 객체를 참조하며 실체화 뷰로의 액세스를 위한 연결정보를 포함하는 메타데이터를 획득할 수 있으며(403), 제 1 데이터베이스 서버(120)는 동기화 수행 결정에 응답하여, 상기 제 2 데이터베이스 서버(130)로 전송될 동기화 명령을 생성할 수 있다(405). 제 1 데이터베이스 서버(120)에는 제 2 데이터베이스 서버(130)에 존재하는 실체화 뷰를 가리키는 실체화 뷰 객체가 생성될 수 있다. 본 발명에서의 실체화 뷰 객체는 예를 들어 실체화 뷰와 관련된 메타데이터를 저장하는 별도의 테이블을 포함할 수 있다. 이러한 실체화 뷰 객체는 실체화 뷰에 대한 쿼리 정보, 제 1 및 제 2 데이터베이스 서버들 간의 통신을 위한 데이터베이스 링크 정보, 및/또는 실체화 뷰의 테이블 네임 정보와 같은 메타데이터들을 포함할 수 있다. 일반적으로 실체화 뷰가 위치한 장소(예컨대, 제 2 데이터베이스 서버(130))에 위치하는 실체화 뷰 객체가 제 1 데이터베이스 서버(120) 상에 위치하기 때문에, 마스터 테이블을 가지고 있는 제 1 데이터베이스 서버(120)가 실체화 뷰를 가지고 있는 제 2 데이터베이스 서버(130)를 제어할 수 있어서, 이종의 데이터베이스 서버들 간에 고속 리프레시가 구현될 수 있다. 즉, 실체화 뷰를 보고자 하는 클라이언트(110)가 사용하고 있는 제 2 데이터베이스 서버(130)가 동기화 명령을 생성하는 것이 아니라, 실제로 실체화 뷰가 참조하고 있는 마스터 테이블을 가지고 있는 제 1 데이터베이스 서버(120)가 자신이 가지고 있는 실체화 뷰 객체를 사용하여 동기화 명령을 생성할 수 있다. 다시 말하면, 제 1 데이터베이스 서버(120) 상의 실체화 뷰 객체를 위치시킴으로써, 상기 제 1 데이터베이스 서버(120)에 위치한 로그 테이블 세트(예컨대, DD_SLOG 테이블 및/또는 DD_MLOG 테이블)을 실체화 뷰 객체가 참고함으로써, 동기화 수행 여부의 결정 및/또는 동기화 수행 명령의 생성이 제 1 데이터베이스 서버(120) 상에서 수행될 수 있다. 고속 리프레시의 로직 생성 주체는 제 1 데이터베이스 서버(120)이고 실체화 뷰의 실제 저장소는 제 2 데이터베이스 서버(130)가 될 수 있다. 따라서, 제 2 데이터베이스 서버(130)가 이종인 제 1 데이터베이스 서버(120)의 로그 테이블 세트를 해석하지 못하기 때문에 발생되는 이종의 DB 간의 고속 리프레시가 불가능하다는 문제점이 해결될 수 있다.In one embodiment of the present invention, in an embodiment of the present invention, the first database server 120 refers to the materialized view object residing in the first database server 120 and includes connection information for access to the materialized view (403), and the first database server 120 may generate a synchronization command to be transmitted to the second database server 130 (405), in response to the determination to perform synchronization. The first database server 120 may generate the materialized view object indicating the materialized view existing in the second database server 130. An instantiated view object in the present invention may, for example, comprise a separate table that stores metadata associated with the instantiated view. Such an instantiation view object may include metadata such as query information for the instantiation view, database link information for communication between the first and second database servers, and / or table name information of the instantiation view. Because the materialized view object, which is typically located at the location where the materialized view is located (e.g., the second database server 130), is located on the first database server 120, the first database server 120, having the master table, Can control the second database server 130 having the materialized view, so that high-speed refresh can be implemented among different kinds of database servers. That is, the second database server 130 used by the client 110 who wants to view the materialized view does not generate the synchronization command but the first database server 120 having the master table actually referred to by the materialized view, Can create a synchronization command using the materialized view object that it has. In other words, by placing the materialized view object on the first database server 120, by referring to the set of log tables (e.g., the DD_SLOG table and / or the DD_MLOG table) located in the first database server 120, Determination of whether or not to perform synchronization and / or creation of a synchronization performing instruction may be performed on the first database server 120. The logic generation subject of the high-speed refresh may be the first database server 120 and the actual storage of the materialization view may be the second database server 130. [ Accordingly, the second database server 130 can not resolve the log table set of the first database server 120, which is different from the first database server 120, so that high-speed refresh among different kinds of databases can not be performed.

예를 들어, 이러한 동기화 명령은, 제 2 데이터베이스 서버(130)로의 프로시저 호출을 포함할 수 있다. 여기서의 프로시저는, 제 2 데이터베이스 서버(130)에 저장될 수 있으며 그리고 제 1 데이터베이스 서버(120)로부터 발행된 동기화 명령(예컨대, SQL 문)을 해석 및 수행할 수 있다. 또한, 동기화 명령은, 실체화 뷰로의 액세스를 위한 연결 정보를 포함할 수 있다. 또한, 동기화 명령은, 제 2 데이터베이스 서버(130)를 제어하기 위한 DML(database manipulation language)를 포함할 수 있다(예컨대, INSERT INTO CONT_TBL@DBLINK). 즉, 동기화 명령은, 제 1 데이터베이스 서버(120)에 존재하고 마스터 테이블과 연관된 로그 테이블 세트에서의 로그 정보를 제 2 데이터베이스 서버(130)에 존재하는 제 2 실체화 뷰 로그 테이블 또는 실체화 뷰 테이블(즉, 컨테이너 테이블)에 삽입하기 위한 명령을 포함할 수 있다.  For example, this synchronization command may include a procedure call to the second database server 130. The procedure herein can be stored in the second database server 130 and can interpret and perform synchronization commands (e.g., SQL statements) issued from the first database server 120. The synchronization command may also include connection information for access to the materialized view. The synchronization command may also include a database manipulation language (DML) for controlling the second database server 130 (e.g., INSERT INTO CONT_TBL @ DBLINK). That is, the synchronization command may be used to synchronize the log information in the set of log tables existing in the first database server 120 and associated with the master table to a second materialized view log table or materialized view table , A container table).

그리고나서, 제 1 데이터베이스 서버(120)는 생성된 동기화 명령을 제 2 데이터베이스 서버(130)로 전송함으로써, 제 2 데이터베이스 서버(130)로 하여금 고속 리프레시를 수행하도록 할 수 있다(407).Then, the first database server 120 may transmit the generated synchronization command to the second database server 130, thereby allowing the second database server 130 to perform the high-speed refresh (407).

추가적으로, 동기화 수행이 완료되는 경우, 제 1 데이터베이스 서버(120)는, DD_SLOG 테이블에서의 마지막 동기화 시점을 현재 시점으로 변경하고, DD_MLOG 테이블에서의 최소 값(youngest last refresh time) 및 최대 값(oldest last refresh time) 정보를 변경하고, 그리고 제 1 실체화 뷰 로그 테이블에서 불필요한 변경 데이터를 제거할 수 있다. 예를 들어, 제 2 데이터베이스 서버(130)로부터의 완료 메시지를 수신하거나 또는 제 1 데이터베이스 서버(120)가 동기화 명령을 제 2 데이터베이스 서버(130)로 송신하는 경우, 동기화 수행이 완료되었다고 결정될 수 있다.In addition, when synchronization is completed, the first database server 120 changes the last synchronization point in the DD_SLOG table to the current point of time, and updates the youngest last refresh time and the oldest last value in the DD_MLOG table refresh time information, and remove unnecessary change data from the first materialized view log table. For example, if a completion message from the second database server 130 is received or if the first database server 120 sends a synchronization command to the second database server 130, it may be determined that the synchronization has been completed .

도 5는 본 발명의 일 실시예에 따라 제 2 데이터베이스 서버(130)에서 수행되는 데이터베이스들 간의 쿼리 결과를 동기화하기 위한 순서도를 도시한다.5 illustrates a flowchart for synchronizing query results between databases performed in the second database server 130 according to an embodiment of the present invention.

도 5에서 도시되는 순서도의 순서는 구현에 따라 가변적일 수 있으며, 일부 순서가 추가되거나 일부 순서가 생략될 수도 있다.The order of the flowcharts shown in FIG. 5 may vary depending on the implementation, and some of the sequences may be added or some of the sequences may be omitted.

도 5에서 도시되는 바와 같이, 제 2 데이터베이스 서버(130)는 제 2 데이터베이스 서버(130)의 원격에 위치되는 제 1 데이터베이스 서버(120)로부터의 동기화 명령을 수신할 수 있다(501).5, the second database server 130 may receive a synchronization command from the first database server 120 located remotely from the second database server 130 (501).

제 2 데이터베이스 서버(130)는 제 1 데이터베이스 서버(120)의 제 1 실체화 뷰 로그 테이블과 동일 또는 유사한 스키마를 가진 임시 테이블(즉, 제 2 실체화 뷰 로그 테이블)을 생성할 수 있다.The second database server 130 may generate a temporary table having the same or similar schema as the first materialized view log table of the first database server 120 (i.e., the second materialized view log table).

그리고나서, 제 2 데이터베이스 서버(130)는 제 1 데이터베이스 서버(120)에 존재하고 마스터 테이블과 연관된 로그 테이블 세트에서의 로그 정보를 제 2 데이터베이스 서버(130)에 존재하는 제 2 실체화 뷰 로그 테이블에 삽입할 수 있다(503). 이러한 삽입 단계 이전에, 제 2 데이터베이스 서버(130)는 제 2 데이터베이스 서버(130) 상에서 제 2 실체화 뷰 로그 테이블을 생성할 수 있다. 예를 들어, 이러한 제 2 실체화 뷰 로그 테이블은 실체화 뷰 테이블과 조인(join)되기 위한 임시 테이블을 의미할 수 있다. Then, the second database server 130 stores the log information in the log table set existing in the first database server 120 and associated with the master table in the second materialized view log table existing in the second database server 130 (503). Prior to this insertion step, the second database server 130 may create a second materialized view log table on the second database server 130. For example, this second materialized view log table can mean a temporary table to be joined with the materialized view table.

그리고나서, 제 2 데이터베이스 서버(130)는 삽입된 로그 정보를 포함하는 제 2 실체화 뷰 로그 테이블과 실체화 뷰 테이블 간의 조인 연산을 수행함으로써, 동기화 연산(operation)을 수행할 수 있다(505). Then, the second database server 130 may perform a synchronization operation by performing a join operation between the second materialized view log table and the materialized view table including the inserted log information (operation 505).

본 발명의 일 실시예에서, 제 2 데이터베이스 서버(130)는 제 1 데이터베이스 서버(120)로부터 수신된 DML을 이용하여 고속 리프레스를 수행할 수 있다. 즉, 제 2 데이터베이스 서버(130)에 존재하는 실체화 뷰 테이블을 제 1 데이터베이스 서버(120)로 옮긴 후 제 1 데이터베이스 서버(120)에서의 로그 테이블 세트와 실체화 뷰 테이블을 조인하는 경우가 고려될 수도 있다. 하지만, 실체화 뷰 테이블의 용량이 로그관련 테이블에 비해 매우 크기 때문에, 제 1 데이터베이스 서버(120)에 존재하는 로그 테이블 세트(예컨대, DD_MLOG 테이블 및/또는 DD_SLOG 테이블)에서의 로그 정보를 제 2 데이터베이스 서버(130)로 가져온 후, 제 2 데이터베이스 서버(130)에서의 실체화 뷰 테이블과 조인 연산을 수행하는 것이 바람직 하다.In one embodiment of the present invention, the second database server 130 may perform the fast repress using the DML received from the first database server 120. That is, a case may be considered in which the materialized view table existing in the second database server 130 is moved to the first database server 120 and then the set of the log table and the materialized view table in the first database server 120 are joined have. However, since the capacity of the materialized view table is very large as compared with the log related table, the log information in the log table set (for example, the DD_MLOG table and / or the DD_SLOG table) existing in the first database server 120, It is preferable to perform the joining operation with the materialized view table in the second database server 130. [

즉, 고속 리프레시를 구현하기위한 일반적인 프로세스들은: (1) 마스터 테이블로부터 변경될 데이터가 존재하여 실체화 뷰 테이블에 대한 리프레시가 필요한지 여부를 판단하는 실체화 뷰 로그 셋업(mview log setup) 프로세스, (2) 실체화 뷰 로그 테이블의 변경 부분만을 실체화 뷰 테이블로 반영하는 DML을 수행하고, 그리고 마스터 테이블의 DML 타입(예컨대, DELETE, INSERT, 또는 UPDATE 등) 및 실체화 뷰 쿼리 타입(예컨대, one table, join 및 aggregation)에 따른 처리를 수행하는 실체화 뷰 고속 리프레시 수행 프로세스, 및 (3) DD_SLOG의 리프레시 시점을 현시점(sysdate)로 변경하고 DD_MLOG의 최소(oldest) 값을 갱신하고, 그리고 마스터 테이블의 변경 내용을 저장하는 제 1 실체화 뷰 로그 테이블 내에서 불필요해진 데이터를 제거하는 실체화 뷰 로그 랩업(mview log wrapup) 프로세스를 포함할 수 있다.That is, the general processes for realizing the high-speed refresh include: (1) an actualized view log setup process (mview log setup process) for determining whether refresh of the materialized view table is necessary because there is data to be changed from the master table; (Eg, DELETE, INSERT, or UPDATE) and an instantiation view query type (eg, one table, join, and aggregation) (3) update the DD_SLOG refresh point to the current point (sysdate), update the DD_MLOG minimum value (oldest value), and store the changed contents of the master table The materialized view that removes data that is no longer needed in the first materialized view log table. The mview log wrapup process It may contain.

따라서, 본 발명의 전술한 실시예들에 따르면, 실체화 뷰의 동기화를 위한 로그 정보를 포함하는 제 2 실체화 뷰 로그 테이블과 실체화 뷰 테이블이 동일한 위치(예컨대, 제 2 데이터베이스 서버(130))에 존재하기 때문에, 전술된 일반적인 로컬 고속 리프레시와 동일한 방식으로 실체화 뷰 로그 셋업 프로세스 및 실체화 뷰 로그 랩업 프로세스가 구현될 수 있다. 더불어, 실체화 뷰 고속 리프레시 수행 프로세스는 마스터 테이블을 가지고 있는 제 1 데이터베이스 서버(120)에서 실체화 뷰 테이블을 가지고 있는 제 2 데이터베이스 서버(130)로 DML 명령을 발행하고, 제 2 데이터베이스 서버(130)에서 리프레시 연산을 수행하기 때문에, 서로 원격 위치되는 이종의 데이터베이스 서버들 간의 호환성 문제를 해결하면서 실체화 뷰의 동기화가 구현될 수 있다.Therefore, according to the above-described embodiments of the present invention, the second materialized view log table and the materialized view table including the log information for synchronization of the materialized views exist in the same location (for example, in the second database server 130) The materialized view log setup process and the materialized view log wrapping process can be implemented in the same manner as the general local high-speed refresh described above. In addition, the materialized view fast refresh execution process issues a DML command to the second database server 130 having the materialized view table in the first database server 120 having the master table, and the DML command is issued to the second database server 130 Since the refresh operation is performed, the synchronization of the realization view can be implemented while solving the compatibility problem between the heterogeneous database servers remote from each other.

도 6은 본 발명의 일 실시예에 따라 쿼리 결과를 동기화하기 위한 제 1 데이터베이스 서버(120) 및 제 2 데이터베이스 서버(130)의 개략도를 도시한다.Figure 6 shows a schematic diagram of a first database server 120 and a second database server 130 for synchronizing query results in accordance with an embodiment of the present invention.

도 6에서 도시되는 바와 같이, 제 1 데이터베이스 서버(120)는 실체화 뷰 테이블이 참조하는 원본 테이블인 마스터 테이블(601), 실체화 뷰 테이블을 가리키는 실체화 뷰 객체(602), 마스터 테이블을 모니터링하며 마스터 테이블에서의 변경 내용을 저장하는 제 1 실체화 뷰 로그 테이블(604), 마스터 테이블을 참조하는 실체화 뷰를 식별하는 정보를 저장하는 DD_SLOG 테이블(605) 및 마스터 테이블을 참조하는 실체화 뷰의 로그에 대한 정보를 저장하는 DD_MLOG 테이블(606)을 포함할 수 있다. 이러한 제 1 데이터베이스 서버(120)의 컴포넌트들은 제 1 데이터베이스 서버(120)의 메모리 및/또는 영구 저장 매체에 위치될 수 있다. 여기서의 마스터 테이블(601)은 복수의 실체화 뷰 테이블들에 의해 참조될 수도 있다.6, the first database server 120 includes a master table 601, which is an original table referred to by the materialized view table, an materialized view object 602, which points to the materialized view table, A DD_SLOG table 605 for storing information for identifying the materialized view referring to the master table, and information about the log of the materialized view referring to the master table And a DD_MLOG table 606 for storing the DD_MLOG table. The components of this first database server 120 may be located in the memory and / or persistent storage medium of the first database server 120. Here, the master table 601 may be referred to by a plurality of materialized view tables.

제 1 실체화 뷰 로그 테이블(604), DD_SLOG 테이블(605) 및 DD_MLOG 테이블(606)는 본 명세서에서 로그 테이블 세트(603)로 지칭될 수 있다. DD(data dictionary)_SLOG 테이블은, 마스터 테이블을 참조하고 있는 실체화 뷰에 대한 정보 및 상기 실체화 뷰에 대한 마지막 동기화 시점에 대한 정보 중 적어도 하나를 저장할 수 있다. 또한, DD_MLOG 테이블은 실체화 뷰에 대한 마지막 동기화 시점에 대한 최대 값(youngest last refresh time) 및 최소 값(oldest last refresh time) 정보 중 적어도 하나를 저장할 수 있다. 실체화 뷰 객체(602)가 제 1 데이터베이스 서버(120)에 존재하기 때문에, 마스터 테이블이 존재하는 제 1 데이터베이스 서버(120)가 고속 리프레시의 관리 및 제어 주체가 될 수 있으며 그리고 제 1 데이터베이스 서버(120)로부터 제 2 데이터베이스 서버(130)로의 연결이 용이해질 수 있다.The first materialized view log table 604, the DD_SLOG table 605, and the DD_MLOG table 606 may be referred to herein as the log table set 603. The DD (data dictionary) _SLOG table may store at least one of the information about the materialized view referring to the master table and the information about the last synchronization point with respect to the materialized view. In addition, the DD_MLOG table may store at least one of a youngest last refresh time and an oldest last refresh time information for a last synchronization point in an instantiation view. Since the materialized view object 602 exists in the first database server 120, the first database server 120 in which the master table exists can be the subject of management and control of the high-speed refresh, and the first database server 120 To the second database server 130 may be facilitated.

도 6에서 도시되는 바와 같이, 제 2 데이터베이스 서버(130)는 마스터 테이블을 참조하는 실체화 뷰 테이블(609) 및 실체화 뷰 테이블(609)과 조인되어 실체화 뷰 테이블(609)을 업데이트(즉, 리프레시)하는데 사용되는 제 2 실체화 뷰 로그 테이블(608)을 포함할 수 있다. 이러한 제 2 데이터베이스 서버(120)의 컴포넌트들은 제 2 데이터베이스 서버(130)의 메모리 및/또는 영구 저장 매체에 위치될 수 있다. 더불어, 제 1 데이터베이스 서버(120)로부터의 동기화 명령에 따라서 DD_SLOG 테이블(605), DD_MLOG 테이블(606) 및/또는 제 1 실체화 뷰 로그 테이블(604)로부터의 로그 정보(예컨대, 반영할 로그에 대한 정보, 시간(time stamp) 정보가 상기 제 2 실체화 뷰 로그 테이블(608)에 삽입될 수 있다. 따라서, 제 2 실체화 뷰 로그 테이블(608)과 실체화 뷰 테이블(609) 간의 조인 연산에 의하여 실체화 뷰 테이블의 고속 리프레시가 가능해질 수 있다. 또한, 제 1 데이터베이스 서버(120)에 의해 발행되는 SQL 문을 수행할 수 있는 프로시저가 제 2 데이터베이스 서버(130)에 저장될 수 있다. 따라서, 실체화 뷰 테이블의 고속 리프레시의 수행 주체는 제 2 데이터베이스 서버(130)가 될 수 있다.6, the second database server 130 is associated with the materialized view table 609 and the materialized view table 609 referencing the master table to update (i.e., refresh) the materialized view table 609, And a second materialized view log table 608 that is used to create a second materialized view. The components of this second database server 120 may be located in the memory and / or persistent storage medium of the second database server 130. In addition, log information from the DD_SLOG table 605, the DD_MLOG table 606, and / or the first materialized view log table 604 (for example, Information and time stamp information may be inserted into the second materialized view log table 608. Accordingly, by the join operation between the second materialized view log table 608 and the materialized view table 609, A procedure capable of executing an SQL statement issued by the first database server 120 may be stored in the second database server 130. Accordingly, the realization view The execution subject of the high-speed refresh of the table may be the second database server 130. [

도 7은 본 발명의 실시예들이 구현될 수 있는 예시적인 컴퓨팅 환경에 대한 간략하고 일반적인 개략도를 도시한다.Figure 7 illustrates a simplified schematic diagram of an exemplary computing environment in which embodiments of the present invention may be implemented.

본 발명이 일반적으로 하나 이상의 컴퓨터 상에서 실행될 수 있는 컴퓨터 실행가능 명령어와 관련하여 전술되었지만, 당업자라면 본 발명이 기타 프로그램 모듈들과 결합되어 및/또는 하드웨어와 소프트웨어의 조합으로서 구현될 수 있다는 것을 잘 알 것이다.Although the present invention has been described above generally in terms of computer-executable instructions that can be executed on one or more computers, those skilled in the art will appreciate that the present invention may be implemented in combination with other program modules and / will be.

일반적으로, 프로그램 모듈은 특정의 태스크를 수행하거나 특정의 추상 데이터 유형을 구현하는 루틴, 프로그램, 컴포넌트, 데이터 구조, 기타 등등을 포함한다. 또한, 당업자라면 본 발명의 방법이 단일-프로세서 또는 멀티프로세서 컴퓨터 시스템, 미니컴퓨터, 메인프레임 컴퓨터는 물론 퍼스널 컴퓨터, 핸드헬드 컴퓨팅 장치, 마이크로프로세서-기반 또는 프로그램가능 가전 제품, 기타 등등(이들 각각은 하나 이상의 연관된 장치와 연결되어 동작할 수 있음)을 비롯한 다른 컴퓨터 시스템 구성으로 실시될 수 있다는 것을 잘 알 것이다.Generally, program modules include routines, programs, components, data structures, etc. that perform particular tasks or implement particular abstract data types. It will also be appreciated by those skilled in the art that the methods of the present invention may be practiced with other computer systems, such as single-processor or multiprocessor computer systems, minicomputers, mainframe computers, as well as personal computers, handheld computing devices, microprocessor-based or programmable consumer electronics, And may operate in conjunction with one or more associated devices).

본 발명의 설명된 실시예들은 또한 어떤 태스크들이 통신 네트워크를 통해 연결되어 있는 원격 처리 장치들에 의해 수행되는 분산 컴퓨팅 환경에서 실시될 수 있다. 분산 컴퓨팅 환경에서, 프로그램 모듈은 로컬 및 원격 메모리 저장 장치 둘다에 위치할 수 있다.The described embodiments of the invention may also be practiced in distributed computing environments where certain tasks are performed by remote processing devices connected through a communications network. In a distributed computing environment, program modules may be located in both local and remote memory storage devices.

컴퓨터는 통상적으로 다양한 컴퓨터 판독가능 매체를 포함한다. 컴퓨터에 의해 액세스 가능한 매체는 그 어떤 것이든지 컴퓨터 판독가능 매체가 될 수 있고, 이러한 컴퓨터 판독가능 매체는 휘발성 및 비휘발성 매체, 일시적(transitory) 및 비일시적(non-transitory) 매체, 이동식 및 비-이동식 매체를 포함한다. 제한이 아닌 예로서, 컴퓨터 판독가능 매체는 컴퓨터 판독가능 저장 매체 및 컴퓨터 판독가능 통신 매체를 포함할 수 있다. 컴퓨터 판독가능 저장 매체는 컴퓨터 판독가능 명령어, 데이터 구조, 프로그램 모듈 또는 기타 데이터와 같은 정보를 저장하는 임의의 방법 또는 기술로 구현되는 휘발성 및 비휘발성 매체, 일시적 및 비-일시적 매체, 이동식 및 비이동식 매체를 포함한다. 컴퓨터 판독가능 저장 매체는 RAM, ROM, EEPROM, 플래시 메모리 또는 기타 메모리 기술, CD-ROM, DVD(digital video disk) 또는 기타 광 디스크 저장 장치, 자기 카세트, 자기 테이프, 자기 디스크 저장 장치 또는 기타 자기 저장 장치, 또는 컴퓨터에 의해 액세스될 수 있고 원하는 정보를 저장하는 데 사용될 수 있는 임의의 기타 매체를 포함하지만, 이에 한정되지 않는다.Computers typically include a variety of computer readable media. Any medium accessible by a computer may be a computer-readable medium, which may include volatile and non-volatile media, transitory and non-transitory media, removable and non-removable media, Removable media. By way of example, and not limitation, computer readable media may comprise computer readable storage media and computer readable communications media. Computer-readable storage media includes both volatile and nonvolatile media, both temporary and non-volatile media, both removable and non-removable, implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data Media. The computer-readable storage medium may be any form of storage device such as RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital video disk (DVD) or other optical disk storage, magnetic cassette, magnetic tape, Apparatus, or any other medium that can be used to store the desired information that can be accessed by a computer.

컴퓨터 판독가능 통신 매체는 통상적으로 반송파(carrier wave) 또는 기타 전송 메커니즘(transport mechanism)과 같은 피변조 데이터 신호(modulated data signal)에 컴퓨터 판독가능 명령어, 데이터 구조, 프로그램 모듈 또는 기타 데이터등을 구현하고 모든 정보 전달 매체를 포함한다. 피변조 데이터 신호라는 용어는 신호 내에 정보를 인코딩하도록 그 신호의 특성들 중 하나 이상을 설정 또는 변경시킨 신호를 의미한다. 제한이 아닌 예로서, 통신 매체는 유선 네트워크 또는 직접 배선 접속(direct-wired connection)과 같은 유선 매체, 그리고 음향, RF, 적외선, 기타 무선 매체와 같은 무선 매체를 포함한다. 상술된 매체들 중 임의의 것의 조합도 역시 컴퓨터 판독가능 통신 매체의 범위 안에 포함되는 것으로 한다.Computer readable communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism, It includes all information delivery media. The term modulated data signal refers to a signal that has one or more of its characteristics set or changed to encode information in the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, RF, infrared, or other wireless media. Combinations of any of the above-mentioned media are also intended to be included within the scope of computer-readable communication media.

컴퓨터(1102)를 포함하는 본 발명의 여러가지 측면들을 구현하는 예시적인 환경(1100)이 나타내어져 있으며, 컴퓨터(1102)는 처리 장치(1104), 시스템 메모리(1106) 및 시스템 버스(1108)를 포함한다. 시스템 버스(1108)는 시스템 메모리(1106)(이에 한정되지 않음)를 비롯한 시스템 컴포넌트들을 처리 장치(1104)에 연결시킨다. 처리 장치(1104)는 다양한 상용 프로세서들 중 임의의 프로세서일 수 있다. 듀얼 프로세서 및 기타 멀티프로세서 아키텍처도 역시 처리 장치(1104)로서 이용될 수 있다.There is shown an exemplary environment 1100 that implements various aspects of the present invention including a computer 1102 and includes a processing unit 1104, a system memory 1106 and a system bus 1108 do. The system bus 1108 couples system components, including but not limited to, system memory 1106 to the processing unit 1104. The processing unit 1104 may be any of a variety of commercially available processors. Dual processors and other multiprocessor architectures may also be used as the processing unit 1104.

시스템 버스(1108)는 메모리 버스, 주변장치 버스, 및 다양한 상용 버스 아키텍처 중 임의의 것을 사용하는 로컬 버스에 추가적으로 상호 연결될 수 있는 몇가지 유형의 버스 구조 중 임의의 것일 수 있다. 시스템 메모리(1106)는 판독 전용 메모리(ROM)(1110) 및 랜덤 액세스 메모리(RAM)(1112)를 포함한다. 기본 입/출력 시스템(BIOS)은 ROM, EPROM, EEPROM 등의 비휘발성 메모리(1110)에 저장되며, 이 BIOS는 시동 중과 같은 때에 컴퓨터(1102) 내의 구성요소들 간에 정보를 전송하는 일을 돕는 기본적인 루틴을 포함한다. RAM(1112)은 또한 데이터를 캐싱하기 위한 정적 RAM 등의 고속 RAM을 포함할 수 있다.The system bus 1108 may be any of several types of bus structures that may additionally be interconnected to a local bus using any of the memory bus, peripheral bus, and various commercial bus architectures. The system memory 1106 includes read only memory (ROM) 1110 and random access memory (RAM) The basic input / output system (BIOS) is stored in a non-volatile memory 1110, such as a ROM, EPROM, EEPROM or the like, which is a basic (non-volatile) memory device that aids in transferring information between components within the computer 1102 Routine. The RAM 1112 may also include a high speed RAM such as static RAM for caching data.

컴퓨터(1102)는 또한 내장형 하드 디스크 드라이브(HDD)(1114)(예를 들어, EIDE, SATA)―이 내장형 하드 디스크 드라이브(1114)는 또한 적당한 섀시(도시 생략) 내에서 외장형 용도로 구성될 수 있음―, 자기 플로피 디스크 드라이브(FDD)(1116)(예를 들어, 이동식 디스켓(1118)으로부터 판독을 하거나 그에 기록을 하기 위한 것임), 및 광 디스크 드라이브(1120)(예를 들어, CD-ROM 디스크(1122)를 판독하거나 DVD 등의 기타 고용량 광 매체로부터 판독을 하거나 그에 기록을 하기 위한 것임)를 포함한다. 하드 디스크 드라이브(1114), 자기 디스크 드라이브(1116) 및 광 디스크 드라이브(1120)는 각각 하드 디스크 드라이브 인터페이스(1124), 자기 디스크 드라이브 인터페이스(1126) 및 광 드라이브 인터페이스(1128)에 의해 시스템 버스(1108)에 연결될 수 있다. 외장형 드라이브 구현을 위한 인터페이스(1124)는 USB(Universal Serial Bus) 및 IEEE 1394 인터페이스 기술 중 적어도 하나 또는 그 둘다를 포함한다.The computer 1102 may also be an internal hard disk drive (HDD) 1114 (e.g., EIDE, SATA) - this internal hard disk drive 1114 may also be configured for external use within a suitable chassis , A magnetic floppy disk drive (FDD) 1116 (e.g., for reading from or writing to a removable diskette 1118), and an optical disk drive 1120 (e.g., a CD-ROM For reading disc 1122 or reading from or writing to other high capacity optical media such as DVD). The hard disk drive 1114, magnetic disk drive 1116 and optical disk drive 1120 are connected to the system bus 1108 by a hard disk drive interface 1124, a magnetic disk drive interface 1126 and an optical drive interface 1128, respectively. . The interface 1124 for external drive implementation includes at least one or both of USB (Universal Serial Bus) and IEEE 1394 interface technologies.

이들 드라이브 및 그와 연관된 컴퓨터 판독가능 매체는 데이터, 데이터 구조, 컴퓨터 실행가능 명령어, 기타 등등의 비휘발성 저장을 제공한다. 컴퓨터(1102)의 경우, 드라이브 및 매체는 임의의 데이터를 적당한 디지털 형식으로 저장하는 것에 대응한다. 상기에서의 컴퓨터 판독가능 매체에 대한 설명이 HDD, 이동식 자기 디스크, 및 CD 또는 DVD 등의 이동식 광 매체를 언급하고 있지만, 당업자라면 집 드라이브(zip drive), 자기 카세트, 플래쉬 메모리 카드, 카트리지, 기타 등등의 컴퓨터에 의해 판독가능한 다른 유형의 매체도 역시 예시적인 운영 환경에서 사용될 수 있으며 또 임의의 이러한 매체가 본 발명의 방법들을 수행하기 위한 컴퓨터 실행가능 명령어를 포함할 수 있다는 것을 잘 알 것이다.These drives and their associated computer-readable media provide non-volatile storage of data, data structures, computer-executable instructions, and the like. In the case of computer 1102, the drives and media correspond to storing any data in a suitable digital format. While the above description of computer readable media refers to HDDs, removable magnetic disks, and removable optical media such as CDs or DVDs, those skilled in the art will appreciate that other types of storage devices, such as a zip drive, magnetic cassette, flash memory card, Or the like may also be used in the exemplary operating environment and any such medium may include computer-executable instructions for carrying out the methods of the present invention.

운영 체제(1130), 하나 이상의 애플리케이션 프로그램(1132), 기타 프로그램 모듈(1134) 및 프로그램 데이터(1136)을 비롯한 다수의 프로그램 모듈이 드라이브 및 RAM(1112)에 저장될 수 있다. 운영 체제, 애플리케이션, 모듈 및/또는 데이터의 전부 또는 그 일부분이 또한 RAM(1112)에 캐싱될 수 있다. 본 발명이 여러가지 상업적으로 이용가능한 운영 체제 또는 운영 체제들의 조합에서 구현될 수 있다는 것을 잘 알 것이다.A number of program modules may be stored in the drive and RAM 1112, including an operating system 1130, one or more application programs 1132, other program modules 1134, and program data 1136. All or a portion of the operating system, applications, modules, and / or data may also be cached in the RAM 1112. It will be appreciated that the present invention may be implemented in a variety of commercially available operating systems or combinations of operating systems.

사용자는 하나 이상의 유선/무선 입력 장치, 예를 들어, 키보드(1138) 및 마우스(1140) 등의 포인팅 장치를 통해 컴퓨터(1102)에 명령 및 정보를 입력할 수 있다. 기타 입력 장치(도시 생략)로는 마이크, IR 리모콘, 조이스틱, 게임 패드, 스타일러스 펜, 터치 스크린, 기타 등등이 있을 수 있다. 이들 및 기타 입력 장치가 종종 시스템 버스(1108)에 연결되어 있는 입력 장치 인터페이스(1142)를 통해 처리 장치(1104)에 연결되지만, 병렬 포트, IEEE 1394 직렬 포트, 게임 포트, USB 포트, IR 인터페이스, 기타 등등의 기타 인터페이스에 의해 연결될 수 있다.A user may enter commands and information into the computer 1102 via one or more wired / wireless input devices, such as a keyboard 1138 and a pointing device such as a mouse 1140. [ Other input devices (not shown) may include a microphone, IR remote control, joystick, game pad, stylus pen, touch screen, etc. These and other input devices are often connected to the processing unit 1104 via an input device interface 1142 that is coupled to the system bus 1108, but may be a parallel port, an IEEE 1394 serial port, a game port, a USB port, an IR interface, ≪ / RTI > and so forth.

모니터(1144) 또는 다른 유형의 디스플레이 장치도 역시 비디오 어댑터(1146) 등의 인터페이스를 통해 시스템 버스(1108)에 연결된다. 모니터(1144)에 부가하여, 컴퓨터는 일반적으로 스피커, 프린터, 기타 등등의 기타 주변 출력 장치(도시 생략)를 포함한다.A monitor 1144 or other type of display device is also connected to the system bus 1108 via an interface, such as a video adapter 1146, In addition to the monitor 1144, the computer typically includes other peripheral output devices (not shown) such as speakers, printers,

컴퓨터(1102)는 유선 및/또는 무선 통신을 통한 원격 컴퓨터(들)(1148) 등의 하나 이상의 원격 컴퓨터로의 논리적 연결을 사용하여 네트워크화된 환경에서 동작할 수 있다. 원격 컴퓨터(들)(1148)는 워크스테이션, 서버 컴퓨터, 라우터, 퍼스널 컴퓨터, 휴대용 컴퓨터, 마이크로프로세서-기반 오락 기기, 피어 장치 또는 기타 통상의 네트워크 노드일 수 있으며, 일반적으로 컴퓨터(1102)에 대해 기술된 구성요소들 중 다수 또는 그 전부를 포함하지만, 간략함을 위해, 메모리 저장 장치(1150)만이 도시되어 있다. 도시되어 있는 논리적 연결은 근거리 통신망(LAN)(1152) 및/또는 더 큰 네트워크, 예를 들어, 원거리 통신망(WAN)(1154)에의 유선/무선 연결을 포함한다. 이러한 LAN 및 WAN 네트워킹 환경은 사무실 및 회사에서 일반적인 것이며, 인트라넷 등의 전사적 컴퓨터 네트워크(enterprise-wide computer network)를 용이하게 해주며, 이들 모두는 전세계 컴퓨터 네트워크, 예를 들어, 인터넷에 연결될 수 있다.Computer 1102 may operate in a networked environment using logical connections to one or more remote computers, such as remote computer (s) 1148, via wired and / or wireless communication. The remote computer (s) 1148 can be a workstation, a server computer, a router, a personal computer, a portable computer, a microprocessor-based entertainment device, a peer device or other conventional network node, Includes a number of or all of the described elements, but for simplicity, only memory storage device 1150 is shown. The logical connections depicted include a wired / wireless connection to a local area network (LAN) 1152 and / or a larger network, e.g., a wide area network (WAN) These LAN and WAN networking environments are commonplace in offices and corporations and facilitate enterprise-wide computer networks such as intranets, all of which can be connected to computer networks worldwide, for example the Internet.

LAN 네트워킹 환경에서 사용될 때, 컴퓨터(1102)는 유선 및/또는 무선 통신 네트워크 인터페이스 또는 어댑터(1156)를 통해 로컬 네트워크(1152)에 연결된다. 어댑터(1156)는 LAN(1152)에의 유선 또는 무선 통신을 용이하게 해줄 수 있으며, 이 LAN(1152)은 또한 무선 어댑터(1156)와 통신하기 위해 그에 설치되어 있는 무선 액세스 포인트를 포함하고 있다. WAN 네트워킹 환경에서 사용될 때, 컴퓨터(1102)는 모뎀(1158)을 포함할 수 있거나, WAN(1154) 상의 통신 서버에 연결되거나, 또는 인터넷을 통하는 등, WAN(1154)을 통해 통신을 설정하는 기타 수단을 갖는다. 내장형 또는 외장형 및 유선 또는 무선 장치일 수 있는 모뎀(1158)은 직렬 포트 인터페이스(1142)를 통해 시스템 버스(1108)에 연결된다. 네트워크화된 환경에서, 컴퓨터(1102)에 대해 설명된 프로그램 모듈들 또는 그의 일부분이 원격 메모리/저장 장치(1150)에 저장될 수 있다. 도시된 네트워크 연결이 예시적인 것이며 컴퓨터들 사이에 통신 링크를 설정하는 기타 수단이 사용될 수 있다는 것을 잘 알 것이다.When used in a LAN networking environment, the computer 1102 is connected to the local network 1152 via a wired and / or wireless communication network interface or adapter 1156. [ The adapter 1156 may facilitate wired or wireless communication to the LAN 1152 and the LAN 1152 also includes a wireless access point installed therein to communicate with the wireless adapter 1156. [ When used in a WAN networking environment, the computer 1102 may include a modem 1158, or may be coupled to a communications server on the WAN 1154, or to other devices that establish communications over the WAN 1154, such as via the Internet. . A modem 1158, which may be an internal or external and a wired or wireless device, is coupled to the system bus 1108 via a serial port interface 1142. In a networked environment, program modules described for the computer 1102, or portions thereof, may be stored in the remote memory / storage device 1150. It will be appreciated that the network connections shown are exemplary and other means of establishing a communication link between the computers may be used.

컴퓨터(1102)는 무선 통신으로 배치되어 동작하는 임의의 무선 장치 또는 개체, 예를 들어, 프린터, 스캐너, 데스크톱 및/또는 휴대용 컴퓨터, PDA(portable data assistant), 통신 위성, 무선 검출가능 태그와 연관된 임의의 장비 또는 장소, 및 전화와 통신을 하는 동작을 한다. 이것은 적어도 Wi-Fi 및 블루투스 무선 기술을 포함한다. 따라서, 통신은 종래의 네트워크에서와 같이 미리 정의된 구조이거나 단순하게 적어도 2개의 장치 사이의 애드혹 통신(ad hoc communication)일 수 있다.The computer 1102 may be any wireless device or entity that is deployed and operable in wireless communication, such as a printer, a scanner, a desktop and / or portable computer, a portable data assistant (PDA) Any equipment or place, and communication with the telephone. This includes at least Wi-Fi and Bluetooth wireless technology. Thus, the communication may be a predefined structure, such as in a conventional network, or simply an ad hoc communication between at least two devices.

Wi-Fi(Wireless Fidelity)는 유선 없이도 인터넷 등으로의 연결을 가능하게 해준다. Wi-Fi는 이러한 장치, 예를 들어, 컴퓨터가 실내에서 및 실외에서, 즉 기지국의 통화권 내의 아무 곳에서나 데이터를 전송 및 수신할 수 있게 해주는 셀 전화와 같은 무선 기술이다. Wi-Fi 네트워크는 안전하고 신뢰성있으며 고속인 무선 연결을 제공하기 위해 IEEE 802.11(a,b,g, 기타)이라고 하는 무선 기술을 사용한다. 컴퓨터를 서로에, 인터넷에 및 유선 네트워크(IEEE 802.3 또는 이더넷을 사용함)에 연결시키기 위해 Wi-Fi가 사용될 수 있다. Wi-Fi 네트워크는 비인가 2.4 및 5 GHz 무선 대역에서, 예를 들어, 11Mbps(802.11a) 또는 54 Mbps(802.11b) 데이터 레이트로 동작하거나, 양 대역(듀얼 대역)을 포함하는 제품에서 동작할 수 있다.Wi-Fi (Wireless Fidelity) allows you to connect to the Internet without wires. Wi-Fi is a wireless technology such as a cell phone that allows such devices, e.g., computers, to transmit and receive data indoors and outdoors, i. E. Anywhere within the coverage area of a base station. Wi-Fi networks use a wireless technology called IEEE 802.11 (a, b, g, etc.) to provide a secure, reliable, and high-speed wireless connection. Wi-Fi can be used to connect computers to each other, the Internet, and a wired network (using IEEE 802.3 or Ethernet). The Wi-Fi network may operate in unlicensed 2.4 and 5 GHz wireless bands, for example, at 11 Mbps (802.11a) or 54 Mbps (802.11b) data rates, or in products containing both bands have.

본 발명의 기술 분야에서 통상의 지식을 가진 자는 여기에 개시된 실시예들과 관련하여 설명된 다양한 예시적인 논리 블록들, 모듈들, 프로세서들, 수단들, 회로들 및 알고리즘 단계들이 전자 하드웨어, (편의를 위해, 여기에서 "소프트웨어"로 지칭되는) 다양한 형태들의 프로그램 또는 설계 코드 또는 이들 모두의 결합에 의해 구현될 수 있다는 것을 이해할 것이다. 하드웨어 및 소프트웨어의 이러한 상호 호환성을 명확하게 설명하기 위해, 다양한 예시적인 컴포넌트들, 블록들, 모듈들, 회로들 및 단계들이 이들의 기능과 관련하여 위에서 일반적으로 설명되었다. 이러한 기능이 하드웨어 또는 소프트웨어로서 구현되는지 여부는 특정한 애플리케이션 및 전체 시스템에 대하여 부과되는 설계 제약들에 따라 좌우된다. 본 발명의 기술 분야에서 통상의 지식을 가진 자는 각각의 특정한 애플리케이션에 대하여 다양한 방식들로 설명된 기능을 구현할 수 있으나, 이러한 구현 결정들은 본 발명의 범위를 벗어나는 것으로 해석되어서는 안 될 것이다.Those skilled in the art will appreciate that the various illustrative logical blocks, modules, processors, means, circuits, and algorithm steps described in connection with the embodiments disclosed herein may be embodied directly in electronic hardware, (Which may be referred to herein as "software") or a combination of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends on the design constraints imposed on the particular application and the overall system. Those skilled in the art may implement the described functionality in various ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.

여기서 제시된 다양한 실시예들은 방법, 장치, 또는 표준 프로그래밍 및/또는 엔지니어링 기술을 사용한 제조 물품(article)으로 구현될 수 있다. 용어 "제조 물품"은 임의의 컴퓨터-판독가능 장치로부터 액세스 가능한 컴퓨터 프로그램, 캐리어, 또는 매체(media)를 포함한다. 예를 들어, 컴퓨터-판독가능 매체는 자기 저장 장치(예를 들면, 하드 디스크, 플로피 디스크, 자기 스트립, 등), 광학 디스크(예를 들면, CD, DVD, 등), 스마트 카드, 및 플래쉬 메모리 장치(예를 들면, EEPROM, 카드, 스틱, 키 드라이브, 등)를 포함하지만, 이들로 제한되는 것은 아니다. 또한, 여기서 제시되는 다양한 저장 매체는 정보를 저장하기 위한 하나 이상의 장치 및/또는 다른 기계-판독가능한 매체를 포함한다. 용어 "기계-판독가능 매체"는 명령(들) 및/또는 데이터를 저장, 보유, 및/또는 전달할 수 있는 무선 채널 및 다양한 다른 매체를 포함하지만, 이들로 제한되는 것은 아니다. The various embodiments presented herein may be implemented as a method, apparatus, or article of manufacture using standard programming and / or engineering techniques. The term "article of manufacture" includes a computer program, carrier, or media accessible from any computer-readable device. For example, the computer-readable medium can be a magnetic storage device (e.g., a hard disk, a floppy disk, a magnetic strip, etc.), an optical disk (e.g., CD, DVD, etc.), a smart card, But are not limited to, devices (e. G., EEPROM, cards, sticks, key drives, etc.). The various storage media presented herein also include one or more devices and / or other machine-readable media for storing information. The term "machine-readable medium" includes, but is not limited to, a wireless channel and various other media capable of storing, holding, and / or transferring instruction (s) and / or data.

제시된 프로세스들에 있는 단계들의 특정한 순서 또는 계층 구조는 예시적인 접근들의 일례임을 이해하도록 한다. 설계 우선순위들에 기반하여, 본 발명의 범위 내에서 프로세스들에 있는 단계들의 특정한 순서 또는 계층 구조가 재배열될 수 있다는 것을 이해하도록 한다. 첨부된 방법 청구항들은 샘플 순서로 다양한 단계들의 엘리먼트들을 제공하지만 제시된 특정한 순서 또는 계층 구조에 한정되는 것을 의미하지는 않는다.It will be appreciated that the particular order or hierarchy of steps in the presented processes is an example of exemplary approaches. It will be appreciated that, based on design priorities, certain orders or hierarchies of steps in processes may be rearranged within the scope of the present invention. The appended method claims provide elements of the various steps in a sample order, but are not meant to be limited to the specific order or hierarchy presented.

제시된 실시예들에 대한 설명은 임의의 본 발명의 기술 분야에서 통상의 지식을 가진 자가 본 발명을 이용하거나 또는 실시할 수 있도록 제공된다. 이러한 실시예들에 대한 다양한 변형들은 본 발명의 기술 분야에서 통상의 지식을 가진 자에게 명백할 것이며, 여기에 정의된 일반적인 원리들은 본 발명의 범위를 벗어남이 없이 다른 실시예들에 적용될 수 있다. 그리하여, 본 발명은 여기에 제시된 실시예들로 한정되는 것이 아니라, 여기에 제시된 원리들 및 신규한 특징들과 일관되는 최광의의 범위에서 해석되어야 할 것이다.The description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features presented herein.

Claims (12)

제 1 데이터베이스 서버에서 수행되는 데이터베이스들 간의 쿼리 결과를 동기화하기 위한 방법으로서,
상기 제 1 데이터베이스 서버의 원격에 위치한 제 2 데이터베이스 서버에 존재하는 실체화 뷰(materialized view)에 대한 동기화를 수행할 것을 결정하는 단계 ― 상기 실체화 뷰는 상기 제 1 데이터베이스 서버에 존재하는 마스터 테이블(master table)을 참조하는 실체화 뷰이며, 그리고 상기 제 1 데이터베이스 서버와 상기 제 2 데이터베이스 서버는 서로 이기종(heterogeneous)임 ―;
동기화 수행 결정에 응답하여, 상기 제 2 데이터베이스 서버로 전송될 동기화 명령을 생성하는 단계; 및
상기 생성된 동기화 명령을 상기 제 2 데이터베이스 서버로 전송하여, 상기 제 2 데이터베이스 서버로 하여금 상기 제 2 데이터베이스 서버에 존재하는 상기 실체화 뷰와 상기 제 1 데이터베이스 서버에 존재하는 상기 마스터 테이블 간의 동기화를 수행하도록 하는 단계;
를 포함하며,
상기 동기화 명령은:
상기 제 1 데이터베이스 서버에 존재하고 상기 마스터 테이블과 연관된 로그 테이블 세트에서의 로그 정보를 상기 제 2 데이터베이스 서버에 존재하는 제 2 실체화뷰 로그 테이블에 삽입(insert)하기 위한 명령을 포함하는,
제 1 데이터베이스 서버에서 수행되는 데이터베이스들 간의 쿼리 결과를 동기화하기 위한 방법.
A method for synchronizing query results between databases performed on a first database server,
Determining to perform synchronization on a materialized view residing on a second database server located remotely on the first database server, the materialized view comprising a master table The first database server and the second database server being heterogeneous;
Generating a synchronization command to be transmitted to the second database server in response to the synchronization performing determination; And
And transmits the generated synchronization command to the second database server so that the second database server performs synchronization between the materialized view existing in the second database server and the master table existing in the first database server ;
/ RTI >
The synchronization command comprises:
And inserting log information in a set of log tables existing in the first database server and associated with the master table into a second materialized view log table present in the second database server.
A method for synchronizing query results between databases performed on a first database server.
제 1 항에 있어서,
상기 로그 테이블 세트는,
상기 마스터 테이블의 데이터 변경 내용을 포함하는 제 1 실체화 뷰 로그 테이블;
상기 마스터 테이블을 참조하고 있는 실체화 뷰에 대한 정보 및 상기 실체화 뷰에 대한 마지막 동기화 시점에 대한 정보 중 적어도 하나를 저장하는 DD(data dictionary)_SLOG 테이블; 및
상기 실체화 뷰에 대한 마지막 동기화 시점에 대한 최대 값(youngest last refresh time) 및 최소 값(oldest last refresh time) 정보를 저장하는 DD_MLOG 테이블;
중 적어도 하나를 포함하는,
제 1 데이터베이스 서버에서 수행되는 데이터베이스들 간의 쿼리 결과를 동기화하기 위한 방법.
The method according to claim 1,
The log table set includes:
A first materialized view log table containing data changes of the master table;
A DD (Data Dictionary) _SLOG table storing at least one of information on an instantiation view referencing the master table and information on a last synchronization point with respect to the instantiation view; And
A DD_MLOG table storing information on a youngest last refresh time and an oldest last refresh time with respect to the last synchronization point with respect to the materialized view;
≪ / RTI >
A method for synchronizing query results between databases performed on a first database server.
제 2 항에 있어서,
상기 동기화를 수행할 것을 결정하는 단계는:
상기 로그 테이블 세트를 체크하여 상기 마스터 테이블에서의 데이터 변경이 있었는지 여부를 결정하는 단계; 및
상기 데이터 변경이 있지 않았다고 결정되는 경우 상기 동기화를 수행하지 않는다고 결정하고, 상기 데이터 변경이 있다고 결정되는 경우 상기 동기화를 수행할 것을 결정하는 단계;
를 포함하는,
제 1 데이터베이스 서버에서 수행되는 데이터베이스들 간의 쿼리 결과를 동기화하기 위한 방법.
3. The method of claim 2,
Wherein the step of determining to perform the synchronization comprises:
Checking the log table set to determine whether there has been data change in the master table; And
Determining that the synchronization is not to be performed if it is determined that the data change did not occur, and determining to perform the synchronization if the data change is determined to be performed;
/ RTI >
A method for synchronizing query results between databases performed on a first database server.
제 2 항에 있어서,
상기 동기화의 수행이 완료되는 경우,
상기 DD_SLOG 테이블에서의 마지막 동기화 시점을 현재 시점으로 변경하는 단계;
상기 DD_MLOG 테이블에서의 최대 값(youngest last refresh time) 및 최소 값(oldest last refresh time) 정보를 변경하는 단계; 및
상기 제 1 실체화 뷰 로그 테이블에서 불필요한 변경 데이터를 제거하는 단계;
를 포함하는,
제 1 데이터베이스 서버에서 수행되는 데이터베이스들 간의 쿼리 결과를 동기화하기 위한 방법.
3. The method of claim 2,
When the synchronization is completed,
Changing a last synchronization point in the DD_SLOG table to a current point in time;
Changing a youngest last refresh time and an oldest last refresh time in the DD_MLOG table; And
Removing unnecessary change data from the first materialized view log table;
/ RTI >
A method for synchronizing query results between databases performed on a first database server.
제 1 항에 있어서,
상기 동기화를 수행할 것을 결정하는 단계는:
상기 제 2 데이터베이스 서버의 사용자로부터의 동기화 요청, 사전설정된 동기화 주기, 상기 마스터 테이블의 데이터 변경이 발생되는 상황 중 적어도 하나에 기초하여 수행되는,
제 1 데이터베이스 서버에서 수행되는 데이터베이스들 간의 쿼리 결과를 동기화하기 위한 방법.
The method according to claim 1,
Wherein the step of determining to perform the synchronization comprises:
A synchronization request from a user of the second database server, a preset synchronization period, and a situation where a data change of the master table occurs,
A method for synchronizing query results between databases performed on a first database server.
제 1 항에 있어서,
상기 동기화는, 상기 제 1 데이터베이스 서버의 마스터 테이블과 상기 제 2 데이터베이스 서버의 실체화 뷰 간의 고속 리프레시(fast refresh)인,
제 1 데이터베이스 서버에서 수행되는 데이터베이스들 간의 쿼리 결과를 동기화하기 위한 방법.
The method according to claim 1,
Wherein the synchronization is a fast refresh between a master table of the first database server and an instantiation of the second database server,
A method for synchronizing query results between databases performed on a first database server.
제 2 데이터베이스 서버에서 수행되는 데이터베이스들 간의 쿼리 결과를 동기화하기 위한 방법으로서,
상기 제 2 데이터베이스 서버의 원격에 위치한 제 1 데이터베이스 서버로부터의 동기화 명령을 수신하는 단계 ― 상기 제 1 데이터베이스 서버에는 마스터 테이블이 존재하며, 상기 제 2 데이터베이스 서버에는 상기 마스터 테이블을 참조하는 실체화 뷰가 존재하고, 그리고 상기 제 1 데이터베이스 서버와 상기 제 2 데이터베이스 서버는 서로 이기종임 ―; 및
상기 수신된 동기화 명령에 응답하여, 상기 제 1 데이터베이스 서버에 존재하고 상기 마스터 테이블과 연관된 로그 테이블 세트에서의 로그 정보를 상기 제 2 데이터베이스 서버에 존재하는 제 2 실체화뷰 로그 테이블에 삽입함으로써, 상기 제 2 데이터베이스 서버에 존재하는 상기 실체화 뷰와 상기 제 1 데이터베이스 서버에 존재하는 상기 마스터 테이블 간의 동기화를 수행하는 단계;
를 포함하는,
제 2 데이터베이스 서버에서 수행되는 데이터베이스들 간의 쿼리 결과를 동기화하기 위한 방법.
A method for synchronizing query results between databases performed in a second database server,
Receiving a synchronization command from a first database server located remotely of the second database server, wherein the first database server has a master table and the second database server has an instantiation view that refers to the master table And the first database server and the second database server are different from each other; And
In response to the received synchronization command, inserting log information in a log table set existing in the first database server and associated with the master table into a second materialized view log table existing in the second database server, Performing synchronization between the materialized view existing in the second database server and the master table existing in the first database server;
/ RTI >
A method for synchronizing query results between databases performed on a second database server.
제 7 항에 있어서,
상기 동기화를 수행하는 단계는:
상기 삽입된 로그 정보를 포함하는 상기 제 2 실체화 뷰 로그 테이블과 상기 실체화 뷰 간의 조인 연산을 수행하는 단계;
를 더 포함하는,
제 2 데이터베이스 서버에서 수행되는 데이터베이스들 간의 쿼리 결과를 동기화하기 위한 방법.
8. The method of claim 7,
Wherein performing the synchronization comprises:
Performing a join operation between the second materialized view log table including the inserted log information and the materialized view;
≪ / RTI >
A method for synchronizing query results between databases performed on a second database server.
데이터베이스들 간의 쿼리 결과를 동기화하기 위한 제 1 데이터베이스 서버로서,
상기 제 1 데이터베이스 서버의 원격에 위치한 제 2 데이터베이스 서버에 존재하는 실체화 뷰에 대한 동기화를 수행할 것을 결정하도록 구성되는 동기화 결정 모듈 ― 상기 실체화 뷰는 상기 제 1 데이터베이스 서버에 존재하는 마스터 테이블(Master Table)을 참조하는 실체화 뷰이며, 그리고 상기 제 1 데이터베이스 서버와 상기 제 2 데이터베이스 서버는 서로 이기종(heterogeneous)임 ―;
동기화 수행 결정에 응답하여, 상기 제 2 데이터베이스 서버로 전송될 동기화 명령을 생성하도록 구성되는 동기화 명령 생성 모듈; 및
상기 생성된 동기화 명령을 상기 제 2 데이터베이스 서버로 전송하여, 상기 제 2 데이터베이스 서버로 하여금 상기 제 2 데이터베이스 서버에 존재하는 상기 실체화 뷰와 상기 제 1 데이터베이스 서버에 존재하는 상기 마스터 테이블 간의 동기화를 수행하도록 허용하도록 구성되는 통신 모듈;
을 포함하며,
상기 동기화 명령은:
상기 제 1 데이터베이스 서버에 존재하고 상기 마스터 테이블과 연관된 로그 테이블 세트에서의 로그 정보를 상기 제 2 데이터베이스 서버에 존재하는 제 2 실체화뷰 로그 테이블에 삽입(insert)하기 위한 명령을 포함하는,
데이터베이스들 간의 쿼리 결과를 동기화하기 위한 제 1 데이터베이스 서버.
1. A first database server for synchronizing query results between databases,
A synchronization decision module adapted to determine to perform synchronization on an instantiation view present in a second database server located remotely of the first database server, the instantiation view comprising a master table The first database server and the second database server being heterogeneous;
A synchronization command generation module configured to generate a synchronization command to be transmitted to the second database server in response to the synchronization performing determination; And
And transmits the generated synchronization command to the second database server so that the second database server performs synchronization between the materialized view existing in the second database server and the master table existing in the first database server A communication module configured to permit the communication module;
/ RTI >
The synchronization command comprises:
And inserting log information in a set of log tables existing in the first database server and associated with the master table into a second materialized view log table present in the second database server.
A first database server for synchronizing query results between databases.
데이터베이스들 간의 쿼리 결과를 동기화하기 위한 제 2 데이터베이스 서버로서,
상기 제 2 데이터베이스 서버의 원격에 위치한 제 1 데이터베이스 서버로부터의 동기화 명령을 수신하도록 구성되는 통신 모듈 ― 상기 제 1 데이터베이스 서버에는 마스터 테이블이 존재하며, 상기 제 2 데이터베이스 서버에는 상기 마스터 테이블을 참조하는 실체화 뷰가 존재하고, 그리고 상기 제 1 데이터베이스 서버와 상기 제 2 데이터베이스 서버는 서로 이기종임 ―; 및
상기 수신된 동기화 명령에 응답하여, 상기 제 1 데이터베이스 서버에 존재하고 상기 마스터 테이블과 연관된 로그 테이블 세트에서의 로그 정보를 상기 제 2 데이터베이스 서버에 존재하는 제 2 실체화뷰 로그 테이블에 삽입함으로써, 상기 제 2 데이터베이스 서버에 존재하는 상기 실체화 뷰와 상기 제 1 데이터베이스 서버에 존재하는 상기 마스터 테이블 간의 동기화를 수행하도록 구성되는 동기화 수행 모듈;
을 포함하는,
데이터베이스들 간의 쿼리 결과를 동기화하기 위한 제 2 데이터베이스 서버.
A second database server for synchronizing query results between databases,
A communication module configured to receive a synchronization command from a first database server located remotely of the second database server, the communication module having a master table in the first database server, The first database server and the second database server are different from each other; And
In response to the received synchronization command, inserting log information in a log table set existing in the first database server and associated with the master table into a second materialized view log table existing in the second database server, A synchronization executing module configured to perform synchronization between the materialized view existing in the second database server and the master table existing in the first database server;
/ RTI >
A second database server for synchronizing query results between the databases.
인코딩된 명령들을 포함하는 컴퓨터 판독가능 저장 매체에 저장된 컴퓨터 프로그램으로서, 상기 컴퓨터 프로그램은 컴퓨터 시스템의 하나 이상의 프로세서들에 의해 실행되는 경우, 상기 하나 이상의 프로세서들로 하여금 이하의 동작들을 수행하도록 하며, 상기 동작들은:
제 1 데이터베이스 서버의 원격에 위치한 제 2 데이터베이스 서버에 존재하는 실체화 뷰에 대한 동기화를 수행할 것을 결정하는 동작 ― 상기 실체화 뷰는 상기 제 1 데이터베이스 서버에 존재하는 마스터 테이블을 참조하는 실체화 뷰이며, 그리고 상기 제 1 데이터베이스 서버와 상기 제 2 데이터베이스 서버는 서로 이기종임 ―;
동기화 수행 결정에 응답하여, 상기 제 2 데이터베이스 서버로 전송될 동기화 명령을 생성하는 동작; 및
상기 생성된 동기화 명령을 상기 제 2 데이터베이스 서버로 전송하여, 상기 제 2 데이터베이스 서버로 하여금 상기 제 2 데이터베이스 서버에 존재하는 상기 실체화 뷰와 상기 제 1 데이터베이스에 존재하는 상기 마스터 테이블 간의 동기화를 수행하도록 하는 동작;
을 포함하며,
상기 동기화 명령은:
상기 제 1 데이터베이스 서버에 존재하고 상기 마스터 테이블과 연관된 로그 테이블 세트에서의 로그 정보를 상기 제 2 데이터베이스 서버에 존재하는 제 2 실체화뷰 로그 테이블에 삽입(insert)하기 위한 명령을 포함하는,
컴퓨터 판독가능 저장 매체에 저장된 컴퓨터 프로그램.
21. A computer program stored in a computer-readable storage medium comprising encoded instructions, the computer program causing the one or more processors, when executed by one or more processors of a computer system, to perform the following operations: Actions include:
Determining to perform synchronization on an instantiation view residing on a second database server located remotely on a first database server, the instantiation view being an instantiation view referencing a master table present on the first database server, and The first database server and the second database server are different from each other;
Generating a synchronization command to be transmitted to the second database server in response to the synchronization performing determination; And
And transmitting the generated synchronization command to the second database server to cause the second database server to perform synchronization between the materialized view existing in the second database server and the master table existing in the first database action;
/ RTI >
The synchronization command comprises:
And inserting log information in a set of log tables existing in the first database server and associated with the master table into a second materialized view log table present in the second database server.
A computer program stored on a computer readable storage medium.
인코딩된 명령들을 포함하는 컴퓨터 판독가능 저장 매체에 저장된 컴퓨터 프로그램으로서, 상기 컴퓨터 프로그램은 컴퓨터 시스템의 하나 이상의 프로세서들에 의해 실행되는 경우, 상기 하나 이상의 프로세서들로 하여금 이하의 동작들을 수행하도록 하며, 상기 동작들은:
제 2 데이터베이스 서버의 원격에 위치한 제 1 데이터베이스 서버로부터의 동기화 명령을 수신하는 동작 ― 상기 제 1 데이터베이스 서버에는 마스터 테이블이 존재하며, 상기 제 2 데이터베이스 서버에는 상기 마스터 테이블을 참조하는 실체화 뷰가 존재하고, 그리고 상기 제 1 데이터베이스 서버와 상기 제 2 데이터베이스 서버는 서로 이기종임 ―; 및
상기 수신된 동기화 명령에 응답하여, 상기 제 1 데이터베이스 서버에 존재하고 상기 마스터 테이블과 연관된 로그 테이블 세트에서의 로그 정보를 상기 제 2 데이터베이스 서버에 존재하는 제 2 실체화뷰 로그 테이블에 삽입함으로써, 상기 제 2 데이터베이스 서버에 존재하는 상기 실체화 뷰와 상기 제 1 데이터베이스 서버에 존재하는 상기 마스터 테이블 간의 동기화를 수행하는 동작;
을 포함하는,
컴퓨터 판독가능 저장 매체에 저장된 컴퓨터 프로그램.
21. A computer program stored in a computer-readable storage medium comprising encoded instructions, the computer program causing the one or more processors, when executed by one or more processors of a computer system, to perform the following operations: Actions include:
Receiving a synchronization command from a first database server located remotely on a second database server, the first database server having a master table, the second database server having an instantiation view referring to the master table, And the first database server and the second database server are different from each other; And
In response to the received synchronization command, inserting log information in a log table set existing in the first database server and associated with the master table into a second materialized view log table existing in the second database server, Performing synchronization between the materialized view present in the second database server and the master table existing in the first database server;
/ RTI >
A computer program stored on a computer readable storage medium.
KR1020160101064A 2016-08-09 2016-08-09 Method, server and computer program stored in computer readable medium for synchronizing query result KR101747270B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020160101064A KR101747270B1 (en) 2016-08-09 2016-08-09 Method, server and computer program stored in computer readable medium for synchronizing query result

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020160101064A KR101747270B1 (en) 2016-08-09 2016-08-09 Method, server and computer program stored in computer readable medium for synchronizing query result

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
KR1020160024559A Division KR101706252B1 (en) 2016-02-29 2016-02-29 Method, server and computer program stored in computer readable medium for synchronizing query result

Related Child Applications (1)

Application Number Title Priority Date Filing Date
KR1020170071328A Division KR20170101835A (en) 2017-06-08 2017-06-08 Method, server and computer program stored in computer readable medium for synchronizing query result

Publications (1)

Publication Number Publication Date
KR101747270B1 true KR101747270B1 (en) 2017-06-14

Family

ID=59217816

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020160101064A KR101747270B1 (en) 2016-08-09 2016-08-09 Method, server and computer program stored in computer readable medium for synchronizing query result

Country Status (1)

Country Link
KR (1) KR101747270B1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113127436A (en) * 2021-04-28 2021-07-16 北京奇艺世纪科技有限公司 Data synchronization method, device, server and storage medium
CN113434502A (en) * 2021-06-25 2021-09-24 北京明略软件系统有限公司 Heterogeneous database consistency implementation method and system, electronic device and storage medium
CN113609218A (en) * 2021-07-20 2021-11-05 深圳市爱都科技有限公司 Data synchronization method, terminal device and computer-readable storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113127436A (en) * 2021-04-28 2021-07-16 北京奇艺世纪科技有限公司 Data synchronization method, device, server and storage medium
CN113127436B (en) * 2021-04-28 2023-07-25 北京奇艺世纪科技有限公司 Data synchronization method, device, server and storage medium
CN113434502A (en) * 2021-06-25 2021-09-24 北京明略软件系统有限公司 Heterogeneous database consistency implementation method and system, electronic device and storage medium
CN113434502B (en) * 2021-06-25 2024-03-01 南京明略科技有限公司 Heterogeneous database consistency implementation method, system, electronic equipment and storage medium
CN113609218A (en) * 2021-07-20 2021-11-05 深圳市爱都科技有限公司 Data synchronization method, terminal device and computer-readable storage medium

Similar Documents

Publication Publication Date Title
KR101706252B1 (en) Method, server and computer program stored in computer readable medium for synchronizing query result
KR101956236B1 (en) Data replication technique in database management system
US11468027B2 (en) Method and apparatus for providing efficient indexing and computer program included in computer readable medium therefor
KR102127522B1 (en) Computer program stored in computer readable medium, database server and audit performing server
KR101747265B1 (en) Method and apparatus for executing query and computer readable medium therefor
KR101922044B1 (en) Recovery technique of data intergrity with non-stop database server redundancy
US10824612B2 (en) Key ticketing system with lock-free concurrency and versioning
CN111538724A (en) Method for managing index
US11314719B2 (en) Method for implementing change data capture in database management system
KR101747270B1 (en) Method, server and computer program stored in computer readable medium for synchronizing query result
KR101797483B1 (en) Technique for processing query in database management system
KR101751970B1 (en) Method and apparatus for executing query and computer readable medium therefor
CN107408239B (en) Architecture for managing mass data in communication application through multiple mailboxes
KR101747262B1 (en) Method and apparatus for reducing query processing time by dynamically changing algorithms and computer readable medium therefor
KR20170101835A (en) Method, server and computer program stored in computer readable medium for synchronizing query result
KR20190022600A (en) Data replication technique in database management system
KR101997494B1 (en) Method for using mainframe system data in open system in realtime
KR102057055B1 (en) Method for managing index
KR20170122151A (en) Method and apparatus for reducing query processing time by dynamically changing algorithms and computer readable medium therefor
KR102127785B1 (en) Method and apparatus for providing efficient indexing and computer program included in computer readable medium therefor
KR101935249B1 (en) Method for processing based on flow using stored procedure, system and apparatus
KR20170143470A (en) Method and apparatus for executing query and computer readable medium therefor
KR20180126431A (en) Recovery technique of data intergrity with non-stop database server redundancy
KR20180009730A (en) Technique for processing query in database management system
US11726978B2 (en) Computer program for providing efficient change data capture in a database system

Legal Events

Date Code Title Description
A107 Divisional application of patent
GRNT Written decision to grant