Backup and restore of databases
First Claim
1. A computer-implemented method comprising:
- maintaining a source database storing data as tables, the tables including at least a particular table;
receiving a database query associated with a performance issue on the source database, the database query processing data of the particular table;
creating a backup repository for the source database, the creating comprising;
retrieving data of one or more tables of the source database by executing one or more database queries, the one or more tables including the particular table, wherein execution of the one or more database queries retrieves rows of the one or more tables including rows marked as deleted in the source database, wherein the rows marked as deleted were deleted in the source database before creating the backup repository, andstoring the retrieved data in a backup repository;
restoring a target database using the backup repository, the restored target database storing the particular table including rows of the particular table marked as deleted in the source database; and
executing the database query on the target database to analyze the performance issue of the database query on the source database, the executing comprising processing the restored particular table, wherein the restored particular table stores rows marked as deleted in the source database.
6 Assignments
0 Petitions
Accused Products
Abstract
A logical backup of a database is performed that allows physical properties of the database to be preserved upon restore. The physical properties of the database include properties related to storage of the data on the hard disk. Preserving the physical properties of a database allows performance debugging of the source database by performing performance tests on the target database rather than a production system. Incremental backup of metadata of a database is performed to minimize execution of statements that provide the final configuration of the database. Incremental backup is performed by restoring a database using a full backup and applying incremental backups to reach a particular state. The user can inspect the restored database after applying each incremental backup to determine whether the database has reached a desired state.
52 Citations
19 Claims
-
1. A computer-implemented method comprising:
-
maintaining a source database storing data as tables, the tables including at least a particular table; receiving a database query associated with a performance issue on the source database, the database query processing data of the particular table; creating a backup repository for the source database, the creating comprising; retrieving data of one or more tables of the source database by executing one or more database queries, the one or more tables including the particular table, wherein execution of the one or more database queries retrieves rows of the one or more tables including rows marked as deleted in the source database, wherein the rows marked as deleted were deleted in the source database before creating the backup repository, and storing the retrieved data in a backup repository; restoring a target database using the backup repository, the restored target database storing the particular table including rows of the particular table marked as deleted in the source database; and executing the database query on the target database to analyze the performance issue of the database query on the source database, the executing comprising processing the restored particular table, wherein the restored particular table stores rows marked as deleted in the source database. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A non-transitory computer readable storage medium storing instructions for:
-
maintaining a source database storing data as tables, the tables including at least a particular table; receiving a database query associated with a performance issue on the source database, the database query processing data of the particular table; creating a backup repository for the source database, the creating comprising; retrieving data of one or more tables of the source database by executing one or more database queries, the one or more tables including the particular table, wherein execution of the one or more database queries retrieves rows of the one or more tables including rows marked as deleted in the source database, wherein the rows marked as deleted were deleted in the source database before creating the backup repository, and storing the retrieved data in a backup repository; restoring a target database using the backup repository, the restored target database storing the particular table including rows of the particular table marked as deleted in the source database; and executing the database query on the target database to analyze the performance issue of the database query on the source database, the executing comprising processing the restored particular table, wherein the restored particular table stores rows marked as deleted in the source database. - View Dependent Claims (11, 12, 13, 14, 15, 16)
-
-
17. A computer-implemented system comprising:
-
a computer processor; and a non-transitory computer-readable storage medium storing instructions for; maintaining a source database storing data as tables, the tables including at least a particular table; receiving a database query associated with a performance issue on the source database, the database query processing data of the particular table; creating a backup repository for the source database, the creating comprising; retrieving data of one or more tables of the source database by executing one or more database queries, the one or more tables including the particular table, wherein execution of the one or more database queries retrieves rows of the one or more tables including rows marked as deleted in the source database, wherein the rows marked as deleted were deleted in the source database before creating the backup repository, and storing the retrieved data in a backup repository; restoring a target database using the backup repository, the restored target database storing the particular table including rows of the particular table marked as deleted in the source database; and executing the database query on the target database to analyze the performance issue of the database query on the source database, the executing comprising processing the restored particular table, wherein the restored particular table stores rows marked as deleted in the source database. - View Dependent Claims (18, 19)
-
Specification