473,412 Members | 2,012 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,412 software developers and data experts.

Instance Crash

we have a weird issue..
When we try to do select count(*) from a table..say tab_a.. we get
back the count.
but the moment we try to do "select * from tab_a" ...the instance
crashes and has to be restarted...

The tablespace and table states are normal and count is very small
..(i.e. 150 recs) ..also there are no long or lob columns in that
table..

Tablespace has lots of space..so definately no space or memory issues..

This is on a db2 luw v8.1 fp 10. running on linux...

Any clues as to why this is happening..

Sep 12 '06 #1
5 6008
What does the db2diag.log say?

You could be encountering a bad page. Try running db2dart or INSPECT
and see if it has something new to tell you.

/T

Purple-D wrote:
we have a weird issue..
When we try to do select count(*) from a table..say tab_a.. we get
back the count.
but the moment we try to do "select * from tab_a" ...the instance
crashes and has to be restarted...

The tablespace and table states are normal and count is very small
.(i.e. 150 recs) ..also there are no long or lob columns in that
table..

Tablespace has lots of space..so definately no space or memory issues..

This is on a db2 luw v8.1 fp 10. running on linux...

Any clues as to why this is happening..
Sep 12 '06 #2
Purple-D wrote:
we have a weird issue..
When we try to do select count(*) from a table..say tab_a.. we get
back the count.
but the moment we try to do "select * from tab_a" ...the instance
crashes and has to be restarted...

The tablespace and table states are normal and count is very small
.(i.e. 150 recs) ..also there are no long or lob columns in that
table..

Tablespace has lots of space..so definately no space or memory issues..

This is on a db2 luw v8.1 fp 10. running on linux...

Any clues as to why this is happening..
DB2 should never ever crash. Period. So if you have a DB2 crash, there is
only one thing to do: call IBM support.

p.s: Possible exceptions are if you deliberately kill DB2 processes or use
external routines that are buggy.

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Sep 12 '06 #3
I inspect the table and indexes...everything looks fine...but just to
be sure...i drop any existing indexes...

But still it crashes when i try to do select * ...

I then tried to reorg the table to see if moving the data round
helps..and this is what I got..

db2 reorg table tablename
SQL2216N SQL error "-1224" occurred while reorganizing a database
table or
its indexes.
Any insight on this ?
Knut Stolze wrote:
Purple-D wrote:
we have a weird issue..
When we try to do select count(*) from a table..say tab_a.. we get
back the count.
but the moment we try to do "select * from tab_a" ...the instance
crashes and has to be restarted...

The tablespace and table states are normal and count is very small
.(i.e. 150 recs) ..also there are no long or lob columns in that
table..

Tablespace has lots of space..so definately no space or memory issues..

This is on a db2 luw v8.1 fp 10. running on linux...

Any clues as to why this is happening..

DB2 should never ever crash. Period. So if you have a DB2 crash, there is
only one thing to do: call IBM support.

p.s: Possible exceptions are if you deliberately kill DB2 processes or use
external routines that are buggy.

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Sep 13 '06 #4
I fixed the problem...but whats weird is I still dont know what the
problem was...
db2dart for that table was clean ..similiar to INSPECT...so i simply
dumped the data out into a flat file using db2dart...and loaded it into
another table..and dropped the offending table....life is good...for
now..!

Purple-D wrote:
I inspect the table and indexes...everything looks fine...but just to
be sure...i drop any existing indexes...

But still it crashes when i try to do select * ...

I then tried to reorg the table to see if moving the data round
helps..and this is what I got..

db2 reorg table tablename
SQL2216N SQL error "-1224" occurred while reorganizing a database
table or
its indexes.
Any insight on this ?
Knut Stolze wrote:
Purple-D wrote:
we have a weird issue..
When we try to do select count(*) from a table..say tab_a.. we get
back the count.
but the moment we try to do "select * from tab_a" ...the instance
crashes and has to be restarted...
>
The tablespace and table states are normal and count is very small
.(i.e. 150 recs) ..also there are no long or lob columns in that
table..
>
Tablespace has lots of space..so definately no space or memory issues..
>
This is on a db2 luw v8.1 fp 10. running on linux...
>
Any clues as to why this is happening..
DB2 should never ever crash. Period. So if you have a DB2 crash, there is
only one thing to do: call IBM support.

p.s: Possible exceptions are if you deliberately kill DB2 processes or use
external routines that are buggy.

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Sep 13 '06 #5
Purple-D wrote:
I inspect the table and indexes...everything looks fine...but just to
be sure...i drop any existing indexes...

But still it crashes when i try to do select * ...

I then tried to reorg the table to see if moving the data round
helps..and this is what I got..

db2 reorg table tablename
SQL2216N SQL error "-1224" occurred while reorganizing a database
table or
its indexes.
Any insight on this ?
Yeah: call IBM support.

Even if you can work-around the problem (as your other post suggests), there
won't be any guarantee that you don't hit the trap again. Let the DB2
developers investigate this issue and - if necessary - fix it.

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Sep 14 '06 #6

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

Similar topics

4
by: Krice | last post by:
Is it possible that construction of a global instance can fail? I'm suspecting this because the program seems to crash before main(). Is it a better practice to declare a pointer for the object...
8
by: Jean-Marc Blaise | last post by:
Hi, I'm on Linux Intel, V8.1 / FP4. I have an instance crash. The test case: db2set DB2_FMP_COMM_HEAPSZ = 0 db2stop db2start db2mtrk -i -d -p -v ==> Instance is crashed.
10
by: Philip Sherman | last post by:
SELECT columns FROM t1 JOIN t2
8
by: Lana Zapornikova | last post by:
We are using DB2 Workgroup Server, v. 8.1, fixpack 5 under Windows 2003 Standart Edition. There were series of similar instance crashes. At the begining, some errors appeared in the...
2
by: Mike | last post by:
Greetings, Having a major problem here. running version 8.2 on win2003 server. The problem I am having is backing up a database seems to get to the last part of the backup and then fails. This...
0
by: Zahni | last post by:
Win 2003 Enterprise, 14 GB RAM, /3GB and /PAE DB2_AWE=1,330000,40000 Simple test: wrote two batches: :10 db2 activate database ga db2 deactivate database ga goto 10
0
by: Mark A | last post by:
DB2 ESE 8.2.3 (FP10) for Linux Redhat AS 3.0 2.4 kernel During testing of an HADR pair, we crash the primary server and perform takeover by force on the standby server. This works fine. When...
10
by: 4.spam | last post by:
Hello. v8.2.7, windows xp. --- create procedure cursor_test() language sql dynamic result sets 1 begin declare c1 cursor
0
by: db2first | last post by:
Hi, Can someone tells me the different causes/origins of an instance crash ? For example, I received an email with : db2fmd The state of instance 'test_instance' gcf module...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...
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,...
0
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...

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.