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 > UnCommit Read in DB2 UDB Setting

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-25-07, 11:18
ravi36 ravi36 is offline
Registered User
 
Join Date: Jun 2007
Posts: 3
UnCommit Read in DB2 UDB Setting

Is there any default settings in UDB(Version 8) "Control Center" where we
can have default setting of UnCommit Read.
ex: select a from table with ur
Reply With Quote
  #2 (permalink)  
Old 06-25-07, 13:47
ravi36 ravi36 is offline
Registered User
 
Join Date: Jun 2007
Posts: 3
I did find the answer. It is in CLI Settings.
Reply With Quote
  #3 (permalink)  
Old 06-25-07, 20:12
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Note that there are many other ways to connect to DB2. CLI is just one of them. Therefore, adjusting the CLI configuration is not a global change.

p.s: You should have a very good reason to use uncommitted read. Usually, such a change indicates a problem in your applications.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #4 (permalink)  
Old 07-01-07, 10:15
ravi36 ravi36 is offline
Registered User
 
Join Date: Jun 2007
Posts: 3
The uncomitted reads are taking place in the datamart and not in the online database. The reason for uncomitted reads is to let the incremental process update the database when adhoc users are accessing the datamart. Is there any gloabal settings that you are aware of ..Thanks for your reply .
Reply With Quote
  #5 (permalink)  
Old 07-01-07, 21:26
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Quote:
Originally Posted by stolze
Note that there are many other ways to connect to DB2. CLI is just one of them. Therefore, adjusting the CLI configuration is not a global change.

p.s: You should have a very good reason to use uncommitted read. Usually, such a change indicates a problem in your applications.
The DB2 Control Center uses the type 2 driver (I believe that is uses the CLI configuration?).

Unfortuneatley, the DB2 Control Center has a major flaw (introduced in recent releases). If you select data with a query and the "grid" is displayed with your result set, then if you place the cursor on one of the boxes in the grid, and then move the cursor to another box in the result set grid, then DB2 updates the row where your cursor originally was in the first grid (regardeless of whether or not the data was changed).

And worse, it does not autocommit, and holds an X lock on the row updated.

This is a major problem in many situations, for both development and produciton systems.
__________________
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
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