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 > changing owner of an instance

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-17-05, 19:11
udbdb2 udbdb2 is offline
Registered User
 
Join Date: Nov 2003
Posts: 121
changing owner of an instance

Anyone has done that before please help to follow the correct procedure to do that so it should not break anything.
It will be greatly appreciated.

TIA.
Reply With Quote
  #2 (permalink)  
Old 02-17-05, 19:13
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
I would create a new instance and then use db2relocatedb to move the database from one instance to another ..

Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 02-17-05, 19:27
udbdb2 udbdb2 is offline
Registered User
 
Join Date: Nov 2003
Posts: 121
Isn't there any shorter way ?

Thanks for prompt reply Sathyaram!

Isn't there any other or shorter way as using db2relocate db needs a longer time to do and we do not have that bigger window to achieve that.

We want to consider all the options.

If you or anyone else have other options and if successfully done before please share your thoughts.

Thanks in Advance again!
Reply With Quote
  #4 (permalink)  
Old 02-17-05, 20:05
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Assuming you have enabled archival logging and have enough disk space ,
a) Create new instance
b) Online Backup database on old
c) Restore database on new, but leave rollforward pending
d) Apply logs from old to new continually, leaving the new in pending state
e) Stop the old instance
f) Get the latest logs and apply it on new, and rollforward complete

If you wish the clients to access the database without any changes to their config, then change the SVCENAME of the new instance to same as old ...

HTH
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #5 (permalink)  
Old 02-17-05, 21:32
udbdb2 udbdb2 is offline
Registered User
 
Join Date: Nov 2003
Posts: 121
Thanks..

This 'd be a great help.

Anything without creating second instance ??

Sorry .. just curious..

TIA.
Reply With Quote
  #6 (permalink)  
Old 02-17-05, 21:43
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
AFAIK, it is not possible
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
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