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 > Db2move

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-28-06, 12:01
sosdb sosdb is offline
Registered User
 
Join Date: Jan 2005
Posts: 13
Db2move

Hi .....

I have to move an a database ( name is DB1 ) from aix server to linux server.
I know that is is not possible by backup/restore but with the utility DB2MOVE.
Unfortunatly i have no experience with db2 someone could help me with the exact command that i have to lunch to move DB1 from aix to linux. ?? plse !!
On linux server i have installed DB2 and created the same instace name of th aix server, and i haven't creted non db ....

Thank you in advance for your help .....
Reply With Quote
  #2 (permalink)  
Old 08-28-06, 12:51
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
db2move

logon to aix with db2 instance owner, or root and su - to instance owner
get the db name : db2 list db directory
get tablespaces : db2 connect to dbname
db2 list tablespaces show detail
on linux logon the same and create database
db2 create db dbname on /fs/fs <<---- wherever the space is..
create the tablespaces if any needed
db2 create regular tablespace xxx <<--- see info center for syntax
on aix
db2move dbname export -sn schemaname
repeat for all schema
ftp all files created to linux in binary mode
db2 connect to dbname
db2move dbname import/load <-- depending if large table use load
for aal syntax detail see :
http://publib.boulder.ibm.com/infoce.../v8//index.jsp
__________________
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-28-06, 12:57
rahul_s80 rahul_s80 is offline
Registered User
 
Join Date: Jul 2006
Location: Pune , India
Posts: 433
for exporting data from DB1:

db2move mno EXPORT -u Abc -p pqr -tc T*
where mno is dbname
abc user , pqr password , T* tables starting with T

file will be created in current directory in ixf format.
move all the files to second Db :

edit in .lst if you want to change schema etc.
now run
db2move mno2 import -io REPLACE_CREATE -u xyz1 -p xyz2

i am not sure if indexes and constraints will also be created.
check it out
hope that helped..

--Rahul Singh
Reply With Quote
  #4 (permalink)  
Old 09-04-06, 04:13
sosdb sosdb is offline
Registered User
 
Join Date: Jan 2005
Posts: 13
Grazie

Thanks a lot for your support i resolved my problem .....

TNKS !!!!!!!!!!!!!!!!!!!!!!!!
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