4. The computer program product of claim 1 , wherein the computer readable program, when executed on the computer, further causes the computer to activate the directory, wherein activating the directory includes receiving an input of the replacement query and a corresponding designated query to the directory, and wherein searching the directory comprises searching for a match between the database query and the designated query.
4. The computer program product of claim 1 , wherein the computer readable program, when executed on the computer, further causes the computer to activate the directory, wherein activating the directory includes receiving an input of the replacement query and a corresponding designated query to the directory, and wherein searching the directory comprises searching for a match between the database query and the designated query. 5. The computer program product of claim 4 , wherein activating the directory further comprises checking the equivalency of the replacement query to the designated query, wherein checking the equivalency includes: checking a structural equivalence of the replacement query to the designated query to ensure that a processing of the replacement query produces an equivalent query result set as the processing of the designated query; and checking a semantic equivalence of the replacement query to the designated query to ensure that a processing of the replacement query produces a same query action and a same query result as the processing of the designated query.