We have a mature product that has traditionally been sold on SQL Server and Oracle, where such concepts as creating synonyms for sequences was a valid concept.
We have now ported it to DB2, and all works fine when the Application and Serucity Schemas that are the objects owners are also the Schemas that connect from the Application. However, we need to add an extra layer of security, namely dummy schemas that do not own any objects, but merely have S/I/U/D grants and synonyms to the object owner schemas.
This system has approx 300 sequences and the code is set in stone.
How do you suggest a stored procedure would help?
e.g. INSERT INTO TLOCK (C,I,blah,blah2) VALUES(106,SLock.Nextval,'blah','blah2');
would be an example of some of our code....
Changing the code is NOT an option.
Cheers,
Brian.