Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug ORA-01775: looping chain of synonyms?

I'm familiar with the issue behind ORA-01775: looping chain of synonyms, but is there any trick to debugging it, or do I just have to "create or replace" my way out of it?

Is there a way to query the schema or whatever to find out what the current definition of a public synonym is?

Even more awesome would be a graphical tool, but at this point, anything would be helpful.

like image 994
Josh Kodroff Avatar asked Oct 29 '08 14:10

Josh Kodroff


People also ask

How do I remove public synonyms in Oracle?

Use the DROP SYNONYM statement to remove a synonym from the database or to change the definition of a synonym by dropping and re-creating it. To drop a private synonym, either the synonym must be in your own schema or you must have the DROP ANY SYNONYM system privilege.

What is Oracle database synonym?

A synonym is an alias or friendly name for the database objects (such as tables, views, stored procedures, functions, and packages).


2 Answers

As it turns out, the problem wasn't actually a looping chain of synonyms, but the fact that the synonym was pointing to a view that did not exist.

Oracle apparently errors out as a looping chain in this condition.

like image 112
Josh Kodroff Avatar answered Sep 24 '22 11:09

Josh Kodroff


If you are using TOAD, go to View>Toad Options>Oracle>General and remove TOAD_PLAN_TABLE from EXPLAIN PLAN section and put PLAN_TABLE

like image 41
LJT Avatar answered Sep 26 '22 11:09

LJT