Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old February 7th, 2005, 02:10 PM
dba_frog's Avatar
dba_frog dba_frog is offline
cave painting, the 1st Opn Src
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 391 dba_frog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 h 36 m 35 sec
Reputation Power: 6
syntax to list tables

I'm having a moment. I openned pl\sql and I need to list all the tables...what is the syntax??

tia
__________________
Curious by Nature,
Linux by Choice

Reply With Quote
  #2  
Old February 7th, 2005, 02:35 PM
dba_frog's Avatar
dba_frog dba_frog is offline
cave painting, the 1st Opn Src
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 391 dba_frog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 h 36 m 35 sec
Reputation Power: 6
I tried ::
select * from TAB;
and got no rows returned...

Reply With Quote
  #3  
Old February 7th, 2005, 05:38 PM
jim mcnamara jim mcnamara is offline
......@.........
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jun 2004
Posts: 1,307 jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 4 h 28 m 57 sec
Reputation Power: 48
Code:
select table_name from all_tables where ownder='DBA_FROG';
 -or -
select * from tab;

If you get no rows returned it means you have no tables that you own.

Since I have NO clue what you're doing -- in development it's quite common to have the tables owned by a special user that was created for the application.

If you know the tables are owned by somebody else and you know the owner name - substitute that for DBA_FROG above.

Otherwise, either the dba or you manged to drop all tables you have.

Reply With Quote
  #4  
Old February 8th, 2005, 12:15 PM
dba_frog's Avatar
dba_frog dba_frog is offline
cave painting, the 1st Opn Src
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 391 dba_frog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 h 36 m 35 sec
Reputation Power: 6
Thanks,
I realized why I was getting a null return when you explained about the table ownership. I'm on a non-sysdba acct for this quick lookup, so I don't own anything.

thanks,

Reply With Quote
  #5  
Old February 8th, 2005, 04:42 PM
hedge hedge is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2002
Posts: 692 hedge User rank is Sergeant (500 - 2000 Reputation Level)hedge User rank is Sergeant (500 - 2000 Reputation Level)hedge User rank is Sergeant (500 - 2000 Reputation Level)hedge User rank is Sergeant (500 - 2000 Reputation Level)hedge User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 21 h 49 m 55 sec
Reputation Power: 19
do a select * from cat to see all the objects you can see

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > syntax to list tables


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway