{"id":209,"date":"2026-01-23T06:43:09","date_gmt":"2026-01-23T06:43:09","guid":{"rendered":"https:\/\/blog.gpst.net.cn:4008\/?p=209"},"modified":"2026-01-28T06:24:15","modified_gmt":"2026-01-28T06:24:15","slug":"oracle%e8%bf%90%e7%bb%b4-ora-01102%e9%94%99%e8%af%af%e5%a4%84%e7%90%86","status":"publish","type":"post","link":"https:\/\/opshub.com.cn\/?p=209","title":{"rendered":"oracle\u8fd0\u7ef4\u2014\u2014ORA-01102\u9519\u8bef\u5904\u7406"},"content":{"rendered":"\n<p><code>ORA-01102: cannot mount database in EXCLUSIVE mode<\/code> \u9519\u8bef\uff0c\u6838\u5fc3\u539f\u56e0\u662f\u6570\u636e\u5e93\u5c1d\u8bd5\u4ee5\u72ec\u5360\uff08EXCLUSIVE\uff09\u6a21\u5f0f\u6302\u8f7d\uff0c\u4f46\u5f53\u524d\u6570\u636e\u5e93\u5b9e\u4f8b\u5df2\u7ecf\u88ab\u5176\u4ed6\u8fdb\u7a0b\u5360\u7528\uff0c\u6216\u8005\u76f8\u5173\u7684\u9501\u6587\u4ef6 \/ \u5171\u4eab\u5185\u5b58\u672a\u6b63\u786e\u91ca\u653e\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u9519\u8bef\u539f\u56e0\u5206\u6790<\/h3>\n\n\n\n<p>\u8fd9\u4e2a\u9519\u8bef\u901a\u5e38\u7531\u4ee5\u4e0b\u51e0\u79cd\u60c5\u51b5\u5bfc\u81f4\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u6570\u636e\u5e93\u5b9e\u4f8b\u5df2\u7ecf\u5728\u672c\u5730\u6216\u8fdc\u7a0b\u670d\u52a1\u5668\u4e0a\u542f\u52a8\uff08\u53ef\u80fd\u662f\u540e\u53f0\u6b8b\u7559\u8fdb\u7a0b\uff09\u3002<\/li>\n\n\n\n<li>\u6570\u636e\u5e93\u7684\u9501\u6587\u4ef6\uff08<code>lk&lt;ORACLE_SID&gt;<\/code>\uff09\u672a\u88ab\u6b63\u786e\u5220\u9664\uff0c\u5bfc\u81f4\u7cfb\u7edf\u8ba4\u4e3a\u5b9e\u4f8b\u4ecd\u5728\u8fd0\u884c\u3002<\/li>\n\n\n\n<li>\u5171\u4eab\u5185\u5b58\u6bb5\uff08Shared Memory\uff09\u6216\u4fe1\u53f7\u91cf\uff08Semaphore\uff09\u672a\u91ca\u653e\uff0c\u5360\u7528\u4e86\u6570\u636e\u5e93\u8d44\u6e90\u3002<\/li>\n\n\n\n<li>Oracle \u76d1\u542c\u6216\u5176\u4ed6\u8fdb\u7a0b\u5f02\u5e38\u5360\u7528\u4e86\u6570\u636e\u5e93\u7aef\u53e3 \/ \u8d44\u6e90\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u89e3\u51b3\u65b9\u6cd5\uff1a<\/p>\n\n\n\n<p>\u2460shutdown immediate; \uff08\u7acb\u5373\u7ec8\u6b62\u7528\u6237\u4f1a\u8bdd\uff0c\u56de\u6eda\u672a\u63d0\u4ea4\u4e8b\u52a1\uff0c\u5e38\u7528\u4e14\u5b89\u5168\uff09<\/p>\n\n\n\n<p>\u2461lsnrctl stop<\/p>\n\n\n\n<p>\u2462cd $ORACLE_HOME\/dbs \u5220\u9664\u6b8b\u4f59\u7684lk\u5f00\u5934\u7684\u6587\u4ef6\uff08\u6240\u5185\u5b58\u7684\u6587\u4ef6lk\u548csgadef.dbf\uff08\u82e5\u6709\uff09\u6587\u4ef6\uff09\uff0c\u6bd4\u5982lkORCL1 \/bin\/rm -f lk*<\/p>\n\n\n\n<p>\u2463\u67e5\u770b\u5171\u4eab\u5185\u5b58\u6bb5<\/p>\n\n\n\n<p>ipcs -map<\/p>\n\n\n\n<p>\u6839\u636eid\u53f7\u6e05\u9664\u5171\u4eab\u5185\u5b58\u6bb5\uff1a<\/p>\n\n\n\n<p>ipcs -map |awk &#8216;{if($2==&#8221;oracle&#8221;){print $1}}&#8217; |while read line;do [ -n $line ] || continue;ipcrm -m $line;done<\/p>\n\n\n\n<p>\u2464\u67e5\u770b\u4fe1\u53f7\u91cf<\/p>\n\n\n\n<p>ipcs -s<\/p>\n\n\n\n<p>\u6839\u636esemid\u6e05\u9664\u4fe1\u53f7\u91cf<\/p>\n\n\n\n<p>ipcrm -s &lt;semid&gt;<\/p>\n\n\n\n<p>\u2465sqlplus \/ as sysdba<\/p>\n\n\n\n<p>\u2466startup;<\/p>\n\n\n\n<p>\u2467lsnrctl start<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ORA-01102: cannot mount database in EXCLUSIVE mode \u9519\u8bef\uff0c\u6838\u5fc3\u539f\u56e0\u662f\u6570\u636e\u5e93\u5c1d\u8bd5\u4ee5\u72ec\u5360\uff08EXCLUSIVE\uff09\u6a21\u5f0f\u6302\u8f7d\uff0c\u4f46\u5f53\u524d\u6570\u636e\u5e93\u5b9e\u4f8b\u5df2\u7ecf\u88ab\u5176\u4ed6\u8fdb\u7a0b\u5360\u7528\uff0c\u6216\u8005\u76f8\u5173\u7684\u9501\u6587\u4ef6 \/ \u5171\u4eab\u5185\u5b58\u672a\u6b63\u786e\u91ca\u653e\u3002 \u9519\u8bef\u539f\u56e0\u5206\u6790 \u8fd9\u4e2a\u9519\u8bef\u901a\u5e38\u7531\u4ee5\u4e0b\u51e0\u79cd\u60c5\u51b5\u5bfc\u81f4\uff1a \u89e3\u51b3\u65b9\u6cd5\uff1a \u2460shutdown immediate; \uff08\u7acb\u5373\u7ec8\u6b62\u7528\u6237\u4f1a\u8bdd\uff0c\u56de\u6eda\u672a\u63d0\u4ea4\u4e8b\u52a1\uff0c\u5e38\u7528\u4e14\u5b89\u5168\uff09 \u2461lsnrctl stop \u2462cd $ORACLE_HOME\/dbs \u5220\u9664\u6b8b\u4f59\u7684lk\u5f00\u5934\u7684\u6587\u4ef6\uff08\u6240\u5185\u5b58\u7684\u6587\u4ef6lk\u548csgadef.dbf\uff08\u82e5\u6709\uff09\u6587\u4ef6\uff09\uff0c\u6bd4\u5982lkORCL1 \/bin\/rm -f lk* \u2463\u67e5\u770b\u5171\u4eab\u5185\u5b58\u6bb5 ipcs -map \u6839\u636eid\u53f7\u6e05\u9664\u5171\u4eab\u5185\u5b58\u6bb5\uff1a ipcs -map |awk &#8216;{if($2==&#8221;oracle&#8221;){print $1}}&#8217; |while read line;do [ -n $line ] || continue;ipcrm -m $line;done \u2464\u67e5\u770b\u4fe1\u53f7\u91cf ipcs -s \u6839\u636esemid\u6e05\u9664\u4fe1\u53f7\u91cf ipcrm -s &lt;semid&gt; \u2465sqlplus \/ as sysdba [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-209","post","type-post","status-publish","format-standard","hentry","category-8"],"_links":{"self":[{"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/209","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=209"}],"version-history":[{"count":2,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/209\/revisions"}],"predecessor-version":[{"id":652,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/209\/revisions\/652"}],"wp:attachment":[{"href":"https:\/\/opshub.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=209"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=209"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=209"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}