
7-10 IBM Informix OnLine Database Server Administrator’s Guide
dbimport: Create a Database
Thestatements in theASCII schemafilethat createtables, views, andindexes
and grant privileges do so using the name of the person who originally
created the database. In this way, the original owner retains DBA privileges
for the database and is the owner of all the tables, indexes, and views. In
addition, whoever executes the dbimport command alsohas DBA privileges
for the database.
dbimport: Create a Database
The dbimport utility creates a database and loads it with data from input
ASCII filesgeneratedbydbexport.TheASCII filesconsistofaschemafilethat
isused to re-createthedatabaseand data filesthatcontainthe database data.
The dbimport utility can read the ASCII files from the following three
location options:
■ All input files are located on disk.
■ All input files are located on tape.
■ The schema file is located on disk, and the data files are located on
tape.
Refer to page 7-9 for more details about the contents and use of the schema
file generated by dbexport.
The dbimport utility supports the following create options for the new
database:
■ Create an ANSI-compliant database (includes unbuffered logging).
■ Start transaction logging for a database (unbuffered or buffered
logging).
■ Specify the dbspace where the database will reside.
The user who runs dbimport is granted DBA privilege on the newly created
database.
The dbimport process locks each table as it is being loaded and unlocks the
table when the loading is completed.
Komentarze do niniejszej Instrukcji