Divyesh Kalbhor
Divyesh Kalbhor

Reputation: 445

Populate DB2 parameter using Java for JDBC connection

Recently I found that during DB2 connection, we could provide the end user id which could be used in case of charge back or to track consumption of CPU by a particular id.

I found on IBM site a parameter : qwhceuid

Can someone tell me in which jar can we find this or how can I set this using Java?

Upvotes: 0

Views: 191

Answers (1)

mao
mao

Reputation: 12287

This might help, for the java program to use method setDB2ClientUser to supply the value.

Another suggestion may be for the java program to set the CLIENT_USERID special register via the URL bu appending specialRegisters=CURRENT CLIENT_USERID=username;

Upvotes: 1

Related Questions