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

Cleaning up after a crash

I have a new instalation that I am ironing out the wrinkles in. In the
process I have had a few crashes and now my SQLlib\DB2 Dir is full of
..0 and .000 files. What is the best way to clean up this Dir without
damaging anything permanatly?

Nov 12 '05 #1
13 2327
ja******@gmail.com wrote:
I have a new instalation that I am ironing out the wrinkles in. In the
process I have had a few crashes and now my SQLlib\DB2 Dir is full of
.0 and .000 files. What is the best way to clean up this Dir without
damaging anything permanatly?

Assuming youhave no intention to call support..
rm -rf (or the equivalent of Windows) does a great job :-)
You may want to back up the db2diag.log, eventlog etc...
Note that cleaning out the log files every so often is good house
keeping. (just rename them every 24 hours or so and archive away - cron
job).
DB2 will recreate the files when it finds them missing.

Cheers
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Nov 12 '05 #2
I am in a windows enviroinment. Im not sure what rm -rf means...

Nov 12 '05 #3
It means "del * /s"...but don't do that...on windows (unlike unix) the
default diagnostic path is shared with the dbm config file, and some
other important directories etc. I'd suggesting changing your diagnostic
paths to point to a different directory. If you want to remove all the
files from the directory, back them up first in case something goes
wrong...I think the only thing you'll need is the config file(db2sys*)
but I'm not 100% sure what's created by default in that path.

ja******@gmail.com wrote:
I am in a windows enviroinment. Im not sure what rm -rf means...

Nov 12 '05 #4
Ok so back up the Dir and delete the 0 and 000 files
do you remember where the diagnostic path is defined, in the db cfg or
dbm cfg?

Nov 12 '05 #5
Sean McKeough wrote:
It means "del * /s"...but don't do that...on windows (unlike unix) the
default diagnostic path is shared with the dbm config file, and some
other important directories etc.

Now that is just nasty...

--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Nov 12 '05 #6
But you told me to do it....

Nov 12 '05 #7
In the dbm cfg, look for DIAGPATH
HTH, Pierre

--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
<ja******@gmail.com> a écrit dans le message de news:
11**********************@g14g2000cwa.googlegroups. com...
Ok so back up the Dir and delete the 0 and 000 files
do you remember where the diagnostic path is defined, in the db cfg or
dbm cfg?


Nov 12 '05 #8
ja******@gmail.com wrote:
But you told me to do it....

Who believes what's on the internet....?

Sorry. Wasn't aware of this Windows special.

--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Nov 12 '05 #9
But you work for the IBM TORONTO LAB!!! Its your job to know.

Nov 12 '05 #10
ja******@gmail.com wrote:
But you work for the IBM TORONTO LAB!!! Its your job to know.

I'll start the pilgrimage to Canossa right away, just need to get some
rags from Loosers first.

Cheers
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Nov 12 '05 #11
Serge Rielau wrote:
I'll start the pilgrimage to Canossa right away, just need to get some
rags from Loosers first.


“Nach Canossa gehen wir nicht”

Jan M. Nelken (quoting Bismarck)
Nov 12 '05 #12
Back to the actual topic at hand, just to be clear i can delete the .0
and .000 files from this directory manualy with out causing issues?
Also if I change my diag path in the future if i run the db2 support
command the command will know where to get its info correct?

Nov 12 '05 #13
ja******@gmail.com wrote:
Back to the actual topic at hand, just to be clear i can delete the .0
and .000 files from this directory manualy with out causing issues?
Also if I change my diag path in the future if i run the db2 support
command the command will know where to get its info correct?


I thought Canossa was actual topic at hand. Back to the previous topic:

1. Yes - removing all *.trp, *.0* files won't cause any problems - assuming you
are not going to report this problem to IBM.

2. You change the diagnostic path by updating database manager configuration -
so db2support can find out where your diagnostic files are...

3. You may consider scheduled task executed daily/weekly (depending on growth
rate of db2diag.log) which renames db2diag.log to db2diag.yyyymmdd (Year Moth Day)
Jan M. Nelken

move

Nov 12 '05 #14

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

Similar topics

1
by: StinkFinger | last post by:
Hello all, After enabling sessions for my website I have approx. 785 files in my sessiondata folder. Now, I know what these are, however, I don't know when/how is the best way to clean them...
4
by: Jaans | last post by:
I have a problem that relates to running "cleanup" code when an application is forcibly ended using the "End Process" of "Task Manager" (Please note that this is very different from "End Task"...
10
by: fabio de francesco | last post by:
Hi what do you think of the following? Why are we permitted to do that? And why the C++ Library doesn't stop someone willing to perfom that assignement (*a = 20)? #include <iostream> ...
8
by: DKM | last post by:
Here are the source code files to a Java applet that utilizes LiveConnect to communicate with Javascript, and the HTML file. The thing works both in IE 6.0 and FireFox 1.4. but with some...
3
by: Pierre Saint-Jacques | last post by:
DB2 V8.2 has a new envir. var. DB2_USE_ALTERNATE_PAGE_CLEANING=YES The docs. mention that this will make DB2 ignore chngpgs_thresh and use softmax to even the rate of writing out of the bp's. ...
2
by: Brent | last post by:
I have just installed Office 2003 and Visual Studio Tools for Office 2003, including the Developer Extensions for Access. I kept my Access 2000/MOD installation intact (I hope), installed Access...
1
by: Mikey | last post by:
Do NativeWindows get destroyed when the app shuts down? While my app is running I can Spy++ and see my NativeWindow handle. After app shutdown it's no longer there. But this is confusing...
13
by: Thomas Neubauer | last post by:
Hello, i am learning c# and have created now a simple project that just creates 6 random numbers. My form includes a button and 6 labels for the random numbers. The program seems to work...
0
by: Now You Know | last post by:
Carpet Cleaners Los Angeles Home Carpet Rug Upholstery Cleaning Phone 1 310 925 1720 OR 1-818-386-1022 Local Call California Wide We offer carpet cleaning services such as; Steam Cleaning, Dry...
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,...
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.