If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > problem in relocating database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-06-08, 07:18
prashant44 prashant44 is offline
Registered User
 
Join Date: Feb 2008
Posts: 59
problem in relocating database

[db2 9.1 on SunOS.]
Hello,

I am trying to rename the db; also i want to change its location to different directory structure.

I am using "db2relocatedb" to do this & getting "<dir> could not be open" error.
See the steps which i followed:

1) made relo.cfg file with following containts:

DB_NAME=NEWDB,RELOC_DB
DB_PATH=/export/home/db2inst1/,/export/home/db2inst1/Relocated
INSTANCE=db2inst1,db2inst1


2) executed d cmd:

db2relocatedb -f relo.cfg

After this it throws following error:

DBT1006N The file/device "/export/home/db2inst1/Relocated/db2inst1/NODE0000/sqldbdir/sqldbdir" could not be opened.


I tried with creating this directory structure, still problem persist.

Even, i tried on WINDOWS m/c, here also it is giving the same message!!

I used reloc.cfg as follow on WINDOWS

DB_NAME=good,bad
DB_PATH=D:\,C:\
INSTANCE=db2,db2


Please suggest where i am going wrong?

Last edited by prashant44; 08-06-08 at 07:23.
Reply With Quote
  #2 (permalink)  
Old 08-06-08, 13:47
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
have you tried to do a simple restore with redirect
set container path
restore continue
see infodoc for details on redirected restore
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #3 (permalink)  
Old 08-07-08, 00:30
rahul_s80 rahul_s80 is offline
Registered User
 
Join Date: Jul 2006
Location: Pune , India
Posts: 433
i have used relocatedb many times to change name but same dbpath and it works fine in that case.
maybe this could be the reason bugging u
http://www.mydatabasesupport.com/for...b-trouble.html
__________________
Rahul Singh
Certified DB2 9 DBA / Application Developer
Reply With Quote
  #4 (permalink)  
Old 08-07-08, 07:25
prashant44 prashant44 is offline
Registered User
 
Join Date: Feb 2008
Posts: 59
Yes, i got it.

I am able to successfully change db name & its path.

Thanks for help.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On