{"id":6921,"date":"2016-01-18T21:39:14","date_gmt":"2016-01-18T20:39:14","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/datapump-processing-object-type-misleading-messages\/"},"modified":"2016-01-18T21:39:14","modified_gmt":"2016-01-18T20:39:14","slug":"datapump-processing-object-type-misleading-messages","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/datapump-processing-object-type-misleading-messages\/","title":{"rendered":"DataPump &#8216;Processing object type&#8217; misleading messages"},"content":{"rendered":"<h2>By Franck Pachot<\/h2>\n<p>.<br \/>\nYou&#8217;ve started a long DataPump and see it stuck on TABLE\/STATISTICS\/TABLE_STATISTICS, but you don&#8217;t expect that step to take a long time. Let&#8217;s see if we can rely on that message.<br \/>\n<!--more--><br \/>\nI&#8217;ve a 500MB table and export it. I&#8217;ll use the 12c LOGTIME option to print a timestamp in front of each output line:<\/p>\n<pre><code>\n18-JAN-16 21:35:44.038: Starting \"SOE\".\"SYS_EXPORT_TABLE_01\":  soe\/********@\/\/localhost\/SWINGBENCH tables=soe.DEMO directory=tmp status=1 logtime=all reuse_dumpfiles=y\n18-JAN-16 21:35:48.294: Processing object type TABLE_EXPORT\/TABLE\/TABLE\n18-JAN-16 21:35:48.687: Processing object type TABLE_EXPORT\/TABLE\/TABLE_DATA\n18-JAN-16 21:35:49.532: Processing object type TABLE_EXPORT\/TABLE\/INDEX\/INDEX\n18-JAN-16 21:35:49.849: Processing object type TABLE_EXPORT\/TABLE\/INDEX\/STATISTICS\/INDEX_STATISTICS\n18-JAN-16 21:35:50.242: Processing object type TABLE_EXPORT\/TABLE\/STATISTICS\/TABLE_STATISTICS\n18-JAN-16 21:35:54.779: . . exported \"SOE\".\"DEMO\"                                542.6 MB 5051504 rows\n18-JAN-16 21:35:55.257: Processing object type TABLE_EXPORT\/TABLE\/STATISTICS\/MARKER\n18-JAN-16 21:35:55.644: Master table \"SOE\".\"SYS_EXPORT_TABLE_01\" successfully loaded\/unloaded\n18-JAN-16 21:35:55.693: ******************************************************************************\n18-JAN-16 21:35:55.694: Dump file set for SOE.SYS_EXPORT_TABLE_01 is:\n18-JAN-16 21:35:55.697:   \/tmp\/expdat.dmp\n18-JAN-16 21:35:55.738: Job \"SOE\".\"SYS_EXPORT_TABLE_01\" successfully completed at Mon Jan 18 21:35:55 2016 elapsed 0 00:00:13\n<\/code><\/pre>\n<p>If you rely on the &#8216;Processing&#8217; messages, the export of table data takes 49.532 &#8211; 48.687 = 0.845 seconds. And exporting table statistics takes 55.257 &#8211; 50.242 = 5 seconds. Obviously, this is wrong.<\/p>\n<p>When you look at the &#8216;exported &#8230; rows&#8217; it seems that the export of table data was still running at that time.<\/p>\n<p>As you can see above, I&#8217;ve run the expdp with the STATUS=1 in order to display job status every 1 second.<\/p>\n<p>After the TABLE_EXPORT\/TABLE\/TABLE_DATA the worker was not executing:<\/p>\n<pre><code>\nWorker 1 Status:\n  Instance ID: 1\n  Instance name: CDB\n  Host name: VM117\n  Object start time: Monday, 18 January, 2016 21:35:48\n  Object status at: Monday, 18 January, 2016 21:35:48\n  Process Name: DW00\n  State: WORK WAITING\n<\/code><\/pre>\n<p>Then it changed to the state of EXECUTING for several seconds.<\/p>\n<p>Only at 21:35:51 we can see a status showing that it&#8217;s working on the table export, which is more than 1 second after the related &#8216;Processing&#8217; message:<\/p>\n<pre><code>\nWorker 1 Status:\n  Instance ID: 1\n  Instance name: CDB\n  Host name: VM117\n  Object start time: Monday, 18 January, 2016 21:35:51\n  Object status at: Monday, 18 January, 2016 21:35:51\n  Process Name: DW00\n  State: EXECUTING\n  Object Schema: SOE\n  Object Name: DEMO\n  Object Type: TABLE_EXPORT\/TABLE\/TABLE_DATA\n  Completed Objects: 1\n  Total Objects: 1\n  Completed Rows: 1,398,529\n  Worker Parallelism: 1\n<\/code><\/pre>\n<p>Then, the status displayed every seconds shows the same with an increasing number of rows until 21:35:54:<\/p>\n<pre><code>\nWorker 1 Status:\n  Instance ID: 1\n  Instance name: CDB\n  Host name: VM117\n  Access method: direct_path\n  Object start time: Monday, 18 January, 2016 21:35:51\n  Object status at: Monday, 18 January, 2016 21:35:54\n  Process Name: DW00\n  State: EXECUTING\n  Object Schema: SOE\n  Object Name: DEMO\n  Object Type: TABLE_EXPORT\/TABLE\/TABLE_DATA\n  Completed Objects: 1\n  Total Objects: 1\n  Completed Rows: 5,051,504\n  Completed Bytes: 569,032,224\n  Percent Done: 100\n  Worker Parallelism: 1\n<\/code><\/pre>\n<p>and this is where we get the message:<\/p>\n<pre><code>\n18-JAN-16 21:35:54.779: . . exported \"SOE\".\"DEMO\"                                542.6 MB 5051504 rows\n<\/code><\/pre>\n<p>Then we can see the following status which suggests that TABLE_EXPORT\/TABLE\/STATISTICS\/MARKER has started:<\/p>\n<pre><code>\nWorker 1 Status:\n  Instance ID: 1\n  Instance name: CDB\n  Host name: VM117\n  Object start time: Monday, 18 January, 2016 21:35:51\n  Object status at: Monday, 18 January, 2016 21:35:55\n  Process Name: DW00\n  State: EXECUTING\n  Object Schema: SYS\n  Object Type: TABLE_EXPORT\/TABLE\/STATISTICS\/MARKER\n  Worker Parallelism: 1\n<\/code><\/pre>\n<p>but we see the related &#8216;Processing&#8217; message only after it:<\/p>\n<pre><code>\n18-JAN-16 21:35:55.257: Processing object type TABLE_EXPORT\/TABLE\/STATISTICS\/MARKER\n<\/code><\/pre>\n<p>Strange to take 4 seconds on that step, and anyway the &#8216;Processing&#8230;&#8217; message comes at the end here. Actually, this step is waiting for the previous one to finish.<\/p>\n<p>My first conclusion here is that you should not rely on the &#8216;Processing&#8230;&#8217; messages to know what is currently running.<br \/>\nIf you&#8217;ve run expdp from your terminal, you can interrupt it with control-C and you have a CLI to control the worker processes. They are still running and you can see the status with STATUS and then continue to the previous mode with CONTINUE_CLIENT.<br \/>\nIf expdp is running in background, you can attach to the job and do the same.<br \/>\nRemember that DataPump is running through background jobs, which explains that the &#8216;Processing&#8217; message may not be in sync with what is currently processed. <\/p>\n<p>So, the &#8216;LOGTIME&#8217; option a bit useless when it puts the timestamp in front the &#8216;Processing&#8217; messages. However, it&#8217;s useful for the &#8216;exported&#8217; message as it is the end of the table export.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By Franck Pachot . You&#8217;ve started a long DataPump and see it stuck on TABLE\/STATISTICS\/TABLE_STATISTICS, but you don&#8217;t expect that step to take a long time. Let&#8217;s see if we can rely on that message.<\/p>\n","protected":false},"author":27,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[229],"tags":[734,96],"type_dbi":[],"class_list":["post-6921","post","type-post","status-publish","format-standard","hentry","category-database-administration-monitoring","tag-datapump","tag-oracle"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>DataPump &#039;Processing object type&#039; misleading messages - dbi Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/datapump-processing-object-type-misleading-messages\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"DataPump &#039;Processing object type&#039; misleading messages\" \/>\n<meta property=\"og:description\" content=\"By Franck Pachot . You&#8217;ve started a long DataPump and see it stuck on TABLE\/STATISTICS\/TABLE_STATISTICS, but you don&#8217;t expect that step to take a long time. Let&#8217;s see if we can rely on that message.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/datapump-processing-object-type-misleading-messages\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2016-01-18T20:39:14+00:00\" \/>\n<meta name=\"author\" content=\"Oracle Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Oracle Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/datapump-processing-object-type-misleading-messages\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/datapump-processing-object-type-misleading-messages\/\"},\"author\":{\"name\":\"Oracle Team\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee\"},\"headline\":\"DataPump &#8216;Processing object type&#8217; misleading messages\",\"datePublished\":\"2016-01-18T20:39:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/datapump-processing-object-type-misleading-messages\/\"},\"wordCount\":407,\"commentCount\":0,\"keywords\":[\"DataPump\",\"Oracle\"],\"articleSection\":[\"Database Administration &amp; Monitoring\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/datapump-processing-object-type-misleading-messages\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/datapump-processing-object-type-misleading-messages\/\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/datapump-processing-object-type-misleading-messages\/\",\"name\":\"DataPump 'Processing object type' misleading messages - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\"},\"datePublished\":\"2016-01-18T20:39:14+00:00\",\"author\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/datapump-processing-object-type-misleading-messages\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/datapump-processing-object-type-misleading-messages\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/datapump-processing-object-type-misleading-messages\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/www.dbi-services.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"DataPump &#8216;Processing object type&#8217; misleading messages\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/\",\"name\":\"dbi Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee\",\"name\":\"Oracle Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g\",\"caption\":\"Oracle Team\"},\"url\":\"https:\/\/www.dbi-services.com\/blog\/author\/oracle-team\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"DataPump 'Processing object type' misleading messages - dbi Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/datapump-processing-object-type-misleading-messages\/","og_locale":"en_US","og_type":"article","og_title":"DataPump 'Processing object type' misleading messages","og_description":"By Franck Pachot . You&#8217;ve started a long DataPump and see it stuck on TABLE\/STATISTICS\/TABLE_STATISTICS, but you don&#8217;t expect that step to take a long time. Let&#8217;s see if we can rely on that message.","og_url":"https:\/\/www.dbi-services.com\/blog\/datapump-processing-object-type-misleading-messages\/","og_site_name":"dbi Blog","article_published_time":"2016-01-18T20:39:14+00:00","author":"Oracle Team","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Oracle Team","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/datapump-processing-object-type-misleading-messages\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/datapump-processing-object-type-misleading-messages\/"},"author":{"name":"Oracle Team","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee"},"headline":"DataPump &#8216;Processing object type&#8217; misleading messages","datePublished":"2016-01-18T20:39:14+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/datapump-processing-object-type-misleading-messages\/"},"wordCount":407,"commentCount":0,"keywords":["DataPump","Oracle"],"articleSection":["Database Administration &amp; Monitoring"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/datapump-processing-object-type-misleading-messages\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/datapump-processing-object-type-misleading-messages\/","url":"https:\/\/www.dbi-services.com\/blog\/datapump-processing-object-type-misleading-messages\/","name":"DataPump 'Processing object type' misleading messages - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"datePublished":"2016-01-18T20:39:14+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee"},"breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/datapump-processing-object-type-misleading-messages\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/datapump-processing-object-type-misleading-messages\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/datapump-processing-object-type-misleading-messages\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"DataPump &#8216;Processing object type&#8217; misleading messages"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee","name":"Oracle Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g","caption":"Oracle Team"},"url":"https:\/\/www.dbi-services.com\/blog\/author\/oracle-team\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/6921","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=6921"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/6921\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=6921"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=6921"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=6921"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=6921"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}