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

Lost active log, can't connect to database..

Hi there,

our system lost its only active log. I get an I/O error
when connecting, referencing the log file and sql error 1036C
sqlstate 58030. (Its version 7.1)

Is there any way to get the database to create a new log, without
having to do a restore? we don't have a backup.

Thanks

Tiroloco

Nov 12 '05 #1
4 3524
You can create a new database as same as current database , and then
copy the data files from current database to new database which you
created newly , and keep the two database have same environment (same
location ,same file name ,same database name same users ,etc). Try it .

Nov 12 '05 #2
should'nt be that easy. my guess is that database seed information will
play a vital role. also, as per my understanding, you can't just
provide one database any other database's containers and use them
(otherwise, anyone can play with any ones data if he or she has the
access to containers).

regards,
dotyet

James Hoo wrote:
You can create a new database as same as current database , and then
copy the data files from current database to new database which you
created newly , and keep the two database have same environment (same
location ,same file name ,same database name same users ,etc). Try it .


Nov 12 '05 #3
Hi:

Call IBM Support, they can patch the SQLOGCTL.LFH (Log Header file).
You can then bring the db online and export the data out, run db2look
and pretty much get everything out that you would need to recreate.

Because, IBM does NOT support a patched DB, you will need to drop this
DB and create a new one.

HTH

Vijay

Nov 12 '05 #4
I have done this before myself, after they help you get the database up,
they make you swear on your mother's grave that you will
rebuild your entire database and give you a db2move command to do it with.
Before I did the db2move as a kind of backup and rebuilt a new database to
restore it to, I was not allowed to run a normal backup of my resurrected
database. Also, when doing the imports after the move, I ran into some
issues where I had to reset auto-increment fields because when you would add
data to them they would all try to start back at 1. If support ends up
saying that there is no hope with the LFH file, you might look at the
db2dart command, it allows you to read data directly from your containers
and dumps it out into export files for you.

Good Luck and sorry about those backups, sh-t happens.

"UDBDBA" <vi***********@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Hi:

Call IBM Support, they can patch the SQLOGCTL.LFH (Log Header file).
You can then bring the db online and export the data out, run db2look
and pretty much get everything out that you would need to recreate.

Because, IBM does NOT support a patched DB, you will need to drop this
DB and create a new one.

HTH

Vijay

Nov 12 '05 #5

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

Similar topics

2
by: Victor Lokhmatov | last post by:
Hello Everyone, My company has asked me to put a company directory on our intranet site and I'm trying to use php to extract the users from our active directory server. I've got everything...
2
by: Jay Chan | last post by:
We have just installed a SQL Server 2000 (SP 3A) onto a computer that has Windows-2003 Server on it. Now, we cannot get access to that database server from other computers. Seem like this may be an...
6
by: Tony G. | last post by:
Hi there, I have an APS 3 application, running on a Windows 2003 Web edition server - it is a very busy website, and when users are click on certain links (membership info), a new window i...
2
by: DB2 Convert | last post by:
Hi, I can't think of how data can be lost other than losing active logs and some of the archive logs Does anyone has a list of mishaps that can cause data in DB2 world go missing? I am...
3
by: Marc Eggenberger | last post by:
Hi there. I have the following environment: Active Directory running on Windows 2000. There is a root domain called ad.sys and within this root domain there are the following subdomains: ...
1
by: Roger Hembury | last post by:
Hi All, Hope you can help / point me in the right direction with a little problem. I have a VB6 created active X dll which is downloaded to the client using <object> </object> so that I can...
3
by: AlonR | last post by:
Hi, We're experiencing random user sessions losses on our web applications, and are researching for any useful information which may shed light on this problem. Environment: In our...
5
by: xoise | last post by:
Warning: mysql_connect() : Lost connection to MySQL server at 'reading initial communication packet', system error: 113 in /webs/sites/monetized.com/includes/mysql_connect.inc.php on line 2 Lost...
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?
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
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...

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.