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

db2relocatedb trouble

Hi all,

I'm having trouble using the db2relocatedb command. I have to move a
database which was created under the db2inst1 user home dir, to a
separate partition. Following the instructions in the DB2 online
manuals, I have come up with the following config file for
db2relocatedb:

DB_NAME=IPI
DB_PATH=/db2home/db2inst1,/database
INSTANCE=db2inst1

When I execute db2relocatedb I get the following message:
[db2inst1@db2 db2inst1]$ db2relocatedb -f relocatedb.cfg
DBT1006N The file/device
"/database/db2inst1/NODE0000/sqldbdir/sqldbdir" could not be opened.

Can anyone tell what I'm doing wrong here?

BTW, I'm running DB2 UDB 8.1 on RedHat Linux 8.0

Thanks,
Ilja Booij
--
IC&S
Stadhouderslaan 57
3583 JD Utrecht
Nov 12 '05 #1
2 8173
The db2relocatedb command doesn't actually relocate any files or create any
directories. You need to create the database path directories yourself and
move the files over. Then run the db2relocatedb command to tell DB2 what
you did. When you create the directories make sure they are owned by the
instance user and the permissions match the old directory permissions.
"Ilja Booij" <il**@ilja-booijs-computer.local> wrote in message
news:slrnc0kupm.cnv.il**@ilja-booijs-computer.local...
Hi all,

I'm having trouble using the db2relocatedb command. I have to move a
database which was created under the db2inst1 user home dir, to a
separate partition. Following the instructions in the DB2 online
manuals, I have come up with the following config file for
db2relocatedb:

DB_NAME=IPI
DB_PATH=/db2home/db2inst1,/database
INSTANCE=db2inst1

When I execute db2relocatedb I get the following message:
[db2inst1@db2 db2inst1]$ db2relocatedb -f relocatedb.cfg
DBT1006N The file/device
"/database/db2inst1/NODE0000/sqldbdir/sqldbdir" could not be opened.

Can anyone tell what I'm doing wrong here?

BTW, I'm running DB2 UDB 8.1 on RedHat Linux 8.0

Thanks,
Ilja Booij
--
IC&S
Stadhouderslaan 57
3583 JD Utrecht

Nov 12 '05 #2
Hi,
(inline reply)
In article <wM******************@newssvr16.news.prodigy.com >, Bill wrote:
The db2relocatedb command doesn't actually relocate any files or create any
directories. You need to create the database path directories yourself and
move the files over. Then run the db2relocatedb command to tell DB2 what
you did. When you create the directories make sure they are owned by the
instance user and the permissions match the old directory permissions.


I was under the impression that db2relocatedb would do this for me :)
Your answer clears things up a lot, thanks!

Ilja
Nov 12 '05 #3

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

Similar topics

2
by: James | last post by:
Hi I am having some trouble getting a asp page to load. Im a noob to the asp side. I have followed knowledege base Article 301305. I am running 2000 adv, IIS 5.0 I have the following...
4
by: Jacek Dziedzic | last post by:
Hi! First of all, I hope my problem is not too loosely tied to the "standard C++" that is the topic of this group. I have some code that exhibits a strange behaviour: on one computer, where I...
0
by: Paul C | last post by:
Hello, everybody. I am having trouble running some of the VS.NET samples, specifically the CarSelector web app, which is very simple. The symptom is that the web controls (drop down listboxes and...
0
by: Carmine | last post by:
Has anyone seen this error when using db2relocatedb? ERROR: Unable to open log control file. Thanks.
1
by: Jim Bancroft | last post by:
Hi everyone, I'm running into a problem with my ASP.Net application. I've just created a new aspx page which uses some new components of mine that inherit from ServicedComponent and are...
6
by: Daniel Walzenbach | last post by:
Hi, I have a web application which sometimes throws an “out of memory” exception. To get an idea what happens I traced some values using performance monitor and got the following values (for...
3
by: Olivier BESSON | last post by:
Hello, I have a web service of my own on a server (vb.net). I must declare it with SoapRpcMethod to be used with JAVA. This is a simple exemple method of my vb source : ...
2
by: JLupear | last post by:
I am having trouble with my code again, I had prepared a question and the code to upload, however I am having trouble posting it, are there limits to the amount of lines you can post? I split it...
0
by: mrchatgroup | last post by:
news from http://www.mrchat.net/myblog/myblog/small-accidents-mean-big-trouble-for-supercollider.html Small Accidents Mean Big Trouble for Supercollider Image Scientists expect startup...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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.