4-62 IBM Informix OnLine Database Server Administrator’s Guide

Using dbexport and dbimport

Use LOAD or dbload to Populate the Tables

If you plan to use the LOAD statement to load data from anASCII file into a
table, load the data now.
Ifyou plan to use the dbload utility to load data, refer to page 7-21 for explicit
instructions for creating the command file and loading the data.
Using dbexport and dbimport
This section describes the steps you take when you migrate data using the
dbexportand dbimport utilities.
Refer topage 4-53 for an overview of this method. Refer topage 7-5 for
instructionsand syntax for dbexport. Refer to page 7-10 for instructions and
syntax fordbimport.
To ru n dbexport, you must be logged in as user informix or have DBA
privileges.
During the data export, OnLine attempts to lock the database in Exclusive
mode.If the lock can be obtained, users are unable to access data. If the lock
cannot be obtained, the program ends with a diagnostic message.
When you execute thedbexport command to export data from a database,
you specify the destination of the data and the.sql file of data definition
statements. You have the following options:
Write both data files and.sql file on tape.
Write both data files and.sql file on disk.
Write data files on tape and.sql file on disk.
These options enable you to place the.sql file on disk where it can be easily
edited if you wish to modify the SQL data definition statements that define
the database.