# US 2023/0068439 A1 · Using view layer in database system for zero downtime upgrade

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

- Number: US 2023/0068439 A1
- Document ID: US20230068439A1
- Status: Published application
- Kind: A1
- Application number: 17/411,141
- Filed: 2021-08-25
- Published: 2023-03-02
- Earliest claimed: 2021-08-25
- Assignees: Sap SE
- Applicants: Sap SE
- Inventors: Kerstin Hoeft; Volker Driesen
- Web page: https://patentgrep.com/patent/US20230068439A1

## CPC

- G06F 8/656: while running
- G06F 16/2379: {Updates performed during online database operations; commit processing}
- G06F 16/213: {with details for schema evolution support}
- G06F 16/217: {Database tuning (G06F16/2282 takes precedence; database performance monitoring G06F11/3409)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods, systems, and computer-readable storage media for providing a first access schema in a view layer of the database system, the first access schema including first database objects and projection views, each projection view corresponding to a second database object of second database objects in a data persistency, transitioning access of sessions of an application from the data persistency to the first access schema, executing at least a portion of the maintenance procedure in the database system, the at least a portion of the maintenance procedure changing one or more second database objects within the data persistency, creating a second access schema, and transitioning access of the sessions of the application from the first access schema to the second access schema, transitioning access of the sessions of the application from the second access schema to the data persistency, and removing the second access schema from the database system.

## Claims

### Claim 1

A computer-implemented method for minimizing downtime during execution of a maintenance procedure of a database system, the method being executed by one or more processors and comprising:
providing a first access schema in a view layer of the database system, the first access schema comprising one or more first database objects and one or more projection views, each projection view corresponding to a second database object of one or more second database objects in a data persistency of the database system;
transitioning access of sessions of an application from the data persistency of the database system to the first access schema;
executing at least a portion of the maintenance procedure in the database system, the at least a portion of the maintenance procedure:
changing one or more second database objects within the data persistency,
creating a second access schema, and
transitioning access of the sessions of the application from the first access schema to the second access schema;
transitioning access of the sessions of the application from the second access schema to the data persistency of the database system; and
removing the second access schema from the database system.

### Claim 2 (depends on 1)

The method of claim 1, wherein each second database object in the one or more second database objects comprises content that one or more operations can be executed on.

### Claim 3 (depends on 1)

The method of claim 1, wherein each first database object in the one or more first database objects is absent content that one or more operations can be executed on.

### Claim 4 (depends on 1)

The method of claim 1, wherein transitioning access of sessions of an application from the data persistency of the database system to the first access schema comprises:
configuring a second database connection of a database interface of the application to connect sessions of the application to the first access schema; and
rolling sessions from a first database connection of the database interface to the second database connection.

### Claim 5 (depends on 1)

The method of claim 1, wherein transitioning access of the sessions of the application from the second access schema to the data persistency of the database system comprises:
configuring a second database connection of a database interface of the application to connect sessions of the application to the data persistency; and
rolling sessions from a first database connection of the database interface to the second database connection.

### Claim 6 (depends on 1)

The method of claim 1, wherein the one or more first database objects comprise one or more of a view, a filter rule, a dependency rule, and a stored procedure.

### Claim 7 (depends on 1)

The method of claim 1, wherein providing a first access schema in a view layer of the database system comprises:
for each second database object comprising a table, creating a projection view to the table as a first database object of the one or more first database objects; and
for each second database object comprising a sequence, creating a synonym to the sequence as a first database object of the one or more first database objects.

### Claim 8

A non-transitory computer-readable storage medium coupled to one or more processors and having instructions stored thereon which, when executed by the one or more processors, cause the one or more processors to perform operations for minimizing downtime during execution of a maintenance procedure of a database system, the operations comprising:
providing a first access schema in a view layer of the database system, the first access schema comprising one or more first database objects and one or more projection views, each projection view corresponding to a second database object of one or more second database objects in a data persistency of the database system;
transitioning access of sessions of an application from the data persistency of the database system to the first access schema;
executing at least a portion of the maintenance procedure in the database system, the at least a portion of the maintenance procedure:
changing one or more second database objects within the data persistency,
creating a second access schema, and
transitioning access of the sessions of the application from the first access schema to the second access schema;
transitioning access of the sessions of the application from the second access schema to the data persistency of the database system; and
removing the second access schema from the database system.

### Claim 9 (depends on 8)

The non-transitory computer-readable storage medium of claim 8, wherein each second database object in the one or more second database objects comprises content that one or more operations can be executed on.

### Claim 10 (depends on 8)

The non-transitory computer-readable storage medium of claim 8, wherein each first database object in the one or more first database objects is absent content that one or more operations can be executed on.

### Claim 11 (depends on 8)

The non-transitory computer-readable storage medium of claim 8, wherein transitioning access of sessions of an application from the data persistency of the database system to the first access schema comprises:
configuring a second database connection of a database interface of the application to connect sessions of the application to the first access schema; and
rolling sessions from a first database connection of the database interface to the second database connection.

### Claim 12 (depends on 8)

The non-transitory computer-readable storage medium of claim 8, wherein transitioning access of the sessions of the application from the second access schema to the data persistency of the database system comprises:
configuring a second database connection of a database interface of the application to connect sessions of the application to the data persistency; and
rolling sessions from a first database connection of the database interface to the second database connection.

### Claim 13 (depends on 8)

The non-transitory computer-readable storage medium of claim 8, wherein the one or more first database objects comprise one or more of a view, a filter rule, a dependency rule, and a stored procedure.

### Claim 14 (depends on 8)

The non-transitory computer-readable storage medium of claim 8, wherein providing a first access schema in a view layer of the database system comprises:
for each second database object comprising a table, creating a projection view to the table as a first database object of the one or more first database objects; and
for each second database object comprising a sequence, creating a synonym to the sequence as a first database object of the one or more first database objects.

### Claim 15

A system, comprising:
a computing device; and
a computer-readable storage device coupled to the computing device and having instructions stored thereon which, when executed by the computing device, cause the computing device to perform operations for natural language explanations for minimizing downtime during execution of a maintenance procedure of a database system, the operations comprising:
providing a first access schema in a view layer of the database system, the first access schema comprising one or more first database objects and one or more projection views, each projection view corresponding to a second database object of one or more second database objects in a data persistency of the database system;
transitioning access of sessions of an application from the data persistency of the database system to the first access schema;
executing at least a portion of the maintenance procedure in the database system, the at least a portion of the maintenance procedure:
changing one or more second database objects within the data persistency,
creating a second access schema, and
transitioning access of the sessions of the application from the first access schema to the second access schema;
transitioning access of the sessions of the application from the second access schema to the data persistency of the database system; and
removing the second access schema from the database system.

### Claim 16 (depends on 15)

The system of claim 15, wherein each second database object in the one or more second database objects comprises content that one or more operations can be executed on.

### Claim 17 (depends on 15)

The system of claim 15, wherein each first database object in the one or more first database objects is absent content that one or more operations can be executed on.

### Claim 18 (depends on 15)

The system of claim 15, wherein transitioning access of sessions of an application from the data persistency of the database system to the first access schema comprises:
configuring a second database connection of a database interface of the application to connect sessions of the application to the first access schema; and
rolling sessions from a first database connection of the database interface to the second database connection.

### Claim 19 (depends on 15)

The system of claim 15, wherein transitioning access of the sessions of the application from the second access schema to the data persistency of the database system comprises:
configuring a second database connection of a database interface of the application to connect sessions of the application to the data persistency; and
rolling sessions from a first database connection of the database interface to the second database connection.

### Claim 20 (depends on 15)

The system of claim 15, wherein the one or more first database objects comprise one or more of a view, a filter rule, a dependency rule, and a stored procedure.
