×

Transfer of table instances between databases

  • US 7,885,927 B2
  • Filed: 07/18/2008
  • Issued: 02/08/2011
  • Est. Priority Date: 01/31/2005
  • Status: Expired due to Fees
First Claim
Patent Images

1. A computer system comprising a processor and a computer readable memory unit coupled to the processor, said memory unit containing computer code that when executed by the processor implement a method for transferring table instances X1, X2, . . . , XN of a table T from a source database S to destination databases D1, D2, . . . , DN, respectively, said N being at least 1, said method comprising for I=1, 2, . . . , N:

  • determining whether the table T has been defined for destination database DI, and if said determining determines that the table T has not been defined for the destination database DI then defining the table T for the destination database DI; and

    transferring the instance XI of the N table instances from the source database S into the defined table T of the destination database DI,wherein the method further comprises prior to said determining whether the table T has been defined for destination database DI and prior to said transferring the instance XI;

    specifying an instance configuration pertaining to the table instance XI, wherein the instance configuration consists of an instance variable of the table T in combination with a value of the instance variable, and wherein the instance variable defines a set of rows of the table T pertaining to the table instance XI;

    generating a first database query statement from said instance configuration pertaining to the table instance XI, wherein the first database query statement is configured to return the table instance XI from the table T in the source database S in response to being performed; and

    performing a first source database query on the source database S using the generated first database query statement, resulting in returning the table instance XI from the table T in the source database,wherein said determining whether the table T has been defined for destination database DI comprises;

    generating a destination database query statement from said instance configuration pertaining to the table instance XI, wherein the destination database query statement is configured to return data from the table T in the destination database DI in response to being performed; and

    performing a destination database query on the destination database DI using the generated second database query statement, resulting in returning data from the table T in the destination database DI if the table T has been defined for destination database DI or in not returning data from the table T in the destination database DI if the table T has not been defined for destination database DI,wherein said performing the destination database query on the destination database DI results in not returning data from the table T in the destination database DI, wherein said defining the table T for the destination database DI comprises;

    creating schema and determining metadata associated with the schema, wherein said schema and associated metadata define the table T in the destination database DI,wherein said determining metadata comprises performing a second database query on the source database S, resulting in returning the metadata from the source database S.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×