473,471 Members | 1,684 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

SQL select Crashes DB2 8.2?

We have an SQL that every time it's run, will crash the instance, a
complete shutdown, everyone out and shutdown. I told the guy running it
just to break it apart, and it works fine that way, but should I subimt
this to IBM as a bug, because I think that no SQL should ever crash the
instance? Or am I wrong there and this SQL is just junk. I checked the
limits section in the docs, It doesn't appear to be offending any limits.
Running 8.1FP8 (8.2) in 64bit on AIX 5.3 ML1, 16gb RAM , 8-way P5 machine.

Here is the offending SQL:
select '\'|| HEX(rep.$COID)||'\'||
HEX(rep.$COMPID||'\ROOT\CATIA_MODEL\ ',
rep.C_LASTMOD,cast($CUR_ACC_MET_DATA s varchar(150)
for mixed data)
from ROOT.CATIA_MODEL rep, ROOT. $EXT_LF extlf
where rep.$COID = extlf.$COID and ep.C_COMPID_DATA =extlf.$COMPID
and S_TYPE_REPIN ('3D','3D MODEL','COMP','DETAILED','DRAWING',
'ASSEMBLY','MASTER','LAYOUT','CATPart','CATPART',' WELD') and
date(rep.C_LASTMOD > date('01/01/2006') and exists
(select $COID rom ROOT.PART_LIST where $COID rep.$COID
and _SITE_RESPONSIBLE = 'HRA-O') and not exists (select $COID
from OOT.$EXT_LF where $COID = rep.$COID
and $COMPID_FATHER = rep.$COMPID and REPRES_TYPE = 'cgr')
UNION select '\'||HEX(rep.$COID)||'\'||HEX(rep.$COMPID)
||'\ROOT\DOCCAD\ ', rep.C_LASTMOD,
cast($CUR_ACC_MET_DATA as varchar(150) for mixed data)
from ROOT.DOCCADrep, ROOT.$EXT_LF extlf
where rep.$COID = extlf.$COID
and rep.C_COMPID_DATA = extlf.$COMPID
and S_TYPE_REP IN ('3D','3D MODEL','COMP','DETAILED','DRAWING',
'ASSEMBLY','MASTER','LAYOUT','CATPart','CATPART',' WELD')
and date(rep.C_LASTMOD) > date('01/01/2006'
and exists (select $COID from OOT.PART_LIST
where $COID = rep.$COID and C_SITE_RESPONSIBLE = 'HRA-O')
and notexists (select COID from ROOT. $EXT_LF
where $COID = rep.$COID and $COMPID_FATHER = rep.$COMPID
and REPRES_TYPE= 'cgr')
UNION select '\' || HEX(extlf.$COID) ||'\'
|| HEX(extlf.$COMPID_FATHER) || '\ROOT\DOCCAD\ ',
dc.C_LASTMOD,
cast($CUR_ACC_MET_DATA as varchar(150) for mixed data)
from ROOT.$EXT_LF extlf,ROOT.DOCCAD dc
where extlf.$COID=dc.$COID AND exists (select $COID
from ROOT.PART_LIST where $COID dc.$COID
and C_SITE_RESPONSIBLE = 'HRA-O') and $CUR_ACC_MET_DATA
like 'UNIX PATH /n/share/%' and REPRES_TYPE ='cgr'
UNION select '\'||HEX(extlf.$COID)||'\'||
HEX(extlf.$COMPID_FATHER)||'\ROOT\CATIA_MODEL\ ,
cm.C_LASTMOD,cast($CUR_ACC_MET_DATA as varchar(150)
for mixed data)
from ROOT.$EXT_LF extlf,ROOT.CATIA_MODEL cm
where extlf.$COID=cm.$COID
AND exists (select$COID from ROOT.PART_LIST
where $COID = cm.$COID and C_SITE_RESPONSIBLE = 'HRA-O')
and $CUR_ACC_MET_DATA like 'UNIX PATH /n/share/%'
and REPRES_TYPE = 'cgr' for fetch only

Thanks
Ken
Jan 16 '06 #1
13 1957
Do you see any errors on db2diag.log and .nfy ?

Jan 16 '06 #2
yoyo wrote:
We have an SQL that every time it's run, will crash the instance, a
complete shutdown, everyone out and shutdown. I told the guy running it
just to break it apart, and it works fine that way, but should I subimt
this to IBM as a bug, because I think that no SQL should ever crash the
instance? Or am I wrong there and this SQL is just junk. I checked the
limits section in the docs, It doesn't appear to be offending any limits.
Running 8.1FP8 (8.2) in 64bit on AIX 5.3 ML1, 16gb RAM , 8-way P5 machine.

Well, think about it.. What will happen if you don't report the problem?
Will you expect it to work in Viper? Or DB2 V8.1 FP12
So yes. Pick up that phone!
If you don't have a support controct at least send me a repro script
(with ddl and data if required) and I see what I can do.

The engine is NEVER supposed to go down. It's ALWAYS a bug..
well unless you got a hardware failure of course or trip over the power
cord...

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
DB2 UDB for Linux, Unix, Windows
IBM Toronto Lab
Jan 16 '06 #3
le**********@gmail.com wrote:
Do you see any errors on db2diag.log and .nfy ?


Nothing I can decipher really. Last thing I see in diag.log is that SQL,
then the nasty all caps: ALL DB2 PROCESSES ASSOCIATED WITH THIS INSTANCE
HAVE BEEN SHUTDOWN.

Jan 16 '06 #4
yoyo wrote:
We have an SQL that every time it's run, will crash the instance, a
complete shutdown, everyone out and shutdown. I told the guy running it
just to break it apart, and it works fine that way, but should I subimt
this to IBM as a bug, because I think that no SQL should ever crash the
instance? Or am I wrong there and this SQL is just junk. I checked the
limits section in the docs, It doesn't appear to be offending any limits.
Running 8.1FP8 (8.2) in 64bit on AIX 5.3 ML1, 16gb RAM , 8-way P5 machine.


You are right, no SQL statement should ever crash the database engine. So I
would recommend to talk to IBM support and get this resolved.

p.s: The only exception would be if you are calling a user-defined routine
that messes up the address space of the db2 agent executing the statements
on your behalf. And for those cases you might want to switch the routine
to be run as FENCED, so that it can't harm the db2 engine.

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Jan 16 '06 #5
Serge Rielau wrote:
yoyo wrote:
We have an SQL that every time it's run, will crash the instance, a
complete shutdown, everyone out and shutdown. I told the guy running it
just to break it apart, and it works fine that way, but should I
subimt this to IBM as a bug, because I think that no SQL should ever
crash the instance? Or am I wrong there and this SQL is just junk. I
checked the limits section in the docs, It doesn't appear to be
offending any limits.
Running 8.1FP8 (8.2) in 64bit on AIX 5.3 ML1, 16gb RAM , 8-way P5
machine.


Well, think about it.. What will happen if you don't report the problem?
Will you expect it to work in Viper? Or DB2 V8.1 FP12
So yes. Pick up that phone!
If you don't have a support controct at least send me a repro script
(with ddl and data if required) and I see what I can do.

The engine is NEVER supposed to go down. It's ALWAYS a bug..
well unless you got a hardware failure of course or trip over the power
cord...

Cheers
Serge

Alright, there is a support contract. I'll call. What are they going to
want? Certain things turned on, which log files? Last time I called DB2
support was many years ago in an emergency, I've never called in a
problem like this on DB2. I can't obviously run this thing now in the
middle of the day to poroduce a certain type of trace, but I can log in
remotly in the middle of the night to run it. I have what was left from
when the guy ran it twice too. Two .000 files with the exact time of the
crash, the db2diag.log and .nfy files, is that enoguh, or will they want
more.
Jan 16 '06 #6
yoyo wrote:
Alright, there is a support contract. I'll call. What are they going to
want? Certain things turned on, which log files? Last time I called DB2
support was many years ago in an emergency, I've never called in a
problem like this on DB2. I can't obviously run this thing now in the
middle of the day to poroduce a certain type of trace, but I can log in
remotly in the middle of the night to run it. I have what was left from
when the guy ran it twice too. Two .000 files with the exact time of the
crash, the db2diag.log and .nfy files, is that enoguh, or will they want
more.


Just talk to them and those guys will let you know what you're asking for.

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Jan 16 '06 #7
"yoyo" <yo**@ma.com> wrote in message
news:EL********************@centurytel.net...
Alright, there is a support contract. I'll call. What are they going to
want? Certain things turned on, which log files? Last time I called DB2
support was many years ago in an emergency, I've never called in a problem
like this on DB2. I can't obviously run this thing now in the middle of
the day to poroduce a certain type of trace, but I can log in remotly in
the middle of the night to run it. I have what was left from when the guy
ran it twice too. Two .000 files with the exact time of the crash, the
db2diag.log and .nfy files, is that enoguh, or will they want more.


You might want to try it on FP10 just to see if they have already fixed that
problem.
Jan 16 '06 #8
yoyo wrote:
Alright, there is a support contract. I'll call. What are they going to
want? Certain things turned on, which log files? Last time I called DB2
support was many years ago in an emergency, I've never called in a
problem like this on DB2. I can't obviously run this thing now in the
middle of the day to poroduce a certain type of trace, but I can log in
remotly in the middle of the night to run it. I have what was left from
when the guy ran it twice too. Two .000 files with the exact time of the
crash, the db2diag.log and .nfy files, is that enoguh, or will they want
more.

Goood for you, always good to hear that DB2 is wellbehaved for you for
years at a time :-)
I think teh one thing support will want from you right away is eth
result of running the db2support tool.
db2support will scour the dump directory and your environment (DB, DBM
CFG, db2set variables, db2level, ...) and make nice tar ball for you to
send to teh friendly analyst. :-)

If you do have a development system that you can use to play (like
applying FP10, trying to repro with fake data) that's even better can
sometimes have a big impact on time to resolution.

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
DB2 UDB for Linux, Unix, Windows
IBM Toronto Lab
Jan 16 '06 #9
yoyo wrote:
Alright, there is a support contract. I'll call. What are they going to
want? Certain things turned on, which log files? Last time I called DB2
support was many years ago in an emergency, I've never called in a
problem like this on DB2. I can't obviously run this thing now in the
middle of the day to poroduce a certain type of trace, but I can log in
remotly in the middle of the night to run it. I have what was left from
when the guy ran it twice too. Two .000 files with the exact time of the
crash, the db2diag.log and .nfy files, is that enoguh, or will they want
more.


Let us know the PMR number when you have one opened.

Jan M. Nelken
Jan 17 '06 #10
Jan M. Nelken wrote:
yoyo wrote:
Alright, there is a support contract. I'll call. What are they going
to want? Certain things turned on, which log files? Last time I
called DB2 support was many years ago in an emergency, I've never
called in a problem like this on DB2. I can't obviously run this thing
now in the middle of the day to poroduce a certain type of trace, but
I can log in remotly in the middle of the night to run it. I have what
was left from when the guy ran it twice too. Two .000 files with the
exact time of the crash, the db2diag.log and .nfy files, is that
enoguh, or will they want more.

Let us know the PMR number when you have one opened.

Jan M. Nelken

I wasn't on the list of contacts for this company. Took a day to get me
added. Just opened the PMR

PMR #: 38594 082 000
Jan 18 '06 #11
Did you get a resolution on the query problem?

I am curious to find out what the problem was...

Leo

Jan 19 '06 #12
le**********@gmail.com wrote:
Did you get a resolution on the query problem?

I am curious to find out what the problem was...

Leo


Not yet. The first tech said he's never seen a stack trace like the one
I gave him. He forwarded it on to an advanced team. They are still
analyzing. I made it a sev 4 (low priority), because I have an easy
workaround, but they are working it quite well enough anyway, I get a
mail update like every couple hours telling me something or asking for
another bit of info.
Jan 19 '06 #13
yoyo wrote:
le**********@gmail.com wrote:
Did you get a resolution on the query problem?
I am curious to find out what the problem was...

Not yet. The first tech said he's never seen a stack trace like the one
I gave him. He forwarded it on to an advanced team. They are still
analyzing. I made it a sev 4 (low priority), because I have an easy
workaround, but they are working it quite well enough anyway, I get a
mail update like every couple hours telling me something or asking for
another bit of info.

Good, that's the way it's meant to be. It may be sev 4 for you. But for
DB2 a crash is a sev one. Only trumped by a wrong results.

Cheers
Serge

--
Serge Rielau
DB2 Solutions Development
DB2 UDB for Linux, Unix, Windows
IBM Toronto Lab
Jan 20 '06 #14

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

Similar topics

12
by: Andrew Baker | last post by:
What is the best way to lock an individual row in the following scenerio: --TODO - LOCK THIS ROW -- Return the next id SELECT next_id INTO next_id_out FROM owner.my_id_table WHERE app_id =...
7
by: Steve D. | last post by:
I recently installed VS.NET 2003 After opening a project and leaving it open, after a certain period of time it crashes. It only does this when a project is open. The project that I've tried...
5
by: Rob Ristroph | last post by:
Hi, It's pretty unhelpful to post "I have a huge piece of code that crashes in strange places, what's the problem?" but that's basically my problem and I really am at my wit's end. The piece...
9
by: greeningster | last post by:
I have written an application in Visual C++ for a customer but it seems to crash randomly. Could anyone give me any help on how I could track this down ? Also, there appears there might be...
1
by: rogsonl | last post by:
The latest versoin of Microsoft Visual Studio 2005 (Version 8.0.50727.42 RTM.050727-4200 Microsoft .NET Framework Version 2.0.50727) crashes very often in debug. 1. If you modify a case statement...
0
by: Jeremie | last post by:
I'm working on a page. I've put a select dropdown and a span on the page. When the user selects an option in the dropdown, it performs an async callback to populate the span. The code is simple,...
22
by: walterbyrd | last post by:
I like to develop on my desktop, then when I get stuff working, I copy to my web-site. I set up a new version Xampp on my windows-2k desktop. And downloaded the stuff from the website to edit....
4
by: yinglcs | last post by:
Hi, I have a c++ application which crashes in this line (from the debugger, I have a segmentation fault here): void *object = dynamic_cast<void>(aObject); I have stepped thru the code in...
41
by: z | last post by:
I use Visual C 2005 to develop my programs. One in particular is crashing in very specific and hard to replicate situations, made worse by the fact it only crashes when run -outside- the dev - as...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
1
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...
0
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,...
1
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.