Database Utilities
ContentsOpens a new window
Opens a new window
Page 191 of 1018

Performing a Schema-Mode Import

Example 3-2Opens a new window shows a schema-mode import of the dump file set created in Example 2-4Opens a new window.

Example 3-2 Performing a Schema-Mode Import

> impdp hr SCHEMAS=hr DIRECTORY=dpump_dir1 DUMPFILE=expschema.dmp
 EXCLUDE=CONSTRAINT,REF_CONSTRAINT,INDEX TABLE_EXISTS_ACTION=REPLACE

The EXCLUDE parameter filters the metadata that is imported. For the given mode of import, all the objects contained within the source, and all their dependent objects, are included except those specified in an EXCLUDE statement. If an object is excluded, then all of its dependent objects are also excluded.The TABLE_EXISTS_ACTION=REPLACE parameter tells Import to drop the table if it already exists and to then re-create and load it using the dump file contents.

Previous PageOpens a new window
Page 191 of 1018
Next PageOpens a new window