{"id":1126,"date":"2013-09-11T12:44:15","date_gmt":"2013-09-11T04:44:15","guid":{"rendered":"http:\/\/www.yallonking.com\/?p=1126"},"modified":"2013-09-11T12:44:15","modified_gmt":"2013-09-11T04:44:15","slug":"%e5%8f%82%e6%95%b0log_archive_format%e5%bc%95%e8%b5%b7%e7%9a%84ora-19563%e4%b8%80%e5%88%99","status":"publish","type":"post","link":"http:\/\/www.yallonking.com\/?p=1126","title":{"rendered":"\u53c2\u6570log_archive_format\u5f15\u8d77\u7684ORA-19563\u4e00\u5219"},"content":{"rendered":"<p>\u8be5\u7bc7\u63cf\u8ff0\u7684\u662f9i\u7684\u5e93\u7531\u4e8e\u53c2\u6570log_archive_format\u8bbe\u7f6e\u4e0d\u6b63\u786e\u5bfc\u81f4\u5907\u4efd\u5f52\u6863\u65e5\u5fd7\u65f6\u62a5\u9519ORA-19563\uff0c\u89e3\u51b3\u5012\u662f\u5f88\u5bb9\u6613\uff0c\u4f46\u662f\u95ee\u9898\u662f\uff1a\u5728\u6b63\u5e38\u4e1a\u52a1\u671f\u95f4\uff0c\u6570\u636e\u5e93\u53d1\u751f\u68c0\u67e5\u70b9\uff0c\u5207\u6362\u65e5\u5fd7\uff0c\u4ea7\u751f\u5f52\u6863\u7684\u65e5\u5fd7\u53ea\u662f\u5bf9\u540c\u4e00\u4e2a\u5f52\u6863\u65e5\u5fd7\u7684\u8986\u76d6\u53e0\u52a0\u7684\u5199\uff0c\u800c\u4e14\u5728alert\u4e2d\u6ca1\u6709\u4efb\u4f55\u76f8\u5173\u7684\u62a5\u9519\u3002\u4e4b\u524d\u8bb0\u5f97\u6709\u4e00\u6b21\u5bf9\u8be5\u53c2\u6570\u8fdb\u884c\u4fee\u6539\u91cd\u542f\u6570\u636e\u5e93\u7684\u65f6\u5019\uff0c\u4f1a\u62a5\u76f8\u5173\u7684\u9519\u8bef\uff0c\u4f46\u662f\u8fd9\u6b21\u5e76\u6ca1\u6709\u76f8\u5173\u9519\u8bef\u629b\u51fa\uff0c\u53ea\u662f\u5bf9\u540c\u4e00\u4e2a\u5f52\u6863\u65e5\u5fd7\u7684\u53e0\u52a0\u5199\uff0c\u7136\u540e\u662f\u8986\u76d6\u3002<\/p>\n<p>\u4e0b\u8fb9\u4fbf\u662f\u8be5\u95ee\u9898\u7684\u4e00\u4e2a\u5904\u7406\u8fc7\u7a0b\uff1a<br \/>\n\u64cd\u4f5c\u7cfb\u7edf\u4fe1\u606f\uff1a<\/p>\n<pre class=\"wp-code-highlight prettyprint\">\r\nbash-2.03$ cat \/etc\/release \r\n                       Solaris 8 2\/04 s28s_hw4wos_05a SPARC\r\n           Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.\r\n                            Assembled 08 January 2004\r\n<\/pre>\n<p>\u6570\u636e\u5e93\u7248\u672c\uff1a<\/p>\n<pre class=\"wp-code-highlight prettyprint\">\r\nSQL&gt; select * from gv$version;\r\n\r\n   INST_ID BANNER\r\n---------- ----------------------------------------------------------------\r\n         1 Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production\r\n         1 PL\/SQL Release 9.2.0.4.0 - Production\r\n         1 CORE 9.2.0.3.0       Production\r\n         1 TNS for Solaris: Version 9.2.0.4.0 - Production\r\n         1 NLSRTL Version 9.2.0.4.0 - Production\r\n<\/pre>\n<p>\u6570\u636e\u5e93\u5f53\u524d\u5f52\u6863\u4fe1\u606f\uff1a<\/p>\n<pre class=\"wp-code-highlight prettyprint\">\r\nSQL&gt; archive log list;\r\nDatabase log mode              Archive Mode\r\nAutomatic archival             Enabled\r\nArchive destination            \/opt\/oracle\/oradata\/arch\r\nOldest online log sequence     26\r\nNext log sequence to archive   28\r\nCurrent log sequence           28\r\nSQL&gt; !ls -latr \/opt\/oracle\/oradata\/arch\r\ntotal 6\r\ndrwxrwxr-x   5 oracle   dba          512 May 20 22:23 ..\r\n-rw-r-----   1 oracle   dba         1024 Sep  9 21:55 1_0.dbf\r\ndrwxr-xr-x   2 oracle   dba          512 Sep  9 21:55 .\r\n<\/pre>\n<p>\u4eba\u4e3a\u4ea7\u751f\u68c0\u67e5\u70b9\u3001\u5207\u6362\u65e5\u5fd7\u3001\u5f52\u6863\u65e5\u5fd7\uff1a<\/p>\n<pre class=\"wp-code-highlight prettyprint\">\r\nSQL&gt; alter system checkpoint;\r\n\r\nSystem altered.\r\n\r\nSQL&gt; alter system archive log current;\r\n\r\nSystem altered.\r\n\r\nSQL&gt; alter system switch logfile;\r\n\r\nSystem altered.\r\n\r\nSQL&gt; \/\r\n\r\nSystem altered.\r\n\r\nSQL&gt; \/\r\n\r\nSystem altered.\r\n\r\nSQL&gt; alter system switch logfile;\r\n\r\nSystem altered.\r\n\r\nSQL&gt; \/\r\n\r\nSystem altered.\r\n\r\nSQL&gt; \/\r\n\r\nSystem altered.\r\n\r\nSQL&gt; !ls -latr \/opt\/oracle\/oradata\/arch\r\ntotal 8\r\ndrwxrwxr-x   5 oracle   dba          512 May 20 22:23 ..\r\n-rw-r-----   1 oracle   dba         1536 Sep  9 22:01 1_0.dbf\r\ndrwxr-xr-x   2 oracle   dba          512 Sep  9 22:01 .\r\n<\/pre>\n<p>\u6b64\u5904\u53d1\u73b0\uff0c\u8be5\u5f52\u6863\u65e5\u5fd71_0.dbf\u4e00\u81f4\u5728\u589e\u957f\uff0c\u5e76\u6ca1\u6709\u5728\u8be5\u76ee\u5f55\u4e0b\u4ea7\u751f\u65b0\u7684\u5f52\u6863\u65e5\u5fd7\uff0c\u800c\u4e14\u5728\u89c2\u5bdf\u4e2d\u8fd8\u4f1a\u53d1\u73b0\uff0c\u6709\u8986\u76d6\u5199\u7684\u60c5\u51b5\u51fa\u73b0\uff08\u8be5\u5904\u6ca1\u6709\u91cd\u73b0\u8be5\u73b0\u8c61\uff09\u3002<\/p>\n<p>\u4e0b\u8fb9\u67e5\u770b\u95ee\u9898\u53c2\u6570\uff1a<\/p>\n<pre class=\"wp-code-highlight prettyprint\">\r\nSQL&gt; show parameter log\r\n\r\nNAME                                 TYPE        VALUE\r\n------------------------------------ ----------- ------------------------------\r\ndb_create_online_log_dest_1          string\r\ndb_create_online_log_dest_2          string\r\ndb_create_online_log_dest_3          string\r\ndb_create_online_log_dest_4          string\r\ndb_create_online_log_dest_5          string\r\ndblink_encrypt_login                 boolean     FALSE\r\nlog_archive_dest                     string\r\nlog_archive_dest_1                   string      LOCATION=\/opt\/oracle\/oradata\/a\r\n                                                 rch\r\nlog_archive_dest_10                  string\r\nlog_archive_dest_2                   string\r\n\r\nNAME                                 TYPE        VALUE\r\n------------------------------------ ----------- ------------------------------\r\nlog_archive_dest_3                   string\r\nlog_archive_dest_4                   string\r\nlog_archive_dest_5                   string\r\nlog_archive_dest_6                   string\r\nlog_archive_dest_7                   string\r\nlog_archive_dest_8                   string\r\nlog_archive_dest_9                   string\r\nlog_archive_dest_state_1             string      enable\r\nlog_archive_dest_state_10            string      enable\r\nlog_archive_dest_state_2             string      enable\r\nlog_archive_dest_state_3             string      enable\r\n\r\nNAME                                 TYPE        VALUE\r\n------------------------------------ ----------- ------------------------------\r\nlog_archive_dest_state_4             string      enable\r\nlog_archive_dest_state_5             string      enable\r\nlog_archive_dest_state_6             string      enable\r\nlog_archive_dest_state_7             string      enable\r\nlog_archive_dest_state_8             string      enable\r\nlog_archive_dest_state_9             string      enable\r\nlog_archive_duplex_dest              string\r\nlog_archive_format                   string      %t_%U.dbf\r\nlog_archive_max_processes            integer     2\r\nlog_archive_min_succeed_dest         integer     1\r\nlog_archive_start                    boolean     TRUE\r\n\r\nNAME                                 TYPE        VALUE\r\n------------------------------------ ----------- ------------------------------\r\nlog_archive_trace                    integer     0\r\nlog_buffer                           integer     524288\r\nlog_checkpoint_interval              integer     0\r\nlog_checkpoint_timeout               integer     1800\r\nlog_checkpoints_to_alert             boolean     FALSE\r\nlog_file_name_convert                string\r\nlog_parallelism                      integer     1\r\nlogmnr_max_persistent_sessions       integer     1\r\nremote_login_passwordfile            string      EXCLUSIVE\r\n<\/pre>\n<p>\u6b64\u5904\uff0c\u660e\u663e\u53ef\u4ee5\u770b\u5230\u53c2\u6570log_archive_format\u7684\u503c\u4e2d\u7684 %U \u660e\u663e\u9519\u8bef\uff0c\u8be5\u53c2\u6570\u5e94\u8be5\u662frman\u4e2dformat\u7684\u53c2\u6570\uff0c\u4f30\u8ba1\u662f\u67d0\u4f4d\u540c\u4e8b\u628a\u4e8c\u8005\u6df7\u6dc6\u4e86\u3002<\/p>\n<p>\u4e0b\u8fb9\u662f\u5907\u4efd\u62a5\u7684\u9519\u8bef\uff1a<\/p>\n<pre class=\"wp-code-highlight prettyprint\">\r\nStarting backup at 09-SEP-13\r\ncurrent log archived\r\nreleased channel: c1\r\nreleased channel: c2\r\nRMAN-00571: ===========================================================\r\nRMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============\r\nRMAN-00571: ===========================================================\r\nRMAN-03002: failure of backup command at 09\/09\/2013 21:39:10\r\nORA-19563: archived log header validation failed for file \/opt\/oracle\/oradata\/arch\/1_0.dbf\r\n\r\nRMAN&gt; \r\n\r\nRecovery Manager complete.\r\n<\/pre>\n<p>\u67e5\u770balert\u65e5\u5fd7\u6587\u4ef6\uff1a<\/p>\n<pre class=\"wp-code-highlight prettyprint\">\r\nMon Sep  9 21:50:01 2013\r\nARCH: Evaluating archive   log 3 thread 1 sequence 21\r\nARCH: Beginning to archive log 3 thread 1 sequence 21\r\nCreating archive destination LOG_ARCHIVE_DEST_1: &#039;\/opt\/oracle\/oradata\/arch\/1_0.dbf&#039;\r\nMon Sep  9 21:50:01 2013\r\nARC1: Evaluating archive   log 3 thread 1 sequence 21\r\nARC1: Unable to archive log 3 thread 1 sequence 21\r\n      Log actively being archived by another process\r\nMon Sep  9 21:50:01 2013\r\nARCH: Completed archiving  log 3 thread 1 sequence 21\r\nMon Sep  9 21:50:16 2013\r\nThread 1 advanced to log sequence 23\r\n  Current log# 2 seq# 23 mem# 0: \/opt\/oracle\/oradata\/cakmcdb\/redo02.log\r\nMon Sep  9 21:50:16 2013\r\nARC1: Evaluating archive   log 1 thread 1 sequence 22\r\nARC1: Beginning to archive log 1 thread 1 sequence 22\r\nCreating archive destination LOG_ARCHIVE_DEST_1: &#039;\/opt\/oracle\/oradata\/arch\/1_0.dbf&#039;\r\nARC1: Completed archiving  log 1 thread 1 sequence 22\r\nMon Sep  9 21:55:36 2013\r\nThread 1 advanced to log sequence 24\r\n  Current log# 3 seq# 24 mem# 0: \/opt\/oracle\/oradata\/cakmcdb\/redo03.log\r\nMon Sep  9 21:55:36 2013\r\nARC0: Evaluating archive   log 2 thread 1 sequence 23\r\nARC0: Beginning to archive log 2 thread 1 sequence 23\r\nCreating archive destination LOG_ARCHIVE_DEST_1: &#039;\/opt\/oracle\/oradata\/arch\/1_0.dbf&#039;\r\nARC0: Completed archiving  log 2 thread 1 sequence 23\r\nMon Sep  9 21:55:37 2013\r\nThread 1 advanced to log sequence 25\r\n  Current log# 1 seq# 25 mem# 0: \/opt\/oracle\/oradata\/cakmcdb\/redo01.log\r\nMon Sep  9 21:55:37 2013\r\nARC1: Evaluating archive   log 3 thread 1 sequence 24\r\nARC1: Beginning to archive log 3 thread 1 sequence 24\r\nCreating archive destination LOG_ARCHIVE_DEST_1: &#039;\/opt\/oracle\/oradata\/arch\/1_0.dbf&#039;\r\nARC1: Completed archiving  log 3 thread 1 sequence 24\r\nMon Sep  9 21:55:38 2013\r\nThread 1 advanced to log sequence 26\r\n  Current log# 2 seq# 26 mem# 0: \/opt\/oracle\/oradata\/cakmcdb\/redo02.log\r\nMon Sep  9 21:55:38 2013\r\nARC0: Evaluating archive   log 1 thread 1 sequence 25\r\nARC0: Beginning to archive log 1 thread 1 sequence 25\r\nCreating archive destination LOG_ARCHIVE_DEST_1: &#039;\/opt\/oracle\/oradata\/arch\/1_0.dbf&#039;\r\nARC0: Completed archiving  log 1 thread 1 sequence 25\r\nMon Sep  9 21:55:39 2013\r\nThread 1 advanced to log sequence 27\r\n  Current log# 3 seq# 27 mem# 0: \/opt\/oracle\/oradata\/cakmcdb\/redo03.log\r\nMon Sep  9 21:55:39 2013\r\nARC1: Evaluating archive   log 2 thread 1 sequence 26\r\nARC1: Beginning to archive log 2 thread 1 sequence 26\r\nCreating archive destination LOG_ARCHIVE_DEST_1: &#039;\/opt\/oracle\/oradata\/arch\/1_0.dbf&#039;\r\nARC1: Completed archiving  log 2 thread 1 sequence 26\r\nMon Sep  9 21:55:39 2013\r\nThread 1 advanced to log sequence 28\r\n  Current log# 1 seq# 28 mem# 0: \/opt\/oracle\/oradata\/cakmcdb\/redo01.log\r\nMon Sep  9 21:55:39 2013\r\nARC0: Evaluating archive   log 3 thread 1 sequence 27\r\nARC0: Beginning to archive log 3 thread 1 sequence 27\r\nCreating archive destination LOG_ARCHIVE_DEST_1: &#039;\/opt\/oracle\/oradata\/arch\/1_0.dbf&#039;\r\nARC0: Completed archiving  log 3 thread 1 sequence 27\r\nMon Sep  9 22:00:59 2013\r\nThread 1 advanced to log sequence 29\r\n  Current log# 2 seq# 29 mem# 0: \/opt\/oracle\/oradata\/cakmcdb\/redo02.log\r\n<\/pre>\n<p>\u6b64\u5904\uff0c\u53d1\u73b0\u6ca1\u6709\u76f8\u5173\u9519\u8bef\uff0c\u53ea\u6709\u4e4b\u524d\u505a\u7684\u5207\u6362\u65e5\u5fd7\u7b49\u64cd\u4f5c\u7684\u8bb0\u5f55\uff0c\u5e76\u4e14\u8fd8\u53ef\u4ee5\u770b\u5230\uff0c\u5207\u6362\u540e\u7684\u65e5\u5fd7\u4e00\u76f4\u5728\u7ed9\u540c\u4e00\u4e2a\u5f52\u6863\u6587\u4ef6\/opt\/oracle\/oradata\/arch\/1_0.dbf\u5199\uff0c\u8fd9\u91cc\u5e94\u8be5\u629b\u51fa\u76f8\u5173\u9519\u8bef\uff0c\u4f30\u8ba1\u548coracle\u7684bug\u76f8\u5173\u5427\u3002<\/p>\n<p>\u53c2\u6570\u4fee\u6539\u540e\uff0c\u5907\u4efd\u5f52\u6863\u4fbf\u6062\u590d\u6b63\u5e38\uff0c\u5982\u4e0b\uff1a<\/p>\n<pre class=\"wp-code-highlight prettyprint\">\r\nSQL&gt; show parameter log\r\n\r\nNAME                                 TYPE        VALUE\r\n------------------------------------ ----------- ------------------------------\r\ndb_create_online_log_dest_1          string\r\ndb_create_online_log_dest_2          string\r\ndb_create_online_log_dest_3          string\r\ndb_create_online_log_dest_4          string\r\ndb_create_online_log_dest_5          string\r\ndblink_encrypt_login                 boolean     FALSE\r\nlog_archive_dest                     string\r\nlog_archive_dest_1                   string      LOCATION=\/opt\/oracle\/oradata\/a\r\n                                                 rch\r\nlog_archive_dest_10                  string\r\nlog_archive_dest_2                   string\r\n\r\nNAME                                 TYPE        VALUE\r\n------------------------------------ ----------- ------------------------------\r\nlog_archive_dest_3                   string\r\nlog_archive_dest_4                   string\r\nlog_archive_dest_5                   string\r\nlog_archive_dest_6                   string\r\nlog_archive_dest_7                   string\r\nlog_archive_dest_8                   string\r\nlog_archive_dest_9                   string\r\nlog_archive_dest_state_1             string      enable\r\nlog_archive_dest_state_10            string      enable\r\nlog_archive_dest_state_2             string      enable\r\nlog_archive_dest_state_3             string      enable\r\n\r\nNAME                                 TYPE        VALUE\r\n------------------------------------ ----------- ------------------------------\r\nlog_archive_dest_state_4             string      enable\r\nlog_archive_dest_state_5             string      enable\r\nlog_archive_dest_state_6             string      enable\r\nlog_archive_dest_state_7             string      enable\r\nlog_archive_dest_state_8             string      enable\r\nlog_archive_dest_state_9             string      enable\r\nlog_archive_duplex_dest              string\r\nlog_archive_format                   string      %t_%s.arc\r\nlog_archive_max_processes            integer     2\r\nlog_archive_min_succeed_dest         integer     1\r\nlog_archive_start                    boolean     TRUE\r\n\r\nNAME                                 TYPE        VALUE\r\n------------------------------------ ----------- ------------------------------\r\nlog_archive_trace                    integer     0\r\nlog_buffer                           integer     524288\r\nlog_checkpoint_interval              integer     0\r\nlog_checkpoint_timeout               integer     1800\r\nlog_checkpoints_to_alert             boolean     FALSE\r\nlog_file_name_convert                string\r\nlog_parallelism                      integer     1\r\nlogmnr_max_persistent_sessions       integer     1\r\nremote_login_passwordfile            string      EXCLUSIVE\r\nSQL&gt; archive log list;\r\nDatabase log mode              Archive Mode\r\nAutomatic archival             Enabled\r\nArchive destination            \/opt\/oracle\/oradata\/arch\r\nOldest online log sequence     34\r\nNext log sequence to archive   36\r\nCurrent log sequence           36\r\nSQL&gt; !\r\nbash-2.03$ cd \/opt\/oracle\/oradata\/arch\r\nbash-2.03$ ls -ltr\r\ntotal 204928\r\n-rw-r-----   1 oracle   dba      104857088 Sep 10 22:19 1_0.dbf\r\nbash-2.03$ exit\r\nexit\r\n\r\nSQL&gt; alter system switch logfile;\r\n\r\nSystem altered.\r\n\r\nSQL&gt; \/\r\n\r\nSystem altered.\r\n\r\nSQL&gt; !\r\nbash-2.03$ pwd\r\n\/opt\/oracle\r\nbash-2.03$ cd \/opt\/oracle\/oradata\/arch\r\nbash-2.03$ ls -ltr\r\ntotal 293810\r\n-rw-r-----   1 oracle   dba      104857088 Sep 10 22:19 1_0.dbf\r\n-rw-r-----   1 oracle   dba         1024 Sep 11 09:01 1_37.arc\r\n-rw-r-----   1 oracle   dba      45468160 Sep 11 09:01 1_36.arc\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u8be5\u7bc7\u63cf\u8ff0\u7684\u662f9i\u7684\u5e93\u7531\u4e8e\u53c2\u6570log_archive_format\u8bbe\u7f6e\u4e0d\u6b63\u786e\u5bfc\u81f4\u5907\u4efd\u5f52\u6863\u65e5\u5fd7\u65f6\u62a5\u9519ORA-195 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[40,36],"tags":[241,240],"_links":{"self":[{"href":"http:\/\/www.yallonking.com\/index.php?rest_route=\/wp\/v2\/posts\/1126"}],"collection":[{"href":"http:\/\/www.yallonking.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.yallonking.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.yallonking.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.yallonking.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1126"}],"version-history":[{"count":1,"href":"http:\/\/www.yallonking.com\/index.php?rest_route=\/wp\/v2\/posts\/1126\/revisions"}],"predecessor-version":[{"id":1127,"href":"http:\/\/www.yallonking.com\/index.php?rest_route=\/wp\/v2\/posts\/1126\/revisions\/1127"}],"wp:attachment":[{"href":"http:\/\/www.yallonking.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.yallonking.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1126"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.yallonking.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}