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.
Hi Johan
i got your message but i need the db2's session number. The oracle function userenv returns many values ( sessionid, userid, ...), and, in this case i need to know the session id, to identify user and comand.
sorry, no can do. With DB2, you have no such thing as a session id that is available from SQL. The special register CURRENT USER is all you can get. You will need to implement the rest in your application.
Johann
Quote:
Originally posted by etobar
Hi Johan
i got your message but i need the db2's session number. The oracle function userenv returns many values ( sessionid, userid, ...), and, in this case i need to know the session id, to identify user and comand.