0 pts.
 pros and cons of using synonyms for packages’ deployment
Are there disadvantages to using synonyms for plsql packages from performance or maintenance point of view? Paulina.

Software/Hardware used:
ASKED: May 12, 2004  11:05 AM
UPDATED: May 14, 2004  12:49 PM

Answer Wiki:
I haven't encountered any performance or maintenance problems, but I have had various problems with synonyms across dblinks (on 8i at least). Kai
Last Wiki Answer Submitted:  May 12, 2004  11:38 am  by  ActorJack   0 pts.
All Answer Wiki Contributors:  ActorJack   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

I haven’t found any real cons against using synonyms. As a matter of fact, I have had good experiences in reducing maintenance with changes in the DBMS.

About the only problem is when you change an underlying object. You may have to recompile the package. Easy to do with dynamic SQL and part of my daily cron job list.

As far as synonyms over dblinks. Make sure that the calling user has privileges on the underlying objects on both databases. Other than that, you shouldn’t be having problems using them across links if they are setup correctly.

 0 pts.

 

I have not had any negative impact from using synonyms for packages or other objects. The developers and testers find the use of synonyms helpful.

 0 pts.

 

Yes, I believe using synonyms improves the maintainability of pl/sql objects, and improves security as well. I do not think it improves performance at all.

It will be simpler to maintain and control though should it will improve the DBA’s performance :-)

 0 pts.

 

I haven’t encountered any performance or maintenance problems. Synonyms improves the maintainability of pl/sql objects and improves security of the underlying objects.

I have not used it in distributed database.

punit

 0 pts.

 

Synonyms are generally a good tool for code reuse. But I have to play the Devil’s advocate here – there ARE some disadvantages.

In general, you can’t perform all the same actions on synonyms as you can or the objects they point to. E.g. you can’t compile a synonym for a package.

Regards,
Kai

 0 pts.