Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java and DB2 commands

user9091269Aug 17 2010 — edited Oct 15 2014
I'm basically trying to rewrite a korn shell script that currently runs and execute a db2 command and then it presents the output below to the users. I wonder how I can execute db2 commands through Java and then use a java GUI's to present the results as below. The command I'm executing is 'db2 list applications' and the output I get is something similar like below . Any advise / comments would be highly appreciated. Thanks.


DBNAME AGENT_ID AUTHID APPL_NAME APPL_STATUS
---------- -------------------- -------- ---------------------------------------- -----------
T01KATD1 58105 TKUGOM1 db2jcc_application UOWWAIT
T01KATD1 57822 TKUGOM1 db2jcc_application UOWWAIT
T01KATD1 58315 TKUCOM1 db2jccORB.thread.poo UOWWAIT
T01KATD1 58282 TKUGOM1 db2jcc_application UOWWAIT
T01KATD1 57157 TKUGOM1 db2jcc_application UOWWAIT
T01KATD1 58374 TKUGOM1 db2jcc_application UOWWAIT
T01KATD1 58216 TKUGOM1 db2jcc_application UOWWAIT
T01KATD1 58012 TKUGOM1 db2jcc_application UOWWAIT
T01KATD1 57887 TKUGOM1 db2jcc_application UOWWAIT
T01KATD1 58229 TKULAN1 db2jcc_application UOWWAIT
T01KATD1 57854 TKUGOM1 db2jcc_application UOWWAIT
T01KATD1 58130 TKULAN1 db2jcc_application UOWWAIT
T01KATD1 58222 TKUGOM1 db2jcc_application UOWWAIT
T01KATD1 58268 TKUGOM1 db2jcc_application UOWWAIT
T01KATD1 58294 TKUGOM1 db2jcc_application UOWWAIT
T01KATD1 58228 TKUGOM1 db2jcc_application UOWWAIT
T01KATD1 58024 TKUPMR1 db2jcc_application UOWWAIT
T01KATD1 58366 TKUGOM1 db2jcc_application UOWWAIT
T01KATD1 42333 KDAV QuestCentral.exe UOWWAIT
T01KATD1 58300 TKUPMR1 db2jcc_application UOWWAIT
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 15 2010
Added on Aug 17 2010
3 comments
1,052 views