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 > Few questions about db2relocatedb

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-29-09, 09:27
vilius vilius is offline
Registered User
 
Join Date: Nov 2007
Posts: 55
Few questions about db2relocatedb

Hi,

I need to move one container to another location and I want to use db2relocatedb. Have few questions:

What user should run command - db2 instance owner or root ?

DB2 instance should be stopped before running command ?

This is output from db snapshot:
Code:
              Database Snapshot

Database name                              = BWP
Database path                              = /db2/BWP/db2bwp/NODE0000/SQL00001/
Is /db2/BWP/db2bwp/NODE0000/SQL00001 value right for DB_PATH parameter ?


thans
Vilius
Reply With Quote
  #2 (permalink)  
Old 01-29-09, 09:39
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
1) yes, run as instance owner
2) Yes stop the instance first - also read the manual closely to see what must be done before running db2relocatedb
3) I am not sure but I think it is /db2/BWP Is db2bwp your instance owner?

Andy
Reply With Quote
  #3 (permalink)  
Old 01-29-09, 10:33
vilius vilius is offline
Registered User
 
Join Date: Nov 2007
Posts: 55
yes db2bwp is instance owner
Reply With Quote
  #4 (permalink)  
Old 01-29-09, 11:09
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
As Andy suggests, make sure you read the manual. This command is totally outside DB2 engine ... AFAIK, it updates some config files and does not do anything with the engine itself ...

If you are moving a container path, in theory, you can do with the database deactivated .. But, to be on the safer side, I would stop the instance.

I have used db2relocatedb successfully when the database was active. Of course, that was on dev and wouldn't do the same thing on prod.
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #5 (permalink)  
Old 01-29-09, 11:11
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
I think the database path will just be /db2/BWP
test it in a non-prod env.
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #6 (permalink)  
Old 01-29-09, 11:12
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Then I am fairly certain that I got the path correct. Things I strongly recommend on using db2relocatedb:

1) Read the manual thoroughly. Make sure you understand it inside and out.
2) Test what you want to do before trying it live.

Andy
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