Solved

Querable table does not appear in USER_OBJECTS

Posted on 2014-03-23
6
489 Views
Last Modified: 2014-03-23
Hi!

Through a debug-mode in the application I am working with, I found that the information was stored in a table(?) called anvandare.

In sqldeveloper where I have high privilieges, I can query the table in a window e.g. like this

select * from anvandare

However it does not appear when I make a query like this

SELECT * FROM USER_OBJECTS
WHERE OBJECT_NAME LIKE '%anv%'

or  in the list of all table in sqldeveloper.

 

Question:

1. What could be the possible reason for the non-appearence of the table be?
table-sqldveloper.png
0
Comment
Question by:marcgu
6 Comments
 
LVL 73

Expert Comment

by:sdstuber
ID: 39949132
different schemas

sqldeveloper will use the ALL_TABLES view
0
 

Author Comment

by:marcgu
ID: 39949139
I doesnt appear when I write

select * from all_tables either or did I missanderstand your answer. I just want to be able to get more metadata about the table like datatypes, constraints etc.
0
 
LVL 73

Assisted Solution

by:sdstuber
sdstuber earned 25 total points
ID: 39949262
try dba_tables

or, is it a synonym pointing to other tables?
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 34

Accepted Solution

by:
johnsone earned 150 total points
ID: 39949264
Since you do not appear to own it, my guess is that it is a synonym.  Since it didn't show up in USER_OBJECTS, it is probably a public synonym.  If it is not showing in USER_OBJECTS, I would be looking at ALL_OBJECTS.
0
 
LVL 23

Assisted Solution

by:David
David earned 75 total points
ID: 39949383
Perhaps my fellow experts are overlooking that you are specifying a lower case string....  try one more time with:

SELECT OWNER, OBJECT_NAME FROM SYS.ALL_OBJECTS
WHERE OBJECT_NAME LIKE UPPER('%ANV%')
ORDER BY 1,2
/

Also, a courtesy reminder that USER_ returns those objects in one's own schema; ALL_ adds those other schemas' objects to which you have been granted SELECT privilege; and DBA_ returns all objects in the data dictionary but requires DBA system privilege to do so.
0
 

Author Closing Comment

by:marcgu
ID: 39949596
Hi!

ANVANDARE had the object_type SYNONYM and I found it when I queried SYS.ALL_OBJECTS. Now, I can go on Learning more about SYNONYMS. Thanks a lot.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now