If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > db2 database tables dont appear in CLI

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-15-03, 17:53
mixxalot mixxalot is offline
Registered User
 
Join Date: May 2003
Posts: 369
db2 database tables dont appear in CLI

I notice something odd about our qa database. When I use the control center tool I can see all of the tables for our database. However when I run the db2 list tables command in the CLI I only see 2 tables. How do I get all of the tables to appear in the CLI interface when I run a simple db2 list tables command? We are running DB2 UDB 7.2 on AIX 5.2L. Thanks

Scott
Reply With Quote
  #2 (permalink)  
Old 11-16-03, 01:24
quigleyd quigleyd is offline
Registered User
 
Join Date: Nov 2002
Location: Delaware
Posts: 186
Re: db2 database tables dont appear in CLI

Connect to the database with the user id that created the schema, db2 connect to mydb user mydata


Then it will show all the tables
Reply With Quote
  #3 (permalink)  
Old 11-16-03, 04:46
chuzhoi chuzhoi is offline
Registered User
 
Join Date: Dec 2002
Posts: 134
Re: db2 database tables dont appear in CLI

Quote:
Originally posted by mixxalot
I notice something odd about our qa database. When I use the control center tool I can see all of the tables for our database. However when I run the db2 list tables command in the CLI I only see 2 tables. How do I get all of the tables to appear in the CLI interface when I run a simple db2 list tables command? We are running DB2 UDB 7.2 on AIX 5.2L. Thanks

Scott
If I understand your problem correctly, the following command should help:
list tables for all

By default "list tables" command shows only tables in current schema (the user name your connected to db)

Full syntax:
LIST TABLES [FOR {USER | ALL | SYSTEM | SCHEMA schema-name}] [SHOW DETAIL]
Reply With Quote
  #4 (permalink)  
Old 11-17-03, 12:54
mixxalot mixxalot is offline
Registered User
 
Join Date: May 2003
Posts: 369
thanks!

That did the trick thanks for the help

Scott
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On