show all tables in DB2 using the LIST command

Posted by Robert on Stack Overflow See other posts from Stack Overflow or by Robert
Published on 2010-05-04T12:57:23Z Indexed on 2010/05/04 14:18 UTC
Read the original article Hit count: 501

Filed under:

This is embarrassing, but I can't seem to find a way to list the names of the tables in our DB2 database. Here is what I tried:

root@VO11555:~# su - db2inst1
root@VO11555:~# . ~db2inst1/sqllib/db2profile
root@VO11555:~# LIST ACTIVE DATABASES

We receive this error: SQL1092N "ROOT" does not have the authority to perform the requested command or operation.

The DB2 version number follows.

root@VO11555:~# db2level
DB21085I  Instance "db2inst1" uses "64" bits and DB2 code release "SQL09071"
with level identifier "08020107".
Informational tokens are "DB2 v9.7.0.1", "s091114", "IP23034", and Fix Pack
"1".
Product is installed at "/opt/db2V9.7".

© Stack Overflow or respective owner

Related posts about db2