Hello. I am not clever with a java, but i try to help you.
(1) how to show all databases which have been created;
Using db2api. Or some analog in java, i guess.
(2) how to show all tables given a database;
Connect to database and run:
Quote:
|
select NAME, CREATOR from sysibm.systables
|
Remeber, this script shows you system tables too.
(3) please show me or recommend some code snippets on how to connect db2 database from JAVA applications.
Basic steps