Transport database to another system

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • crazyspider4u
    New Member
    • Mar 2008
    • 2

    Transport database to another system

    hello....
    i have created one database with 24 tables on my sytem and now i wanna transport it to another system....probl em is how to export it and how to import it another system


    please explain ....
  • sakumar9
    Recognized Expert New Member
    • Jan 2008
    • 127

    #2
    You can use db2move command to do this.

    Refer to this link for more details and examples:
    http://publib.boulder. ibm.com/infocenter....d oc/doc/r0002079.html

    Regards
    -- Sanjay

    Comment

    • sakumar9
      Recognized Expert New Member
      • Jan 2008
      • 127

      #3
      Some more links you might want to have a look:

      http://publib.boulder. ibm.com/infocenter/...dbobj.doc/doc/r0052064.html

      http://publib.boulder. ibm.com/infocenter/.../r0024482.html


      Regards
      -- Sanjay

      Comment

      • crazyspider4u
        New Member
        • Mar 2008
        • 2

        #4
        but the links refer to move command of pc which are connected but my pc's are nt connected ones in my college and other in my home...

        i created table in default user space...

        now i wanna transport it from my home pc to college pc how?

        Comment

        • db2dbdba
          New Member
          • Mar 2008
          • 19

          #5
          Originally posted by crazyspider4u
          but the links refer to move command of pc which are connected but my pc's are nt connected ones in my college and other in my home...

          i created table in default user space...

          now i wanna transport it from my home pc to college pc how?

          try db2look -db urdbaname -l -x -e -f -o filename.
          You can use this file to create database.
          But you first have to create a database with the same name in your home system.

          Comment

          • docdiesel
            Recognized Expert Contributor
            • Aug 2007
            • 297

            #6
            Hi,

            assuming that you and your colleague are both using a Windows PC, you could transport the database as backup file and restore it on the remote pc: Open a db2 command line windows (db2cmd) and make a backup on your pc. Perhaps you like to zip/compress the file with some tool before copying it to cd or usb stick - depending in its size. Then on the other pc just restore it from db2cmd window:

            Code:
            yourpc> db2 backup mydbname to c:\some\path\
            collpc> db2 restore db mydbname from x:\usb\stick\
            Regards,

            Bernd

            Comment

            • sakumar9
              Recognized Expert New Member
              • Jan 2008
              • 127

              #7
              Another possibility, if you can catalog your database (from one system to another), then you can use db2move utility.

              http://publib.boulder. ibm.com/infocenter/db2luw/v9r5/topic/...r0002079.htm l



              Regards
              -- Sanjay

              Comment

              Working...