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 Db... Isolation Ur

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-14-06, 11:40
udbraja udbraja is offline
Registered User
 
Join Date: Sep 2004
Posts: 111
Arrow Create Db... Isolation Ur

Team,

create db DBUR on /db2home/DBUR/dbur_db
catalog tablespace
managed by system
using ('/db2home/DBUR/dbur_cat')
extentsize 32 prefetchsize 64
AUTOCONFIGURE USING ISOLATION UR APPLY NONE;

Does the above statement really really creates the database in isolation level UR??

I ran explain plan against the above said database.
Still..... CS is shown.


Package Context:
---------------
SQL Type: Dynamic
Optimization Level: 5
Blocking: Block All Cursors
Isolation Level: Cursor Stability


How to change to UR ??

Thanks...

-R
Reply With Quote
  #2 (permalink)  
Old 04-14-06, 20:59
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Isolation level only affects select statements, so I would put WITH UR at the end of each select where you want UR isolation level.
__________________
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
  #3 (permalink)  
Old 04-17-06, 09:25
udbraja udbraja is offline
Registered User
 
Join Date: Sep 2004
Posts: 111
Arrow

Can we create a database in UR isolation level?

We are running DB2 V8.1 FP11 on AIX
Single node database.

Is there any command to change the database isolation level to UR permanently.

Please help.

Thanks

-R
Reply With Quote
  #4 (permalink)  
Old 04-17-06, 16:59
Peter.Vanroose Peter.Vanroose is offline
Registered User
 
Join Date: Sep 2004
Location: Belgium
Posts: 1,079
It should indeed be possible to disallow any other isolation level with a certain database.
I've never done this myself, so I don't know exactly how to do it.
This will certainly also differ from platform to platform, and from DB2 version to version.
__________________
--_Peter Vanroose,
__IBM Certified Database Administrator, DB2 9 for z/OS
__IBM Certified Application Developer
__ABIS Training and Consulting
__http://www.abis.be/
Reply With Quote
  #5 (permalink)  
Old 04-18-06, 05:22
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Isolation level is what a client requests and the database 'grants' ... So, you should be setting the isolation level at the client ... Say, if you are using CLI, then you may update db2cli.ini ... if you are using Stored procs, bind the packages with ISOLATION LEVEL UR.

HTH

Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
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