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

Recovering from a DB2 Crash

Hi,

Is there any way to get a db2 9.1 Windows UDB database which is in
inconsistent state to start without recovery?

We were loading data from a source and the database crashed. The
Server was restarted after this. DB2 has completed the forward phase
of crash recovery but the rollback phase is taking time. We are using
circular logging.

We have loaded a large number of tables during the weekend before the
last backup. In case the recovery is not successful, I would like to
start the database, drop and reload the last few tables and manually
set the database state to consistent. Is there an easy way to do
this? Any pitfalls?

Regards

Subhash

The db2dialog had an error message that logfile is full before the
shutdown. We are using DB2 9.1 Workgroup Edition on Windows 2003
server.

Mar 12 '07 #1
3 4961
1. Change circular logging to Archive
2. Increase the log file size and number of logs
3. using load SAVECOUNT, ROWCOUNT

On Mar 12, 12:12 pm, subhb...@gmail.com wrote:
Hi,

Is there any way to get a db2 9.1 Windows UDB database which is in
inconsistent state to start without recovery?

We were loading data from a source and the database crashed. The
Server was restarted after this. DB2 has completed the forward phase
of crash recovery but the rollback phase is taking time. We are using
circular logging.

We have loaded a large number of tables during the weekend before the
last backup. In case the recovery is not successful, I would like to
start the database, drop and reload the last few tables and manually
set the database state to consistent. Is there an easy way to do
this? Any pitfalls?

Regards

Subhash

The db2dialog had an error message that logfile is full before the
shutdown. We are using DB2 9.1 Workgroup Edition on Windows 2003
server.

Mar 12 '07 #2
Circular logging means no online backup so your backup must be offline.

You can restore your last backup and will loose everything after the backup.

Phil Sherman
su******@gmail.com wrote:
Hi,

Is there any way to get a db2 9.1 Windows UDB database which is in
inconsistent state to start without recovery?

We were loading data from a source and the database crashed. The
Server was restarted after this. DB2 has completed the forward phase
of crash recovery but the rollback phase is taking time. We are using
circular logging.

We have loaded a large number of tables during the weekend before the
last backup. In case the recovery is not successful, I would like to
start the database, drop and reload the last few tables and manually
set the database state to consistent. Is there an easy way to do
this? Any pitfalls?

Regards

Subhash

The db2dialog had an error message that logfile is full before the
shutdown. We are using DB2 9.1 Workgroup Edition on Windows 2003
server.
Mar 13 '07 #3









from the db engine's perspective, you are "deliberately" asking it to
forgo the consistency factor. I don't think it will allow that. you
"will | must" have to perform crash recovery, there is no other
choice. unless you want to restore an old copy or recreate the whole
db. maybe you may want to have a look at the db2 tool called db2dart.
i think there is some option/flag to change the consistency of the db,
but i am not sure. have a look at the documentation.

rgds,
dotyet
On Mar 12, 12:12 pm, subhb...@gmail.com wrote:
Hi,

Is there any way to get a db2 9.1 Windows UDB database which is in
inconsistent state to start without recovery?

We were loading data from a source and the database crashed. The
Server was restarted after this. DB2 has completed the forward phase
of crash recovery but the rollback phase is taking time. We are using
circular logging.
>
We have loaded a large number of tables during the weekend before the
last backup. In case the recovery is not successful, I would like to
start the database, drop and reload the last few tables and manually
set the database state to consistent. Is there an easy way to do
this? Any pitfalls?

Regards

Subhash

The db2dialog had an error message that logfile is full before the
shutdown. We are using DB2 9.1 Workgroup Edition on Windows 2003
server.

Mar 13 '07 #4

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

Similar topics

8
by: Eric Brunel | last post by:
Hi all, I was creating a Tkinter widget in the style of the reversed tabs below Excel worksheets and I stepped in a serious problem: the code I made makes python crash with a seg fault, bus...
10
by: xixi | last post by:
i have db2 udb v8.1 on windows 64 bit 2003 server, after db2 server start , i found this in the db2diag.log, is this error? 2004-05-05-15.28.30.780000 Instance:DB2 Node:000...
11
by: MLH | last post by:
I don't know how it happened. I have hundreds of hours worth of work invested in a file I foolishly named DB9.mdb. I was intending on renaming the file soon. But I neglected to do so before...
1
by: Peter Morris | last post by:
Hi all I experienced a HD crash recently and have had to restore from a backup (now I am glad for my level of backup paranoia). My question is, what is the best way to create my virtual folders...
3
by: Sheldon | last post by:
Someone here at work was out and her backup, apparently, erased a very important table. While the Help Desk is trying to locate a backup tape, I was wondering if there is a way to get the table...
34
by: NewToCPP | last post by:
Hi, Why does a C/C++ programs crash? When there is access to a null pointer or some thing like that programs crash, but why do they crash? Thanks.
12
by: benjamin.krulewitch | last post by:
I'm debugging an issue with a C program that causes the computer to crash, and I'm attempting to log information immediately before the crash occurs. I us my BKprintLog function (see below) to...
7
by: Piotr 'Zenobius' Baranowski | last post by:
Hello My server has crushed, and all i could recover was database dirs/files. Can i somehow recover the database from these? It's like: db2inst1/NODE0000/... If yes, can somebody get me thru...
11
by: =?Utf-8?B?R2VyaGFyZA==?= | last post by:
I have run into a situation that if a page/tab that uses the Ajax toolkit (using .net version 3.5) is closed before the Ajax enable controls complete loading, then IE locks up. Does it in both IE7...
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:
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
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,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...

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.