Rule Definition
Presence of a looping chain of synonyms will generate error at execution time when accessed.
On oracle, even if a looping chain of synonyms is authorized at creation time, the execution time will generate "ORA-01775 looping chain of synonyms" error.
Remediation
Change at least one synonym definition to cut the circular list.
Violation Code Sample
For example, the following definitions are circular:
create synonym s1 for s2;
create synonym s2 for s3;
create synonym s3 for s4;
create synonym s4 for s1;
Fixed Code Sample
Remove the last synonym :
drop synonym s4;
Reference
Oracle documentation, for example
Related Technologies
Technical Criterion
Efficiency - SQL and Data Handling Performance
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.