×

Relational database schema version management

  • US 7,562,357 B2
  • Filed: 03/08/2004
  • Issued: 07/14/2009
  • Est. Priority Date: 03/08/2004
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method for generating an installation file for a particular version of a relational database, the method comprising:

  • given a database system of a particular version, the particular version being unknown prior to execution of the method, determining the particular version of the relational database wherein metadata exists that describes a sequence of multiple versions of the relational database where each version is an upgrade from a previous version, and the particular version is not a first version in the sequence;

    automatically determining a first set of scripts, the first set of scripts comprising data definition language (DDL) scripts associated with implementing the particular version of the relational database, wherein the first set of scripts are selected from a plurality of scripts, one or more of the plurality of scripts being not associated with implementing the particular version;

    the automatically determining a first set of scripts comprising;

    extracting a set A1 comprising one or more filenames from metadata associated with a first version in the sequence, the one or more filenames associated with a file comprising a data definition language (DDL) script associated with the first version;

    iteratively extracting a set Ai comprising zero or more filenames from metadata associated with an ith version of the relational database, the zero or more filenames each associated with a file comprising a data definition language script to be executed when upgrading from version i−

    1 of the relational database to version i of the relational database, where i varies incrementally from 2 to j, where the particular version is j; and

    determining the first set of scripts as a set theory union of sets A1, A2, . . . , Aj;

    automatically determining a second set of scripts, the second set of scripts comprising data manipulation language (DML) scripts associated with implementing the particular version of the relational database, wherein the second set of scripts are selected from a plurality of scripts, one or more of the plurality of scripts being not associated with implementing the particular version;

    the automatically determining a second set of scripts comprising;

    extracting a set A1 comprising one or more filenames from metadata associated with a first version in the sequence, the one or more filenames associated with a file comprising a data manipulation language (DML) script associated with the first version;

    iteratively extracting a set Ai comprising zero or more filenames from metadata associated with an ith version of the relational database, the zero or more filenames each associated with a file comprising a data manipulation language script to be executed to add or modify a DML object when upgrading from version i−

    1 of the relational database to version i of the relational database, where i varies incrementally from 2 to j, where the particular version is j;

    iteratively extracting a set Bi comprising zero or more filenames from metadata associated with an ith version of the relational database, the zero or more filenames each associated with a file comprising a DML drop script to be executed to drop a DML object when upgrading from version i−

    1 of the relational database to version i of the relational database, where i varies incrementally from 2 to j, where the particular version is j; and

    determining the second set of scripts Cj by determining;


    C2=[A1

    A
    2]−

    B
    2;


    C3=[C2

    A
    3]−

    B
    3;


    C4=[C3

    A
    4]−

    B
    4;


    . . .
    Cj=[Cj−

    1


    A
    j]−

    B
    j;

    andgenerating an installation file comprising a set theory union of the first set of scripts and the second set of scripts.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×