what happens if we create stored procedure without synonym?

514 Views Asked by At

I have created a stored procedure without having synonym , because i don't know the importance of synonym. In my project we use two databases for development and another just to create synonyms.I had created stored proc with three input parameters and two output parameters in development database and also I executed my stored proc, it compiled successfully and got output. My question is can I create in this fashion? what happens if there isn't synonym created for a stored procedure. If it is a must then how did I get the output?. can we create synonym for a stored procedure which has input and output parameters. can any one help me out from this. Thanks in advance. :)

1

There are 1 best solutions below

0
On

Generally speaking, you do not need to create synonyms for stored procedures.

However there might be cases when synonym is needed.

A synonym is an alternative name for objects such as tables, views, sequences, stored procedures, and other database objects.

You generally use synonyms when you are granting access to an object from another schema and you don't want the users to have to worry about knowing which schema owns the object.

So just read on oracle synonyms and decide whether you need to use them or not. (synonyms, create synonym)