Skip to Main Content

Oracle Database Discussions

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!

How to export table preferences with datapump

Andrew MarkiewiczMay 29 2020 — edited May 29 2020

Hello,

I have set a table preference to prevent a histogram from being created on a column.

exec dbms_stats.set_table_prefs(user, 'table', 'METHOD_OPT', 'FOR ALL COLUMNS SIZE AUTO, FOR COLUMNS SIZE 1 col_1');

Is there a way/parameter in datapump export to include this preference to import into another schema/database?

It does not seem to come across automatically with exported table statistics.

There is the DBMS_STATS.EXPORT_TABLE_PREFS() procedure to export that to a stats table but I was hoping for something encapsulated with the datapump export/import process.

Database version :12.1.0.2 Standard Edition

Thanks for any insight.

Andrew

Comments
Post Details
Added on May 29 2020
0 comments
233 views