Swapping multiple object aliases in a database system
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.
2 Assignments
0 Petitions
Accused Products
Abstract
A novel Structure Query Language (SQL) command globally swaps multiple alias names for multiple objects in a database management system.
10 Citations
16 Claims
-
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 Dependent Claims (2, 3, 4, 5)
-
-
6. A system comprising:
-
a processor; a data bus coupled to the processor; a memory coupled to the data bus; and a computer-usable medium embodying computer program code, the computer program code comprising instructions executable by the processor and configured for swapping multiple alias names for multiple objects in a database management system by performing the steps of; compiling a single 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 underlying object, for a particular alias name, 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 alias names of the particular alias name for the multiple objects in the database management system that have been listed in the single SQL swap alias command, thereby forcing all locked resources to be freed, 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 Dependent Claims (7, 8, 9, 10)
-
-
11. A computer-readable medium on which is stored a Structured Query Language (SQL) swap alias command, wherein the 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 name swap for multiple objects in a database management system;
wherein the SQL swap alias command, when compiled and issued as a compiled SQL swap alias command to an SQL interface for the database management system, performs the steps of; in response to determining that an issuer of the SQL 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 to point to a different underlying table/view; 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 alias names for all objects using the particular alias name in the database management system; and concurrently swapping multiple alias names of all non-locked alias names for the multiple objects in the database management system, wherein said swapping is performed as a global alias swap; 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; 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 Dependent Claims (12, 13, 14, 15, 16)
Specification