System and method for decoupling object identification for the purpose of object switching in database systems
First Claim
1. A management method for switching a database object in a database that stores a plurality of database objects, wherein multiple versions of database objects are stored in a plurality of files, each of the plurality of files being identified by a file handle, the method, comprising:
- locating an indication of a version of a file handle that is related to an object handle that identifies an object stored in the database;
preventing database agents from accessing the indication of the version; and
changing the indication of the version to a value that refers to a second file handle.
1 Assignment
0 Petitions
Accused Products
Abstract
The use of a centralized version table allows for efficient object switching. Rather than synchronizing all database agents to recognize a newly created file as containing the most recent version of a given object, database agents requiring access to the given object need only consult the centralized version table to learn file identity information. That is, the database agents consult the centralized version table to determine which of the files associated with a given object contain the most recent version of the given object. Mechanisms associated with the use of the centralized version table also provide for efficient recovery from a failure that has occurred during an object switching transaction.
31 Citations
36 Claims
-
1. A management method for switching a database object in a database that stores a plurality of database objects, wherein multiple versions of database objects are stored in a plurality of files, each of the plurality of files being identified by a file handle, the method, comprising:
-
locating an indication of a version of a file handle that is related to an object handle that identifies an object stored in the database;
preventing database agents from accessing the indication of the version; and
changing the indication of the version to a value that refers to a second file handle. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A management computer program product having instruction codes for switching a database object in a database that stores a plurality of database objects, wherein multiple versions of database objects are stored in a plurality of files, each of the plurality of files being identified by a file handle, the computer program product, comprising:
-
a first set of instruction codes for locating an indication of a version of a file handle that is related to an object handle that identifies an object stored in the database;
a second set of instruction codes for preventing database agents from accessing the indication of the version; and
a third set of instruction codes for changing the indication of the version to a value that refers to a second file handle. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18, 19, 20)
-
-
31. A management method for switching a database object in a database that stores a plurality of database objects, wherein multiple versions of database objects are stored in a plurality of files, each of the plurality of files being identified by a file handle, the method comprising:
-
scanning a tablespace directory for evidence of object shadowing, wherein the evidence of object shadowing comprises an association of at least two files with a given database object among the plurality of database objects;
selecting a database object for which evidence of object shadowing has been found, to provide a selected database object, wherein the selected database object comprises at least two associated files;
attempting to read a sequence information and object marking indications from the at least two associated files; and
determining which of the at least two associated files contains a current version of the selected database object based on the sequence information and object marking indications. - View Dependent Claims (32)
-
-
33. A management computer program product having instruction codes for switching a database object in a database that stores a plurality of database objects, wherein multiple versions of database objects are stored in a plurality of files, each of the plurality of files being identified by a file handle, the method comprising:
-
a first set of instruction codes for scanning a tablespace directory for evidence of object shadowing, wherein the evidence of object shadowing comprises an association of at least two files with a given database object among the plurality of database objects;
a second set of instruction codes for selecting a database object for which evidence of object shadowing has been found, to provide a selected database object, wherein the selected database object comprises at least two associated files;
a third set of instruction codes for attempting to read a sequence information and object marking indications from the at least two associated files; and
a fourth set of instruction codes for determining which of the at least two associated files contains a current version of the selected database object based on the sequence information and object marking indications. - View Dependent Claims (34)
-
-
35. A system for switching a database object in a database that stores a plurality of database objects, wherein multiple versions of database objects are stored in a plurality of files, each of the plurality of files being identified by a file handle, the method comprising:
-
means for scanning a tablespace directory for evidence of object shadowing, wherein the evidence of object shadowing comprises an association of at least two files with a given database object among the plurality of database objects;
means for selecting a database object for which evidence of object shadowing has been found, to provide a selected database object, wherein the selected database object comprises at least two associated files;
means for attempting to read a sequence information and object marking indications from the at least two associated files; and
means for determining which of the at least two associated files contains a current version of the selected database object based on the sequence information and object marking indications. - View Dependent Claims (36)
-
Specification