473,388 Members | 1,277 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

db2cos script

Hello.

v8.2.7 ese, WinXP

I'm trying to catch locktimeout.

1.
I issued:
db2pd -catch -911,68 db2cos
output was:
---
Error Catch #1
Sqlcode: -911
ReasonCode: 68
ZRC: 0
ECF: 0
Component ID: 0
LockName: Not Set
LockType: Not Set
Current Count: 0
Max Count: 255
Bitmap: 0x661
Action: Error code catch flag enabled
Action: Execute sqllib/db2cos callout script
Action: Produce stack trace in db2diag.log
---

2.
I created db2cos.bat file in sqllib directory with such command:
---
db2pd -db sample -locks wait -app "C:\Program Files\IBM\SQLLIB
\db2cos.rpt"
---
and reproduced simple lockwait situation.

When I run this script manually, it works and create output file with
some data.
But it seems that this db2cos script is not called automatically after
detecting locktimeout.
In the db2diag.log there are no entries like this:
---
START : Invoking sqllib/db2cos script from lock manager sqlplnfd
---
and only such entries:

--- db2diag.log entry ---
2007-05-07-09.55.00.546000+240 I4522374H842 LEVEL: Event
PID : 864 TID : 2160 PROC : db2syscs.exe
INSTANCE: DB2 NODE : 000 DB : SAMPLE
APPHDL : 0-9 APPID: *LOCAL.DB2.070507051925
FUNCTION: DB2 UDB, lock manager, sqlplnfd, probe:999
DATA #1 : <preformatted>
Caught rc -2146435004. Dumping stack trace.
CALLSTCK:
[0] 0x6E1EBEC0 sqlpErrorCatchForPD + 0x17C
[1] 0x6E1EB711 sqlplnfd + 0xA15
[2] 0x6E1A7907 sqlplrq + 0x8DB
[3] 0x6E177F1D sqlischf + 0x2AF9
[4] 0x6E17632D sqlischf + 0xF09
[5] 0x6E175687 sqlischf + 0x263
[6] 0x6E1575A4 ?
sqliFirstTreeSearch.@@YAHPAUSQLI_CB@@PAUSQLI_SFGLO B@@@Z + 0x30
[7] 0x6E156B43 sqlirdk + 0x647
[8] 0x6E0BD38C ?sqldIndexFetch.@@YAHPAUSQLD_CCB@@PAK@Z + 0xF4
[9] 0x6E0BC4B8 sqldRowFetch + 0x84E
--- db2diag.log entry end ---

Question is:
have I something missed?

Thanks in advance,
Mark B.

May 7 '07 #1
2 3555
On May 7, 9:17 am, 4.s...@mail.ru wrote:
Hello.

v8.2.7 ese, WinXP

I'm trying to catch locktimeout.

1.
I issued:
db2pd -catch -911,68 db2cos
output was:
---
Error Catch #1
Sqlcode: -911
ReasonCode: 68
ZRC: 0
ECF: 0
Component ID: 0
LockName: Not Set
LockType: Not Set
Current Count: 0
Max Count: 255
Bitmap: 0x661
Action: Error code catch flag enabled
Action: Execute sqllib/db2cos callout script
Action: Produce stack trace in db2diag.log
---

2.
I created db2cos.bat file in sqllib directory with such command:
---
db2pd -db sample -locks wait -app "C:\Program Files\IBM\SQLLIB
\db2cos.rpt"
---
and reproduced simple lockwait situation.

When I run this script manually, it works and create output file with
some data.
But it seems that this db2cos script is not called automatically after
detecting locktimeout.
In the db2diag.log there are no entries like this:
---
START : Invoking sqllib/db2cos script from lock manager sqlplnfd
---
and only such entries:

--- db2diag.log entry ---
2007-05-07-09.55.00.546000+240 I4522374H842 LEVEL: Event
PID : 864 TID : 2160 PROC : db2syscs.exe
INSTANCE: DB2 NODE : 000 DB : SAMPLE
APPHDL : 0-9 APPID: *LOCAL.DB2.070507051925
FUNCTION: DB2 UDB, lock manager, sqlplnfd, probe:999
DATA #1 : <preformatted>
Caught rc -2146435004. Dumping stack trace.
CALLSTCK:
[0] 0x6E1EBEC0 sqlpErrorCatchForPD + 0x17C
[1] 0x6E1EB711 sqlplnfd + 0xA15
[2] 0x6E1A7907 sqlplrq + 0x8DB
[3] 0x6E177F1D sqlischf + 0x2AF9
[4] 0x6E17632D sqlischf + 0xF09
[5] 0x6E175687 sqlischf + 0x263
[6] 0x6E1575A4 ?
sqliFirstTreeSearch.@@YAHPAUSQLI_CB@@PAUSQLI_SFGLO B@@@Z + 0x30
[7] 0x6E156B43 sqlirdk + 0x647
[8] 0x6E0BD38C ?sqldIndexFetch.@@YAHPAUSQLD_CCB@@PAK@Z + 0xF4
[9] 0x6E0BC4B8 sqldRowFetch + 0x84E
--- db2diag.log entry end ---

Question is:
have I something missed?

Thanks in advance,
Mark B.
I'm not familiar with DB2 on Windows, so can't offer you a proven
advice.
However, as your 'script' is named 'db2cos.bat', maybe in your db2pd
command you should refer to it that way, i.e. including the .bat-
suffix? Like:
db2pd -catch -911,68 db2cos.bat

HTH

--
Jeroen

May 7 '07 #2
Ok, I rearrange my questions:
1.
Has somebody successfully tuned call of the db2 call out script on
v8.2 on Windows?

2.
Another question:
I want to catch locktimeout situation AUTOMATICALLY with such info:
- which statement caused locktimeout
- which statement wait for lock
Is it possible at all on v8.2 on Windows?

Thanks in advance,
Mark B.

May 16 '07 #3

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

Similar topics

6
by: Mike Daniel | last post by:
I am attempting to use document.write(pageVar) that displays a new html page within a pop-up window and the popup is failing. Also note that pageVar is a complete HTML page containing other java...
3
by: Water Cooler v2 | last post by:
Questions: 1. Can there be more than a single script block in a given HEAD tag? 2. Can there be more than a single script block in a given BODY tag? To test, I tried the following code. None...
2
by: bilaribilari | last post by:
Hi all, I am using Tidy (C) for parsing html pages. I encountered a page that has some script as follows: <script> .... var abc = "<script>some stuff here</" + "script>"; .... </script>
19
by: thisis | last post by:
Hi All, i have this.asp page: <script type="text/vbscript"> Function myFunc(val1ok, val2ok) ' do something ok myFunc = " return something ok" End Function </script>
3
by: rsteph | last post by:
I have a script that shows the time and date. It's been working on my site for quite a while now. Suddenly it stops showing up, after getting my drop down menu to work. If I put text between the...
3
by: Angus | last post by:
I have a web page with a toolbar containing a Save button. The Save button can change contextually to be a Search button in some cases. Hence the button name searchsavechanges. The snippet of...
7
by: imtmub | last post by:
I have a page, Head tag Contains many Scripts and style sheet for Menu and Page. This code working fine and displaying menus and page as i wanted. Check this page for reference....
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
1
by: omar999 | last post by:
hi guys i really dont understand where i am going wrong.I've read countless articles including http://blog.nemikor.com/2009/10/03/using-multiple-versions-of-jquery/ but still having trouble with...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
0
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.