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 > Data Access, Manipulation & Batch Languages > JAVA > How can you track Java's use of tables by dynamic SQL?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-09-11, 14:33
RobertEdwardJ25 RobertEdwardJ25 is offline
Registered User
 
Join Date: May 2007
Posts: 5
How can you track Java's use of tables by dynamic SQL?

I need to figure out which Java programs use which DB2 objects, particularly tables. If you have a program using static SQL, there's a record of every use of DB2 objects by that program in the system catalog. With dynamic SQL, you've got no record in the system catalog for, say, a package that's part of a Java program, and thus there are no rows in SYSCAT.PACKAGEDEP dealing with our projects tables. It's not even the case that there's any use of Stored Procedures or functions, and they're putting all the SQL there. No. I'm guessing from the looks of things that there are probably tables, even in production, THAT AREN'T EVEN BEING USED - AT ALL - and I'd love to have some sort of way of knowing what Java programs - if any - use a particular table.

I'm guessing there's some sort of way of doing that in Java itself in some sort of administrative tool (if not, there sure OUGHT to be a way!). So if there IS a way, I'd love to know THAT, and what that way is. Thanks.
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On