I used expdp with a parfile with below content to export a database. Idea was to export the entire database, excluding system created schemas.
full=y
exclude=schema:"in ('SYS','SYSTEM','CTXSYS','DBSFWUSER','DBSNMP','DIP','DVF','DVSYS','GGSYS','GSMADMIN_INTERNAL','GSMCATUSER','GSMUSER','LBACSYS','MDDATA','MDSYS','OJVMSYS','OLAPSYS','ORACLE_OCM','ORDDATA','ORDPLUGINS','ORDSYS','OUTLN','PDBUSER','REMOTE_SCHEDULER_AGENT','SI_INFORMTN_SCHEMA','SYS$UMF','SYSBACKUP','SYSDG','SYSKM','SYSRAC','WMSYS','XDB','XS$NULL')"
exclude=statistics
flashback_time=systimestamp
parallel=16
exclude=table_data:"in (select table_name from schema1.exclude_res)"
exclude=table_data:"in ('TABLE_XYZ','TABLE_ABC')"
But, when the dump was being exported, I could see table data from excluded schemas also being exported.
. . exported "WMSYS"."E$UDTRIG_INFO$" 8.117 KB 0 rows
. . exported "WMSYS"."E$VT_ERRORS_TABLE$" 6.812 KB 0 rows
. . exported "LBACSYS"."OLS_DP$OLS$PROG" 6.312 KB 0 rows
. . exported "AUDSYS"."AMGT$DP$AUD$UNIFIED":"AUD_UNIFIED_P0" 50.95 KB 0 rows
. . exported "AUDSYS"."AMGT$DP$AUD$UNIFIED":"SYS_P201" 25.05 MB 23473 rows
. . exported "AUDSYS"."AMGT$DP$AUD$UNIFIED":"SYS_P241" 25.43 MB 42986 rows
Finally, I had to resort to a schema export with the list of 217 schemas.
Database version is 19c, running on Exadata in Oracle Cloud.