{"id":1337,"date":"2012-11-02T23:52:52","date_gmt":"2012-11-02T15:52:52","guid":{"rendered":"https:\/\/yangtingkun.net\/?p=1337"},"modified":"2013-07-03T01:01:03","modified_gmt":"2013-07-02T17:01:03","slug":"%e9%87%8d%e5%90%afrac%e5%ae%9e%e4%be%8b%e6%97%a0%e6%b3%95%e5%90%af%e5%8a%a8%e6%8a%a5%e9%94%99crs-1019","status":"publish","type":"post","link":"https:\/\/yangtingkun.net\/?p=1337","title":{"rendered":"\u91cd\u542fRAC\u5b9e\u4f8b\u65e0\u6cd5\u542f\u52a8\u62a5\u9519CRS-1019"},"content":{"rendered":"<p>\u5ba2\u6237\u53cd\u9988\u5728\u91cd\u542fRAC\u73af\u5883\u540e\uff0c\u53d1\u73b0CLUSTER\u542f\u52a8\u6b63\u5e38\uff0c\u4f46\u662f\u6570\u636e\u5e93\u5b9e\u4f8b\u6ca1\u7528\u542f\u52a8\u3002<br \/>\n\u6839\u636e\u5ba2\u6237\u7684\u7535\u8bdd\u63cf\u8ff0\uff0cOracle\u5c1d\u8bd5\u5728\u8282\u70b91\u4e0a\u542f\u52a8\u5b9e\u4f8b2\uff0c\u5728\u8282\u70b92\u4e0a\u542f\u52a8\u5b9e\u4f8b1\uff0c\u5e76\u5bfc\u81f4\u9519\u8befCRS-1019\u3002<br \/>\n\u4ece\u5ba2\u6237\u7684\u63cf\u8ff0\u4e0a\u5f88\u96be\u5f97\u5230\u771f\u6b63\u6709\u610f\u4e49\u7684\u4fe1\u606f\uff0c\u4e8e\u662f\u8bf7\u5ba2\u6237\u5c06\u8be6\u7ec6\u7684\u9519\u8bef\u4fe1\u606f\u53d1\u7ed9\u6211\uff1a<\/p>\n<pre lang='SQL'>oracle@orcl1:\/home\/oracle>crs_start -all \r\nAttempting to start `ora.orcl.orcl1.inst` on member `orcl1` \r\nAttempting to start `ora.orcl.orcl2.inst` on member `orcl2` \r\nStart of `ora.orcl.orcl1.inst` on member `orcl1` failed. \r\norcl2 : CRS-1019: Resource ora.orcl.orcl1.inst (application) cannot run on orcl2 \r\nStart of `ora.orcl.orcl2.inst` on member `orcl2` failed. \r\norcl1 : CRS-1019: Resource ora.orcl.orcl2.inst (application) cannot run on orcl1 \r\nAttempting to start `ora.orcl.db` on member `orcl1` \r\nStart of `ora.orcl.db` on member `orcl1` failed. \r\nAttempting to start `ora.orcl.db` on member `orcl2` \r\nStart of `ora.orcl.db` on member `orcl2` failed. \r\nCRS-1006: No more members to consider \r\nCRS-0215: Could not start resource 'ora.orcl.db'. \r\nCRS-0215: Could not start resource 'ora.orcl.orcl1.inst'. \r\nCRS-0215: Could not start resource 'ora.orcl.orcl2.inst'.<\/pre>\n<p>\u663e\u7136\u5ba2\u6237\u63d0\u5230\u7684CRS-1019\u9519\u8bef\uff0c\u5e76\u4e0d\u662f\u5bfc\u81f4\u95ee\u9898\u7684\u539f\u56e0\u3002\u4e0a\u9762\u7684\u4fe1\u606f\u4e2d\u6700\u6709\u610f\u4e49\u7684\u90e8\u5206\u4e3a\uff1aStart of `ora.orcl.orcl1.inst` on member `orcl1` failed\u3002\u800c\u968f\u540e\u7684\u5b9e\u4f8b1\u65e0\u6cd5\u5728\u5b9e\u4f8b2\u4e0a\u542f\u52a8\u53ea\u662f\u4e00\u4e2a\u63d0\u793a\u6027\u7684\u4fe1\u606f\uff0c\u5e76\u4e0d\u662fOracle\u5c1d\u8bd5\u5728\u5b9e\u4f8b2\u4e0a\u542f\u52a8\u5b9e\u4f8b 1\u3002<br \/>\n\u90a3\u4e48\u95ee\u9898\u5c31\u5f88\u7b80\u5355\uff0c\u627e\u5230\u5b9e\u4f8b\u65e0\u6cd5\u542f\u52a8\u7684\u539f\u56e0\u65e2\u53ef\uff0c\u5411\u5ba2\u6237\u8be2\u95ee\u6570\u636e\u5e93\u7684\u544a\u8b66\u65e5\u5fd7\u4e2d\u8bb0\u5f55\u7684\u4fe1\u606f\uff0c\u544a\u4e4b\u53ea\u6709\u4e00\u4e2a\u542f\u52a8\u5b9e\u4f8b\u7684\u4fe1\u606f\uff0c\u6ca1\u6709\u4ec0\u4e48\u9519\u8bef\u4e5f\u6ca1\u6709\u5176\u4ed6\u7684\u4fe1\u606f\u5199\u5165\u3002<br \/>\n\u6709\u4e9b\u65f6\u5019\u786e\u5b9e\u4f1a\u51fa\u73b0\u901a\u8fc7\u5de5\u5177\u542f\u52a8\uff0c\u9519\u8bef\u4fe1\u606f\u6ca1\u6709\u5199\u5165\u5230\u544a\u8b66\u65e5\u5fd7\u7684\u60c5\u51b5\uff0c\u4e8e\u662f\u8ba9\u5ba2\u6237\u5c1d\u8bd5\u901a\u8fc7sqlplus\u76f4\u63a5STARTUP\u6570\u636e\u5e93\uff0c\u8fd9\u6b21\u5f97\u5230\u7684\u660e\u786e\u7684\u9519\u8bef\u4fe1\u606f\uff1a<\/p>\n<pre lang='SQL'>oracle@orcl2:\/u01\/app\/oracle\/admin\/orcl\/bdump>sqlplus \/ as sysdba \r\nSQL*Plus: Release 10.2.0.5.0 - Production on Fri Nov 2 17:44:24 2012 \r\nCopyright (c) 1982, 2010, Oracle.  All Rights Reserved. \r\nConnected to an idle instance. \r\nSQL> startup mount; \r\nORA-02194: event specification syntax error 230 (minor error 215) near 'OFF'<\/pre>\n<p>\u663e\u7136\u5bfc\u81f4\u95ee\u9898\u7684\u539f\u56e0\u662fSPFILE\u4e2d\u8bbe\u7f6e\u7684EVENT\u5b58\u5728\u8bed\u6cd5\u9519\u8bef\u3002\u8fd9\u4e5f\u662f\u4e3a\u4ec0\u4e48\u544a\u8b66\u65e5\u5fd7\u4e2d\u6ca1\u6709\u8bb0\u5f55\u9519\u8bef\u7684\u539f\u56e0\uff0cOracle\u5728\u89e3\u6790\u521d\u59cb\u5316\u53c2\u6570\u7684\u65f6\u5019\u5c31\u78b0\u5230\u4e86\u9519\u8bef\uff0c\u56e0\u6b64\u8fd8\u6ca1\u6709\u771f\u6b63\u7684\u5f00\u59cb\u542f\u52a8\u8fc7\u7a0b\u3002<br \/>\n\u5269\u4e0b\u7684\u95ee\u9898\u5c31\u5f88\u7b80\u5355\u4e86\uff0c\u8ba9\u5ba2\u6237\u624b\u5de5\u521b\u5efaPFILE\uff0c\u5c06EVENT\u7684\u8bed\u6cd5\u4fee\u6539\u6b63\u786e\uff0c\u6216\u8005\u5148\u6682\u65f6\u6ce8\u91ca\u6389\uff0c\u7136\u540e\u91cd\u65b0\u751f\u6210SPFILE\uff0c\u5e76\u91cd\u542f\u6570\u636e\u5e93\u3002<br \/>\n\u672c\u4ee5\u4e3a\u95ee\u9898\u89e3\u51b3\u4e86\uff0c\u6ca1\u60f3\u5230\u6ca1\u8fc7\u591a\u957f\u65f6\u95f4\uff0c\u518d\u6b21\u63a5\u5230\u5ba2\u6237\u7684\u7535\u8bdd\u3002\u8fd9\u6b21\u5b9e\u4f8b2\u5df2\u7ecf\u6b63\u5e38\u542f\u52a8\uff0c\u4e0d\u8fc7\u5b9e\u4f8b1\u8fd8\u5b58\u5728\u95ee\u9898\uff0c\u5728SQLPLUS\u4e2d\u76f4\u63a5\u542f\u52a8\u4e0d\u4f1a\u62a5\u9519\uff0c\u4f46\u662f\u901a\u8fc7crs_start\u5374\u65e0\u6cd5\u6b63\u5e38\u542f\u52a8\u3002<\/p>\n<pre lang='SQL'>2012-11-02 18:38:55.460: [  CRSRES][11628]32ora.orcl.orcl1.inst target set to OFFLINE before stop action \r\n2012-11-02 18:38:55.460: [  CRSRES][11628]32StopResource: setting CLI values \r\n2012-11-02 18:38:55.471: [  CRSRES][11628]32Target set to OFFLINE for `ora.orcl.orcl1.inst` \r\n2012-11-02 18:40:07.862: [  CRSRES][11633]32startRunnable: setting CLI values \r\n2012-11-02 18:40:07.867: [  CRSRES][11633]32Attempting to start `ora.orcl.orcl1.inst` on member `orcl1` \r\n2012-11-02 18:40:09.194: [  CRSAPP][11633]32StartResource error for ora.orcl.orcl1.inst error code = 1 \r\n2012-11-02 18:40:09.853: [  CRSRES][11633]32Start of `ora.orcl.orcl1.inst` on member `orcl1` failed. \r\n2012-11-02 18:40:09.865: [  CRSRES][11633]32orcl2 : CRS-1019: Resource ora.orcl.orcl1.inst (application) cannot run on orcl2<\/pre>\n<p>\u5f00\u59cb\u6000\u7591\u662fORACLE_HOME\/dbs\u76ee\u5f55\u4e0b\u7684initorcl1.ora\u6587\u4ef6\u5b58\u5728\u9519\u8bef\uff0c\u6ca1\u6709\u6307\u5411\u6b63\u786e\u7684SPFILE\u6587\u4ef6\uff0c\u8ba9\u5ba2\u6237\u8fdb\u884c\u786e\u8ba4\u540e\u6ca1\u6709\u53d1\u73b0\u95ee\u9898\u3002<br \/>\n\u7531\u4e8eSQLPLUS\u542f\u52a8\u6ca1\u6709\u95ee\u9898\uff0c\u800c\u901a\u8fc7CRS_START\u542f\u52a8\u51fa\u73b0\u95ee\u9898\uff0c\u6000\u7591\u662fOCR\u4e2d\u67d0\u4e9b\u914d\u7f6e\u5f02\u5e38\uff0c\u4e8e\u662f\u8ba9\u5ba2\u6237\u68c0\u67e5SRVCTL\u7684CONFIG\u547d\u4ee4\u8f93\u51fa\u7ed3\u679c\uff1a<\/p>\n<pre lang='SQL'>oracle@orcl1:\/u01\/app\/oracle\/product\/10.2.0\/crs\/log\/orcl1\/crsd>srvctl config database -d orcl -a \r\norcl1 orcl1 \/u01\/app\/oracle\/product\/10.2.0\/db \r\norcl2 orcl2 \/u01\/app\/oracle\/product\/10.2.0\/db \r\nDB_UNIQUE_NAME: orcl \r\nDB_NAME: orcl \r\nORACLE_HOME: \/u01\/app\/oracle\/product\/10.2.0\/db \r\nSPFILE: \/dev\/rspfile \r\nDOMAIN: null \r\nDB_ROLE: null \r\nSTART_OPTIONS: null \r\nPOLICY:  AUTOMATIC \r\nENABLE FLAG: DB ENABLED, INST DISABLED ON orcl1 <\/pre>\n<p>\u5f88\u660e\u663e\uff0c\u5728OCR\u914d\u7f6e\u4e2d\uff0c\u5b9e\u4f8b1\u88abDISABLE\u4e86\uff0c\u8fd9\u5c31\u662f\u901a\u8fc7CRS_START\u542f\u52a8\u65f6\uff0c\u5b9e\u4f8b1\u65e0\u6cd5\u6b63\u5e38\u542f\u52a8\u7684\u539f\u56e0\u3002<br \/>\n\u6267\u884c\u4e0b\u9762\u7684\u547d\u4ee4\uff1a<\/p>\n<pre lang='SQL'>srvctl enable instance -d orcl \u2013i orcl1<\/pre>\n<p>\u95ee\u9898\u89e3\u51b3\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5ba2\u6237\u53cd\u9988\u5728\u91cd\u542fRAC\u73af\u5883\u540e\uff0c\u53d1\u73b0CLUSTER\u542f\u52a8\u6b63\u5e38\uff0c\u4f46\u662f\u6570\u636e\u5e93\u5b9e\u4f8b\u6ca1\u7528\u542f\u52a8\u3002 \u6839\u636e\u5ba2\u6237\u7684\u7535\u8bdd\u63cf\u8ff0\uff0cOracle\u5c1d\u8bd5\u5728\u8282\u70b91\u4e0a\u542f\u52a8\u5b9e\u4f8b2\uff0c\u5728\u8282\u70b92\u4e0a\u542f\u52a8\u5b9e\u4f8b1\uff0c\u5e76\u5bfc\u81f4\u9519\u8befCRS-1019\u3002 \u4ece\u5ba2\u6237\u7684\u63cf\u8ff0\u4e0a\u5f88\u96be\u5f97\u5230\u771f\u6b63\u6709\u610f\u4e49\u7684\u4fe1\u606f\uff0c\u4e8e\u662f\u8bf7\u5ba2\u6237\u5c06\u8be6\u7ec6\u7684\u9519\u8bef\u4fe1\u606f\u53d1\u7ed9\u6211\uff1a oracle@orcl1:\/home\/oracle>crs_start -all Attempting to start `ora.orcl.orcl1.inst` on member `orcl1` Attempting to start `ora.orcl.orcl2.inst` on member `orcl2` Start of `ora.orcl.orcl1.inst` on member `orcl1` failed. orcl2 : CRS-1019: Resource ora.orcl.orcl1.inst (application) cannot run on orcl2 Start of `ora.orcl.orcl2.inst` on &hellip; <a href=\"https:\/\/yangtingkun.net\/?p=1337\">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":[1180,180,820,1181,1182],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2yiY3-lz","_links":{"self":[{"href":"https:\/\/yangtingkun.net\/index.php?rest_route=\/wp\/v2\/posts\/1337"}],"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=1337"}],"version-history":[{"count":1,"href":"https:\/\/yangtingkun.net\/index.php?rest_route=\/wp\/v2\/posts\/1337\/revisions"}],"predecessor-version":[{"id":1338,"href":"https:\/\/yangtingkun.net\/index.php?rest_route=\/wp\/v2\/posts\/1337\/revisions\/1338"}],"wp:attachment":[{"href":"https:\/\/yangtingkun.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1337"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yangtingkun.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1337"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yangtingkun.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1337"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}