{"id":475,"date":"2024-03-06T17:16:28","date_gmt":"2024-03-06T21:16:28","guid":{"rendered":"https:\/\/dbtricks.com\/?p=475"},"modified":"2024-03-06T17:16:28","modified_gmt":"2024-03-06T21:16:28","slug":"short-reminder-why-impdp-hangs-on-a-specific-stage","status":"publish","type":"post","link":"https:\/\/dbtricks.com\/?p=475","title":{"rendered":"Short reminder: Why IMPDP hangs on a specific stage"},"content":{"rendered":"\n<p>If you are importing a dump file and the import simply hang on:<\/p>\n\n\n\n<p>Processing object type DATABASE_EXPORT\/SCHEMA\/PROCEDURE\/PROCEDURE <\/p>\n\n\n\n<p>or <\/p>\n\n\n\n<p>Processing object type DATABASE_EXPORT\/SCHEMA\/FUNCTION\/ALTER_FUNCTION<\/p>\n\n\n\n<p>or<\/p>\n\n\n\n<p>Processing object type DATABASE_EXPORT\/SCHEMA\/PROCEDURE\/ALTER_PROCEDURE<\/p>\n\n\n\n<p>or<\/p>\n\n\n\n<p>Processing object type DATABASE_EXPORT\/SCHEMA\/PACKAGE_BODIES\/PACKAGE\/PACKAGE_BODY<\/p>\n\n\n\n<p>or<\/p>\n\n\n\n<p>Processing object type DATABASE_EXPORT\/SCHEMA\/TABLE\/TRIGGER<\/p>\n\n\n\n<p>or<\/p>\n\n\n\n<p>Processing object type DATABASE_EXPORT\/SCHEMA\/MATERIALIZED_VIEW<\/p>\n\n\n\n<p>and so on,<\/p>\n\n\n\n<p>In my case, most of the time the reason is that there are dblinks inside these objects and the DATABASE LINKS are not working on the target machine.<\/p>\n\n\n\n<p>During the import, the database is trying to compile each objects but fails only after it gets a timeout for the connection. This could take even 2 minutes per object.<\/p>\n\n\n\n<p>One workaround could be to exclude these object upfront (many times they are invalid anyway in the source DB)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are importing a dump file and the import simply hang on: Processing object type DATABASE_EXPORT\/SCHEMA\/PROCEDURE\/PROCEDURE or Processing object type DATABASE_EXPORT\/SCHEMA\/FUNCTION\/ALTER_FUNCTION or Processing object type DATABASE_EXPORT\/SCHEMA\/PROCEDURE\/ALTER_PROCEDURE or Processing object type DATABASE_EXPORT\/SCHEMA\/PACKAGE_BODIES\/PACKAGE\/PACKAGE_BODY or Processing object type DATABASE_EXPORT\/SCHEMA\/TABLE\/TRIGGER or Processing object type DATABASE_EXPORT\/SCHEMA\/MATERIALIZED_VIEW and so on, In my case, most of the time the reason is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-475","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/dbtricks.com\/index.php?rest_route=\/wp\/v2\/posts\/475","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dbtricks.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dbtricks.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dbtricks.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dbtricks.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=475"}],"version-history":[{"count":1,"href":"https:\/\/dbtricks.com\/index.php?rest_route=\/wp\/v2\/posts\/475\/revisions"}],"predecessor-version":[{"id":476,"href":"https:\/\/dbtricks.com\/index.php?rest_route=\/wp\/v2\/posts\/475\/revisions\/476"}],"wp:attachment":[{"href":"https:\/\/dbtricks.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=475"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dbtricks.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=475"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dbtricks.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=475"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}