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 > Help with db2move command

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-11-07, 19:47
new911 new911 is offline
Registered User
 
Join Date: Apr 2007
Posts: 1
Help with db2move command

Hi!
I am a new DB user and I am sorry for asking the easy questions.

I need help with db2 move. I was given a dir with db2move.lst file and other files in the same dir. I was told that I can execute db2move command with IMPORT action and to get the DB on my local server.
I cd to DB29\BIN> and typed db2move it gave me the list of options that I can use.
Then I typed db2move MYDB IMPORT c:\DIR\db2move.list.
It gave me an error that it is invalid and all options shuld be gin with "-". In short I was trying more options but I was not succesfull. I think that I am not using db2move.lst correctly.
Could someone give me an advise what I should do with thes db2move.lst.

The other question is if I have to create database before the import or it will be created during the import.

Thank you in advance.
Reply With Quote
  #2 (permalink)  
Old 04-11-07, 23:55
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
You must create the database first. It would be best if you create the tables first with the db2look command (run against the original database), but pull out the foreign key creates and run them after the db2move.

If the db2move.lst is in the same directory as the IXF files (it should be) and you execute the command from the same directory path, then you don't need to specify the file or path.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
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