{"id":740,"date":"2019-12-04T15:43:15","date_gmt":"2019-12-04T07:43:15","guid":{"rendered":"http:\/\/www.821121.com\/?p=740"},"modified":"2020-12-11T10:17:46","modified_gmt":"2020-12-11T02:17:46","slug":"12c%e6%96%b0%e7%89%b9%e6%80%a7%ef%bc%9aimpdp%e4%b8%8d%e5%86%99%e5%85%a5redo%e6%97%a5%e5%bf%97%e5%8f%82%e6%95%b0%ef%bc%9adsiable_archive_logging","status":"publish","type":"post","link":"http:\/\/www.821121.com\/?p=740","title":{"rendered":"12C\u65b0\u7279\u6027\uff1aimpdp\u4e0d\u5199\u5165redo\u65e5\u5fd7(\u53c2\u6570\uff1aTRANSFORM=DISABLE_ARCHIVE_LOGGING:y)"},"content":{"rendered":"<p>12C\u65b0\u7279\u6027\uff1aimpdp\u4e0d\u5199\u5165redo\u65e5\u5fd7\uff0c\u5982\u679c\u6570\u636e\u5e93\u5f00\u542fforce logging\u5219\u65e0\u6548\u3002<\/p>\n<h2>1\u3001\u67e5\u770b\u6570\u636e\u5e93\u914d\u7f6e<\/h2>\n<pre><code class=\"language-sql\">[oracle@cat1 ~]$ sqlplus \/ as sysdba\n\nSQL*Plus: Release 19.0.0.0.0 - Production on Fri Dec 4 08:47:32 2020\nVersion 19.3.0.0.0\n\nCopyright (c) 1982, 2019, Oracle.  All rights reserved.\n\nConnected to:\nOracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production\nVersion 19.3.0.0.0\n\nSQL&gt; archive log list\nDatabase log mode              Archive Mode\nAutomatic archival             Enabled\nArchive destination            +DATA1\nOldest online log sequence     15\nNext log sequence to archive   16\nCurrent log sequence           16\nSQL&gt; select FORCE_LOGGING from v$database;\n\nFORCE_LOGGING\n--------------------------------------------------------------------------------\nNO<\/code><\/pre>\n<h2>2\u3001\u767b\u5f55PDB\u521b\u5efa\u6d4b\u8bd5\u6570\u636e<\/h2>\n<pre><code class=\"language-sql\">[oracle@cat1 ~]$ sqlplus test\/test@PDB1_WHS\n\nSQL*Plus: Release 19.0.0.0.0 - Production on Fri Dec 4 15:04:17 2020\nVersion 19.3.0.0.0\n\nCopyright (c) 1982, 2019, Oracle.  All rights reserved.\n\nLast Successful login time: Fri Dec 04 2020 08:46:50 +08:00\n\nConnected to:\nOracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production\nVersion 19.3.0.0.0\n\nSQL&gt; create table t_whs as select * from dba_objects;\n\nTable created.\n\nSQL&gt; insert into t_whs  select * from t_whs;\n\n72474 rows created.\n\nSQL&gt; insert into t_whs  select * from t_whs;\n\n144948 rows created.\n\nSQL&gt; insert into t_whs  select * from t_whs;\n\n289896 rows created.\n\nSQL&gt; insert into t_whs  select * from t_whs;\n\n579792 rows created.\n\nSQL&gt; insert into t_whs select * from t_whs;\n\n1159584 rows created.\n\nSQL&gt; \/\n\n2319168 rows created.\n\nSQL&gt; \/\n\n4638336 rows created.\n\nSQL&gt; commit;\n\nCommit complete.\n\nSQL&gt; select *from (\n  2  select dest_id,thread#,sequence#\n  3    from v$archived_log order by completion_time desc)\n  4    where rownum&lt;=5;\n\n   DEST_ID    THREAD#  SEQUENCE#\n---------- ---------- ----------\n         1          1         24\n         1          1         23\n         1          1         22\n         1          1         21\n         1          1         20\n\nSQL&gt; create directory dumpdir as &#039;\/tmp&#039;;\n\nDirectory created.\n\nSQL&gt; <\/code><\/pre>\n<h2>3\u3001\u5bfc\u51fa\u6570\u636e<\/h2>\n<pre><code class=\"language-sql\">[oracle@cat1 tmp]$ expdp test\/test@PDB1_WHS directory=dumpdir dumpfile=t_whs.dmp logfile=dump.log tables=t_whs \n\nExport: Release 19.0.0.0.0 - Production on Fri Dec 4 15:21:49 2020\nVersion 19.3.0.0.0\n\nCopyright (c) 1982, 2019, Oracle and\/or its affiliates.  All rights reserved.\n\nConnected to: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production\nStarting &quot;TEST&quot;.&quot;SYS_EXPORT_TABLE_01&quot;:  test\/********@PDB1_WHS directory=dumpdir dumpfile=t_whs.dmp logfile=dump.log tables=t_whs \nProcessing object type TABLE_EXPORT\/TABLE\/TABLE_DATA\nProcessing object type TABLE_EXPORT\/TABLE\/STATISTICS\/TABLE_STATISTICS\nProcessing object type TABLE_EXPORT\/TABLE\/STATISTICS\/MARKER\nProcessing object type TABLE_EXPORT\/TABLE\/TABLE\n. . exported &quot;TEST&quot;.&quot;T_WHS&quot;                              1.192 GB 9276672 rows\nMaster table &quot;TEST&quot;.&quot;SYS_EXPORT_TABLE_01&quot; successfully loaded\/unloaded\n******************************************************************************\nDump file set for TEST.SYS_EXPORT_TABLE_01 is:\n  \/tmp\/t_whs.dmp\nJob &quot;TEST&quot;.&quot;SYS_EXPORT_TABLE_01&quot; successfully completed at Fri Dec 4 15:22:12 2020 elapsed 0 00:00:22<\/code><\/pre>\n<h2>4\u3001\u666e\u901a\u65b9\u5f0f\u5bfc\u5165\u6570\u636e<\/h2>\n<p>\u5220\u9664\u8868\u540e\uff0c\u67e5\u770b\u65e5\u5fd7\u5e8f\u53f7<\/p>\n<pre><code class=\"language-sql\">SQL&gt; drop table t_whs;\n\nTable dropped.\n\nSQL&gt; select *from (\n  2  select dest_id,thread#,sequence#\n  3    from v$archived_log order by completion_time desc)\n  4    where rownum&lt;=5;\n\n   DEST_ID    THREAD#  SEQUENCE#\n---------- ---------- ----------\n         1          1         24\n         1          1         23\n         1          1         22\n         1          1         21\n         1          1         20<\/code><\/pre>\n<p>\u666e\u901a\u65b9\u5f0f\u5bfc\u5165\u6570\u636e<\/p>\n<pre><code class=\"language-sql\">[oracle@cat1 tmp]$ impdp test\/test@PDB1_WHS directory=dumpdir dumpfile=t_whs.dmp logfile=dump.log tables=t_whs\n\nImport: Release 19.0.0.0.0 - Production on Fri Dec 4 15:25:11 2020\nVersion 19.3.0.0.0\n\nCopyright (c) 1982, 2019, Oracle and\/or its affiliates.  All rights reserved.\n\nConnected to: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production\nMaster table &quot;TEST&quot;.&quot;SYS_IMPORT_TABLE_01&quot; successfully loaded\/unloaded\nStarting &quot;TEST&quot;.&quot;SYS_IMPORT_TABLE_01&quot;:  test\/********@PDB1_WHS directory=dumpdir dumpfile=t_whs.dmp logfile=dump.log tables=t_whs \nProcessing object type TABLE_EXPORT\/TABLE\/TABLE\nProcessing object type TABLE_EXPORT\/TABLE\/TABLE_DATA\n. . imported &quot;TEST&quot;.&quot;T_WHS&quot;                              1.192 GB 9276672 rows\nProcessing object type TABLE_EXPORT\/TABLE\/STATISTICS\/TABLE_STATISTICS\nProcessing object type TABLE_EXPORT\/TABLE\/STATISTICS\/MARKER\nJob &quot;TEST&quot;.&quot;SYS_IMPORT_TABLE_01&quot; successfully completed at Fri Dec 4 15:25:45 2020 elapsed 0 00:00:33<\/code><\/pre>\n<pre><code class=\"language-sql\">SQL&gt; select *from (\n  2  select dest_id,thread#,sequence#\n  3    from v$archived_log order by completion_time desc)\n  4    where rownum&lt;=5;\n\n   DEST_ID    THREAD#  SEQUENCE#\n---------- ---------- ----------\n         1          1         31    &lt;==24\u53d8\u4e3a31\u589e\u52a0\u4e867\u4e2a\u65e5\u5fd7\n         1          1         30\n         1          1         29\n         1          1         28\n         1          1         27<\/code><\/pre>\n<h2>5\u3001dsiable_archive_loggin\u65b9\u5f0f\u5bfc\u5165\u6570\u636e<\/h2>\n<pre><code class=\"language-sql\">SQL&gt; drop table t_whs;\n\nTable dropped.\n\nSQL&gt; select *from (\n  2  select dest_id,thread#,sequence#\n  3    from v$archived_log order by completion_time desc)\n  4    where rownum&lt;=5;\n\n   DEST_ID    THREAD#  SEQUENCE#\n---------- ---------- ----------\n         1          1         31\n         1          1         30\n         1          1         29\n         1          1         28\n         1          1         27\n\n[oracle@cat1 tmp]$ impdp test\/test@PDB1_WHS directory=dumpdir dumpfile=t_whs.dmp logfile=dump.log tables=t_whs TRANSFORM=DISABLE_ARCHIVE_LOGGING:y\n\nImport: Release 19.0.0.0.0 - Production on Fri Dec 4 15:31:48 2020\nVersion 19.3.0.0.0\n\nCopyright (c) 1982, 2019, Oracle and\/or its affiliates.  All rights reserved.\n\nConnected to: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production\nMaster table &quot;TEST&quot;.&quot;SYS_IMPORT_TABLE_01&quot; successfully loaded\/unloaded\nStarting &quot;TEST&quot;.&quot;SYS_IMPORT_TABLE_01&quot;:  test\/********@PDB1_WHS directory=dumpdir dumpfile=t_whs.dmp logfile=dump.log tables=t_whs TRANSFORM=DISABLE_ARCHIVE_LOGGING:y \nProcessing object type TABLE_EXPORT\/TABLE\/TABLE\nProcessing object type TABLE_EXPORT\/TABLE\/TABLE_DATA\n. . imported &quot;TEST&quot;.&quot;T_WHS&quot;                              1.192 GB 9276672 rows\nProcessing object type TABLE_EXPORT\/TABLE\/STATISTICS\/TABLE_STATISTICS\nProcessing object type TABLE_EXPORT\/TABLE\/STATISTICS\/MARKER\nJob &quot;TEST&quot;.&quot;SYS_IMPORT_TABLE_01&quot; successfully completed at Fri Dec 4 15:31:55 2020 elapsed 0 00:00:06<\/code><\/pre>\n<pre><code class=\"language-sql\">SQL&gt; select *from (\n  2  select dest_id,thread#,sequence#\n  3    from v$archived_log order by completion_time desc)\n  4    where rownum&lt;=5;\n\n   DEST_ID    THREAD#  SEQUENCE#\n---------- ---------- ----------\n         1          1         31    &lt;==\u8fd8\u662f31\u6ca1\u6709\u589e\u52a0\n         1          1         30\n         1          1         29\n         1          1         28\n         1          1         27<\/code><\/pre>\n<p>\u540c\u6837\u7684\u6570\u636e\u91cf\uff0cdsiable_archive_loggin\u65b9\u5f0f\u5bfc\u5165\u6570\u636e\u53ea\u7528\u4e866\u79d2\uff0c\u666e\u901a\u65b9\u5f0f\u7528\u4e8633\u79d2\uff0c\u5927\u5927\u63d0\u9ad8\u4e86\u5bfc\u5165\u6548\u7387\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>12C\u65b0\u7279\u6027\uff1aimpdp\u4e0d\u5199\u5165redo\u65e5\u5fd7\uff0c\u5982\u679c\u6570<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,39],"tags":[],"class_list":["post-740","post","type-post","status-publish","format-standard","hentry","category-oracle-12c","category-39"],"_links":{"self":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts\/740","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=740"}],"version-history":[{"count":2,"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts\/740\/revisions"}],"predecessor-version":[{"id":742,"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts\/740\/revisions\/742"}],"wp:attachment":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=740"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=740"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=740"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}