
{"id":2525,"date":"2022-12-16T09:29:47","date_gmt":"2022-12-16T01:29:47","guid":{"rendered":"http:\/\/dba.qishuo.xin\/?p=2525"},"modified":"2022-12-16T17:02:26","modified_gmt":"2022-12-16T09:02:26","slug":"ora-56920-a-prepare-or-upgrade-window-or-an-on-demand-or-datapump-job-loading-of-a-secondary-time-zone-data-file-is-in-an-active-state","status":"publish","type":"post","link":"http:\/\/dba.qishuo.xin\/?p=2525","title":{"rendered":"ORA-56920: a prepare or upgrade window or an on-demand or datapump-job loading of a secondary time zone data file is in an active state"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_76 ez-toc-wrap-right counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<label for=\"ez-toc-cssicon-toggle-item-6a020b8f9b862\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a020b8f9b862\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"http:\/\/dba.qishuo.xin\/?p=2525\/#1_%E9%97%AE%E9%A2%98%E7%AE%80%E8%BF%B0\" >1. \u95ee\u9898\u7b80\u8ff0<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"http:\/\/dba.qishuo.xin\/?p=2525\/#2_%E6%8A%A5%E9%94%99%E4%BF%A1%E6%81%AF\" >2. \u62a5\u9519\u4fe1\u606f<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"http:\/\/dba.qishuo.xin\/?p=2525\/#21_%E6%8A%A5%E9%94%99%E5%86%85%E5%AE%B9\" >2.1. \u62a5\u9519\u5185\u5bb9<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"http:\/\/dba.qishuo.xin\/?p=2525\/#22_%E6%8A%A5%E9%94%99%E6%88%AA%E5%9B%BE\" >2.2. \u62a5\u9519\u622a\u56fe<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"http:\/\/dba.qishuo.xin\/?p=2525\/#3_%E9%97%AE%E9%A2%98%E5%88%86%E6%9E%90\" >3. \u95ee\u9898\u5206\u6790<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"http:\/\/dba.qishuo.xin\/?p=2525\/#31_%E9%94%99%E8%AF%AF%E8%A7%A3%E9%87%8A\" >3.1. \u9519\u8bef\u89e3\u91ca<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"http:\/\/dba.qishuo.xin\/?p=2525\/#32_%E5%88%86%E6%9E%90%E9%97%AE%E9%A2%98\" >3.2. \u5206\u6790\u95ee\u9898<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"http:\/\/dba.qishuo.xin\/?p=2525\/#4_%E9%97%AE%E9%A2%98%E8%A7%A3%E5%86%B3\" >4. \u95ee\u9898\u89e3\u51b3<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"http:\/\/dba.qishuo.xin\/?p=2525\/#5_%E9%97%AE%E9%A2%98%E6%80%BB%E7%BB%93\" >5. \u95ee\u9898\u603b\u7ed3<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"http:\/\/dba.qishuo.xin\/?p=2525\/#6_%E5%85%B6%E4%BB%96%E6%8B%93%E5%B1%95%E7%9F%A5%E8%AF%86\" >6. \u5176\u4ed6\u62d3\u5c55\u77e5\u8bc6<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"http:\/\/dba.qishuo.xin\/?p=2525\/#%E9%99%84%E5%BD%95\" >\u9644\u5f55<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"http:\/\/dba.qishuo.xin\/?p=2525\/#%E9%99%84%E5%BD%95A_%E7%9B%B8%E5%85%B3%E8%81%94%E7%9A%84%E6%96%87%E7%AB%A0\" >\u9644\u5f55A. \u76f8\u5173\u8054\u7684\u6587\u7ae0<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"http:\/\/dba.qishuo.xin\/?p=2525\/#%E9%99%84%E5%BD%95B_%E5%85%B6%E4%BB%96%E5%8F%82%E8%80%83\" >\u9644\u5f55B. \u5176\u4ed6\u53c2\u8003<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"1_%E9%97%AE%E9%A2%98%E7%AE%80%E8%BF%B0\"><\/span>1. \u95ee\u9898\u7b80\u8ff0<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><strong>\u5c0611g\u6570\u636e\u5e93\u7684expdp\u5bfc\u51fa\u6587\u4ef6\u5bfc\u5165\u523019c\u7684PDB\u6570\u636e\u5e93\u4e2d\uff0c\u6267\u884cimpdp\u547d\u4ee4\u65f6\u62a5\u9519\u3002<\/strong><\/p>\n<h3><span class=\"ez-toc-section\" id=\"2_%E6%8A%A5%E9%94%99%E4%BF%A1%E6%81%AF\"><\/span>2. \u62a5\u9519\u4fe1\u606f<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"21_%E6%8A%A5%E9%94%99%E5%86%85%E5%AE%B9\"><\/span>2.1. \u62a5\u9519\u5185\u5bb9<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<pre><code>ORA-39006: internal error\nORA-39065: unexpected master process exception in DISPATCH\nORA-56920: a prepare or upgrade window or an on-demand or datapump-job loading of a secondary time zone data file is in an active state\nORA-06512: at &quot;SYS.DBMS_DST&quot;, line 1864\nORA-06512: at &quot;SYS.DBMS_SYS_ERROR&quot;, line 79\nORA-06512: at &quot;SYS.DBMS_DST&quot;, line 1788\nORA-06512: at &quot;SYS.KUPM$MCP&quot;, line 20451\nORA-06512: at &quot;SYS.KUPM$MCP&quot;, line 13058\nORA-06512: at &quot;SYS.KUPM$MCP&quot;, line 12434\nORA-06512: at &quot;SYS.KUPM$MCP&quot;, line 15078\nORA-06512: at &quot;SYS.KUPM$MCP&quot;, line 10314\nORA-39097: Data Pump job encountered unexpected error -56920<\/code><\/pre>\n<h4><span class=\"ez-toc-section\" id=\"22_%E6%8A%A5%E9%94%99%E6%88%AA%E5%9B%BE\"><\/span>2.2. \u62a5\u9519\u622a\u56fe<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p><a href=\"http:\/\/dba.qishuo.xin\/wp-content\/uploads\/2022\/12\/image-1671152952133.png\" data-fancybox=\"images\" data-fancybox=\"images\"><img decoding=\"async\" src=\"http:\/\/dba.qishuo.xin\/wp-content\/uploads\/2022\/12\/image-1671152952133.png\" alt=\"file\" \/><\/a><\/p>\n<h3><span class=\"ez-toc-section\" id=\"3_%E9%97%AE%E9%A2%98%E5%88%86%E6%9E%90\"><\/span>3. \u95ee\u9898\u5206\u6790<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"31_%E9%94%99%E8%AF%AF%E8%A7%A3%E9%87%8A\"><\/span>3.1. \u9519\u8bef\u89e3\u91ca<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ul>\n<li>\u82f1\u6587<\/li>\n<\/ul>\n<pre><code class=\"language-shell\">[user:oracle]$ oerr ora 56920\n56920, 00000, &quot;a prepare or upgrade window or an on-demand or datapump-job loading of a secondary time zone data file is in an active state&quot;\n\/\/ *Cause: A prepare or upgrade window was started or an on-demand or\n\/\/         datapump-job loading of a secondary time zone data file was done.\n\/\/ *Action: Make sure there is no active prepare or upgrade window and no\n\/\/          active on-demand or datapump-job loading of a secondary time zone\n\/\/          data file.\n\/\/<\/code><\/pre>\n<ul>\n<li>\u4e2d\u6587<\/li>\n<\/ul>\n<pre><code>\u6570\u636e\u5e93: 19c \u53d1\u5e03 1\n\u9519\u8bef\u4ee3\u7801: ORA-56920\n\u63cf\u8ff0: \u51c6\u5907\u6216\u5347\u7ea7\u7a97\u53e3\u5904\u4e8e\u6d3b\u52a8\u72b6\u6001, \u6216\u8005\u6b21\u7ea7\u65f6\u533a\u6570\u636e\u6587\u4ef6\u7684\u6309\u9700\u6216\u6570\u636e\u6cf5\u4f5c\u4e1a\u52a0\u8f7d\u5904\u4e8e\u6d3b\u52a8\u72b6\u6001\n\u539f\u56e0: \u542f\u52a8\u4e86\u51c6\u5907\u6216\u5347\u7ea7\u7a97\u53e3\uff0c\u6216\u8005\u5b8c\u6210\u4e86\u7b2c\u4e8c\u65f6\u533a\u6570\u636e\u6587\u4ef6\u7684\u6309\u9700\u6216datapump-job\u52a0\u8f7d\u3002\n\u52a8\u4f5c: \u786e\u4fdd\u6ca1\u6709\u6d3b\u52a8\u7684\u201c\u51c6\u5907\u6216\u5347\u7ea7\u201d\u7a97\u53e3\uff0c\u4e5f\u6ca1\u6709\u6d3b\u52a8\u7684\u6309\u9700\u52a0\u8f7d\u6216\u8f85\u52a9\u65f6\u533a\u6570\u636e\u6587\u4ef6\u7684datapump-job\u52a0\u8f7d\u3002<\/code><\/pre>\n<h4><span class=\"ez-toc-section\" id=\"32_%E5%88%86%E6%9E%90%E9%97%AE%E9%A2%98\"><\/span>3.2. \u5206\u6790\u95ee\u9898<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p><strong><span style='color:purple'>\u6211\u5728\u5bf9PDB\u6570\u636e\u5e93\u6267\u884c TSTZ \u65f6\u533a\u7684\u5347\u7ea7\u540e\uff0c\u6ca1\u6709\u7ed3\u675f\u5347\u7ea7\uff0c\u5bfc\u81f4\u4e0a\u8ff0\u62a5\u9519\u3002<\/span><\/strong><\/p>\n<p>\u8bf7\u53c2\u8003\uff1a<a target=\"_blank\" href=\"http:\/\/dba.qishuo.xin\/?p=2466\" title=\"ORA-39405: Oracle Data Pump does not support importing from a source database with TSTZ version 36\">ORA-39405: Oracle Data Pump does not support importing from a source database with TSTZ version 36<\/a><\/p>\n<h3><span class=\"ez-toc-section\" id=\"4_%E9%97%AE%E9%A2%98%E8%A7%A3%E5%86%B3\"><\/span>4. \u95ee\u9898\u89e3\u51b3<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style='color:red'>\u8c03\u7528\u5b58\u50a8\u8fc7\u7a0b\u7ed3\u675f\u5347\u7ea7\uff1a<\/span><\/p>\n<pre><code class=\"language-sql\">SQL&gt;\nSQL&gt;\nSET SERVEROUTPUT ON\nDECLARE\n  l_failures   PLS_INTEGER;\nBEGIN\n  DBMS_DST.upgrade_database(l_failures);\n  DBMS_OUTPUT.put_line(&#039;DBMS_DST.upgrade_database : l_failures=&#039; || l_failures);\n  DBMS_DST.end_upgrade(l_failures);\n  DBMS_OUTPUT.put_line(&#039;DBMS_DST.end_upgrade : l_failures=&#039; || l_failures);\nEND;\n\/<\/code><\/pre>\n<p><a href=\"http:\/\/dba.qishuo.xin\/wp-content\/uploads\/2022\/12\/image-1671153855133.png\" data-fancybox=\"images\" data-fancybox=\"images\"><img decoding=\"async\" src=\"http:\/\/dba.qishuo.xin\/wp-content\/uploads\/2022\/12\/image-1671153855133.png\" alt=\"file\" \/><\/a><\/p>\n<h3><span class=\"ez-toc-section\" id=\"5_%E9%97%AE%E9%A2%98%E6%80%BB%E7%BB%93\"><\/span>5. \u95ee\u9898\u603b\u7ed3<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u5728\u64cd\u4f5c\u65f6\u8981\u4e25\u683c\u6309\u7167\u6587\u6863\u7684\u6b65\u9aa4\u6267\u884c\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"6_%E5%85%B6%E4%BB%96%E6%8B%93%E5%B1%95%E7%9F%A5%E8%AF%86\"><\/span>6. \u5176\u4ed6\u62d3\u5c55\u77e5\u8bc6<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h3><span class=\"ez-toc-section\" id=\"%E9%99%84%E5%BD%95\"><\/span>\u9644\u5f55<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"%E9%99%84%E5%BD%95A_%E7%9B%B8%E5%85%B3%E8%81%94%E7%9A%84%E6%96%87%E7%AB%A0\"><\/span>\u9644\u5f55A. \u76f8\u5173\u8054\u7684\u6587\u7ae0<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ul>\n<li><a target=\"_blank\" href=\"http:\/\/dba.qishuo.xin\/?p=2466\" title=\"ORA-39405: Oracle Data Pump does not support importing from a source database with TSTZ version 36\">ORA-39405: Oracle Data Pump does not support importing from a source database with TSTZ version 36<\/a><\/li>\n<\/ul>\n<h4><span class=\"ez-toc-section\" id=\"%E9%99%84%E5%BD%95B_%E5%85%B6%E4%BB%96%E5%8F%82%E8%80%83\"><\/span>\u9644\u5f55B. \u5176\u4ed6\u53c2\u8003<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ul>\n<li><a target=\"_blank\" href=\"https:\/\/www.oraexcel.com\/database-oracle-19cR1-ORA-56920\/lang-zhs\" title=\"Oracle\u6570\u636e\u5e93\u9519\u8bef\u4ee3\u7801ORA-56920\u63cf\u8ff0\">Oracle\u6570\u636e\u5e93\u9519\u8bef\u4ee3\u7801ORA-56920\u63cf\u8ff0<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>1. \u95ee\u9898\u7b80\u8ff0 \u5c0611g\u6570\u636e\u5e93\u7684expdp\u5bfc\u51fa\u6587\u4ef6&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26,2],"tags":[240],"class_list":{"0":"post-2525","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-oracle","8":"tag-ora-56920"},"_links":{"self":[{"href":"http:\/\/dba.qishuo.xin\/index.php?rest_route=\/wp\/v2\/posts\/2525","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/dba.qishuo.xin\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/dba.qishuo.xin\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/dba.qishuo.xin\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/dba.qishuo.xin\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2525"}],"version-history":[{"count":11,"href":"http:\/\/dba.qishuo.xin\/index.php?rest_route=\/wp\/v2\/posts\/2525\/revisions"}],"predecessor-version":[{"id":2538,"href":"http:\/\/dba.qishuo.xin\/index.php?rest_route=\/wp\/v2\/posts\/2525\/revisions\/2538"}],"wp:attachment":[{"href":"http:\/\/dba.qishuo.xin\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2525"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/dba.qishuo.xin\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2525"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/dba.qishuo.xin\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}