IBM 000-8697 Manual De Usuario
Utilities
7-13
Input File Location Options
You cannot use the -f option unless it was used when the schema file was
exported with the dbexport program. If you use -f, you typically use the
same command filename that you specified in the dbexport command. If you
specify only a filename, dbimport looks for the file in the .exp subdirectory
of either your current directory or the directory you specify with the -i
option.
exported with the dbexport program. If you use -f, you typically use the
same command filename that you specified in the dbexport command. If you
specify only a filename, dbimport looks for the file in the .exp subdirectory
of either your current directory or the directory you specify with the -i
option.
If you are importing from tape, you must use the same block size and tape
size that you used to export the database.
size that you used to export the database.
The following command imports the stores5 database from a tape with a
block size of 16 KB and a capacity of 24,000 KB. The schema file is read from
/tmp/stores5.imp
block size of 16 KB and a capacity of 24,000 KB. The schema file is read from
/tmp/stores5.imp
. The -c option directs dbimport to continue unless a fatal
error is detected.
dbimport -c
-t /dev/rmt0 -b 16 -s 24000 -f /tmp/stores5.imp stores5
The following command imports the stores5 database from the stores5.exp
directory under the /usr/informix/port directory. The schema file is
assumed to be /usr/informix/port/stores5.exp/stores5.sql.
directory under the /usr/informix/port directory. The schema file is
assumed to be /usr/informix/port/stores5.exp/stores5.sql.
dbimport -c -i /usr/informix/port stores5