Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Selct queries "WITH UR"

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
mlp

New User


Joined: 23 Sep 2005
Posts: 91

PostPosted: Fri Feb 04, 2011 12:28 pm    Post subject: Selct queries "WITH UR"
Reply with quote

Recently the DBA team had suggested us add WITH UR option in all of the select queries in certain CICS modules. This was part of the performance improvement measures. But suprisingly after that the overall performance of the system degraded. It was observed that for certain modules the Locking and DB2 wait time was increased and for certain modules DB2 serv wait time was increased.

Can anybody suggest if the "WITH UR" change is root cause for this performance degradation?
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Feb 04, 2011 8:16 pm    Post subject:
Reply with quote

Hello,

If the goal is to ensure that queries are "read only" (which could reduce locking) suggest "FOR READ ONLY" be used in the queries. . .
Back to top
View user's profile Send private message
rocky_balboa

New User


Joined: 24 Mar 2010
Posts: 61
Location: Cape of Good Hope

PostPosted: Sat Feb 05, 2011 7:04 pm    Post subject: Reply to: Selct queries "WITH UR"
Reply with quote

Is this the only change that was done to the system? There could have been other changes done by the DBA which you might not be aware of....

If you could avoid locked data you can try SKIP LOCKED DATA. It is permissible only with CS/RS.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Amount field is getting corrupted whe... thesumitk SYNCSORT 5 Tue Oct 18, 2016 8:20 pm
No new posts hot to get details when "EXEC CI... Andi1982 CICS 11 Tue Sep 20, 2016 5:01 pm
No new posts Multi row fetch - "for read only... Nileshkul DB2 3 Sun Aug 14, 2016 12:52 am
No new posts "DFSRRC00 vs IKJEFT01" for ... arunsoods All Other Mainframe Topics 5 Fri Aug 12, 2016 9:54 pm
No new posts Need to show date in "DYYMMDD.TH... deepak_shrivastava DFSORT/ICETOOL 2 Tue Jan 05, 2016 7:15 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us