Link to home
Start Free TrialLog in
Avatar of BrianGodfrey
BrianGodfrey

asked on

How do I DUMP a DB2 database?

I have some recent experience with MySQL, none with DB2.  We need to aquire a complete database from a client and re-create it on our own system.  The client's database system is DB2 and is on an AS/400 system.  In talking to the client's contact guy, we asked him to DUMP his database and send it to us so we could put it on our development system, but he wasn't sure what we meant.  I was under the impression that DB2 is SQL-compliant (if that's the right phrase).  If so, I would have thought that DUMP (and CREATE, when we get it) would work.  Is this guy just unaware of the DUMP command or is IBM's DB2 different?

If DUMP doesn't work, then can someone recommend a scheme which will work?  In the short term, we wish to install the database on a Linux server.  We can put DB2 on this system if necessary.  In that case, we'd just need to know the right way to ask the client to provide an image of his database to us.  We'd really rather not go this route if we can avoid it because we're on a very short timeline and the additional time to add DB2, set it up, learn the ins and outs, etc. will consume a lot of time.

Have I left anything out?

Thanks!

--Brian M. Godfrey
SOLUTION
Avatar of ghp7000
ghp7000

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of BrianGodfrey
BrianGodfrey

ASKER

A co-worker found this suggestion.  How does it sound?:

   db2look with the -e command will get the CREATE statements

   db2move automates exporting all the tables with one command

  I assume these are command line inputs.  Are they standard db2 commands?  We also got some advice on a third party solution, but our customer is strictly IBM and probably would not be interested.
SOLUTION
Avatar of Kent Olsen
Kent Olsen
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for your help ghp7000 and Kdo.  I'm really accepting the whole of the discussion rather than one particular answer.