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 > move db to another instance

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-10-11, 02:45
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
move db to another instance

Hi, I've got 1 instance serving 2 databases. (aix_5.3/db2_8.2 32bit). Memory management on a 32bit db2 on aix is ... let call it a challenge and one way to wring some extra memory to the bufferpools is to create an extra dedicated instance and move 1 of the databases to that other instance.
I know it can be done and it should be simple. I know I've read about it in the past, but now I get google-hits pointing to other directions (sanjai never shared how he did it Moving DB from one instance to another instance).
Anyone got a nice link on how to accomplish such a task and are there any pitfalls I should avoid?

Yes, I know but converting to v9 and/or 64bit is not an option right now

Last edited by dr_te_z; 02-10-11 at 02:50.
Reply With Quote
  #2 (permalink)  
Old 02-10-11, 08:00
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
You can allocate up to 2GB per database (db shared memory) in a 32-bit instance on AIX. It doesn't matter if 2 databases share one instance or are in separate instances.
Reply With Quote
  #3 (permalink)  
Old 02-10-11, 08:20
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by BELLO4KA View Post
You can allocate up to 2GB per database (db shared memory) in a 32-bit instance on AIX. It doesn't matter if 2 databases share one instance or are in separate instances.
Are you sure it's as simple as that? Memory belongs to a process, not a database, and all databases in one instance are managed by the database manager process of that instance...
Reply With Quote
  #4 (permalink)  
Old 02-10-11, 08:23
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
I remember the discussion we had before...
DB2 V9.5 - STMM errors


I believe each db shared memory can be up to 2GB in a 32-bit instance on AIX.
Reply With Quote
  #5 (permalink)  
Old 02-11-11, 05:50
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
There is more. It is all about a "db2 content manager" system wich uses the LS & RM databases (library server & resource manager). Because of the many connections I've enabled the connection concentrator. Fine for the LS, but not required for the RM. Another reason to split the 2.
It is not clear documented but this featuere seems to have effect on db2-sort behaviour (same effect as INTRA_PARALLEL). Suddenly I must take the possibility of "shared sorts" into account . After the split I can ignore the shared-sort config for the RM db again.
Reply With Quote
  #6 (permalink)  
Old 02-11-11, 12:08
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
If you want to move it to another instance, then you can use backup/restore or db2relocatedb:
The db2relocatedb tool
Reply With Quote
  #7 (permalink)  
Old 02-22-11, 03:40
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
I am writing my "plan of approch" now and I want to use the db2relocatedb tool. I wonder who should execute this command?
- root?
- the current instance owner?
- the new instance owner?
Reply With Quote
  #8 (permalink)  
Old 02-22-11, 03:51
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Quote:
Originally Posted by dr_te_z View Post
I am writing my "plan of approch" now and I want to use the db2relocatedb tool. I wonder who should execute this command?
- root?
- the current instance owner?
- the new instance owner?
root copies/moves the files from the current location to the new location and changes ownership of the files to the new instance owner.

the new instance owner runs the db2relocate command to change the configuration files

HTH

Sathyaram
__________________
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