{"id":759,"date":"2012-04-16T23:52:54","date_gmt":"2012-04-16T15:52:54","guid":{"rendered":"https:\/\/yangtingkun.net\/?p=759"},"modified":"2012-04-19T09:30:32","modified_gmt":"2012-04-19T01:30:32","slug":"%e6%81%a2%e5%a4%8d%e6%95%b0%e6%8d%ae%e5%ba%93%e5%87%ba%e7%8e%b0ora-38727","status":"publish","type":"post","link":"https:\/\/yangtingkun.net\/?p=759","title":{"rendered":"\u6062\u590d\u6570\u636e\u5e93\u51fa\u73b0ORA-38727"},"content":{"rendered":"<p>\u4e00\u4e2a\u6d4b\u8bd5\u6570\u636e\u5e93\u5728\u6062\u590d\u65f6\u51fa\u73b0ORA-38727\u9519\u8bef\u3002<br \/>\n\u9519\u8bef\u4fe1\u606f\u5982\u4e0b\uff1a<\/p>\n<pre lang='SQL'>[orat1@hpserver2 ~]$ rman target \/\r\nRecovery Manager: Release 10.2.0.3.0 - Production on Sat Apr 14 09:56:01 2012\r\nCopyright (c) 1982, 2005, Oracle. All rights reserved.\r\nconnected to target database: TEST10G (DBID=1030910857)\r\nRMAN> recover tablespace tbs013;\r\nStarting recover at 14-APR-12\r\nallocated channel: ORA_DISK_1\r\nchannel ORA_DISK_1: sid=138 devtype=DISK\r\nstarting media recovery\r\nmedia recovery failed\r\nRMAN-00571: ===========================================================\r\nRMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============\r\nRMAN-00571: ===========================================================\r\nRMAN-03002: failure of recover command at 04\/14\/2012 09:57:45\r\nORA-00283: recovery session canceled due to errors\r\nRMAN-11003: failure during parse\/execution of SQL statement: alter database recover if needed\r\ntablespace TBS013\r\nORA-00283: recovery session canceled due to errors\r\nORA-38727: FLASHBACK DATABASE requires a current control file.\r\nRMAN> exit\r\nRecovery Manager complete.<\/pre>\n<p>\u663e\u7136\u5bfc\u81f4\u8fd9\u4e2a\u9519\u8bef\u7684\u539f\u56e0\u548cFLASHBACK\u7279\u6027\u6709\u5173\uff0c\u68c0\u67e5\u6570\u636e\u5e93\uff0c\u679c\u7136\u53d1\u73b0FLASHBACK\u5c5e\u6027\u51fa\u4e8eON\u7684\u72b6\u6001\uff1a<\/p>\n<pre lang='SQL'>[orat1@hpserver2 ~]$ sqlplus \/ as sysdba\r\nSQL*Plus: Release 10.2.0.3.0 - Production on Sat Apr 14 09:57:57 2012\r\nCopyright (c) 1982, 2006, Oracle. All Rights Reserved.\r\n\r\nConnected to:\r\nOracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production\r\nWith the Partitioning, OLAP and Data Mining options\r\nSQL> set pages 100 lines 140\r\nSQL> select dbid, name, flashback_on from v$database;\r\nDBID NAME      FLASHBACK_ON\r\n---------- --------- ------------------\r\n1030910857 TEST10G   YES\r\nSQL> shutdown immediate\r\nDatabase closed.\r\nDatabase dismounted.\r\nORACLE instance shut down.\r\nSQL> startup mount\r\nORACLE instance started.\r\nTotal System Global Area 314572800 bytes\r\nFixed Size 2072384 bytes\r\nVariable Size 171966656 bytes\r\nDatabase Buffers 134217728 bytes\r\nRedo Buffers 6316032 bytes\r\nDatabase mounted.\r\nSQL> alter database flashback off; \r\nDatabase altered.\r\nSQL> exit \r\nDisconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production\r\nWith the Partitioning, OLAP and Data Mining options<\/pre>\n<p>\u518d\u6b21\u6267\u884c\u6062\u590d\u64cd\u4f5c\uff1a<\/p>\n<pre lang='SQL'>[orat1@hpserver2 ~]$ rman target \/\r\nRecovery Manager: Release 10.2.0.3.0 - Production on Sat Apr 14 10:01:03 2012\r\nCopyright (c) 1982, 2005, Oracle. All rights reserved.\r\nconnected to target database: TEST10G (DBID=1030910857, not open)\r\nRMAN> recover tablespace tbs013;\r\nStarting recover at 14-APR-12\r\nusing target database control file instead of recovery catalog\r\nallocated channel: ORA_DISK_1\r\nchannel ORA_DISK_1: sid=156 devtype=DISK\r\nstarting media recovery\r\nmedia recovery failed\r\nRMAN-00571: ===========================================================\r\nRMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============\r\nRMAN-00571: ===========================================================\r\nRMAN-03002: failure of recover command at 04\/14\/2012 10:02:06\r\nORA-00283: recovery session canceled due to errors\r\nRMAN-11003: failure during parse\/execution of SQL statement: alter database recover if needed\r\ntablespace TBS013\r\nORA-00283: recovery session canceled due to errors\r\nORA-01110: data file 11: '\/t1\/orat1\/oradata\/test10g_s\/tbs013.dbf'\r\nORA-01157: cannot identify\/lock data file 11 - see DBWR trace file\r\nORA-01110: data file 11: '\/t1\/orat1\/oradata\/test10g_s\/tbs013.dbf'\r\nRMAN> restore tablespace tbs013;\r\nStarting restore at 14-APR-12\r\nusing channel ORA_DISK_1\r\nskipping datafile 11; already restored to file \/t1\/orat1\/oradata\/test10g_s\/tbs013.dbf\r\nrestore not done; all files readonly, offline, or already restored\r\nFinished restore at 14-APR-12\r\nRMAN> recover tablespace tbs013;\r\nStarting recover at 14-APR-12\r\nusing channel ORA_DISK_1\r\nRMAN-00571: ===========================================================\r\nRMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============\r\nRMAN-00571: ===========================================================\r\nRMAN-03002: failure of recover command at 04\/14\/2012 10:03:05\r\nRMAN-06067: RECOVER DATABASE required with a backup or created control file\r\nRMAN> recover database;\r\nStarting recover at 14-APR-12\r\nusing channel ORA_DISK_1\r\nstarting media recovery\r\narchive log thread 1 sequence 356 is already on disk as file \/t1\/orat1\/arch_s\/1_356_779468996.dbf\r\narchive log thread 1 sequence 357 is already on disk as file \/t1\/orat1\/arch_s\/1_357_779468996.dbf\r\narchive log thread 1 sequence 358 is already on disk as file \/t1\/orat1\/arch_s\/1_358_779468996.dbf\r\narchive log thread 1 sequence 359 is already on disk as file \/t1\/orat1\/arch_s\/1_359_779468996.dbf\r\narchive log thread 1 sequence 360 is already on disk as file \/t1\/orat1\/arch_s\/1_360_779468996.dbf\r\narchive log thread 1 sequence 361 is already on disk as file \/t1\/orat1\/arch_s\/1_361_779468996.dbf\r\narchive log thread 1 sequence 362 is already on disk as file \/t1\/orat1\/arch_s\/1_362_779468996.dbf\r\narchive log thread 1 sequence 363 is already on disk as file \/t1\/orat1\/arch_s\/1_363_779468996.dbf\r\narchive log thread 1 sequence 364 is already on disk as file \/t1\/orat1\/arch_s\/1_364_779468996.dbf\r\narchive log thread 1 sequence 365 is already on disk as file \/t1\/orat1\/arch_s\/1_365_779468996.dbf\r\narchive log thread 1 sequence 366 is already on disk as file \/t1\/orat1\/arch_s\/1_366_779468996.dbf\r\narchive log thread 1 sequence 367 is already on disk as file \/t1\/orat1\/arch_s\/1_367_779468996.dbf\r\narchive log thread 1 sequence 368 is already on disk as file \/t1\/orat1\/arch_s\/1_368_779468996.dbf\r\narchive log thread 1 sequence 369 is already on disk as file \/t1\/orat1\/arch_s\/1_369_779468996.dbf\r\narchive log thread 1 sequence 370 is already on disk as file \/t1\/orat1\/arch_s\/1_370_779468996.dbf\r\narchive log thread 1 sequence 371 is already on disk as file \/t1\/orat1\/arch_s\/1_371_779468996.dbf\r\narchive log thread 1 sequence 372 is already on disk as file \/t1\/orat1\/arch_s\/1_372_779468996.dbf\r\narchive log thread 1 sequence 373 is already on disk as file \/t1\/orat1\/arch_s\/1_373_779468996.dbf\r\narchive log thread 1 sequence 374 is already on disk as file \/t1\/orat1\/arch_s\/1_374_779468996.dbf\r\narchive log thread 1 sequence 375 is already on disk as file \/t1\/orat1\/arch_s\/1_375_779468996.dbf\r\narchive log thread 1 sequence 376 is already on disk as file \/t1\/orat1\/arch_s\/1_376_779468996.dbf\r\narchive log thread 1 sequence 377 is already on disk as file \/t1\/orat1\/arch_s\/1_377_779468996.dbf\r\narchive log thread 1 sequence 378 is already on disk as file \/t1\/orat1\/arch_s\/1_378_779468996.dbf\r\narchive log thread 1 sequence 379 is already on disk as file \/t1\/orat1\/arch_s\/1_379_779468996.dbf\r\narchive log thread 1 sequence 380 is already on disk as file \/t1\/orat1\/arch_s\/1_380_779468996.dbf\r\narchive log thread 1 sequence 381 is already on disk as file \/t1\/orat1\/arch_s\/1_381_779468996.dbf\r\narchive log thread 1 sequence 382 is already on disk as file \/t1\/orat1\/arch_s\/1_382_779468996.dbf\r\narchive log thread 1 sequence 383 is already on disk as file \/t1\/orat1\/arch_s\/1_383_779468996.dbf\r\narchive log thread 1 sequence 384 is already on disk as file \/t1\/orat1\/arch_s\/1_384_779468996.dbf\r\narchive log thread 1 sequence 385 is already on disk as file \/t1\/orat1\/arch_s\/1_385_779468996.dbf\r\narchive log thread 1 sequence 386 is already on disk as file \/t1\/orat1\/arch_s\/1_386_779468996.dbf\r\narchive log thread 1 sequence 387 is already on disk as file \/t1\/orat1\/arch_s\/1_387_779468996.dbf\r\narchive log thread 1 sequence 388 is already on disk as file \/t1\/orat1\/arch_s\/1_388_779468996.dbf\r\narchive log thread 1 sequence 389 is already on disk as file \/t1\/orat1\/oradata\/test10g_s\/redo02.log\r\narchive log thread 1 sequence 390 is already on disk as file \/t1\/orat1\/oradata\/test10g_s\/redo03.log\r\narchive log thread 1 sequence 391 is already on disk as file \/t1\/orat1\/oradata\/test10g_s\/redo01.log\r\narchive log filename=\/t1\/orat1\/arch_s\/1_356_779468996.dbf thread=1 sequence=356\r\narchive log filename=\/t1\/orat1\/arch_s\/1_357_779468996.dbf thread=1 sequence=357\r\narchive log filename=\/t1\/orat1\/arch_s\/1_358_779468996.dbf thread=1 sequence=358\r\narchive log filename=\/t1\/orat1\/arch_s\/1_359_779468996.dbf thread=1 sequence=359\r\narchive log filename=\/t1\/orat1\/arch_s\/1_360_779468996.dbf thread=1 sequence=360\r\narchive log filename=\/t1\/orat1\/arch_s\/1_361_779468996.dbf thread=1 sequence=361\r\narchive log filename=\/t1\/orat1\/arch_s\/1_362_779468996.dbf thread=1 sequence=362\r\narchive log filename=\/t1\/orat1\/arch_s\/1_363_779468996.dbf thread=1 sequence=363\r\narchive log filename=\/t1\/orat1\/arch_s\/1_364_779468996.dbf thread=1 sequence=364\r\narchive log filename=\/t1\/orat1\/arch_s\/1_365_779468996.dbf thread=1 sequence=365\r\narchive log filename=\/t1\/orat1\/arch_s\/1_366_779468996.dbf thread=1 sequence=366\r\narchive log filename=\/t1\/orat1\/arch_s\/1_367_779468996.dbf thread=1 sequence=367\r\narchive log filename=\/t1\/orat1\/arch_s\/1_368_779468996.dbf thread=1 sequence=368\r\narchive log filename=\/t1\/orat1\/arch_s\/1_369_779468996.dbf thread=1 sequence=369\r\narchive log filename=\/t1\/orat1\/arch_s\/1_370_779468996.dbf thread=1 sequence=370\r\narchive log filename=\/t1\/orat1\/arch_s\/1_371_779468996.dbf thread=1 sequence=371\r\narchive log filename=\/t1\/orat1\/arch_s\/1_372_779468996.dbf thread=1 sequence=372\r\narchive log filename=\/t1\/orat1\/arch_s\/1_373_779468996.dbf thread=1 sequence=373\r\narchive log filename=\/t1\/orat1\/arch_s\/1_374_779468996.dbf thread=1 sequence=374\r\narchive log filename=\/t1\/orat1\/arch_s\/1_375_779468996.dbf thread=1 sequence=375\r\narchive log filename=\/t1\/orat1\/arch_s\/1_376_779468996.dbf thread=1 sequence=376\r\narchive log filename=\/t1\/orat1\/arch_s\/1_377_779468996.dbf thread=1 sequence=377\r\narchive log filename=\/t1\/orat1\/arch_s\/1_378_779468996.dbf thread=1 sequence=378\r\narchive log filename=\/t1\/orat1\/arch_s\/1_379_779468996.dbf thread=1 sequence=379\r\narchive log filename=\/t1\/orat1\/arch_s\/1_380_779468996.dbf thread=1 sequence=380\r\narchive log filename=\/t1\/orat1\/arch_s\/1_381_779468996.dbf thread=1 sequence=381\r\narchive log filename=\/t1\/orat1\/arch_s\/1_382_779468996.dbf thread=1 sequence=382\r\narchive log filename=\/t1\/orat1\/arch_s\/1_383_779468996.dbf thread=1 sequence=383\r\narchive log filename=\/t1\/orat1\/arch_s\/1_384_779468996.dbf thread=1 sequence=384\r\narchive log filename=\/t1\/orat1\/arch_s\/1_385_779468996.dbf thread=1 sequence=385\r\narchive log filename=\/t1\/orat1\/arch_s\/1_386_779468996.dbf thread=1 sequence=386\r\narchive log filename=\/t1\/orat1\/arch_s\/1_387_779468996.dbf thread=1 sequence=387\r\narchive log filename=\/t1\/orat1\/arch_s\/1_388_779468996.dbf thread=1 sequence=388\r\narchive log filename=\/t1\/orat1\/oradata\/test10g_s\/redo02.log thread=1 sequence=389\r\narchive log filename=\/t1\/orat1\/oradata\/test10g_s\/redo03.log thread=1 sequence=390\r\narchive log filename=\/t1\/orat1\/oradata\/test10g_s\/redo01.log thread=1 sequence=391\r\nmedia recovery complete, elapsed time: 00:00:15\r\nFinished recover at 14-APR-12\r\nRMAN> alter database open;\r\nRMAN-00571: ===========================================================\r\nRMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============\r\nRMAN-00571: ===========================================================\r\nRMAN-03002: failure of alter db command at 04\/14\/2012 10:06:34\r\nORA-01589: must use RESETLOGS or NORESETLOGS option for database open\r\nRMAN> alter database open resetlogs;\r\ndatabase opened<\/pre>\n<p>\u867d\u7136\u6062\u590d\u6210\u529f\uff0c\u4f46\u662f\u53ef\u4ee5\u770b\u5230\u6062\u590d\u8fc7\u7a0b\u5e76\u4e0d\u987a\u5229\uff0c\u6700\u660e\u663e\u7684\u4e00\u70b9\uff0c\u672c\u6765\u4e00\u4e2a\u7b80\u5355\u7684TABLESPACE\u7684\u6062\u590d\uff0c\u53d8\u6210\u4e86DATABASE\u7684\u6062\u590d\uff0c\u800c\u4e14\u672c\u6765\u53ef\u4ee5\u76f4\u63a5\u6253\u5f00\uff0c\u73b0\u5728\u53d8\u6210\u4e86RESETLOGS\u65b9\u5f0f\u7684\u6253\u5f00\u3002\u8fd9\u4e5f\u8bf4\u660e\u7531\u4e8e\u542f\u7528\u4e86FLASHBACK\uff0c\u5bfc\u81f4Oracle\u5728\u5224\u65ad\u63a7\u5236\u6587\u4ef6\u72b6\u6001\u51fa\u73b0\u4e86\u5f02\u5e38\uff0c\u5bfc\u81f4\u6700\u7ec8\u4ee5RESETLOGS\u65b9\u5f0f\u6253\u5f00\u6570\u636e\u5e93\u3002<br \/>\n\u5176\u5b9e\u8fd9\u4e2a\u9519\u8bef\u548c\u4e0d\u4e45\u524d\u78b0\u5230\u7684RMAN-600\u9519\u8bef\u6709\u76f4\u63a5\u7684\u5173\u8054\uff1a<br \/>\nRMAN-600(8201)\u9519\u8bef\uff1a<a href=\"https:\/\/yangtingkun.net\/?p=690\">https:\/\/yangtingkun.net\/?p=690<\/a><br \/>\nRMAN-600(8201)\u9519\u8bef\u7684\u91cd\u73b0\uff1a<a href=\"https:\/\/yangtingkun.net\/?p=716\">https:\/\/yangtingkun.net\/?p=716<\/a><br \/>\n\u800c\u4e14\u6b63\u5982\u6211\u4eec\u6240\u6599\uff0c\u5f53\u524d\u6570\u636e\u5e93\u518d\u6b21RESETLOGS\u540e\uff0c\u76ee\u524d\u63a7\u5236\u6587\u4ef6\u4e2d\u6700\u5927\u7684RESETLOGS\u65f6\u95f4\u5bf9\u5e94\u7684\u6b63\u5f0f\u5f53\u524d\u63a7\u5236\u6587\u4ef6\u4e2d\u8bb0\u5f55\u7684RESETLOGS\u65f6\u95f4\uff0c\u8fd9\u5c31\u4f7f\u5f97CATALOG\u7684\u540c\u6b65\u5f97\u4ee5\u5b9e\u73b0\uff1a<\/p>\n<pre lang='SQL'>[orat1@hpserver2 ~]$ sqlplus \/ as sysdba\r\nSQL*Plus: Release 10.2.0.3.0 - Production on Sun Apr 15 00:09:12 2012\r\nCopyright (c) 1982, 2006, Oracle. All Rights Reserved.\r\nConnected to:\r\nOracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production\r\nWith the Partitioning, OLAP and Data Mining options\r\nSQL> exit\r\nDisconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production\r\nWith the Partitioning, OLAP and Data Mining options\r\n[orat1@hpserver2 ~]$ rman target \/ catalog rcat_user\/rcat_password\r\nRecovery Manager: Release 10.2.0.3.0 - Production on Sun Apr 15 00:09:31 2012\r\nCopyright (c) 1982, 2005, Oracle. All rights reserved.\r\nconnected to target database: TEST10G (DBID=1030910857)\r\nconnected to recovery catalog database\r\nRMAN> show all;\r\nnew incarnation of database registered in recovery catalog\r\nstarting full resync of recovery catalog\r\nfull resync complete\r\nRMAN configuration parameters are:\r\nCONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default\r\nCONFIGURE BACKUP OPTIMIZATION OFF; # default\r\nCONFIGURE DEFAULT DEVICE TYPE TO DISK; # default\r\nCONFIGURE CONTROLFILE AUTOBACKUP OFF; # default\r\nCONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default\r\nCONFIGURE DEVICE TYPE DISK PARALLELISM 5 BACKUP TYPE TO BACKUPSET;\r\nCONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default\r\nCONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default\r\nCONFIGURE MAXSETSIZE TO UNLIMITED; # default\r\nCONFIGURE ENCRYPTION FOR DATABASE OFF; # default\r\nCONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default\r\nCONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default\r\nCONFIGURE SNAPSHOT CONTROLFILE NAME TO '\/t1\/orat1\/product\/10.2.0\/db_1\/dbs\/snapcf_test10g_s.f'; # default\r\nRMAN><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u4e2a\u6d4b\u8bd5\u6570\u636e\u5e93\u5728\u6062\u590d\u65f6\u51fa\u73b0ORA-38727\u9519\u8bef\u3002 \u9519\u8bef\u4fe1\u606f\u5982\u4e0b\uff1a [orat1@hpserver2 ~]$ rman target \/ Recovery Manager: Release 10.2.0.3.0 &#8211; Production on Sat Apr 14 09:56:01 2012 Copyright (c) 1982, 2005, Oracle. All rights reserved. connected to target database: TEST10G (DBID=1030910857) RMAN> recover tablespace tbs013; Starting recover at &hellip; <a href=\"https:\/\/yangtingkun.net\/?p=759\">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":[5],"tags":[567,158,629,628,486,630,566,631],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2yiY3-cf","_links":{"self":[{"href":"https:\/\/yangtingkun.net\/index.php?rest_route=\/wp\/v2\/posts\/759"}],"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=759"}],"version-history":[{"count":1,"href":"https:\/\/yangtingkun.net\/index.php?rest_route=\/wp\/v2\/posts\/759\/revisions"}],"predecessor-version":[{"id":760,"href":"https:\/\/yangtingkun.net\/index.php?rest_route=\/wp\/v2\/posts\/759\/revisions\/760"}],"wp:attachment":[{"href":"https:\/\/yangtingkun.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=759"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yangtingkun.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=759"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yangtingkun.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=759"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}