Database storage reclaiming program
First Claim
1. A method for reclaiming database storage, the method comprising:
- retrieving, by a computer, a list of data elements for deletion from a database catalog, wherein the list of data elements for deletion details one or more data elements contained in a database;
determining, by the computer, whether first data elements of the one or more data elements on the list of data elements for deletion have been active in one or more static Structured Query Language (SQL) statements, wherein the one or more static SQL statements are persistent and created before runtime;
removing, by the computer, the first data elements of the one or more data elements from the list of data elements for deletion that have been determined to be active in the one or more static SQL statements;
determining, by the computer, whether second data elements of the one or more data elements on the list of data elements for deletion have been active in one or more dynamic SQL statements, wherein the one or more dynamic SQL statements are non-persistent and created at runtime;
removing, by the computer, the second data elements of the one or more data elements from the list of data elements for deletion that have been determined to be active in the one or more dynamic SQL statements;
determining, by the computer, whether third data elements of the one or more data elements on the list of data elements for deletion are associated with one or more data elements not on the list of data elements for deletion;
removing, by the computer, the third data elements of the one or more data elements from the list of data elements for deletion that are determined to be associated with the one or more data elements not on the list of data elements for deletion;
determining, by the computer, whether fourth data elements of the one or more data elements on the list of data elements for deletion are used in a source code of one or more applications; and
removing, by the computer, the fourth data elements of the one or more data elements from the list of data elements for deletion that are determined to be used in the source code of the one or more applications.
1 Assignment
0 Petitions
Accused Products
Abstract
The computer retrieves a list of the data elements contained in a database. The computer performs a static and dynamic analysis on the list to determine which data elements have been active in a static or dynamic Structured Query Language (SQL) statement, then removes active data elements from the list. The computer performs a dependency test to determine which data elements on the list are depended on by data objects not on the list and removes those data elements which are depended on. The computer analyzes application code to extract SQL statements and determine whether data elements on the list are active in application code SQL. Any data elements on the list which are active in application code SQL are removed from the list and the remaining data elements on the list are sorted in descending order based on size.
10 Citations
20 Claims
-
1. A method for reclaiming database storage, the method comprising:
-
retrieving, by a computer, a list of data elements for deletion from a database catalog, wherein the list of data elements for deletion details one or more data elements contained in a database; determining, by the computer, whether first data elements of the one or more data elements on the list of data elements for deletion have been active in one or more static Structured Query Language (SQL) statements, wherein the one or more static SQL statements are persistent and created before runtime; removing, by the computer, the first data elements of the one or more data elements from the list of data elements for deletion that have been determined to be active in the one or more static SQL statements; determining, by the computer, whether second data elements of the one or more data elements on the list of data elements for deletion have been active in one or more dynamic SQL statements, wherein the one or more dynamic SQL statements are non-persistent and created at runtime; removing, by the computer, the second data elements of the one or more data elements from the list of data elements for deletion that have been determined to be active in the one or more dynamic SQL statements; determining, by the computer, whether third data elements of the one or more data elements on the list of data elements for deletion are associated with one or more data elements not on the list of data elements for deletion; removing, by the computer, the third data elements of the one or more data elements from the list of data elements for deletion that are determined to be associated with the one or more data elements not on the list of data elements for deletion; determining, by the computer, whether fourth data elements of the one or more data elements on the list of data elements for deletion are used in a source code of one or more applications; and removing, by the computer, the fourth data elements of the one or more data elements from the list of data elements for deletion that are determined to be used in the source code of the one or more applications. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A computer program product for a database storage reclaiming program, the computer program product comprising:
-
one or more computer-readable storage media and program instructions stored on the one or more computer-readable storage media, the program instructions comprising; program instructions to retrieve a list of data elements for deletion from a database catalog, wherein the list of data elements for deletion details one or more data elements contained in a database; program instructions to determine whether first data elements of the one or more data elements on the list of data elements for deletion have been active in one or more static Structured Query Language (SQL) statements, wherein the one or more SQL statements are persistent and created before runtime; program instructions to remove the first data elements of the one or more data elements from the list of data elements for deletion that have been determined to be active in the one or more static SQL statements; program instructions to determine whether second data elements of the one or more data elements on the list of data elements for deletion have been active in one or more dynamic SQL statements, wherein the one or more dynamic SQL statements are non-persistent and created at runtime; program instructions to remove the second data elements of the one or more data elements from the list of data elements for deletion that have been determined to be active in the one or more dynamic SQL statements; program instructions to determine whether third data elements of the one or more data elements on the list of data elements for deletion are associated with one or more data elements not on the list of data elements for deletion; program instructions to remove the third data elements of the one or more data elements from the list of data elements for deletion that are determined to be associated with the one or more data elements not on the list of data elements for deletion; program instructions to determine whether fourth data elements of the one or more data elements on the list of data elements for deletion are used in a source code of one or more applications; and program instructions to remove the fourth data elements of the one or more data elements from the list of data elements for deletion that are determined to be used in the source code of the one or more applications. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A computer system for a database storage reclaiming program, the computer system comprising:
-
one or more computer processors, one or more computer-readable storage media, and program instructions stored on one or more of the computer-readable storage media for execution by at least one of the one or more processors, the program instructions comprising; program instructions to retrieve a list of data elements for deletion from a database catalog, wherein the list of data elements for deletion details one or more data elements contained in a database; program instructions to determine whether first data elements of the one or more data elements on the list of data elements for deletion have been active in one or more static Structured Query Language (SQL) statements, wherein the one or more static SQL statements are persistent and created before runtime; program instructions to remove the first data elements of the one or more data elements from the list of data elements for deletion that have been determined to be active in the one or more static SQL statements; program instructions to determine whether second data elements of the one or more data elements on the list of data elements for deletion have been active in one or more dynamic SQL statements, wherein the one or more dynamic SQL statements are non-persistent and created at runtime; program instructions to remove the second data elements of the one or more data elements from the list of data elements for deletion that have been determined to be active in the one or more dynamic SQL statements; program instructions to determine whether third data elements of the one or more data elements on the list of data elements for deletion are associated with one or more data elements not on the list of data elements for deletion; program instructions to remove the third data elements of the one or more data elements from the list of data elements for deletion that are determined to be associated with the one or more data elements not on the list of data elements for deletion; program instructions to determine whether fourth data elements of the one or more data elements on the list of data elements for deletion are used in a source code of one or more applications; and program instructions to remove the fourth data elements of the one or more data elements from the list of data elements for deletion that are determined to be used in the source code of the one or more applications. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification