{"id":62,"date":"2009-03-09T22:10:57","date_gmt":"2009-03-10T02:10:57","guid":{"rendered":"http:\/\/dbtricks.com\/?p=62"},"modified":"2009-03-09T22:15:15","modified_gmt":"2009-03-10T02:15:15","slug":"restart-data-pump-after-import-errors","status":"publish","type":"post","link":"https:\/\/dbtricks.com\/?p=62","title":{"rendered":"Restart Data Pump after import errors"},"content":{"rendered":"<p>When using Data Pump, you may encounter the following error:<br \/>\n<strong>ORA-39171: Job is experiencing a resumable wait.<\/strong><br \/>\nTogether with<\/p>\n<p><strong>ORA-01653: Unable to extend table %s.%s by %s in tablespace %s <\/strong><br \/>\nOr<br \/>\n<strong>ORA-01691\u00a0 unable to extend lob segment string.string by string in tablespace string<\/strong><br \/>\nBoth errors basically say that the table space you are using can not allocate more space. This could be because the datafile is full, the disk is full or autoextend is not set. This is simple to check by running the following query on DBA_DATA_FILE:<br \/>\n<strong>select *<br \/>\nfrom dba_data_files<br \/>\nwhere tablespace_name=&#8217;TABLESPACE_NAME&#8217;<br \/>\n<\/strong><br \/>\nThe bytes column will tell you how many bytes are used by Oracle in the tablespace. If AUTOEXTENSIBLE is set to NO, then Oracle will not extend the size of the tablespace.<\/p>\n<p>In many cases, the Data Pump import may seem to hang. Data Pump will try to continue after some time but unless something is changed, you will keep getting the above errors.<\/p>\n<p>The solution, however, is simple enough. All you need to do is use the Data Pump Restart Capability:<br \/>\n1)\u00a0\u00a0 \u00a0In the IMPDP window, click CTRL-C to stop the job.<br \/>\n2)\u00a0\u00a0 \u00a0In the command line type:<br \/>\n<strong>Import&gt; stop_job=immediate<\/strong><br \/>\n3)\u00a0\u00a0 \u00a0Use SQLPlus to make the required changes to the table space. You can:<\/p>\n<ol>\na)\u00a0\u00a0 \u00a0Add DataFile ALTER TABLESPACE &lt;tablespace name&gt; ADD DATAFILE &#8216;&lt;path to file name and\u00a0 file name&gt;&#8217; SIZE &lt;integer&gt;M;<\/p>\n<p>b)\u00a0\u00a0 \u00a0Resize the Datafile:<br \/>\nALTER DATABASE DATAFILE &#8216;&lt; path to file name and\u00a0 file name &gt;&#8217; RESIZE &lt;integer&gt;M;<br \/>\nc)\u00a0\u00a0 \u00a0 Enable autoextend:<br \/>\nALTER DATABASE DATAFILE &#8216;&lt; path to file name and\u00a0 file name &gt;&#8217; AUTOEXTEND ON MAXSIZE UNLIMITED;<\/ol>\n<p>4)\u00a0\u00a0 \u00a0Attach the Job.<br \/>\n&gt;<strong>impdp system\/manager attach=Job_Name<\/strong><br \/>\nIf you did not provide a specific job name when you first ran the IMPDP, Oracle will assign a default name for it. In order to find the System assigned name for the IMPDP job you can run the following query:<br \/>\n<strong> SELECT * FROM DBA_DATAPUMP_JOBS;<\/strong><br \/>\nThe result will probably be something like SYS_IMPORT_FULL_number.<br \/>\n5)\u00a0\u00a0 \u00a0 Restart the job<br \/>\n<strong>Import&gt; start_job<\/strong><br \/>\n6)\u00a0\u00a0 \u00a0You can check the status of the job by simply typing STATUS in the utility command prompt.<br \/>\n<strong> Import&gt; status<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When using Data Pump, you may encounter the following error: ORA-39171: Job is experiencing a resumable wait. Together with ORA-01653: Unable to extend table %s.%s by %s in tablespace %s Or ORA-01691\u00a0 unable to extend lob segment string.string by string in tablespace string Both errors basically say that the table space you are using can [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[42,43,38,48,40,45,46,47,107],"class_list":["post-62","post","type-post","status-publish","format-standard","hentry","category-oracle","tag-data-pump","tag-expdp","tag-export","tag-impdb","tag-import","tag-ora-01653","tag-ora-01691","tag-ora-39171","tag-oracle"],"_links":{"self":[{"href":"https:\/\/dbtricks.com\/index.php?rest_route=\/wp\/v2\/posts\/62","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=62"}],"version-history":[{"count":2,"href":"https:\/\/dbtricks.com\/index.php?rest_route=\/wp\/v2\/posts\/62\/revisions"}],"predecessor-version":[{"id":64,"href":"https:\/\/dbtricks.com\/index.php?rest_route=\/wp\/v2\/posts\/62\/revisions\/64"}],"wp:attachment":[{"href":"https:\/\/dbtricks.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=62"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dbtricks.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=62"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dbtricks.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=62"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}