Good News Everybody!
The new search engine is LIVE!
Please report any problems to david (at) midrange.com.
|
DB2 has some query options in so called QAQQINI table.
I've found out that I can make my custom QAQQINI... here is the
post.
http://www.sqlthing.com/resources/UsingQAQQINI.htm
or here
http://www.planetjavainc.com/wow_docs/iSeries_SQL_Performance_Notes.pdf
And I made it in my library. And made the modifications:
UPDATE MyLibrary/QAQQINI
SET QQVAL='-1'
WHERE QQPARM='OPEN_CURSOR_THRESHOLD';
-1 means: A value of -1 will force SQL to not reuse ODPs (forces full close and full open), but this must be set at the start of
the session before the first open.
QAQQINI query options are here:
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/rzajq/qryoptf.htm
So after that I modified my jdbc connection url (added qaqqinilib
property):
jdbc:as400://machine;libraries=*libl;naming=system;qaqqinilib=MyLibrary
AS400 JDBC url properties are here:
http://javadoc.midrange.com/jtopen/com/ibm/as400/access/doc-files/JDBCProperties.html#system
After all that, the locks are still there after two sql queries.
I've tried changing OPEN_CURSOR_THRESHOLD to 1 and
OPEN_CURSOR_CLOSE_COUNT to 1, but the locks are always there.
<<SNIP>>
Nothing worked, am I missing something?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.