Это является смущающим, но я, может казаться, не нахожу способ перечислить названия таблиц в нашей базе данных DB2. Вот то, что я попробовал:
root@VO11555:~# su - db2inst1
root@VO11555:~# . ~db2inst1/sqllib/db2profile
root@VO11555:~# LIST ACTIVE DATABASES
Мы получаем эту ошибку: SQL1092N "ROOT" does not have the authority to perform the requested command or operation.
Номер версии DB2 следует.
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".
select * from syscat.tables where type = 'T'
вы можете захотеть чтобы ограничить запрос вашей схемой вкладок
вы установили пользователя db2inst2, я думаю, я помню, что db2inst1 очень административный