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 > Auto Commit Option in DB2 UDB 8.1.3

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-13-04, 08:14
jsp2999 jsp2999 is offline
Registered User
 
Join Date: Jul 2004
Posts: 76
Auto Commit Option in DB2 UDB 8.1.3

Hi All,

How to set Auto commit option ON/OFF?

System Info:
OS: Windows 2000 Server
DB: DB2 UDB 8.1.3

Thanks in Advance.
Jai
Reply With Quote
  #2 (permalink)  
Old 10-13-04, 10:59
bmujeeb bmujeeb is offline
Registered User
 
Join Date: Mar 2004
Posts: 448
db2 +c "select * from employee"
db2 -c- "select * from employee"

Check the sql command reference when the autocommit turn on.

Inside db

update command option using .... OFF

regards & thanks.

Mujeeb
Reply With Quote
  #3 (permalink)  
Old 10-14-04, 02:43
jsp2999 jsp2999 is offline
Registered User
 
Join Date: Jul 2004
Posts: 76
AutoCommit option to 'OFF' for any operation happens to DB through any application

Thanks for quick responce. Let me elaborate more regarding my query.

I've created one Database on DB2 ESE 8.1.3. Now I want to set AutoCommit option to 'OFF' for any operation happens on the server through any tool or application.

Please let me know command for that and if any GUI is available to perform the same.

Thanks in Advance,
Jai
Reply With Quote
  #4 (permalink)  
Old 10-14-04, 06:51
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
In your db2cli.ini file, set AUTOCOMMIT=0 under the database section

The db2cli.ini file is by default under sqllib/cfg

HTH

Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #5 (permalink)  
Old 10-14-04, 06:55
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
In your db2cli.ini file, set AUTOCOMMIT=0 under the database section

The db2cli.ini file is by default under sqllib/cfg

HTH

Cheers
Sathyaram
Quote:
Originally Posted by jsp2999
Thanks for quick responce. Let me elaborate more regarding my query.

I've created one Database on DB2 ESE 8.1.3. Now I want to set AutoCommit option to 'OFF' for any operation happens on the server through any tool or application.

Please let me know command for that and if any GUI is available to perform the same.

Thanks in Advance,
Jai
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #6 (permalink)  
Old 10-14-04, 09:01
jsp2999 jsp2999 is offline
Registered User
 
Join Date: Jul 2004
Posts: 76
But what if my server have 2 DBs and want to set diff value of AUTOCOMMIT for each

Hi Sathyaram,

Thanks a lot. But can you please tell me suppose there are two databases running on my Server any I want to set AUTOCOMMIT option ON for one database and OFF for another database then what needs to be done.
Reply With Quote
  #7 (permalink)  
Old 10-14-04, 09:41
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
"autocommit" is a client setting, not a database setting, therefore you can only set it at the client side.
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