Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA-01775: Looping chain of synonyms error

407031Aug 15 2005 — edited Aug 15 2005
Hello All!

The following SQL gives me ORA-01775. Any idea why and how I can resolve the issue?

Thanks,
regards,
Andrei

DECLARE
tP5Only NUMBER := 0;
BEGIN
SELECT COUNT(*)
INTO tP5Only
FROM (
SELECT ID, FIELD1, FIELD2, FIELD3 FROM P5@MY_DB_LINK SC
WHERE (FIELD3 = 'S1' OR FIELD3 = 'S2') AND NOT EXISTS (SELECT 1 FROM MY_LOCAL_TABLE GM WHERE SC.FIELD1 = GM.FIELD1 AND SC.FIELD3 = GM.FIELD3 AND GM.FIELD2 = SC.FIELD2));
END;
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 12 2005
Added on Aug 15 2005
4 comments
1,046 views