{"id":1095,"date":"2013-08-04T01:07:32","date_gmt":"2013-08-03T17:07:32","guid":{"rendered":"http:\/\/www.yallonking.com\/?p=1095"},"modified":"2013-08-04T01:09:35","modified_gmt":"2013-08-03T17:09:35","slug":"%e6%97%a5%e5%bf%97%e4%b8%8d%e4%bc%a0%e9%80%81%e5%88%b0%e5%a4%87%e5%ba%93%e4%b8%80%e5%88%99","status":"publish","type":"post","link":"http:\/\/www.yallonking.com\/?p=1095","title":{"rendered":"ADG\u65e5\u5fd7\u4e0d\u4f20\u9001\u5230\u5907\u5e93\u4e00\u5219"},"content":{"rendered":"<p>\u665a\u4e0a\u52a0\u73ed\u641e3\u4e2a\u5e93\u7684\u540c\u57ce\u707e\u5907\u7684ADG\uff0c\u4e00\u4e2a\u5e93\u7684\u53c2\u6570\u5168\u90e8\u914d\u597d\u4e86\uff0c\u5c31\u662f\u4e0d\u4f20\u65e5\u5fd7\uff0c\u5404\u79cd\u68c0\u67e5\uff0c\u5c31\u662f\u6ca1\u6709\u627e\u5230\u95ee\u9898\u3002\u540e\u6765\u628a\u5f52\u6863\u7684DEST\u6362\u4e86\u4e0b\u5c31OK\u4e86\uff0c\u5f88\u662f\u5947\u602a\uff0c\u8bb0\u5f55\u4e8e\u6b64\u3002<\/p>\n<p>\u5e93\u7684\u7248\u672c\u662fx64 linux 11g\u7684\u57fa\u7840\u7248\u672c\uff0c\u4e5f\u53ef\u80fd\u548cBUG\u6709\u5173\u5427...<\/p>\n<p><\/p>\n<p>\u9996\u5148\u5728\u4e3b\u5e93\u67e5\u770b\u95ee\u9898\uff1a<\/p>\n<table bgcolor=\"#F7F7F7\" border=\"0\" bordercolor=\"#FFFFFF\" width=\"100%\">\n<tbody>\n<tr>\n<td style=\"width:100%;\">SQL&gt; select status,error from v$archive_dest;<\/p>\n<p>STATUS &nbsp; &nbsp;ERROR<br \/>--------- -----------------------------------------------------------------<br \/>VALID<br \/>VALID<br \/><span style=\"color:#ff0000;\">DISABLED &nbsp;ORA-16057: server not in Data Guard configuration<\/span><br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<\/p>\n<p>STATUS &nbsp; &nbsp;ERROR<br \/>--------- -----------------------------------------------------------------<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<\/p>\n<p>STATUS &nbsp; &nbsp;ERROR<br \/>--------- -----------------------------------------------------------------<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<\/p>\n<p>31 rows selected.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4ece\u4e0a\u8fb9\u53ef\u4ee5\u770b\u51fa\uff0c\u95ee\u9898\u5f88\u660e\u663e\uff0c\u8bf4\u6211\u7684\u914d\u7f6e\u6709\u95ee\u9898\uff0c\u6211\u53cd\u590d\u68c0\u67e5\u4e86\u4e3b\u5907\u5e93\u7684\u53c2\u6570\uff0c\u5747\u65e0\u5f02\u3002<\/p>\n<p>\u4e8e\u662f\u4fbf\u5c1d\u8bd5\u4e86\u5404\u79cd\u529e\u6cd5\uff0c\u9042\u8bd5\u5230\u4e86\u4e0b\u8fb9\u7684\u65b9\u6cd5\uff1a <\/p>\n<p><\/p>\n<p>\u5728\u4e3b\u5e93\u66ff\u6362\u5f52\u6863\u76ee\u7684\u5730<\/p>\n<table bgcolor=\"#F7F7F7\" border=\"0\" bordercolor=\"#FFFFFF\" width=\"100%\">\n<tbody>\n<tr>\n<td style=\"width:100%;\">SQL&gt; alter system set LOG_ARCHIVE_DEST_3=&#39;&#39;;<\/p>\n<p>System altered.<\/p>\n<p>SQL&gt; alter system set log_archive_dest_4=&#39;SERVICE=bocras2 ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=bocras2&#39;;<\/p>\n<p>System altered.<\/p>\n<p>SQL&gt; alter system switch logfile;<\/p>\n<p>System altered.<\/p>\n<p>SQL&gt; select status,error from v$archive_dest;<\/p>\n<p>STATUS &nbsp; &nbsp;ERROR<br \/>--------- -----------------------------------------------------------------<br \/>VALID<br \/>VALID<br \/>INACTIVE<br \/>VALID<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<\/p>\n<p>STATUS &nbsp; &nbsp;ERROR<br \/>--------- -----------------------------------------------------------------<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<\/p>\n<p>STATUS &nbsp; &nbsp;ERROR<br \/>--------- -----------------------------------------------------------------<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<br \/>INACTIVE<\/p>\n<p>31 rows selected.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/p>\n<p>\u968f\u5373\u5c31\u5df2\u7ecf\u6b63\u5e38\u4f20\u5f52\u6863\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u665a\u4e0a\u52a0\u73ed\u641e3\u4e2a\u5e93\u7684\u540c\u57ce\u707e\u5907\u7684ADG\uff0c\u4e00\u4e2a\u5e93\u7684\u53c2\u6570\u5168\u90e8\u914d\u597d\u4e86\uff0c\u5c31\u662f\u4e0d\u4f20\u65e5\u5fd7\uff0c\u5404\u79cd\u68c0\u67e5\uff0c\u5c31\u662f\u6ca1\u6709\u627e\u5230\u95ee\u9898\u3002\u540e\u6765\u628a\u5f52 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[35],"tags":[237],"_links":{"self":[{"href":"http:\/\/www.yallonking.com\/index.php?rest_route=\/wp\/v2\/posts\/1095"}],"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=1095"}],"version-history":[{"count":3,"href":"http:\/\/www.yallonking.com\/index.php?rest_route=\/wp\/v2\/posts\/1095\/revisions"}],"predecessor-version":[{"id":1098,"href":"http:\/\/www.yallonking.com\/index.php?rest_route=\/wp\/v2\/posts\/1095\/revisions\/1098"}],"wp:attachment":[{"href":"http:\/\/www.yallonking.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1095"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.yallonking.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1095"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.yallonking.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1095"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}