# US 2021/0286787 A1 · System and method for slowly changing dimension and metadata versioning in a multidimensional database environment

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0286787 A1
- Document ID: US20210286787A1
- Status: Published application
- Kind: A1
- Application number: 17/200,589
- Filed: 2021-03-12
- Published: 2021-09-16
- Earliest claimed: 2017-09-08
- Assignees: Oracle International Corporation
- Applicants: Oracle International Corporation
- Inventors: Kumar Ramaiyer
- Web page: https://patentgrep.com/patent/US20210286787A1

## CPC

- G06F 16/219: {Managing data history or versioning (querying versioned data G06F16/2474; querying temporal data G06F16/2477)}
- G06F 16/2246: {Trees, e.g. B+trees}
- G06F 16/2474: {Sequence data queries, e.g. querying versioned data}
- G06F 16/282: {Hierarchical databases, e.g. IMS, LDAP data stores or Lotus Notes}
- G06F 16/283: {Multi-dimensional databases or data warehouses, e.g. MOLAP or ROLAP}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In accordance with an embodiment, described herein are systems and methods for supporting slowly changing dimensions and metadata versioning in a multidimensional database, comprising. A system can comprise a computer that includes one or more microprocessors, and a multidimensional database server executing on the computer, wherein the multidimensional database server supports at least one hierarchical structure of data dimensions. A data dimension can slowly change over time. When such changes occur, metadata associated with the data dimension can be updated. Advantageously, a current snapshot of the data structure can allow searching of previous changes to the slowly changing dimension based upon the metadata.

## Claims

### Claim 1

A method for supporting dimension and metadata versioning in a multidimensional database server executing on the computer, the method comprising:
providing a metadata store associated with the multidimensional database server;
providing a hierarchical data structure, the hierarchical data structure comprising at least two levels, each of the at least two levels comprising a plurality of data dimensions;
defining links between the plurality of dimensions wherein said links are expressed in metadata maintained for the hierarchical data structure in the metadata store;
tracking the plurality of data dimensions to detect changes in links of the plurality of data dimensions over time; and
upon detecting a change in a link of a data dimension of the plurality of data dimensions,
persisting previous changes in links of said data dimension in metadata associated with said data dimension in the metadata store wherein each of said previous changes is associated with a change time,
updating said data dimension to reflect said detected change in link, and
updating the metadata associated with the data dimension to reflect said detected change in link;
wherein the hierarchical data structure is adapted for processing a query at the multidimensional database server.

### Claim 2 (depends on 1)

The method of claim 1, wherein the update to the metadata upon a first change is indicative of a first time at which the first change occurred.

### Claim 3 (depends on 2)

The method of claim 2, wherein the metadata associated with the data dimension is further updated upon a second change in the slowly changing data dimension.

### Claim 4 (depends on 3)

The method of claim 3, wherein the further update to the metadata upon the second change is indicative of a second time at which the second change occurred, the second time being later than the first time.

### Claim 5 (depends on 4)

The method of claim 4, wherein upon the specified time is after the first time and before the second time, the multidimensional database server provides a first snapshot of the hierarchical data structure, the first snapshot being reflective of the first change.

### Claim 6 (depends on 4)

The method of claim 4, wherein upon the specified time is after the second time, the multidimensional database server provides a second snapshot of the hierarchical data structure, the second snapshot being reflective of the first change and the second change.

### Claim 7

A system for supporting dimension and metadata versioning in a multidimensional database server executing on the computer, comprising:
a metadata store associated with the multidimensional database server; and
a hierarchical data structure, the hierarchical data structure comprising at least two levels, each of the at least two levels comprising a plurality of data dimensions;
wherein the system is adapted to:
define links between the plurality of dimensions wherein said links are expressed in metadata maintained for the hierarchical data structure in the metadata store;
track the plurality of data dimensions to detect changes in links of the plurality of data dimensions over time; and
upon detecting a change in a link of a data dimension of the plurality of data dimensions,
persist previous changes in links of said data dimension in metadata associated with said data dimension in the metadata store wherein each of said previous changes is associated with a change time,
update said data dimension to reflect said detected change in link, and
update the metadata associated with the data dimension to reflect said detected change in link;
wherein the hierarchical data structure is adapted for processing a query at the multidimensional database server.

### Claim 8 (depends on 7)

The system of claim 7, wherein the update to the metadata upon a first change is indicative of a first time at which the first change occurred.

### Claim 9 (depends on 7)

The system of claim 7, wherein the metadata associated with the data dimension is further updated upon a second change in the slowly changing data dimension.

### Claim 10 (depends on 9)

The system of claim 9, wherein the further update to the metadata upon the second change is indicative of a second time at which the second change occurred, the second time being later than the first time.

### Claim 11 (depends on 10)

The system of claim 10, wherein upon the specified time is after the first time and before the second time, the multidimensional database server provides a first snapshot of the hierarchical data structure, the first snapshot being reflective of the first change.

### Claim 12 (depends on 11)

The system of claim 11, wherein upon the specified time is after the second time, the multidimensional database server provides a second snapshot of the hierarchical data structure, the second snapshot being reflective of the first change and the second change.

### Claim 13

A non-transitory computer readable storage medium having instructions thereon for supporting dimension and metadata versioning in a multidimensional database server executing on the computer, that when read and executed perform a method comprising:
providing a metadata store associated with the multidimensional database server;
providing a hierarchical data structure, the hierarchical data structure comprising at least two levels, each of the at least two levels comprising a plurality of data dimensions;
defining links between the plurality of dimensions wherein said links are expressed in metadata maintained for the hierarchical data structure in the metadata store;
tracking the plurality of data dimensions to detect changes in links of the plurality of data dimensions over time; and
upon detecting a change in a link of a data dimension of the plurality of data dimensions,
persisting previous changes in links of said data dimension in metadata associated with said data dimension in the metadata store wherein each of said previous changes is associated with a change time,
updating said data dimension to reflect said detected change in link, and
updating the metadata associated with the data dimension to reflect said detected change in link;
wherein the hierarchical data structure is adapted for processing a query at the multidimensional database server.

### Claim 14 (depends on 13)

The non-transitory computer readable storage medium of claim 13, wherein the update to the metadata upon a first change is indicative of a first time at which the first change occurred.

### Claim 15 (depends on 13)

The non-transitory computer readable storage medium of claim 13, wherein the metadata associated with the data dimension is further updated upon a second change in the slowly changing data dimension.

### Claim 16 (depends on 15)

The non-transitory computer readable storage medium of claim 15, wherein the further update to the metadata upon the second change is indicative of a second time at which the second change occurred, the second time being later than the first time.

### Claim 17 (depends on 16)

The non-transitory computer readable storage medium of claim 16, wherein upon the specified time is after the first time and before the second time, the multidimensional database server provides a first snapshot of the hierarchical data structure, the first snapshot being reflective of the first change.

### Claim 18 (depends on 16)

The non-transitory computer readable storage medium of claim 16, wherein upon the specified time is after the second time, the multidimensional database server provides a second snapshot of the hierarchical data structure, the second snapshot being reflective of the first change and the second change.
