Home | Previous Page | Next Page   Data Migration Utilities > The dbexport and dbimport Utilities > Syntax of the dbexport Command >

Contents of the Schema File

The schema file contains the SQL statements that you need to re-create the exported database. You can edit the schema file to modify the schema of the database.

The schema file supports all Dynamic Server 10.0, 9.40, 9.30, and 9.2x data types.

If you use the -ss option, the schema file contains server-specific information, such as initial- and next-extent sizes, fragmentation information, lock mode, the dbspace where each table resides, the blobspace where each simple-large-object column resides, and the dbspace for smart large objects. The following information is not retained:

The statements in the schema file that create tables, views, indexes, partition-fragmented tables and indexes, roles, and grant privileges do so with the name of the user 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, the person who executes the dbimport command also has DBA privileges for the database.

The schema file that dbexport creates contains comments, enclosed in braces, with information about the number of rows, columns, and indexes in tables, and information about the unload files. The dbimport utility uses the information in these comments to load the database.

Warning:
Do not delete any comments in the schema file. It is strongly recommended that you do not change any existing comments or add any new comments, or the dbimport might abort or produce unpredictable results.

Note:
The number of rows should match in the unload file and the corresponding unload comment in the schema file. If you change the number of rows in the unload file but not the number of rows in the schema file, a mismatch occurs.

Tip:
If you delete rows from an unload file, update the comment in the schema file with the correct number of rows in the unload file. Then dbimport will be successful.
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]