{"id":90,"date":"2011-09-12T23:53:16","date_gmt":"2011-09-12T15:53:16","guid":{"rendered":"https:\/\/yangtingkun.net\/?p=90"},"modified":"2011-09-22T18:13:12","modified_gmt":"2011-09-22T10:13:12","slug":"%e4%bb%8e%e7%a3%81%e5%b8%a6%e6%81%a2%e5%a4%8d%e5%bd%92%e6%a1%a3%e5%87%ba%e7%8e%b0ora-19870%e9%94%99%e8%af%af","status":"publish","type":"post","link":"https:\/\/yangtingkun.net\/?p=90","title":{"rendered":"\u4ece\u78c1\u5e26\u6062\u590d\u5f52\u6863\u51fa\u73b0ORA-19870\u9519\u8bef"},"content":{"rendered":"<p>\u4ece\u78c1\u5e26\u4e2d\u76f4\u63a5\u6062\u590d\u5f52\u6863\u65e5\u5fd7\u65f6\uff0c\u51fa\u73b0\u4e86\u8fd9\u4e2a\u9519\u8bef\u4fe1\u606f\u3002<br \/>\n\u5f52\u6863\u65e5\u5fd7\u524d\u540e\u5907\u4efd\u4e86\u4e24\u6b21\uff0c\u4e00\u6b21\u662f\u5728\u5907\u4efd\u6570\u636e\u5e93\u540e\u505a\u7684\uff0c\u53e6\u4e00\u6b21\u662f\u51cc\u66687\u70b9\u5de6\u53f3\u8fdb\u884c\u7684\uff0c\u5176\u4e2d\u7b2c\u4e8c\u6b21\u5907\u4efd\u5305\u542b\u7684\u5f52\u6863\u65e5\u5fd7\u6bd4\u7b2c\u4e00\u6b21\u591a\uff0c\u6700\u8fd1\u7684\u5f52\u6863\u65e5\u5fd7\u6587\u4ef6\u5907\u4efd\u4fe1\u606f\u5982\u4e0b\uff1a<\/p>\n<pre lang='SQL'>BS Key  Size       Device Type Elapsed Time Completion Time    \r\n------- ---------- ----------- ------------ -------------------\r\n37761   3.18G      SBT_TAPE    00:01:22     2011-08-27 03:22:37\r\n        BP Key: 37761   Status: AVAILABLE  Compressed: NO  Tag: TAG20110827T032114\r\n        Handle: al_43199_1_760245675   Media: \r\n  List of Archived Logs in backup set 37761\r\n  Thrd Seq     Low SCN    Low Time            Next SCN   Next Time\r\n  ---- ------- ---------- ------------------- ---------- ---------\r\n  1    132214  10200825285755 2011-08-27 00:35:39 10200825450980 2011-08-27 00:40:04  \r\n  1    132215  10200825450980 2011-08-27 00:40:04 10200825451525 2011-08-27 00:40:06\r\n  1    132216  10200825451525 2011-08-27 00:40:06 10200826640012 2011-08-27 01:05:42\r\n  1    132217  10200826640012 2011-08-27 01:05:42 10200828085370 2011-08-27 02:08:11\r\n  1    132218  10200828085370 2011-08-27 02:08:11 10200831622590 2011-08-27 03:05:09\r\n  1    132219  10200831622590 2011-08-27 03:05:09 10200831803462 2011-08-27 03:21:02\r\n  1    132220  10200831803462 2011-08-27 03:21:02 10200831803603 2011-08-27 03:21:12\r\nBS Key  Size       Device Type Elapsed Time Completion Time    \r\n------- ---------- ----------- ------------ -------------------\r\n37763   4.22G      SBT_TAPE    00:06:40     2011-08-27 07:12:26\r\n        BP Key: 37763   Status: AVAILABLE  Compressed: NO  Tag: TAG20110827T070545\r\n        Handle: al_43201_1_760259146   Media: \r\n  List of Archived Logs in backup set 37763\r\n  Thrd Seq     Low SCN    Low Time            Next SCN   Next Time\r\n  ---- ------- ---------- ------------------- ---------- ---------\r\n  1    132214  10200825285755 2011-08-27 00:35:39 10200825450980 2011-08-27 00:40:04\r\n  1    132215  10200825450980 2011-08-27 00:40:04 10200825451525 2011-08-27 00:40:06\r\n  1    132216  10200825451525 2011-08-27 00:40:06 10200826640012 2011-08-27 01:05:42\r\n  1    132217  10200826640012 2011-08-27 01:05:42 10200828085370 2011-08-27 02:08:11\r\n  1    132218  10200828085370 2011-08-27 02:08:11 10200831622590 2011-08-27 03:05:09\r\n  1    132219  10200831622590 2011-08-27 03:05:09 10200831803462 2011-08-27 03:21:02\r\n  1    132220  10200831803462 2011-08-27 03:21:02 10200831803603 2011-08-27 03:21:12\r\n  1    132221  10200831803603 2011-08-27 03:21:12 10200839298501 2011-08-27 05:59:17\r\n  1    132222  10200839298501 2011-08-27 05:59:17 10200851993798 2011-08-27 07:05:40\r\n  1    132223  10200851993798 2011-08-27 07:05:40 10200851993847 2011-08-27 07:05:44<\/pre>\n<p>\u800c\u4e14\u8fd9\u4e24\u4e2a\u5907\u4efd\u5e76\u4e0d\u5728\u540c\u4e00\u4e2a\u78c1\u5e26\u4e2d\uff0c\u524d\u9762\u7684\u4e00\u4efd\u5f52\u6863\u5907\u4efd\u548c\u5168\u5e93\u5907\u4efd\u540c\u5904\u4e8e\u4e00\u4e2a\u78c1\u5e26\u4e2d\uff0c\u56e0\u6b64\u5728\u6062\u590d\u7684\u8fc7\u7a0b\u4e2d\uff0c\u76f4\u63a5\u5c06\u8fd9\u76d8\u78c1\u5e26\u53d6\u51fa\uff0c\u5728\u53e6\u4e00\u53f0\u670d\u52a1\u5668\u4e0a\u8fdb\u884c\u6062\u590d\u3002<br \/>\n\u5168\u5e93\u7684\u8fd8\u539f\u6ca1\u6709\u78b0\u5230\u95ee\u9898\uff0c\u4f46\u662f\u6062\u590d\u5f52\u6863\u65e5\u5fd7\u5219\u78b0\u5230\u4e86\u4e0b\u9762\u7684\u9519\u8bef\uff1a<\/p>\n<pre lang='SQL'>RMAN> run\r\n2> {\r\n3>         ALLOCATE CHANNEL ch00 TYPE 'SBT_TAPE';\r\n4>         SEND 'NB_ORA_SERV=nbusrv, NB_ORA_CLIENT=ccicdbsrv5';\r\n5>         restore archivelog from sequence 132214  until sequence 132220;\r\n6>         RELEASE CHANNEL ch00;\r\n7> }\r\nallocated channel: ch00\r\nchannel ch00: sid=1630 devtype=SBT_TAPE\r\nchannel ch00: Veritas NetBackup for Oracle - Release 6.5 (2007072323)\r\nsent command to channel: ch00\r\nStarting restore at 2011-09-11 21:03:48\r\nchannel ch00: starting archive log restore to default destination\r\nchannel ch00: restoring archive log\r\narchive log thread=1 sequence=132214\r\nchannel ch00: restoring archive log\r\narchive log thread=1 sequence=132215\r\nchannel ch00: restoring archive log\r\narchive log thread=1 sequence=132216\r\nchannel ch00: restoring archive log\r\narchive log thread=1 sequence=132217\r\nchannel ch00: restoring archive log\r\narchive log thread=1 sequence=132218\r\nchannel ch00: restoring archive log\r\narchive log thread=1 sequence=132219\r\nchannel ch00: restoring archive log\r\narchive log thread=1 sequence=132220\r\nchannel ch00: reading from backup piece al_43201_1_760259146\r\nORA-19870: error reading backup piece al_43201_1_760259146\r\nORA-19507: failed to retrieve sequential file, handle=\"al_43201_1_760259146\", parms=\"\"\r\nORA-27029: skgfrtrv: sbtrestore returned error\r\nORA-19511: Error received from media manager layer, error text:\r\n   Failed to open backup file for restore.\r\nfailover to previous backup\r\nchannel ch00: starting archive log restore to default destination\r\nchannel ch00: restoring archive log\r\narchive log thread=1 sequence=132214\r\nchannel ch00: restoring archive log\r\narchive log thread=1 sequence=132215\r\nchannel ch00: restoring archive log\r\narchive log thread=1 sequence=132216\r\nchannel ch00: restoring archive log\r\narchive log thread=1 sequence=132217\r\nchannel ch00: restoring archive log\r\narchive log thread=1 sequence=132218\r\nchannel ch00: restoring archive log\r\narchive log thread=1 sequence=132219\r\nchannel ch00: restoring archive log\r\narchive log thread=1 sequence=132220\r\nchannel ch00: reading from backup piece al_43199_1_760245675\r\nORA-19870: error reading backup piece al_43199_1_760245675\r\nORA-19507: failed to retrieve sequential file, handle=\"al_43199_1_760245675\", parms=\"\"\r\nORA-27029: skgfrtrv: sbtrestore returned error\r\nORA-19511: Error received from media manager layer, error text:\r\n   Failed to process backup file <al_43199_1_760245675>\r\nfailover to previous backup\r\nreleased channel: ch00\r\nRMAN-00571: ===========================================================\r\nRMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============\r\nRMAN-00571: ===========================================================\r\nRMAN-03002: failure of restore command at 09\/11\/2011 21:04:30\r\nRMAN-06026: some targets not found - aborting restore\r\nRMAN-06025: no backup of log thread 1 seq 132220 lowscn 10200831803462 found to restore\r\nRMAN-06025: no backup of log thread 1 seq 132219 lowscn 10200831622590 found to restore\r\nRMAN-06025: no backup of log thread 1 seq 132218 lowscn 10200828085370 found to restore\r\nRMAN-06025: no backup of log thread 1 seq 132217 lowscn 10200826640012 found to restore\r\nRMAN-06025: no backup of log thread 1 seq 132216 lowscn 10200825451525 found to restore\r\nRMAN-06025: no backup of log thread 1 seq 132215 lowscn 10200825450980 found to restore\r\nRMAN-06025: no backup of log thread 1 seq 132214 lowscn 10200825285755 found to restore<\/pre>\n<p>\u7531\u4e8e\u8981\u6062\u590d\u7684\u5f52\u6863\u65e5\u5fd7\u5728\u4e24\u4e2a\u5907\u4efd\u96c6\u4e2d\u5b58\u5728\uff0c\u56e0\u6b64RMAN\u5c1d\u8bd5\u4e86\u4e24\u6b21\u8fdb\u884c\u6062\u590d\u3002\u7b2c\u4e00\u6b21\u5bfb\u627eal_43201_1_760259146\u6587\u4ef6\uff0c\u7531\u4e8e\u8fd9\u4e2a\u6587\u4ef6\u4e0d\u5728\u5f53\u524d\u7684\u78c1\u5e26\u4e2d\uff0c\u6062\u590d\u5931\u8d25\u662f\u6b63\u5e38\u7684\uff0c\u4f46\u662fal_43199_1_760245675\u6587\u4ef6\u5c31\u5b58\u653e\u5728\u5f53\u524d\u7684\u78c1\u5e26\u4e2d\uff0c\u800c\u4ecd\u7136\u51fa\u73b0\u65e0\u6cd5\u83b7\u53d6\u6587\u4ef6\u7684\u9519\u8bef\u5c31\u4e0d\u6b63\u5e38\u4e86\u3002<br \/>\n\u8003\u8651\u5230\u6062\u590d\u73af\u5883\u548c\u5907\u4efd\u73af\u5883\u5e76\u4e0d\u4e00\u81f4\uff0c\u5907\u4efd\u65f6\u4f7f\u7528\u7684\u5e26\u5e93\u800c\u5f53\u524d\u4ec5\u5305\u542b\u4e00\u4e2a\u78c1\u5e26\uff0c\u4e14\u78c1\u5e26\u7684catalog\u4fe1\u606f\u5f88\u53ef\u80fd\u4e5f\u6ca1\u6709\u5bfc\u5165\uff0c\u56e0\u6b64\u5bf9\u4e8e\u6e90\u6570\u636e\u7684\u67e5\u627e\u53ef\u80fd\u5b58\u5728\u95ee\u9898\u3002<br \/>\n\u901a\u8fc7CHANGE BACKUP TAG \u2018TAG20110827T070545\u2019 UNAVAILABLE\u7684\u65b9\u5f0f\uff0c\u907f\u514d\u6062\u590d\u8fc7\u7a0b\u4e2d\u53bb\u5bfb\u627e\u76ee\u524d\u5e76\u4e0d\u5b58\u5728\u7684\u5907\u4efd\u3002\u518d\u6b21\u4f7f\u7528RMAN\u6267\u884c\u540c\u6837\u7684\u6062\u590d\u64cd\u4f5c\uff0c\u8fd9\u6b21\u6062\u590d\u6210\u529f\u3002<br \/>\n\u6062\u590d\u5e94\u8be5\u5728\u548c\u5907\u4efd\u7b49\u540c\u6761\u4ef6\u4e0b\u8fdb\u884c\uff0c\u5426\u5219\u81f3\u5c11\u5e94\u8be5\u4fdd\u8bc1\u5e26\u5e93\u7684CATALOG\u6570\u636e\u5bfc\u5165\uff0c\u5426\u5219\u5c31\u53ef\u80fd\u51fa\u73b0\u8fd9\u79cd\u8de8\u78c1\u5e26\u67e5\u627e\u6587\u4ef6\u65f6\u51fa\u73b0\u7684\u9519\u8bef\uff0c\u800c\u5229\u7528RMAN\u76f4\u63a5\u5728\u5f53\u524d\u7684\u78c1\u5e26\u4e2d\u626b\u63cf\u6587\u4ef6\u5219\u4e0d\u53d7\u5f71\u54cd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ece\u78c1\u5e26\u4e2d\u76f4\u63a5\u6062\u590d\u5f52\u6863\u65e5\u5fd7\u65f6\uff0c\u51fa\u73b0\u4e86\u8fd9\u4e2a\u9519\u8bef\u4fe1\u606f\u3002 \u5f52\u6863\u65e5\u5fd7\u524d\u540e\u5907\u4efd\u4e86\u4e24\u6b21\uff0c\u4e00\u6b21\u662f\u5728\u5907\u4efd\u6570\u636e\u5e93\u540e\u505a\u7684\uff0c\u53e6\u4e00\u6b21\u662f\u51cc\u66687\u70b9\u5de6\u53f3\u8fdb\u884c\u7684\uff0c\u5176\u4e2d\u7b2c\u4e8c\u6b21\u5907\u4efd\u5305\u542b\u7684\u5f52\u6863\u65e5\u5fd7\u6bd4\u7b2c\u4e00\u6b21\u591a\uff0c\u6700\u8fd1\u7684\u5f52\u6863\u65e5\u5fd7\u6587\u4ef6\u5907\u4efd\u4fe1\u606f\u5982\u4e0b\uff1a BS Key Size Device Type Elapsed Time Completion Time &#8212;&#8212;- &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- 37761 3.18G SBT_TAPE 00:01:22 2011-08-27 03:22:37 BP Key: 37761 Status: AVAILABLE Compressed: NO Tag: TAG20110827T032114 Handle: al_43199_1_760245675 Media: List of Archived Logs in backup &hellip; <a href=\"https:\/\/yangtingkun.net\/?p=90\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[53,51,52],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2yiY3-1s","_links":{"self":[{"href":"https:\/\/yangtingkun.net\/index.php?rest_route=\/wp\/v2\/posts\/90"}],"collection":[{"href":"https:\/\/yangtingkun.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yangtingkun.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yangtingkun.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yangtingkun.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=90"}],"version-history":[{"count":2,"href":"https:\/\/yangtingkun.net\/index.php?rest_route=\/wp\/v2\/posts\/90\/revisions"}],"predecessor-version":[{"id":127,"href":"https:\/\/yangtingkun.net\/index.php?rest_route=\/wp\/v2\/posts\/90\/revisions\/127"}],"wp:attachment":[{"href":"https:\/\/yangtingkun.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=90"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yangtingkun.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=90"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yangtingkun.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=90"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}