473,472 Members | 1,761 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Database lost - Help me

vj
I lost the database yesterday , due to some unknown reasons.
Please let me know , where can i find the history or log of the
activities which could have happened in my DB Server.

Please advice me.

Thanks.

Vj.

Nov 12 '05 #1
6 2025
For anyone to help you, you need to provide more info. Version of db2,
which platform ( win, unix, zos...), what type of env ( test, dev,
production...etc). And what was it doing before it was lost ? Who has
access to it, including DBADM access. Do you have backups ?

There is a backup history cmd in command line processor. Run ? on "list
history backup".

Nov 12 '05 #2
vj
I am working on the Db2 8.2 Version on Windows and its a testing
Environment.

I was not sure of the activities which has caused the DB Crash.

Nov 12 '05 #3
So what does "Database lost" mean? Exactly what is happening when you
perform what actions?

Larry Edelstein

vj wrote:
I am working on the Db2 8.2 Version on Windows and its a testing
Environment.

I was not sure of the activities which has caused the DB Crash.

Nov 12 '05 #4
Backups are there where you put them in the BACKUP command. Logs are where
you configured them to be, unless you archived them, when they're at the
archive target. Diagnostics that may show what went wrong are in the
db2diag.log in the instance subdirectory. All of this is in the
documentation.

[Well, your question is even vaguer!]

"vj" <vi***********@gmail.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
I lost the database yesterday , due to some unknown reasons.
Please let me know , where can i find the history or log of the
activities which could have happened in my DB Server.

Please advice me.

Thanks.

Vj.

Nov 12 '05 #5
other than the db2diag.log, you can also take a look at the event logs
(if you have any. they should be residing on the same directory as
db2diag.log). To format the event log, you may need to use the utility
like db2evmon??

history file would tell you info about backup and restore. db2 log
tells you database activity (which should not include information about
how a database is lost or crashed).

Nov 12 '05 #6
Well, let's see;
1) db2diag.log is in the DIAGPATH which is specified in your dbm cfg; that's
instance level and shouldn't be lost as it is not part of any db's. It's
owned by the instance.
2) event logs are db owned and should be found in the database path where
the db was created, in the db2event directory, (their name is 00000000.evt,
00000001.evt, ...) They are generated only if you ran event monitors and
did not specify a target path for the files. They have absolutely nothing to
do with the db's existence and behavior.
3) db2.log is generated by the install process (new or fixpacks). Mine is
20+ MB in size as I've kept it for a long time. It reports installation
events and would not tell you anything about the db "disappearing".
4) db2rhist.asc reports backup, restore, rollforward at the db or tblspc
level as well as all tablespace commands(create, alyter, quiesce, ...). It
also reports other stuff about db object usage but nothing about create or
drop of a db or its "appearance"!

Are you on Windows or ??
If on windows and you know the instance name (most likely DB2 if you did not
create your own).
On the drive where DB2 is installed there will be the following path:
X:\DB2\NODE0000\SQLDBDIR
There's a file with binary contents in there called SQLDBDIR, min looks like
this:
DB2 DIRECTORY
..............................................SES. ...........................D:\DB2................. ....SES
2SQL00001
plus a lot of binary junk I can't copy in the note.

It tells me that the SES database is in that path in SQL00001.
I now know it exists.

Try on a command line:
db2 uncatalog db <dbname>
db2 catalog db <dbname> on drive X where X is where you found your db.

If it comes back and tells you it did not find it, most likely, someone(?)
erased the actual directory and you are totally out of luck if you have no
backup.

HTH, Pierre.
--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
<jo***@yahoo.com> a écrit dans le message de news:
11**********************@g14g2000cwa.googlegroups. com...
other than the db2diag.log, you can also take a look at the event logs
(if you have any. they should be residing on the same directory as
db2diag.log). To format the event log, you may need to use the utility
like db2evmon??

history file would tell you info about backup and restore. db2 log
tells you database activity (which should not include information about
how a database is lost or crashed).


Nov 12 '05 #7

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

Similar topics

2
by: Joker7 | last post by:
I have a coldfusion database (cfm ) how can I display this in a ASP or html page Im lost now :-(( Regards Chris
34
by: yensao | last post by:
Hi, I have a hard time to understand difference and similarities between Relational database model and the Object-Oriented model. Can somebody help me with this? Thank you in advance. ...
2
by: Daven Thrice | last post by:
Hi, I've converted the tables from an old Access application to MySql format. I then linked the tables into access using MyODBC and everything works great (on my computer). For now, I want to...
3
by: William | last post by:
Hi I have an ASP.NET application that connects to an Access database. Everything works fine except for the Session object. Data in the session object is lost after I've made a call to the...
3
by: reageer | last post by:
Hi all, I have a design question: I have a bunch of users (name, address, zip, etc.). They are assigned a card with a specific id. The only thing unique is this card id, or probably the...
0
by: BerkshireGuy | last post by:
Has anyone come across a Lost and Found database to track a hotel's lost and found items? I would be curious to review a system of such. I've created one myself and have a question regarding...
5
by: mantrid | last post by:
Hello My web hosting company has lost my data due to the mysql software failing, it only affected those people using innoDB engine. I asked them why they didnt restore from a back up. They said...
8
by: mark_aok | last post by:
Hi all, I have a split database. Both the forms, and the tables are stored on a shared network drive (this is Access 2003). The users use the forms, and the tables on the network drive, there...
39
by: alex | last post by:
I've converted a latin1 database I have to utf8. The process has been: # mysqldump -u root -p --default-character-set=latin1 -c --insert-ignore --skip-set-charset mydb mydb.sql # iconv -f...
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
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...
1
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...
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.