Table level database restore in a data storage system
First Claim
1. A method of restoring a database table from secondary storage in a data storage system, comprising:
- using one or more computing devices comprising computer hardware;
receiving instructions to perform a table level restore for a first table of a plurality of database tables to restore the first table from a secondary storage subsystem to a primary storage subsystem,wherein the plurality of database tables is associated with a database application installed on one or more client computing devices comprising computer hardware, and wherein a first secondary copy of data corresponding to a first subset of database tables belonging to a first tablespace is stored in the secondary storage subsystem and comprises data relating to the first subset of database tables, and a second secondary copy of data corresponding to a second subset of database tables belonging to a second tablespace different than the first tablespace is stored in the secondary storage subsystem and comprises data relating to the second subset of database tables, the first table belonging to the first tablespace;
accessing a first table metadata index for the first table, the first table metadata index comprising information specific to the first table, the first table metadata index further comprising information for restoring (i) the first table, (ii) a second table referenced by the first table and belonging to the first tablespace, and (iii) a third table referenced by the first table and belonging to the second tablespace, the first table metadata index further comprising (i) a first location within the first secondary copy that contains data corresponding to the first table, a second location within the first secondary copy that contains data corresponding to the second table, and a third location within the second secondary copy that contains data corresponding to the third table or (ii) information sufficient to locate data corresponding to the first and second tables in the first secondary copy and to locate data corresponding to the third table in the second secondary copy, wherein the first table metadata index was created prior to the receipt of the instructions to restore the first table; and
restoring the first table and the second table referenced by the first table from the secondary storage subsystem to the primary storage subsystem without restoring the entire first secondary copy, and restoring the third table referenced by the first table from the secondary storage subsystem to the primary storage subsystem without restoring the entire second secondary copy.
4 Assignments
0 Petitions
Accused Products
Abstract
The data storage system according to certain aspects can implement table level database restore. Table level database restore may refer to restoring a database table and its related data without restoring the entire database. The data storage system may use table metadata index to implement table level restore. A table metadata index may be created for each table, e.g., during a backup of the database. The table metadata index for a table can include any type of information for restoring the table and its related data. Some examples of the type of information included in the table metadata index include the following: container for the table, table backup location, system data, table index, table relationships, etc. Table metadata index can make the restoring of tables fast and efficient by packaging information that can be used to restore a table and its related data in an easily accessible manner.
-
Citations
20 Claims
-
1. A method of restoring a database table from secondary storage in a data storage system, comprising:
using one or more computing devices comprising computer hardware; receiving instructions to perform a table level restore for a first table of a plurality of database tables to restore the first table from a secondary storage subsystem to a primary storage subsystem, wherein the plurality of database tables is associated with a database application installed on one or more client computing devices comprising computer hardware, and wherein a first secondary copy of data corresponding to a first subset of database tables belonging to a first tablespace is stored in the secondary storage subsystem and comprises data relating to the first subset of database tables, and a second secondary copy of data corresponding to a second subset of database tables belonging to a second tablespace different than the first tablespace is stored in the secondary storage subsystem and comprises data relating to the second subset of database tables, the first table belonging to the first tablespace; accessing a first table metadata index for the first table, the first table metadata index comprising information specific to the first table, the first table metadata index further comprising information for restoring (i) the first table, (ii) a second table referenced by the first table and belonging to the first tablespace, and (iii) a third table referenced by the first table and belonging to the second tablespace, the first table metadata index further comprising (i) a first location within the first secondary copy that contains data corresponding to the first table, a second location within the first secondary copy that contains data corresponding to the second table, and a third location within the second secondary copy that contains data corresponding to the third table or (ii) information sufficient to locate data corresponding to the first and second tables in the first secondary copy and to locate data corresponding to the third table in the second secondary copy, wherein the first table metadata index was created prior to the receipt of the instructions to restore the first table; and restoring the first table and the second table referenced by the first table from the secondary storage subsystem to the primary storage subsystem without restoring the entire first secondary copy, and restoring the third table referenced by the first table from the secondary storage subsystem to the primary storage subsystem without restoring the entire second secondary copy. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)
-
14. A data storage system for restoring a database table from secondary storage subsystem, comprising:
-
one or more media agents comprising computer hardware and configured to copy data from a secondary storage subsystem to a primary storage subsystem; and one or more computing devices comprising computer hardware and configured to; receive instructions to perform a table level restore for a first table of a plurality of database tables to restore the first table from the secondary storage subsystem to the primary storage subsystem, wherein the plurality of database tables is associated with a database application installed on one or more client computing devices comprising computer hardware, and wherein a first secondary copy of data corresponding to a first subset of database tables belonging to a first tablespace is stored in the secondary storage subsystem and comprises data relating to the first subset of database tables, and a second secondary copy of data corresponding to a second subset of database tables belonging to a second tablespace different than the first tablespace is stored in the secondary storage subsystem and comprises data relating to the second subset of database tables, the first table belonging to the first tablespace; access a first table metadata index for the first table, the first table metadata index comprising information specific to the first table, the first table metadata index further comprising information for restoring (i) the first table, (ii) a second table referenced by the first table and belonging to the first tablespace, and (iii) a third table referenced by the first table and belonging to the second tablespace, the first table metadata index further comprising (i) a first location within the first secondary copy that contains data corresponding to the first table, a second location within the first secondary copy that contains data corresponding to the second table, and a third location within the second secondary copy that contains data corresponding to the third table or (ii) information sufficient to locate data corresponding to the first and second tables in the first secondary copy and to locate data corresponding to the third table in the second secondary copy, wherein the first table metadata index was created prior to the receipt of the instructions to restore the first table; and restore, using the one or more media agents, the first table and the second table referenced by the first table from the secondary storage subsystem to the primary storage subsystem without restoring the entire first secondary copy, and restore the third table referenced by the first table from the secondary storage subsystem to the primary storage subsystem without restoring the entire second secondary copy. - View Dependent Claims (15, 16, 17, 18, 19, 20)
-
Specification