{"id":677,"date":"2012-03-20T23:35:30","date_gmt":"2012-03-20T15:35:30","guid":{"rendered":"https:\/\/yangtingkun.net\/?p=677"},"modified":"2012-03-22T16:38:07","modified_gmt":"2012-03-22T08:38:07","slug":"%e8%ae%be%e7%bd%ae%e5%88%b0%e7%9b%b8%e5%90%8csid%e4%bb%8d%e6%97%a0%e6%b3%95%e8%bf%9e%e6%8e%a5%e5%ae%9e%e4%be%8b","status":"publish","type":"post","link":"https:\/\/yangtingkun.net\/?p=677","title":{"rendered":"\u8bbe\u7f6e\u5230\u76f8\u540cSID\u4ecd\u65e0\u6cd5\u8fde\u63a5\u5b9e\u4f8b"},"content":{"rendered":"<p>\u4eca\u5929\u6709\u540c\u4e8b\u95ee\uff0c\u4e3a\u4ec0\u4e48\u8bbe\u7f6e\u4e86\u6b63\u786e\u7684SID\u540e\u4ecd\u7136\u8fde\u63a5\u5230\u7a7a\u95f2\u5b9e\u4f8b\uff0c\u4e14\u542f\u52a8\u5230MOUNT\u72b6\u6001\u5c31\u62a5\u9519\u3002<br \/>\n\u6839\u636e\u4ed6\u7684\u63cf\u8ff0\uff0c\u57fa\u672c\u4e0a\u53ef\u4ee5\u5224\u65ad\u662fORACLE_HOME\u7684\u8bbe\u7f6e\u95ee\u9898\uff0c\u4e8e\u662f\u505a\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u4f8b\u5b50\u91cd\u65b0\u4e86\u8fd9\u4e2a\u95ee\u9898\uff1a<\/p>\n<pre lang='SQL'>[orat0@hpserver2 ~]$ env|grep ORACLE\r\nORACLE_SID=orcl10g\r\nORACLE_BASE=\/t0\/orat0\/app\/oracle\r\nORACLE_HOME=\/t0\/orat0\/app\/oracle\/product\/10.2.0\/db_1\r\n[orat0@hpserver2 ~]$ sqlplus \/ as sysdba\r\nSQL*Plus: Release 10.2.0.5.0 - Production on Thu Mar 22 16:06:48 2012\r\nCopyright (c) 1982, 2010, Oracle. All Rights Reserved.\r\nConnected to an idle instance.\r\nSQL> startup\r\nORACLE instance started.\r\nTotal System Global Area 524288000 bytes\r\nFixed Size 2097560 bytes\r\nVariable Size 146804328 bytes\r\nDatabase Buffers 373293056 bytes\r\nRedo Buffers 2093056 bytes\r\nDatabase mounted.\r\nDatabase opened.\r\nSQL> exit\r\nDisconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production\r\nWith the Partitioning, OLAP, Data Mining and Real Application Testing options\r\n[orat0@hpserver2 ~]$ export ORACLE_HOME=\/t0\/orat0\/app\/oracle\/product\/10.2.0\/db_1\/\r\n[orat0@hpserver2 ~]$ sqlplus \/ as sysdba\r\nSQL*Plus: Release 10.2.0.5.0 - Production on Thu Mar 22 16:07:21 2012\r\nCopyright (c) 1982, 2010, Oracle. All Rights Reserved.\r\nConnected to an idle instance.\r\nSQL> startup\r\nORACLE instance started.\r\nTotal System Global Area 524288000 bytes\r\nFixed Size 2097560 bytes\r\nVariable Size 146804328 bytes\r\nDatabase Buffers 373293056 bytes\r\nRedo Buffers 2093056 bytes\r\nORA-01102: cannot mount database in EXCLUSIVE mode<\/pre>\n<p>Oracle\u5728\u542f\u52a8\u5b9e\u4f8b\u65f6\uff0c\u6839\u636eORACLE_HOME\u548cORACLE_SID\u7684\u503c\u6765\u552f\u4e00\u786e\u5b9a\u5b9e\u4f8b\u7684\uff0c\u867d\u7136\/t0\/orat0\/app\/oracle\/product\/10.2.0\/db_1\u548c\/t0\/orat0\/app\/oracle\/product\/10.2.0\/db_1\/\u662f\u540c\u4e00\u4e2a\u76ee\u5f55\uff0c\u4f46\u662f\u5bf9Oracle\u800c\u8a00\uff0c\u4e8c\u8005\u662f\u4e0d\u540c\u7684\uff0c\u56e0\u6b64\u5728\u542f\u52a8\u5b9e\u4f8b\u7684\u65f6\u5019\uff0c\u4f1a\u542f\u52a8\u989d\u5916\u7684\u5b9e\u4f8b\u3002<br \/>\n\u800c\u5c1d\u8bd5MOUNT\u65f6\uff0c\u7531\u4e8e\u5c1d\u8bd5\u52a0\u8f7d\u76f8\u540c\u7684\u63a7\u5236\u6587\u4ef6\uff0c\u5bfc\u81f4\u4e86\u4e0a\u9762\u7684\u62a5\u9519\u3002<br \/>\n\u6b64\u5916\uff0c\u5982\u679cORACLE_HOME\u7684\u8bbe\u7f6e\u4e0d\u540c\uff0c\u8fd8\u53ef\u80fd\u9020\u6210\u76d1\u542c\u7684\u5f02\u5e38\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u6709\u540c\u4e8b\u95ee\uff0c\u4e3a\u4ec0\u4e48\u8bbe\u7f6e\u4e86\u6b63\u786e\u7684SID\u540e\u4ecd\u7136\u8fde\u63a5\u5230\u7a7a\u95f2\u5b9e\u4f8b\uff0c\u4e14\u542f\u52a8\u5230MOUNT\u72b6\u6001\u5c31\u62a5\u9519\u3002 \u6839\u636e\u4ed6\u7684\u63cf\u8ff0\uff0c\u57fa\u672c\u4e0a\u53ef\u4ee5\u5224\u65ad\u662fORACLE_HOME\u7684\u8bbe\u7f6e\u95ee\u9898\uff0c\u4e8e\u662f\u505a\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u4f8b\u5b50\u91cd\u65b0\u4e86\u8fd9\u4e2a\u95ee\u9898\uff1a [orat0@hpserver2 ~]$ env|grep ORACLE ORACLE_SID=orcl10g ORACLE_BASE=\/t0\/orat0\/app\/oracle ORACLE_HOME=\/t0\/orat0\/app\/oracle\/product\/10.2.0\/db_1 [orat0@hpserver2 ~]$ sqlplus \/ as sysdba SQL*Plus: Release 10.2.0.5.0 &#8211; Production on Thu Mar 22 16:06:48 2012 Copyright (c) 1982, 2010, Oracle. All Rights Reserved. Connected to an idle instance. SQL> &hellip; <a href=\"https:\/\/yangtingkun.net\/?p=677\">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":[560,219,559],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2yiY3-aV","_links":{"self":[{"href":"https:\/\/yangtingkun.net\/index.php?rest_route=\/wp\/v2\/posts\/677"}],"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=677"}],"version-history":[{"count":1,"href":"https:\/\/yangtingkun.net\/index.php?rest_route=\/wp\/v2\/posts\/677\/revisions"}],"predecessor-version":[{"id":678,"href":"https:\/\/yangtingkun.net\/index.php?rest_route=\/wp\/v2\/posts\/677\/revisions\/678"}],"wp:attachment":[{"href":"https:\/\/yangtingkun.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=677"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yangtingkun.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=677"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yangtingkun.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=677"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}