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 > Create View using "WITH UR"

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-05-10, 09:47
beckkl beckkl is offline
Registered User
 
Join Date: Jan 2010
Posts: 3
Create View using "WITH UR"

I'm not a DB2 person typically, but I was wondering if someone could tell me if creating a view using "WITH UR"? We have a view that is dependent on a long running batch process that is locked several times during the day. The view based on this data does not have to be completely accurate. The batch process we have no control over, so we are looking to alter the isolation level of the view itself.

Any help would be appreciated,
Kyle
Reply With Quote
  #2 (permalink)  
Old 01-05-10, 10:15
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
If you look at the V 9.5 (you did not mention you DB2 version or OS) for LUW documentation, a view is defined as a full-select. The full-select cannot have the isolation clause, only a select-statement.

Andy
Reply With Quote
  #3 (permalink)  
Old 01-05-10, 10:28
beckkl beckkl is offline
Registered User
 
Join Date: Jan 2010
Posts: 3
They are on 8.something. I'm assuming the same applies?
Reply With Quote
  #4 (permalink)  
Old 01-05-10, 10:37
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
That would be correct.

Andy
Reply With Quote
  #5 (permalink)  
Old 01-05-10, 10:44
beckkl beckkl is offline
Registered User
 
Join Date: Jan 2010
Posts: 3
Great, thanks!
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