My Oracle Support Banner

Correct Syntax To Exclude A Schema In Expdp. (Doc ID 742585.1)

Last updated on JANUARY 30, 2022

Applies to:

Oracle Database - Standard Edition - Version and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Backup Service - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Cloud Service - Version N/A and later
Information in this document applies to any platform.


NOTE: In the images and/or the document content below, the user information and environment data used represents fictitious data from the Oracle sample or bulit-in schema(s), Public Documentation delivered with an Oracle database product or other training material. Any similarity to actual environments, actual persons, living or dead, is purely coincidental and not intended in any manner.



You are trying to export all schemas but one. According to the admin guide you should be able to do this.

From the guide

Excluding Grants and Users

To exclude a specific user and all objects of that user, specify a filter such as the following
(where hr is the schema name of the user you want to exclude):


Trying this as detailed in the documentation throws the error:

$ expdp directory=<DIRECTORY> dumpfile=test.exp EXCLUDE=SCHEMA:"='<SCHEMA_NAME>'"
LRM-00116: syntax error at 'SCHEMA:' following '='


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.