What is the easiest way to copy a database from one Informix IDS 11 Server to another

pauliephonic picture pauliephonic · Sep 9, 2008 · Viewed 7.9k times · Source

The source database is quite large. The target database doesn't grow automatically. They are on different machines.

I'm coming from a MS SQL Server, MySQL background and IDS11 seems overly complex (I am sure, with good reason).

Answer

Simon picture Simon · Sep 10, 2008

One way to move data from one server to another is to backup the database using the dbexport command.

Then after copying the backup files to the destination server run the dbimport command.

To create a new database you need to create the DBSpace for the new database using the onmonitor tool, at this point you could use the existing files from the other server.

You will then need to create the database on the destination server using the dbaccess tool. The dbaccess tool has a database option that allows you to create a database. When creating the database you specify what DBSpace to use.

The source database may be made up of many chunks which you will also need to copy and attach to the new database.