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

NEWLOGPATH and folder NODE000

Hello,

In DB2 UDB 9.1 and AIX 5.3, I want to have the logs for a database in
this folder:

/db2/logs/db1

For that we use:

db2 update db cfg for db1 using NEWLOGPATH using /db2/logs/db1

In the db2iag we can see the message that the path was successfuly
changed. After that we deactivate the db and reactive again.

The problem is that the folder is used but DB2 automaticly add the
folder NODE0000 under /db2/logs/db1.

Does anyone know how to prevent DB2 to create this NODE0000 folder an
leave the logs directly under /db2/logs/db1 ?

For information:
- Database logged LOGRETAIN RECOVERY
- Methode Archivagin LOGARCHMETH TSM
- FAILARCHPATH /db2/lostlogs
- USEREXIT OFF

Thanks in advance for your help
Sep 17 '08 #1
3 7111
Ian
jf****@gmail.com wrote:
Hello,

In DB2 UDB 9.1 and AIX 5.3, I want to have the logs for a database in
this folder:

/db2/logs/db1

For that we use:

db2 update db cfg for db1 using NEWLOGPATH using /db2/logs/db1

In the db2iag we can see the message that the path was successfuly
changed. After that we deactivate the db and reactive again.

The problem is that the folder is used but DB2 automaticly add the
folder NODE0000 under /db2/logs/db1.

Does anyone know how to prevent DB2 to create this NODE0000 folder an
leave the logs directly under /db2/logs/db1 ?
Unfortunately this is the way that DB2 works. I agree that it's
annoying.

The only way that I know that you can avoid this is by doing a restore,
and setting NEWLOGPATH in the restore command. You *might* also be able
to do it with db2relocatedb, but I'm not sure about that.


Sep 18 '08 #2
Does anyone know how to prevent DB2 to create this NODE0000 folder an
leave the logs directly under /db2/logs/db1 ?
I believe that even if you found a fix, that wouldn't do any good
because DB2 itself or some tool would assume that they are below
NODE0000/C000...../....

What about symlinks, would that help you?
Sep 18 '08 #3
I can only say: Hands off from symlinks inside DB2s internal
directories!
We went into quite a "nice" mess when doing this with tablespace
containers (SMS),
because DB2 internally resolved the "real" path, not the given one
with a symlink.
One thing was, the path with the link was listed but internally the
one with the real path was used!
The DB went to "damaged" and it was quite a thrill to clean this up...

I suggest NOT to do this just because of a simple directory name/
level...
On Sep 18, 7:08*pm, w.l.fisc...@googlemail.com wrote:
Does anyone know how to prevent DB2 to create this NODE0000 folder an
leave the logs directly under /db2/logs/db1 ?

I believe that even if you found a fix, that wouldn't do any good
because DB2 itself or some tool would assume that they are below
NODE0000/C000...../....

What about symlinks, would that help you?
Sep 24 '08 #4

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

Similar topics

13
by: jenny | last post by:
Hi, I am trying to find a VB way that would create a folder on all existing drives - the folder name would be the same on each drive. ie c:\backup, d:\backup, etc. But the folders would only be...
0
by: Jeff | last post by:
We upgraded an udb instance from 7.2 to 8.1 fp5. The instance has 6 databases on it. After the upgrade, we discoverd 4 of the databases' log paths went back to the default of...
0
by: John H. | last post by:
In effort to understand (Outlook) MAPI folder tree structure wrote simple linear code below to navigate tree. Successive "...Folders.GetNext()"'s return same folder at all levels of tree. What...
4
by: Dave Veeneman | last post by:
I'm puzzling over the best design for a Folder object. I have two basic domain objects; leat's call them an Apple and an Orange. The objects are maintained in separate hierarchies, and each...
8
by: vinesh | last post by:
I have sample Asp.Net Web Application project. Let me know how to keep the files related to this project (like the webform.aspx, WebForm1.aspx.vb, WebForm1.aspx.resx) in a separate folder within a...
9
by: Paul | last post by:
I'm trying to make get my app to delete all the files in a specified folder and all the files within the folders of the specified folder. e.g. Folder 1 contains three files (File1, File2, File3)...
2
by: tatemononai | last post by:
Ok, this is a very unique bug. I have only been able to find one other post related to this online, and everybody who responded misunderstood the problem. I am not trying to reference anything in...
17
by: rdemyan via AccessMonster.com | last post by:
With A2003, I'm having trouble accessing files in a folder on another computer where back-end files, update files, etc are located. Here's the scenario: 1) Computer #1 - A2003 2) Computer #2 -...
24
by: biganthony via AccessMonster.com | last post by:
Hi, I have the following code to select a folder and then delete it. I keep getting a Path/File error on the line that deletes the actual folder. The line before that line deletes the files in...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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?
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...

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.