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 > Can port AIX DB2 database to Red Hat DB2?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-09-09, 15:16
jazztune jazztune is offline
Registered User
 
Join Date: Jun 2009
Posts: 2
Can port AIX DB2 database to Red Hat DB2?

Hi All

Do you know how to port an AIX DB2 database to an install of DB2 on Red Hat Enterprise 4?

Thank you

Jazz
Reply With Quote
  #2 (permalink)  
Old 06-09-09, 16:22
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Use db2look to reproduce the database structure, then use db2move to transfer the data.
Reply With Quote
  #3 (permalink)  
Old 06-15-09, 13:42
jazztune jazztune is offline
Registered User
 
Join Date: Jun 2009
Posts: 2
Thanks, Nick.

Quick question (I'm a newbie). Do you run the db2look on the source database server or the destination server? Same question for the Db2move.

Thanks again
Reply With Quote
  #4 (permalink)  
Old 06-15-09, 13:53
Cougar8000 Cougar8000 is offline
Registered User
 
Join Date: Nov 2005
Location: IL
Posts: 554
Jazz,

Get the manual. Those are some basic questions that you can find answers by your self faster.

IBM - DB2 Version 9.5 for Linux, UNIX and Windows English manuals

Both of those are done on the source. db2move can be used on the target, but only after having it done on the source.
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows

DB2 v9.1.0.2 os 5.3.0.0
Reply With Quote
  #5 (permalink)  
Old 06-15-09, 15:45
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
Quote:
Originally Posted by jazztune
Do you run the db2look on the source database server or the destination server?
db2look is executed on the source and will produce the whole schema in DDL format which can by executed on the target. I advice you to cut this in 2 halves. The upper part contains the "create table" and "create index" statements. The lower halve contian all the "foreign key constraints". So:
- run the upper part (i.e.import the schema)
- load all the data (do not matter in which sequence)
- run the lower part: this process will also check your data transfer.

Ready! Your data is transferred and checked.

This way of work will give you the oppertunity to check if you are still happy with your tablespace/bufferpool configuration(why not automatic storage for all you tables) This will be an unique oppertunity to make some changes by editing the "upper half" of your schema file.
Reply With Quote
  #6 (permalink)  
Old 06-16-09, 04:34
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
As an alternative to db2move, you can use federation and create nicknames on the new db to point to the tables in the source db. Then use Load with cursor.

Cheers
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