×

Swapping multiple object aliases in a database system

  • US 7,822,729 B2
  • Filed: 08/15/2007
  • Issued: 10/26/2010
  • Est. Priority Date: 08/15/2007
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method for swapping multiple alias names for multiple objects in a database management system via execution of a single command, the method comprising:

  • compiling a Structured Query Language (SQL) swap alias command to create a compiled SQL swap alias command, wherein the single SQL swap alias command is a single SQL statement that comprises a list of multiple different objects whose aliases are to be swapped and which, when compiled and executed, causes a global alias swap of at least one alias name swap for different objects among the multiple different objects in the database management system, wherein the global alias swap of the at least one alias name swap for the multiple different objects is triggered by execution of the compiled SQL swap alias command; and

    issuing the compiled SQL swap alias command to an SQL interface for the database management system, wherein the compiled SQL swap alias command performs the steps of;

    in response to determining that an issuer of the swap alias command is authorized to issue the SQL swap alias command, determining if a particular alias name, for one of the multiple objects, is locked to prevent changing the particular alias name;

    in response to determining that the particular alias name is locked, determining if the issuer of the swap alias command has an authority to force the alias name swap of the particular alias name;

    in response to determining that the issuer has the authority to force the alias name swap of the particular alias name, swapping multiple alias names including the particular alias name and all non-locked alias names for the multiple objects in the database management system, wherein said swapping is performed as a global alias swap via execution of the compiled SQL swap alias command generated from the single SQL swap alias command;

    when the issuer does not have the authority to force the alias name swap of the particular alias name;

    issuing an error message if the SQL swap alias command fails because the issuer is not authorized to force the alias name swap of the particular object; and

    swapping only the alias names of each of multiple other objects whose alias names are non-locked or for which the issuer has authority to force the alias name swap, wherein said swapping is performed as a global alias swap via execution of the compiled SQL swap alias command generated from the single SQL swap alias command.

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