For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!
Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.
exclude=SCHEMA:"IN('DBSNMP','..',....)"
Windows: D:\> expdp system/manager DIRECTORY=my_dir DUMPFILE=exp_tab.dmp LOGFILE=exp_tab.log SCHEMAS=scott INCLUDE=TABLE:\”IN (’EMP’, ‘DEP’)\” Unix: % expdp system/manager DIRECTORY=my_dir DUMPFILE=exp_tab.dmp LOGFILE=exp_tab.log SCHEMAS=scott INCLUDE=TABLE:\”IN \(\’EMP\’, \’DEP\’\)\”
This was useful for me - full import excluding any schema already present in a database:
impdp "'/ as sysdba'" full=y 'exclude=SCHEMA:"IN(select username from all_users)"'
I've used it to migrate database from 10.2 to freshly installed 11.2 database. This way it will ignore all system schemas like "DBSNMP", "DIP", "SYS", "SYSTEM" etc but recreate all users, tablespaces and schemas from old database.