By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,756 Members | 1,668 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,756 IT Pros & Developers. It's quick & easy.

Moving cursor in Command Editor results screen results in update of table

P: n/a
In the DB2 Admin Client (8.2.4), when the results of a query are displayed
in the grid that looks like a spreadsheet (using Command Editor or double
click on table name in Control Center). The data in this grid is updatable.

When a cursor is first placed on one of the columns, no update takes place.
When the cursor is then merely moved to another row (any column) the
previous row is updated, even if it was not changed. If the user does not
have authority to update the table, then a sqlcode -551 is displayed
indicating that they are authorized to update the table.

Is there any way let users query the data using these tools, and let them
move the cursor around without updating the data? This seems like a very
questionable design. There should be some way to let users just query the
data with tool without attempting updates just because they place the cursor
on a row in the grid.
Apr 27 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Ian
Mark A wrote:
In the DB2 Admin Client (8.2.4), when the results of a query are displayed
in the grid that looks like a spreadsheet (using Command Editor or double
click on table name in Control Center). The data in this grid is updatable.

When a cursor is first placed on one of the columns, no update takes place.
When the cursor is then merely moved to another row (any column) the
previous row is updated, even if it was not changed. If the user does not
have authority to update the table, then a sqlcode -551 is displayed
indicating that they are authorized to update the table.

Is there any way let users query the data using these tools, and let them
move the cursor around without updating the data? This seems like a very
questionable design. There should be some way to let users just query the
data with tool without attempting updates just because they place the cursor
on a row in the grid.


To add to this, DB2 holds row locks -- so when the unsuspecting user
clicks on a row, they hold a lock on the row. Or, if a select query
returns more than the "page limit" of the output (i.e. Command Editor
defaults to fetching 100 rows at a time, I think), DB2 will hold a
row lock for the current position of the cursor.

My experience has been that these situations always happens just before
the user leaves for lunch or some other extended absence, which wreaks
havoc for other users.

Apr 30 '06 #2

P: n/a
Mark A,

One option is to create a schema which only has read privilege on the
tables and ask users to use this schema when they are querying the DB.

FYI: TXNISOLATION = 1 (i.e. Uncommitted Read) in db2cli.ini didn't work

Regards,

Mehmet

May 1 '06 #3

P: n/a
read privilege => select privilege

May 1 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.