473,805 Members | 1,882 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

isolation level

I'm confused about isolation level.. According to the devleoper of our
app (java, running java stored procedures) dont they have any
setTransactionI solation in there code so the default should be CS but
... running db2pd -app -dyn shows that RS is used .. Is it something
special you have to consider when building the procs ? I'm using this
to build the procs
sqlj ${PROCEDURE}.sq lj
db2sqljcustomiz e -url jdbc:db2://${SYSNODE}:${DB 2PORT}/${DB} -user
${DBUSER} -password ${DBPASSWD} ${PROCEDURE}_SJ Profile0
/Roger

Sep 21 '06 #1
3 2237
ka******@hotmai l.com wrote:
I'm confused about isolation level.. According to the devleoper of our
app (java, running java stored procedures) dont they have any
setTransactionI solation in there code so the default should be CS but
.. running db2pd -app -dyn shows that RS is used .. Is it something
special you have to consider when building the procs ? I'm using this
to build the procs
sqlj ${PROCEDURE}.sq lj
db2sqljcustomiz e -url jdbc:db2://${SYSNODE}:${DB 2PORT}/${DB} -user
${DBUSER} -password ${DBPASSWD} ${PROCEDURE}_SJ Profile0
The default isolation level is determined by DB2 as is described here:
http://publib.boulder.ibm.com/infoce...n/t0005269.htm

Since you don't use an explicit isolation level in your application, DB2
resorts to whichever isolation level the CLI packages were bound. You may
want to check those.

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Sep 21 '06 #2
Knut, according to the manual for db2sqljcustomiz e :
"By default, four DB2 packages are created in the database: one for
each isolation level. This utility augments the profile with
DB2-specific information for use at run time, and should be run after
the SQLJ application has been translated, but before the application is
run. "

Noticed that on the development server ( where the sprocs are
developed) we have 4 packages, one for each isolation level but .. on
the prod server dont we have 4 packages so .. there is something I have
missed when I installs the sprocs on the prod server but I dont
understand what. Do you have any clues ?
I'm doing this when I installs the sprocs on the prod server :
sqlj.remove_jar to remove the old jar file
sqlj.install_ja r to install the new jar file
Creates the sprocs
call sqlj.refresh_cl asses to refresh class files...
GRANT execute on the sprocs
/Roger

Sep 22 '06 #3
ka******@hotmai l.com wrote:
Knut, according to the manual for db2sqljcustomiz e :
"By default, four DB2 packages are created in the database: one for
each isolation level. This utility augments the profile with
DB2-specific information for use at run time, and should be run after
the SQLJ application has been translated, but before the application is
run. "
That's correct. I was talking about the CLI packages - not the SQLJ package
for your application.
Noticed that on the development server ( where the sprocs are
developed) we have 4 packages, one for each isolation level but .. on
the prod server dont we have 4 packages so .. there is something I have
missed when I installs the sprocs on the prod server but I dont
understand what. Do you have any clues ?
I'm doing this when I installs the sprocs on the prod server :
sqlj.remove_jar to remove the old jar file
sqlj.install_ja r to install the new jar file
Creates the sprocs
call sqlj.refresh_cl asses to refresh class files...
GRANT execute on the sprocs
You should explain a bit more on what you are doing on the development
system and how exactly you deploy on the production machine, i.e. which
JARs do you install, what's in them. Do you run db2sqljcustomiz e on the
production system?

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Sep 26 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
12723
by: Markus Breuer | last post by:
I have a question about oracle commit and transactions. Following scenario: Process A performs a single sql-INSERT into a table and commits the transaction. Then he informs process B (ipc) to read the new date. So process B starts "select ..." but does not get the previously inserted row. The timespan between commit and select is very short. (NOTE: two different sessions are used) Questions: 1.) Does commit when returning from call...
2
8856
by: klh | last post by:
We use DB2 Connect v 7.2 FP7 in Windows NT hitting a OS/390 DB2 v7.1 database. We have a Websphere (java) application that issues dynamic SQL. Most of the time when we issue dynamic SQL SELECT statements, like through a DB2 command window, the command will be processed using a package like SQLLF000 which uses an isolation level of Cursor Stability. However sometimes in the Websphere application when a dynamic SELECT statement is issued...
1
2760
by: cwahlmeier | last post by:
I have been researching ADO.NET in order to train our programming staff. I am curious if someone would know what the default isolation level is with and without a transaction. Furthermore, if I specify the isolation level on the transaction object, which one is the most like cursor stability? Is it read commited? Any other opinions/best practices regarding ADO.NET are welcome. I have been reading the redbook DB2 for UDB V8.2 on the...
9
2915
by: yu_sha | last post by:
Hello everyone We have a bunch of components registered under COM+ with 'transaction required' option. On the client we are using iSeries Access 5.2.0, with all possible fixes applied (Service level SI16136, iSeries ODBC driver version 9.00.09.00). Server is DB2/AS400 05.02.0001 (that's what ODBC driver reports. So, I
3
8670
by: Eric Porter | last post by:
Dear All, I have a VB6.COM program using a VB6.COM DLL, which in turn uses ADODB that performs various bits of SQL. I have re-written the VB6.COM DLL in C#.NET (with a VB6 shell), which uses the ADODB.Interop library supplied with .NET. The VB6.COM program above calls this C#.NET library in an effort to perform the equivalent functionality.
2
8141
by: kanda | last post by:
Hello. I am developing the application (VBA&ODBC, to be exact) which periodically calls the stored procedures in the IBM DB2. A few of the procedures require executing with isolation level RR ( ANSI "SERIALIZABLE" ), not the default; default is CS (ANSI "Read Committed")). The procedure language is SQL. According to the documentation, I can adjust procedure *run*-time isolation level by setting *compile*-time dataserver-wide option
5
3352
by: m0002a | last post by:
Is there some way to track the isolation level of an indivual SQL statement submitted via JDBC in a snaphot or some other similar means? I have JDBC programs that are changing the isolation level via Connection.setTransactionIsolation(int level) method, such as TRANSACTION_SERIALIZABLE or TRANSACTION_REPEATABLE_READ and I need to verify that in DB2 at a SQL statement level. I don't see isolation level in a snapshot for Dynamic SQL.
3
7219
by: D. | last post by:
I have a question about the "readCommitted" transaction isolation level. I have a client that is updating a record on a table. I suspend the execution after the UPDATE but before the commit statement. Than another client is trying to read the same record. As transaction isolation is set to "readCommited" I expected that the second client will read the old version of the record (before the update). Instead, the second client hangs and...
3
3274
by: RG | last post by:
How can I lookup the current isolation level? Thanks in advance
3
3841
by: Maryan | last post by:
Hi everybody, there are two ways to change the isolation level: For instance i would like to change the isolation level to rs 1. "db2 change isolation to rs" 2. "db2 set current isolation rs" When i use the first one and then "db2 values current isolation" to verify if the change was successful, i won't get anything. But when i use the second one and then invoke the command "db2 values current isolation", i will see that the...
0
9596
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10609
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9185
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7646
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6876
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5542
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5677
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4323
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3845
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.