Lab-verifiedReproduced and fixed on Oracle AI Database 26ai Free 23.26.3.0.0 · 2026-11-30 · container image gvenzl/oracle-free:23-slim
ORA-01775 means Oracle followed a synonym and ended up back where it started. In 26ai the message names the synonym: synonym LAB_LOOP_EMP resolves to itself due to circular translation. Older versions call it a "looping chain of synonyms".
The usual cause is not a real loop you wrote on purpose, but a synonym whose target does not exist. Look at where the synonym points (DBA_SYNONYMS or USER_SYNONYMS) and check that the target really exists. Both cases below were run on Oracle 26ai Free.
01PUBLIC synonym points to the owner's table, which does not exist yet
A DBA created PUBLIC SYNONYM lab_loop_emp FOR lab_a.lab_loop_emp, but the table LAB_A.LAB_LOOP_EMP was never created. When lab_a itself runs SELECT * FROM lab_loop_emp, it fails with ORA-01775, not ORA-00942.
lab_a has no object of that name, so the name goes to the public synonym. The synonym points to LAB_A.LAB_LOOP_EMP, which again does not exist, so the name comes back to the same public synonym.
DBA_SYNONYMS showed PUBLIC LAB_LOOP_EMP -> LAB_A.LAB_LOOP_EMP, and DBA_TABLES returned 0 for that table. After lab_a created the table, the same SELECT returned the row 1 Kim.
Setup
DROP PUBLIC SYNONYM IF EXISTS lab_loop_emp;
CREATE PUBLIC SYNONYM lab_loop_emp FOR lab_a.lab_loop_emp;Synonym dropped.
Synonym created.SELECT * FROM lab_loop_emp;SELECT * FROM lab_loop_emp
*
ERROR at line 1:
ORA-01775: synonym LAB_LOOP_EMP resolves to itself due to circular translation
Help: https://docs.oracle.com/error-help/db/ora-01775/COLUMN owner FORMAT A8
COLUMN synonym_name FORMAT A14
COLUMN table_owner FORMAT A12
COLUMN table_name FORMAT A14
SELECT owner, synonym_name, table_owner, table_name FROM dba_synonyms WHERE synonym_name = 'LAB_LOOP_EMP';
SELECT COUNT(*) AS table_exists FROM dba_tables WHERE owner = 'LAB_A' AND table_name = 'LAB_LOOP_EMP';OWNER SYNONYM_NAME TABLE_OWNER TABLE_NAME
-------- -------------- ------------ --------------
PUBLIC LAB_LOOP_EMP LAB_A LAB_LOOP_EMP
1 row selected.
TABLE_EXISTS
------------
0
1 row selected.CREATE TABLE lab_loop_emp (id NUMBER PRIMARY KEY, name VARCHAR2(20));
INSERT INTO lab_loop_emp VALUES (1, 'Kim');
COMMIT;Table created.
1 row created.
Commit complete.This often happens after a table is dropped or renamed while the public synonym stays. Create the table, or drop the synonym that points to nothing.
SELECT * FROM lab_loop_emp; ID NAME
---------- ------------------------------
1 Kim
1 row selected.02Two synonyms point to each other
staff was created FOR members, and members FOR staff. Oracle accepts both CREATE SYNONYM statements, but SELECT * FROM staff fails with ORA-01775.
USER_SYNONYMS showed the loop clearly: MEMBERS -> STAFF, STAFF -> MEMBERS. Pointing staff at the real table with CREATE OR REPLACE SYNONYM staff FOR emp and dropping members fixed it: the query returned 1 Kim.
Setup
CREATE TABLE emp (id NUMBER PRIMARY KEY, name VARCHAR2(20));
INSERT INTO emp VALUES (1, 'Kim');
COMMIT;
CREATE SYNONYM staff FOR members;
CREATE SYNONYM members FOR staff;Table created.
1 row created.
Commit complete.
Synonym created.
Synonym created.SELECT * FROM staff;SELECT * FROM staff
*
ERROR at line 1:
ORA-01775: synonym STAFF resolves to itself due to circular translation
Help: https://docs.oracle.com/error-help/db/ora-01775/COLUMN synonym_name FORMAT A10
COLUMN table_name FORMAT A10
SELECT synonym_name, table_name FROM user_synonyms ORDER BY synonym_name;SYNONYM_NA TABLE_NAME
---------- ----------
MEMBERS STAFF
STAFF MEMBERS
2 rows selected.CREATE OR REPLACE SYNONYM staff FOR emp;
DROP SYNONYM members;Synonym created.
Synonym dropped.SELECT * FROM staff; ID NAME
---------- ------------------------------
1 Kim
1 row selected.FAQ
What does ORA-01775 looping chain of synonyms mean?
Following the synonym leads back to itself, so there is no real table or view at the end. On this page it happened with a public synonym whose table did not exist, and with two synonyms pointing to each other.
Why do I get ORA-01775 instead of ORA-00942 when the table is missing?
If a PUBLIC synonym with the same name points to your own missing table, the lookup goes back to that synonym again. Oracle reports the loop (ORA-01775) instead of "table does not exist".
How do I find which synonym is looping?
Query DBA_SYNONYMS (or USER_SYNONYMS) for the name in the error, follow TABLE_OWNER.TABLE_NAME, and check it in DBA_TABLES or DBA_OBJECTS. If it is missing or points back to a synonym, that is the problem.
How do I fix ORA-01775?
Make the synonym point to an object that exists: create the missing table, or recreate the synonym with CREATE OR REPLACE SYNONYM ... FOR <real table> and drop the synonym that forms the loop.
How we verify
Each scenario starts from fresh database users. A script runs the setup, confirms the exact error code, applies the fix and runs the statement again. The output shown is what the database printed, saved by the script.
lab_a and lab_b are ordinary users created for the test; system is the DBA account. Oracle AI Database 26ai Free Release 23.26.3.0.0 - Develop, Learn, and Run for Free 23.26.3.0.0