How To Perform a Full Export And Exclude Certain Schemas Using The Data Pump API?
Last updated on DECEMBER 03, 2016
Applies to:Oracle Server - Enterprise Edition - Version: 10.2.0.1
Information in this document applies to any platform.
The next example demonstrates how to perform this operation.
In this example, you have the following environment, you have 20 schemas in your database:
SQL> select username from dba_users;
20 rows selected.
You want to export the entire database but want to exclude the SYSTEM and SCOTT only while using the DataPump API.
To perform this operation from the command line for the data pump export (expdp) looks like:
expdp system/passwd directory=DATA_PUMP_DIR dumpfile=EXPDAT%U.DMP FULL=y exclude=schema:\"IN \(\'SCOTT\',\'SYSTEM\')\"
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms