943,752 Members | Top Members by Rank

Ad:
  • Oracle Discussion Thread
  • Unsolved
  • Views: 18161
  • Oracle RSS
Aug 14th, 2008
0

How can i view tables in the databse

Expand Post »
Like the DESCRIBE statement used to view columns in a given table, What SQL statement can i use to view the tables in a database. (Oracle 10g)
Reputation Points: 10
Solved Threads: 0
Newbie Poster
topsege2007 is offline Offline
14 posts
since Aug 2008
Aug 16th, 2008
0

Re: How can i view tables in the databse

The following will give you information on all tables:

Oracle Syntax (Toggle Plain Text)
  1. SELECT * FROM sys.ALL_ALL_TABLES;

Many of those of course will be system tables, not application tables.
And depending on the user you are, you may not be able to execute the query (you may not have the privileges) and may not be able to access all tables you get returned.
Last edited by jwenting; Aug 16th, 2008 at 11:10 am.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
Aug 27th, 2008
0

Re: How can i view tables in the databse

type this command
SELECT * FROM ALL_TABLES . this will enable to view all the tables that yuou have created and the one you granted provilege to view.
Last edited by peter_budo; Aug 29th, 2008 at 7:34 pm. Reason: Keep It Organized - please use [code] tags
Reputation Points: 10
Solved Threads: 0
Newbie Poster
topsege2007 is offline Offline
14 posts
since Aug 2008
Sep 2nd, 2008
0

Re: How can i view tables in the databse

If you are just interested in viewing the names and not the other info about tables, you can use
Oracle Syntax (Toggle Plain Text)
  1.  
  2. SELECT * FROM tab
Reputation Points: 10
Solved Threads: 2
Newbie Poster
iceman29 is offline Offline
12 posts
since Feb 2008
Mar 11th, 2011
-1
Re: How can i view tables in the databse
try this:

select TABLE_NAME from USERS_TABLES;
good luck (Y)
Reputation Points: 7
Solved Threads: 0
Newbie Poster
yisus is offline Offline
1 posts
since Mar 2011
Apr 6th, 2011
-1
Re: How can i view tables in the databse
select * from Tab;
Reputation Points: 7
Solved Threads: 0
Newbie Poster
sugat is offline Offline
1 posts
since Apr 2011
Apr 6th, 2011
-1
Re: How can i view tables in the databse
select * from tab
Reputation Points: 7
Solved Threads: 0
Newbie Poster
tsfahmad360 is offline Offline
1 posts
since Apr 2011

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
This thread is currently closed and is not accepting any new replies.
Previous Thread in Oracle Forum Timeline: SQLPLUS username and password
Next Thread in Oracle Forum Timeline: Oracle Autonomous Trigger





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC