Transparently upgrading derived database objects
First Claim
1. A computer implemented method comprising:
- determining if a first materialized view is defined by a first query that only references columns of a database table that exist prior to an upgrade of the database table;
suppressing regeneration of the first materialized view in response to a determination that the first materialized view is defined by the first query that only references columns of the database table that exist prior to the upgrade of the database table;
determining if a second materialized view is defined by a second query that references at least one column that is to be added to the database table by the upgrade of the database table; and
regenerating the second materialized view in response to a determination that the second materialized view is defined by the second query that references the at least one column that is to be added to the database table by the upgrade of the database table.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for transparently upgrading derived database objects commences upon analysis of the data dictionary definition for an initial derived database object as compared to the data dictionary definition for a patched derived database object, then determining if a regenerated instance of the derived database object would be logically different from the initial derived database object. The determination is based on comparisons of the definitions of the initial derived database objects and patched definitions of respective database objects. The method produces a regenerated instance of the derived database object when a regenerated instance of the patched derived database object would be logically different from the initial derived database object. The method will suppress the production of a regenerated instance when a regenerated instance of the derived database object would not be logically different from the initial derived database object. Once regenerated or suppressed, a post-upgrade software application accesses the regenerated derived database object instance (if regenerated) or the initial derived database object if the regenerated instance was suppressed.
-
Citations
23 Claims
-
1. A computer implemented method comprising:
-
determining if a first materialized view is defined by a first query that only references columns of a database table that exist prior to an upgrade of the database table; suppressing regeneration of the first materialized view in response to a determination that the first materialized view is defined by the first query that only references columns of the database table that exist prior to the upgrade of the database table; determining if a second materialized view is defined by a second query that references at least one column that is to be added to the database table by the upgrade of the database table; and regenerating the second materialized view in response to a determination that the second materialized view is defined by the second query that references the at least one column that is to be added to the database table by the upgrade of the database table. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 17, 18)
-
-
10. A non-transitory computer-readable medium storing instructions which, when executed by one or more processors, cause the one or more processors to perform operations comprising:
-
determining that a first materialized view is defined by a query that only references columns of a database table that exist prior to an upgrade of the database table; in response to determining that the first materialized view is defined by the query that only references columns of the database table that exist prior to the upgrade of the database table, suppressing regeneration of the first materialized view; determining that a second materialized view is defined by a query that references at least one column that is to be added to the database table by the upgrade of the database table; and in response to determining that the second materialized view is defined by the query that references at least one column that is to be added to the database table by the upgrade of the database table, regenerating the second materialized view. - View Dependent Claims (11, 12, 13, 14, 15, 16)
-
-
19. A computer system comprising:
-
a computer processor to execute a set of program code instructions; and a memory to hold the program code instructions, in which the program code instructions comprises program code which, when executed by the computer processor, cause the computer processor to; determine if a first materialized view is defined by a first query that only references columns of a database table that exist prior to an upgrade of the database table;
suppress regeneration of the first materialized view in response to a determination that the first materialized view is defined by the first query that only references columns of the database table that exist prior to the upgrade of the database table;
determine if a second materialized view is defined by a second query that references at least one column that is to be added to the database table by the upgrade of the database table; and
regenerate the second materialized view in response to a determination that the second materialized view is defined by the second query that references at least one column that is to be added to the database table by the upgrade of the database table. - View Dependent Claims (20, 21, 22, 23)
-
Specification