@aniya.jaskolski
Exporting and importing table statistics in Oracle can be achieved through the use of the DBMS_STATS package. Here are the steps to export and import table statistics in Oracle:
Exporting table statistics:
1 2 3 4 5 6 7 8 9 |
BEGIN
DBMS_STATS.EXPORT_TABLE_STATS(
ownname => 'schema_name',
tabname => 'table_name',
stattab => 'statistics_table_name',
statid => 'statistics_id'
);
END;
/
|
Importing table statistics:
1 2 3 4 5 6 7 8 9 |
BEGIN
DBMS_STATS.IMPORT_TABLE_STATS(
ownname => 'schema_name',
tabname => 'table_name',
stattab => 'statistics_table_name',
statid => 'statistics_id'
);
END;
/
|
By following these steps, you can easily export and import table statistics in Oracle using the DBMS_STATS package.