Skip to Main Content

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, Sagar .

Asked: July 19, 2023 - 10:48 am UTC

Last updated: August 11, 2023 - 3:09 am UTC

Version: 12.1.0.2.0 (Standard Edition)

Viewed 1000+ times

You Asked

Oracle is in standard edition and cannot be changed.
Datapump export is performed for selected schema. Export takes approximately 1 hour and 20 minutes to complete.
Before a week the export would complete in just 20 minutes.
Database statistics are up to date. There is no fragmentation in database.
Database size is 231 Gb.

export log

Estimate in progress using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 90.43 GB
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
...
...
...
...
...
...
...
Job "SYSTEM"."SYS_EXPORT_SCHEMA_01" successfully completed at Sun Jul 16 08:38:13 2023 elapsed 0 01:20:34

and Connor said...

First thing to do is add:

LOGTIME=ALL METRICS=Y

to your export

This will put a timestamp/duration on every single component. That will tell you where the time is being lost at an object by object level.

If this does not yield a resolution, then please email the logfile to asktom_us@oracle.com with subject: "DataPump 9547835500346442596" and ping us in a comment.

Rating

  (1 rating)

We're not taking comments currently, so please try again later if you want to add a comment.

Comments

Dictionary stats

Daniel Overby Hansen, August 05, 2023 - 4:25 am UTC

Although you say that database statistics are up-to-date, does that include dictionary statistics as well? Data Pump does a lot of querying in the data dictionary and thus is sensitive to inaccurate statistics in the dictionary. I suggest gathering statistics on SYS and SYSTEM as suggested by Roy Swonger (Data Pump Vice President) on YouTube ( https://www.youtube.com/watch?v=CUHcKHx_YvA&t=2169s ).

begin
   dbms_stats.gather_schema_stats('SYS');
   dbms_stats.gather_schema_stats('SYSTEM');
end;

Connor McDonald
August 11, 2023 - 3:09 am UTC

thanks for stopping by Daniel

More to Explore

Data Pump

All of the database utilities including Data Pump are explained in the Utilities guide.