473,386 Members | 1,799 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,386 software developers and data experts.

Database Marked Bad

Hello,

In an attempt to save disk space, I went in and gzipped all of the log
files for my database running DB2 version 7.2 . This resulted in the
database being marked bad because a log file was no longer found (I
think).

Here is an excerpt from db2diag.log:

String Title:sqleMarkDBad: PID:7980 Node:000
Marking the database bad.

2007-05-10-05.44.26.211513 Instance:db2inst1 Node:000
PID:7980(db2agent (V1DB)) Appid:C0A80A21.95D2.070510124202
relation_data_serv sqlrr_signal_handler Probe:10 Database:V1DB
DIA7107I Execution of a component signal handling function has begun.
Dump File:/home/db2inst1/sqllib/db2dump/7980.000 Data:APM COMMON INFO
Dump File:/home/db2inst1/sqllib/db2dump/7980.000 Data:PACKAGE ENTRY
Dump File:/home/db2inst1/sqllib/db2dump/7980.000 Data:USED_IN_UOW BIT
VECTOR
Dump File:/home/db2inst1/sqllib/db2dump/7980.000 Data:Recursive
dump_sect
Dump File:/home/db2inst1/sqllib/db2dump/7980.000 Data:SECTION NUMBER
Dump File:/home/db2inst1/sqllib/db2dump/7980.000 Data:SECTION DIR
ENTRY
Dump File:/home/db2inst1/sqllib/db2dump/7980.000 Data:cache cb

I have a backup that is pretty old and all of the log files so I can
rollforward, but was wondering if there is a way since I actually HAVE
the ability to recover -- it just may take me a while.

Is there a way that I can use the dump files that are mentioned in the
line after the "marking the database bad" error message in order to
make my log file useable again? Every time I attempt to connect to
the database, I get a generic system error:
SQL1042C An unexpected system error occurred. SQLSTATE=58004

It apparently tries to do a crash recovery but fails:
007-05-10-11.37.19.131481 Instance:db2inst1 Node:000
PID:17871(db2agent (V1DB)) Appid:C0A80A32.EB88.070510152851
base_sys_utilities sqledint Probe:0 Database:V1DB

Crash Recovery is needed.

2007-05-10-11.37.19.195627 Instance:db2inst1 Node:000
PID:17871(db2agent (V1DB)) Appid:C0A80A32.EB88.070510152851
recovery_manager sqlpresr Probe:1 Database:V1DB
DIA3908W Crash recovery has been initiated. Lowtran LSN is
"00054BB9D2A3",
Minbuff LSN is "00054BB9D2A3".

2007-05-10-11.37.19.200298 Instance:db2inst1 Node:000
PID:17871(db2agent (V1DB)) Appid:C0A80A32.EB88.070510152851
recovery_manager sqlprecm Probe:125 Database:V1DB

Using parallel recovery with 3 agents 3 QSets 21 queues and 2 chunks

2007-05-10-11.37.19.225329 Instance:db2inst1 Node:000
PID:29404(db2agnsc (V1DB)) Appid:C0A80A32.EB88.070510152851
data_protection sqlpgrlg Probe:170 Database:V1DB

ThisLsn: 0005 4bb9 d2a3 ..K...

Dump File:/home/db2inst1/sqllib/db2dump/29404.000 Data:SQLP_DBCB

2007-05-10-11.37.19.232828 Instance:db2inst1 Node:000
PID:29404(db2agnsc (V1DB)) Appid:C0A80A32.EB88.070510152851
data_protection sqlpgrlg Probe:0 Database:V1DB

Error -6899 when reading LSN 0005 4BB9 D2A3 from log file S0001187.LOG

2007-05-10-11.37.19.237101 Instance:db2inst1 Node:000
PID:29404(db2agnsc (V1DB)) Appid:C0A80A32.EB88.070510152851
recovery_manager sqlpPRecReadLog Probe:50 Database:V1DB
DIA3714C Logging can not continue due to an error.

ZRC=0xFFFFE50D

2007-05-10-11.37.19.315427 Instance:db2inst1 Node:000
PID:17871(db2agent (V1DB)) Appid:C0A80A32.EB88.070510152851
recovery_manager sqlpresr Probe:10 Database:V1DB
DIA3910W Crash recovery completed. Return Code = "-6899"

2007-05-10-11.37.19.316331 Instance:db2inst1 Node:000
PID:17871(db2agent (V1DB)) Appid:C0A80A32.EB88.070510152851
recovery_manager sqlpresr Probe:10 Database:V1DB

ThisLsn: 0005 4bb9 d2a3 ..K...

Dump File:/home/db2inst1/sqllib/db2dump/29404.000 Data:SQLP_DBCB

2007-05-10-11.37.19.232828 Instance:db2inst1 Node:000
PID:29404(db2agnsc (V1DB)) Appid:C0A80A32.EB88.070510152851
data_protection sqlpgrlg Probe:0 Database:V1DB

Error -6899 when reading LSN 0005 4BB9 D2A3 from log file S0001187.LOG

2007-05-10-11.37.19.237101 Instance:db2inst1 Node:000
PID:29404(db2agnsc (V1DB)) Appid:C0A80A32.EB88.070510152851
recovery_manager sqlpPRecReadLog Probe:50 Database:V1DB
DIA3714C Logging can not continue due to an error.

ZRC=0xFFFFE50D

2007-05-10-11.37.19.315427 Instance:db2inst1 Node:000
PID:17871(db2agent (V1DB)) Appid:C0A80A32.EB88.070510152851
recovery_manager sqlpresr Probe:10 Database:V1DB
DIA3910W Crash recovery completed. Return Code = "-6899"

2007-05-10-11.37.19.316331 Instance:db2inst1 Node:000
PID:17871(db2agent (V1DB)) Appid:C0A80A32.EB88.070510152851
recovery_manager sqlpresr Probe:10 Database:V1DB

Recovery started on log file: 5330 3030 3131 3837 2e4c
4f47 S0001187.LOG
2007-05-10-11.37.19.320371 Instance:db2inst1 Node:000
PID:17871(db2agent (V1DB)) Appid:C0A80A32.EB88.070510152851
base_sys_utilities sqlesrsu Probe:16 Database:V1DB

DiagData
0de5 ffff ....
2007-05-10-11.37.19.324473 Instance:db2inst1 Node:000
PID:17871(db2agent (V1DB)) Appid:C0A80A32.EB88.070510152851
base_sys_utilities sqlesrsu Probe:16 Database:V1DB

RIDS/sqlesrsu MS/UNK_REC_ERR PRCS/160de5
ffff ....
2007-05-10-11.37.19.328607 Instance:db2inst1 Node:000
PID:17871(db2agent (V1DB)) Appid:C0A80A32.EB88.070510152851
base_sys_utilities sqlesrsu Probe:110 Database:V1DB

Restart failed with sqlcode: eefb ffff
If there is a way to fix the current database, using some of these
dump files, that'd be wonderful. Thanks for any suggestions anyone
has.

Sincerely,

Scott

May 10 '07 #1
2 5396
Scott Jones wrote:
Hello,

In an attempt to save disk space, I went in and gzipped all of the log
files for my database running DB2 version 7.2 . This resulted in the
database being marked bad because a log file was no longer found (I
think).
What happens if you stop the database, unzip the logfiles and start the
db again?

/Lennart

>
Here is an excerpt from db2diag.log:

String Title:sqleMarkDBad: PID:7980 Node:000
Marking the database bad.

2007-05-10-05.44.26.211513 Instance:db2inst1 Node:000
PID:7980(db2agent (V1DB)) Appid:C0A80A21.95D2.070510124202
relation_data_serv sqlrr_signal_handler Probe:10 Database:V1DB
DIA7107I Execution of a component signal handling function has begun.
Dump File:/home/db2inst1/sqllib/db2dump/7980.000 Data:APM COMMON INFO
Dump File:/home/db2inst1/sqllib/db2dump/7980.000 Data:PACKAGE ENTRY
Dump File:/home/db2inst1/sqllib/db2dump/7980.000 Data:USED_IN_UOW BIT
VECTOR
Dump File:/home/db2inst1/sqllib/db2dump/7980.000 Data:Recursive
dump_sect
Dump File:/home/db2inst1/sqllib/db2dump/7980.000 Data:SECTION NUMBER
Dump File:/home/db2inst1/sqllib/db2dump/7980.000 Data:SECTION DIR
ENTRY
Dump File:/home/db2inst1/sqllib/db2dump/7980.000 Data:cache cb

I have a backup that is pretty old and all of the log files so I can
rollforward, but was wondering if there is a way since I actually HAVE
the ability to recover -- it just may take me a while.

Is there a way that I can use the dump files that are mentioned in the
line after the "marking the database bad" error message in order to
make my log file useable again? Every time I attempt to connect to
the database, I get a generic system error:
SQL1042C An unexpected system error occurred. SQLSTATE=58004

It apparently tries to do a crash recovery but fails:
007-05-10-11.37.19.131481 Instance:db2inst1 Node:000
PID:17871(db2agent (V1DB)) Appid:C0A80A32.EB88.070510152851
base_sys_utilities sqledint Probe:0 Database:V1DB

Crash Recovery is needed.

2007-05-10-11.37.19.195627 Instance:db2inst1 Node:000
PID:17871(db2agent (V1DB)) Appid:C0A80A32.EB88.070510152851
recovery_manager sqlpresr Probe:1 Database:V1DB
DIA3908W Crash recovery has been initiated. Lowtran LSN is
"00054BB9D2A3",
Minbuff LSN is "00054BB9D2A3".

2007-05-10-11.37.19.200298 Instance:db2inst1 Node:000
PID:17871(db2agent (V1DB)) Appid:C0A80A32.EB88.070510152851
recovery_manager sqlprecm Probe:125 Database:V1DB

Using parallel recovery with 3 agents 3 QSets 21 queues and 2 chunks

2007-05-10-11.37.19.225329 Instance:db2inst1 Node:000
PID:29404(db2agnsc (V1DB)) Appid:C0A80A32.EB88.070510152851
data_protection sqlpgrlg Probe:170 Database:V1DB

ThisLsn: 0005 4bb9 d2a3 ..K...

Dump File:/home/db2inst1/sqllib/db2dump/29404.000 Data:SQLP_DBCB

2007-05-10-11.37.19.232828 Instance:db2inst1 Node:000
PID:29404(db2agnsc (V1DB)) Appid:C0A80A32.EB88.070510152851
data_protection sqlpgrlg Probe:0 Database:V1DB

Error -6899 when reading LSN 0005 4BB9 D2A3 from log file S0001187.LOG

2007-05-10-11.37.19.237101 Instance:db2inst1 Node:000
PID:29404(db2agnsc (V1DB)) Appid:C0A80A32.EB88.070510152851
recovery_manager sqlpPRecReadLog Probe:50 Database:V1DB
DIA3714C Logging can not continue due to an error.

ZRC=0xFFFFE50D

2007-05-10-11.37.19.315427 Instance:db2inst1 Node:000
PID:17871(db2agent (V1DB)) Appid:C0A80A32.EB88.070510152851
recovery_manager sqlpresr Probe:10 Database:V1DB
DIA3910W Crash recovery completed. Return Code = "-6899"

2007-05-10-11.37.19.316331 Instance:db2inst1 Node:000
PID:17871(db2agent (V1DB)) Appid:C0A80A32.EB88.070510152851
recovery_manager sqlpresr Probe:10 Database:V1DB

ThisLsn: 0005 4bb9 d2a3 ..K...

Dump File:/home/db2inst1/sqllib/db2dump/29404.000 Data:SQLP_DBCB

2007-05-10-11.37.19.232828 Instance:db2inst1 Node:000
PID:29404(db2agnsc (V1DB)) Appid:C0A80A32.EB88.070510152851
data_protection sqlpgrlg Probe:0 Database:V1DB

Error -6899 when reading LSN 0005 4BB9 D2A3 from log file S0001187.LOG

2007-05-10-11.37.19.237101 Instance:db2inst1 Node:000
PID:29404(db2agnsc (V1DB)) Appid:C0A80A32.EB88.070510152851
recovery_manager sqlpPRecReadLog Probe:50 Database:V1DB
DIA3714C Logging can not continue due to an error.

ZRC=0xFFFFE50D

2007-05-10-11.37.19.315427 Instance:db2inst1 Node:000
PID:17871(db2agent (V1DB)) Appid:C0A80A32.EB88.070510152851
recovery_manager sqlpresr Probe:10 Database:V1DB
DIA3910W Crash recovery completed. Return Code = "-6899"

2007-05-10-11.37.19.316331 Instance:db2inst1 Node:000
PID:17871(db2agent (V1DB)) Appid:C0A80A32.EB88.070510152851
recovery_manager sqlpresr Probe:10 Database:V1DB

Recovery started on log file: 5330 3030 3131 3837 2e4c
4f47 S0001187.LOG
2007-05-10-11.37.19.320371 Instance:db2inst1 Node:000
PID:17871(db2agent (V1DB)) Appid:C0A80A32.EB88.070510152851
base_sys_utilities sqlesrsu Probe:16 Database:V1DB

DiagData
0de5 ffff ....
2007-05-10-11.37.19.324473 Instance:db2inst1 Node:000
PID:17871(db2agent (V1DB)) Appid:C0A80A32.EB88.070510152851
base_sys_utilities sqlesrsu Probe:16 Database:V1DB

RIDS/sqlesrsu MS/UNK_REC_ERR PRCS/160de5
ffff ....
2007-05-10-11.37.19.328607 Instance:db2inst1 Node:000
PID:17871(db2agent (V1DB)) Appid:C0A80A32.EB88.070510152851
base_sys_utilities sqlesrsu Probe:110 Database:V1DB

Restart failed with sqlcode: eefb ffff
If there is a way to fix the current database, using some of these
dump files, that'd be wonderful. Thanks for any suggestions anyone
has.

Sincerely,

Scott
May 11 '07 #2


If you have a backup copy of your database before the problem, you
may restore the backup copy..
If you dont, check with system restore(in case of windows..) you can
take backup copy and restore it !

@Ekta.

May 14 '07 #3

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

Similar topics

2
by: lawrence | last post by:
A very strange bug. www.monkeyclaus.org is run by a cms I'm developing. One of types of users we allow is "justTestingTheSite", a type of user I developed to give demo's to prospective clients. The...
6
by: kurotsuke | last post by:
Hi, I restored my Windows XP system and discovered that I cannot access a MSDE DB that was saved in D: drive (I restored my primary partition in C). How can I restore it? Thanks a lot.
62
by: SAN3141 | last post by:
There doesn't seem to be consensus about when to put code in the database or in the middle tier. There was a long discussion about this in an Oracle newsgroup (message ID:...
1
by: Mark Barinstein | last post by:
Hello. W2k, db2 wse v8.1.4. Here is ddl that creates small test database (3 tables and 1 view). (i can't attach zip file with ixf files and loading script - it has ~ 1.3MB size, but if anybody...
5
by: Mark Barinstein | last post by:
Hello. db2v8 fp3 or fp4. ftp://adm-gw.vsi.ru/pub/db2v8crash/files.zip In this zip file (~1.4M) there are: 1. script for creating a small test database with 3 tables and 1 view. 2. 3 ixf...
3
by: Nitin | last post by:
I am using access database for my application, whenever I insert records the size of the data base increases, But when I delete the records the database size does not decrease. What is the...
3
by: Martin B | last post by:
Hallo! I'm working with C# .NET 2.0, implementing Client/Server Applications which are connecting via Network to SQL-Server or Oracle Databases. To stay independent from the underlaying Database...
25
by: Colin McKinnon | last post by:
Hi all, There's lots of DB abstraction layers out there, but a quick look around them hasn't turned up anything which seems to met my requirements. Before I go off and write one I thought I'd...
0
by: Fausto Guerini | last post by:
On my Microsoft sql server 2000 i have a database named Lp marked suspect, the last backup il long time ago so i'm trying to recover the current database. The start up log of sql is: An error...
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
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: 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:
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
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,...

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.