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

  • Home
  • SEARCH
  • 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 7166565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:26:04+00:00 2026-05-28T14:26:04+00:00

This is a pretty silly one, but I need help. I have a table

  • 0

This is a pretty silly one, but I need help.

I have a table owned by mydbowner. It is named mydbowner.mytable. I tried to make a public synonym by issuing the command:

CREATE OR REPLACE PUBLIC SYNONYM mytable FOR mydbowner.mytable;

When I do this, and I query the table I get:

ORA-01775: looping chain of synonyms

How do I make this synonym without having the problem.

  • 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-28T14:26:04+00:00Added an answer on May 28, 2026 at 2:26 pm

    I think Justin is on the right track. What I think it actually means is that mydbowner.mytable doesn’t exist.

    Here’s an example:

    SQL> conn mbobak
    Enter password: 
    Connected.
    SQL> drop table mytable;
    drop table mytable
               *
    ERROR at line 1:
    ORA-00942: table or view does not exist
    
    
    SQL> create public synonym mytable for mbobak.mytable;
    
    Synonym created.
    
    SQL> select * from mytable;
    select * from mytable
                  *
    ERROR at line 1:
    ORA-01775: looping chain of synonyms
    

    I think what’s happening is that Oracle tries to resolve mytable, there is no mytable in mbobak schema, so it looks for it in PUBLIC, it finds it, and sees that it points to mbobak.mytable. But, mbobak.mytable doesn’t exist, so, it looks for mytable in PUBLIC, and there’s the loop.

    And in fact, if you create mytable, the error goes away:

    SQL> create table mytable as select * from dual;
    
    Table created.
    
    SQL> select * from mytable;
    
    D
    -
    X
    
    1 row selected.
    
    SQL> drop table mytable;
    
    Table dropped.
    
    SQL> select * from mytable;
    select * from mytable
                  *
    ERROR at line 1:
    ORA-01775: looping chain of synonyms
    

    Yes, I realize that doesn’t really entirely make sense, as, once the public synonym resolved to mbobak.mytable, and that’s not found, it seems to me, it should return an error ORA-942 “table or view does not exist”, which makes far more sense to me.

    But, this does seem to be how it works.

    QED

    Hope that helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Probably a bit silly of a problem, but I have this one variable (a
This is a very silly question but I am pretty weak in htaccess. I
This is probably a silly question but I have been thinking it over for
This is probably a silly question, but I'm pretty new to Java and I
Here's a pretty silly question, but we want to do this. Is there an
This may be a bit silly question, but I just started doing pretty things
I'm stuck with this pretty silly thing; I got a textfile like this; Hello::140.0::Bye
I have written something like this pretty easily in C# ( string GetUrl(new {
This is pretty weird. I have my Profiler open and it obviously shows that
This is pretty trivial, but I noticed on SO that instead of an offset

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.