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 6128457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:37:45+00:00 2026-05-23T16:37:45+00:00

I was reading this article: Managing Oracle Synonyms Regarding the order of preference, when

  • 0

I was reading this article:
Managing Oracle Synonyms

Regarding the order of preference, when it come to resolving an object name to the actual object, it says:

  1. Local objects will always be accessed first.

  2. If a local object does not exist, the object with a private synonym will be accessed.

  3. If a private synonym does not exist or the object does not exist, then the public synonym will be used.

I was wondering if the public objects are missing in this order somehow?

E.g. if user BOB queries

select * from FOOBAR

and there is no BOB.FOOBAR in dba_tables/views but PUBLIC.FOOBAR.

Does Oracle resolve it to PUBLIC.FOOBAR or will it check for synonyms first?

Thank you.

  • 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-23T16:37:46+00:00Added an answer on May 23, 2026 at 4:37 pm

    At least up to 10g, PUBLIC is not a real user. You cannot create objects in the “Public schema”:

    SQL> CREATE TABLE public.foobar (id integer);
    
    CREATE TABLE public.foobar (id integer)
    
    ORA-00903: invalid table name
    
    SQL> CREATE TABLE system.foobar (id integer);
    
    Table created
    
    SQL> 
    

    If you run this query:

    SELECT object_name 
      FROM dba_objects 
     WHERE owner='PUBLIC' 
       AND object_type IN ('TABLE', 'VIEW');
    

    You can answer the question about pre-defined tables/views in the PUBLIC “schema”.

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

Sidebar

Related Questions

I was reading this article on MSDN Managing Heap Memory in Win32 And in
I'm reading this article and on the part with the query: SELECT node.name FROM
I was reading this article => http://mgutz.com/2010/10/01/check_gmail_with_node_js.html . Below in the comments Shomrom says:
After reading this article http://camendesign.com/code/developpeurs_sans_frontieres I have decided to follow what it says and
Right now I'm reading this article regarding Java Garbage Collection: http://www.javaworld.com/javaworld/jw-08-1996/jw-08-gc.html ? Here is
After reading this article on thedailywtf.com, I'm not sure that I really got the
After reading this article http://lukast.mediablog.sk/log/?p=155 I decided to use mingw on linux to compile
I was reading this article about Double-Checked locking and out of the main topic
I just finished reading this article on the advantages and disadvantages of exceptions and
I was reading this article by Brandon Aaron here , about how jquery context

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.