Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6143285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:30:19+00:00 2026-05-23T18:30:19+00:00

I am knew to programming against an Oracle DB and I am getting this

  • 0

I am knew to programming against an Oracle DB and I am getting this error:

ORA-06550: line 2, column 9: PL/SQL: ORA-01775: looping chain of synonyms 

Is this something wrong in my code or in my DB? The code is the same for pretty much the whole data access layer and I am only getting this error when I try to insert into one particular table.

BEGIN
UPDATE DEAL_NOTE 
SET NOTE_TXT=:prmNOTE_TXT 
WHERE DEAL_ID=:prmDEAL_ID;

IF SQL%NOTFOUND THEN
INSERT INTO DEAL_NOTE (NOTE_TXT, DEAL_ID) values (:prmNOTE_TXT, :prmDEAL_ID);
END IF;

END;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T18:30:20+00:00Added an answer on May 23, 2026 at 6:30 pm

    You have a problem in your database.

    The ORA-01775 error indicates that you have one synonym A that references another synonym B. Synonym B, in turn, references synonym A. Something like

    SQL> create synonym foo2 for foo1;
    
    Synonym created.
    
    SQL> create synonym foo1 for foo2;
    
    Synonym created.
    
    SQL> select * from foo2;
    select * from foo2
                  *
    ERROR at line 1:
    ORA-01775: looping chain of synonyms
    

    The only way to correct this is to fix the synonyms in the database so that you don’t have these sorts of circular dependencies. You can run a query to identify these synonym loops (assuming you just have a one-level loop where A points to B and B points to A rather than more involved cycles) with a query like this

    SQL> ed
    Wrote file afiedt.buf
    
      1  select a.synonym_name, b.synonym_name
      2    from all_synonyms a,
      3         all_synonyms b
      4   where a.owner = b.table_owner
      5     and a.synonym_name = b.table_name
      6     and b.owner = a.table_owner
      7*    and b.synonym_name = a.table_name
    SQL> /
    
    SYNONYM_NAME                   SYNONYM_NAME
    ------------------------------ ------------------------------
    FOO2                           FOO1
    FOO1                           FOO2
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This may seem like a programming 101 question and I had thought I knew
I knew this day would come, so I guess it is here. (P.S. I
This is not a programming question per se, but here it goes. I am
So I have this idea that I've had since I started programming. I wanted
Hey guys - I know this is not a strictly programming question but I'm
I was wondering if anyone knew why some programming languages that I see most
I'm not even sure this is entirely programming related...but here goes: I need to
Resharper just prompted me on this line of code: private static bool shouldWriteToDatabase =
I hope this qualifies as programming related since it involves how to structure a
This is a very elemental question about object-orientated programming- so sorry in advance if

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.