473,714 Members | 5,143 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 6029
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...every thing 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...every thing 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...every thing 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
1690
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 and then use 'new' to create an instance?
8
4612
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
2257
by: Philip Sherman | last post by:
SELECT columns FROM t1 JOIN t2
8
3139
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 db2diag.log like: ================= 2004-06-06-17.21.48.671000 Instance:DB2 Node:000
2
5563
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 brings the whole instance down and it has to be restarted. In addition the job seems to be stuck in the TOOLSDB as if I try to delete the backup job I get "The task is currently running". So I went to the command line and tried "db2 backup database...
0
1546
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
3267
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 we bring the original primary server backup, and try to start it as standby and activate it, we get: --------------------------------------------------------------- SQL1391N The database is already in use by another instance.
10
3256
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
2138
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 '/test_instance/sqllib/lib/libdb2gcf.so' is OPERABLE (OFFLINE). I wish to know what means OPERABLE (OFFLINE)...Thanks a lot.
0
8808
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8712
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,...
1
9077
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6638
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
5959
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
4729
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3160
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
2525
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2113
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.