Techniques for peer-to-peer replication of objects in a relational database
First Claim
1. A method for replicating a database object, of a relational database managed by a database system, from a first node on a network to a second node on the network, the method comprising the steps of:
- determining that the database object on the first node includes a user-defined object defined by a user of the database system, and during a replication operation that involves the first node and the second node, causing the database system to copy data that defines the database object, including data that defines the user-defined object, to the second node of the network.
2 Assignments
0 Petitions
Accused Products
Abstract
Techniques for replicating a database object of a relational database managed by a database system from a first node on a network to a second node on the network include determining that the database object on the first node includes a user-defined object. A first routine of the database system is invoked. The first routine performs the step of copying the database object to the second node of the network. The first routine copies a name of a user-defined defined type of the user-defined object from the first node to the second node. The first routine also copies a first definition of the user-defined type from the first node to the second node. The first routine then copies a second definition of the database object from the first node to the second node. The second definition includes the name of the user-defined type. These techniques provide the benefits of peer-to-peer replication in a distributed database to users of object-relational databases that including user-defined objects.
48 Citations
62 Claims
-
1. A method for replicating a database object, of a relational database managed by a database system, from a first node on a network to a second node on the network, the method comprising the steps of:
-
determining that the database object on the first node includes a user-defined object defined by a user of the database system, and during a replication operation that involves the first node and the second node, causing the database system to copy data that defines the database object, including data that defines the user-defined object, to the second node of the network. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A method for replicating a database object, of a relational database managed by a database system, from a first node on a network to a second node on the network, the method comprising the steps of:
-
determining that the database object on the first node includes a user-defined object defined by a user of the database system, and causing the database system to copy the database object, including the user-defined object, to the second node of the networks wherein;
the database object is a table for logically arranging data items in rows and columns, each column having a column type, the data items in each column having a data type corresponding to the column type of the column in which the data items reside, the column types for the columns in the table stored in a data structure describing the table;
the user-defined object is a data item in a first column of a first row of the table; and
the step of causing the database system to copy the database object includes causing the database system to copy, as part of said database object, said data item from said first column of said first row of the table.
-
-
10. A method for replicating a database object, of a relational database managed by a database system, from a first node on a network to a second node on the network, the method comprising the steps of:
-
determining that the database object on the first node includes a user-defined object defined by a user of the database system, and causing the database system to copy the database object, including the user-defined object, to the second node of the network, wherein the database system performs the further steps of;
copying a name of a user-defined type of the user-defined object from the first node to the second node;
copying a first definition of the user-defined type from the first node to the second node; and
after copying the first definition of the user-defined type, and after copying the name of the user-defined type, copying a second definition of the database object from the first node to the second node, the second definition including the name of the user-defined type.
-
-
11. A method for replicating a database object, of a relational database managed by a database system, from a first node on a network to a second node on the network, the method comprising the steps of:
-
determining that the database object on the first node includes a user-defined object defined by a user of the database system, and causing the database system to copy the database object to the second node of the network, including performing the steps of;
copying a name of a user-defined type of the user-defined object from the first node to the second node;
copying a first definition of the user-defined type from the first node to the second node;
copying a second definition of the database object from the first node to the second node, the second definition including the name of the user-defined type;
causing the database object to be instantiated on the second node; and
copying data from the database object on the first node into the database object on the second node.
-
-
12. A method for use within a relational database system for generating on a second node a replicated database object based on a particular database object on a first node, the method comprising the steps of:
-
receiving, at the second node, sequence data indicating a sequence of identifiers for attributes of the particular database object;
receiving, at the second node, a series of values from the first node; and
storing the series of values at locations within the replicated database object based on the sequence data and a mapping between the attributes of the particular database object and attributes of the replicated database object. - View Dependent Claims (13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27)
-
-
28. A method for use within a relational database system for generating on a second node a replicated database object based on a particular database object on a first node, the method comprising the steps of:
-
determining a sequence for sending to the second node values of attributes of the particular database object;
sending to the second node sequence data indicating the sequence, the sequence data including for each attribute in the sequence a built-in type defined by the database system and a user-defined name defined by a user of the database system; and
sending to the second node a series of values from the particular database object based on the sequence.
-
-
29. A method for use within a relational database system for generating on a second node a replicated database object based on a particular database object on a first node, the method comprising the steps of:
-
determining a set of leaf attributes corresponding to a particular attribute of the particular database object, the particular attribute having a user-defined type defined by a user of the database system, each leaf attribute in the set having a built-in type defined by the database system and a leaf name; and
sending each value of the user-defined type that resides in the particular attribute as a set of values corresponding to the set of leaf attributes. - View Dependent Claims (30, 31)
-
-
32. A computer-readable medium carrying one or more sequences of instructions for replicating a database object of a relational database managed by a database system from a first node on a network to a second node on the network, wherein execution of the one or more sequences of instructions by one or more processors causes the one or more processors to perform the steps of:
-
determining that the database object on the first node includes a user-defined object defined by a user of the database system, and during a replication operation that involves the first node and the second node, causing the database system to copy data that defines the database object, including data that defines the user-defined object, to the second node of the network. - View Dependent Claims (33, 34, 35, 36, 37, 38, 39)
-
-
40. A computer-readable medium carrying one or more sequences of instructions for replicating a database object of a relational database managed by a database system from a first node on a network to a second node on the network, wherein execution of the one or more sequences of instructions by one or more processors causes the one or more processors to perform the steps of:
-
determining that the database object on the first node includes a user-defined object defined by a user of the database system, and causing the database system to copy the database object, including the user-defined object, to the second node of the network, wherein;
the database object is a table for logically arranging data items in rows and columns, each column having a column type, the data items in each column having a data type corresponding to the column type of the column in which the data items reside, the column types for the columns in the table stored in a data structure describing the table;
the user-defined object is a data item in a first column of a first row of the table; and
the step of causing the database system to copy the database object includes causing the database system to copy, as part of said database object, said data item from said first column of said first row of the table.
-
-
41. A computer-readable medium carrying one or more sequences of instructions for replicating a database object of a relational database managed by a database system from a first node on a network to a second node on the network, wherein execution of the one or more sequences of instructions by one or more processors causes the one or more processors to perform the steps of:
-
determining that the database object on the first node includes a user-defined object defined by a user of the database system;
causing the database system to copy the database object, including the user-defined object, to the second node of the network;
copying a name of a user-defined type of the user-defined object from the first node to the second node;
copying a first definition of the user-defined type from the first node to the second node; and
after copying the first definition of the user-defined type, and after copying the name of the user-defined type, copying a second definition of the database object from the first node to the second node, the second definition including the name of the user-defined type.
-
-
42. A computer-readable medium carrying one or more sequences of instructions for replicating a database object of a relational database managed by a database system from a first node on a network to a second node on the network, wherein execution of the one or more sequences of instructions by one or more processors causes the one or more processors to perform the steps of:
-
determining that the database object on the first node includes a user-defined object defined by a user of the database system, and copying the database object to the second node of the network, including performing the steps of;
copying a name of a user-defined type of the user-defined object from the first node to the second node;
copying a first definition of the user-defined type from the first node to the second node;
copying a second definition of the database object from the first node to the second node, the second definition including the name of the user-defined type;
instantiating the database object on the second node; and
copying data from the database object on the first node into the database object on the second node.
-
-
43. A computer-readable medium carrying one or more sequences of instructions for use within a relational database system for generating on a second node a replicated database object based on a particular database object on a first node, wherein execution of the one or more sequences of instructions by one or more processors on the second node causes the one or more processors to perform the steps of:
-
receiving sequence data indicating a sequence of identifiers for attributes of the particular database object;
receiving a series of values from the first node; and
storing the series of values at locations within the replicated database object based on the sequence data and a mapping between the attributes of the particular database object and attributes of the replicated database object. - View Dependent Claims (44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58)
-
-
59. A computer-readable medium carrying one or more sequences of instructions for use within a relational database system for generating on a second node a replicated database object based on a particular database object on a first node, wherein execution of the one or more sequences of instructions by one or more processors on the first node causes the one or more processors to perform the steps of:
-
determining a sequence for sending to the second node values of attributes of the particular database object;
sending to the second node sequence data indicating the sequence, the sequence data including for each attribute in the sequence a built-in type defined by the database system and a user-defined name defined by a user of the database system; and
sending to the second node a series of values from the particular database object based on the sequence.
-
-
60. A computer-readable medium carrying one or more sequences of instructions for use within a relational database system for generating on a second node a replicated database object based on a particular database object on a first node, wherein execution of the one or more sequences of instructions by one or more processors on the second node causes the one or more processors to perform the steps of:
-
determining a set of leaf attributes corresponding to a particular attribute of the particular database object, the particular attribute having a user-defined type defined by a user of the database system, each leaf attribute in the set having a built-in type defined by the database system and a leaf name; and
sending each value of the user-defined type that resides in the particular attribute as a set of values corresponding to the set of leaf attributes. - View Dependent Claims (61, 62)
-
Specification