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 > Database Server Software > DB2 > related to connection session with db2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-04-12, 05:02
SARAL SAXENA SARAL SAXENA is offline
Banned
 
Join Date: Feb 2012
Posts: 4
Unhappy related to connection session with db2

Hi Folks,

Since I am new to database, I just want to know if any database lets assume IBM db2 we are assuming , and we all are having the clients of it that connect to db2 on a particular ip address , now all of our team is having client and same credentials that is same user name and password , now if I set say my auto commit mode to false and execute some queries now when I close my session so will at that time whatever updation's done by me will be reverted back..and also in a team lets assume say if 5 persons connect to same db2 then all the 5 person will be having their different 5 sessions or since credentials are same there will be single session , please guide me on this..!!
Reply With Quote
  #2 (permalink)  
Old 02-04-12, 07:02
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
Each session is separate, even if the same user id and password is used to connect to DB2. You can even have two different connections from the same client computer (2 different command window sessions), and each will be separate. Try it.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 02-04-12, 08:41
SARAL SAXENA SARAL SAXENA is offline
Banned
 
Join Date: Feb 2012
Posts: 4
Red face

Thanks a lot for the reply...is there any sql statement in db2 which will bring out our session no. which we see as unique one..?

And wat about if one user is making the changes will it also impact the other one also...wat about setting that a auser should do , so that he can also do the changes in database table also for his analysis and that would not impact the other also...that the changes should be in buffer itself,,and whenever he closes his session all the changes that he had made should not be saved the tables should return back as original one...how can we achieve this in db2..!!


That is I want my session should not be in autocommit mode..!!

Last edited by SARAL SAXENA; 02-04-12 at 08:56.
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On