HiveBrain v1.2.0
Get Started
← Back to all entries
debugMinor

Why do I get an incorrect error "ORA-01775: looping chain of synonyms", when the base table does not existing?

Submitted by: @import:stackexchange-dba··
0
Viewed 0 times
loopingwhyerrorincorrectthesynonymsbasegetora01775

Problem

I use Informatica for managing some ETL process that load data into an Oracle 9i Data-warehouse.

Today I got the below error in the Informatica session logs:

Message: Database driver error...
CMN_1022 [DELETE FROM SOME_TABLE 
WHERE PERIOD_NAME = 'OCT-12'

ORA-01775: looping chain of synonyms

Database driver error...
Function Name : executeDirect
SQL Stmt : DELETE FROM SOME_TABLE 
WHERE PERIOD_NAME = 'OCT-12'
Oracle Fatal Error
Database driver error...
Function Name : ExecuteDirect

Oracle Fatal Error
]


Now it was a typographical error, the table name was misspelt. The Oracle error obviously sent us in the wrong direction... So just wanted to understand why this error was show when there was no issue with synonyms.

Solution

This happens when you have a "dangling" synonym, because it points to itself.

For example:

SQL> create table blah ( a number );

Table created.

SQL> create public synonym blah for blah;

Synonym created.

SQL> drop table blah;

Table dropped.

SQL> select * from blah;
select * from blah
              *
ERROR at line 1:
ORA-01775: looping chain of synonyms

SQL>

Code Snippets

SQL> create table blah ( a number );

Table created.

SQL> create public synonym blah for blah;

Synonym created.

SQL> drop table blah;

Table dropped.

SQL> select * from blah;
select * from blah
              *
ERROR at line 1:
ORA-01775: looping chain of synonyms


SQL>

Context

StackExchange Database Administrators Q#31340, answer score: 5

Revisions (0)

No revisions yet.