
Utilities 7-9
Contents of the Schema File
Contents of the Schema File
The .sql file contains the SQL statements needed to re-create the exported
database, as well as some additional ownership and privilege information.
The schema file does not retain all the information that might have been
included in the original statements used to create the database and tables.
The following information is omitted:
■ Initial and next extent values
■ Lock mode
■ Dbspace where the table should reside
■ Blobspace where a blob column should reside
■ Logging mode of the database, if there is one
Initialornextextent sizesarenotretainedinthe .sql filestatements.Ifyoudo
not edit the.sql file CREATE TABLE statements beforeyou run dbimport,the
tableswill be createdwith the defaultextentsizesof eight pages.Ifyou want
to change the extent sizes after the database is imported, use the ALTER
TABLE
statement.
Thelock mode ofthetableis not retainedinthe .sql filestatements.Ifyou do
not edit the.sql file CREATE TABLE statements beforeyou run dbimport,the
table will becreatedwiththe defaultlockmode, which is page-levellocking.
If you want to change the lock mode after the database is imported, use the
ALTER TABLE statement.
The logging mode is not retained in the .sql file. You can specify any one of
three options when you import the database using dbimport:
■ ANSI-compliant database with unbuffered logging
■ Unbuffered logging
■ Buffered logging
If you wantto changethe loggingmode ofthe databaseand donot specifya
logging option in the dbimport command line, you can make the change
from DB-Monitor after the database is imported. Refer to page 7-14 for more
details about starting logging from the dbimport command line.
Komentarze do niniejszej Instrukcji