Skip to Main Content

Database Software

Announcement

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!

Excluding Table from Full DB EXPDP

Veera90Aug 24 2017 — edited Aug 30 2017

Hi ..

I was trying to exclude a set of tables from my Full DB EXPDP backup job with the below script... But the set of tables which I intend to exclude are not getting excluded..

Can anyone help me with this... any help would be much appreciated..

Thanks in advance for your time and reply!!

This is the part of the shell script which does the expdp...

All of the variables are declared earlier in the shell script

${ORACLE_HOME}/bin/expdp \

directory=${EXP_PMP} \

FULL=Y \

dumpfile=${EXP_FILE}_%U \

COMPRESSION=ALL \

FILESIZE=92G \

logfile=${EXPDP_LOG} \

EXCLUDE=TABLE:\"IN \(SELECT TABLE_NAME FROM BKP_EXCLUDED_TABLES\)\" \

parallel=5 \

parfile=$BIN_DIR/expdp_full_${ORACLE_SID}.par

Here I have created a table SYS.BKP_EXCLUDED_TABLESĀ  where I have inserted the list of tables which I wish to exclude...

A sample o/p of the table...

SQL> select TABLE_NAME from bkp_excluded_tables;

TABLE_NAME

----------------------------------------

'ZZGVNGZVFDKRFEPNDUJZTDXYJBFKTP'

'ZZBTESDUFTEEZCBQBBEMZVWNXWVRZV'

..........

This post has been answered by Veera90 on Aug 30 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 27 2017
Added on Aug 24 2017
12 comments
10,521 views