<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[『AskWan』]]></title> 
<link>http://www.askwan.com/index.php</link> 
<description><![CDATA[Related About My Life,Unix,Linux,System Architecture,Mysql,PostgreSQL,Oracle Etc ]]></description> 
<language>en-US</language> 
<copyright><![CDATA[『AskWan』]]></copyright>
<item>
<link>http://www.askwan.com/post//</link>
<title><![CDATA[遭遇 ORA-01102: cannot mount database in EXCLUSIVE mode]]></title> 
<author>askwan &lt;askwan@yahoo.cn&gt;</author>
<category><![CDATA[DataBase]]></category>
<pubDate>Mon, 18 May 2009 08:38:43 +0000</pubDate> 
<guid>http://www.askwan.com/post//</guid> 
<description>
<![CDATA[ 
	刚刚装好的库，简单测试没有问题后，放下，不到半个钟头，再次连接上去，发现数据库已经不可用了……<br/><br/><div class="quote"><div class="quote-title">Quotation</div><div class="quote-content">oracle@staging:~$ sqlplus /nolog<br/><br/>SQL*Plus: Release 10.2.0.1.0 - Production on Mon May 18 16:13:29 2009<br/><br/>Copyright (c) 1982, 2005, Oracle.&nbsp;&nbsp;All rights reserved.<br/><br/>SQL> conn&nbsp;&nbsp;/ as sysdba<br/>Connected to an idle instance.<br/><br/>SQL> select * from scott.emp;<br/>select * from scott.emp<br/>*<br/>ERROR at line 1:<br/><span style="color: #DC143C;">ORA-01034: ORACLE not available</span></div></div><br/><br/>机器并没有重启，oracle莫名其妙的到了不可用状态！我开始以为是谁关闭了，下开启指令<br/><div class="quote"><div class="quote-title">Quotation</div><div class="quote-content">SQL> startup<br/>ORACLE instance started.<br/><br/>Total System Global Area 1224736768 bytes<br/>Fixed Size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2020384 bytes<br/>Variable Size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 318770144 bytes<br/>Database Buffers&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;889192448 bytes<br/>Redo Buffers&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 14753792 bytes<br/><span style="color: #DC143C;">ORA-01102: cannot mount database in EXCLUSIVE mode</span></div></div><br/><br/>这下遭遇ORA-01102: cannot mount database in EXCLUSIVE mode 错误了<br/>Search On Google，then get the problem's anwser<br/>大意是 “Oracle被异常关闭时，有资源没有被释放……”<br/><br/>检查警告日志，也证实了这一点，系统异常<br/><br/>马上查$ORACLE_HOME/dbs,发现一lk【SID】 文件，果然呆在这里<br/><div class="quote"><div class="quote-title">Quotation</div><div class="quote-content">staging:dbs# fuser -u lkCAPITALV <br/>lkCAPITALV:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;368(oracle)&nbsp;&nbsp; 370(oracle)&nbsp;&nbsp; 372(oracle)&nbsp;&nbsp; 374(oracle)&nbsp;&nbsp; 376(oracle)&nbsp;&nbsp; 378(oracle)&nbsp;&nbsp; 380(oracle)&nbsp;&nbsp; 382(oracle)&nbsp;&nbsp; 384(oracle)&nbsp;&nbsp; 386(oracle)&nbsp;&nbsp; 388(oracle)&nbsp;&nbsp; 397(oracle)&nbsp;&nbsp;1472(oracle)&nbsp;&nbsp;1557(oracle)&nbsp;&nbsp;8852(oracle)</div></div><br/><br/>杀掉先：<br/><div class="quote"><div class="quote-title">Quotation</div><div class="quote-content">staging:dbs# fuser -k lkCAPITALV</div></div><br/><br/>再查，发现已经没有资源占用<br/><div class="quote"><div class="quote-title">Quotation</div><div class="quote-content">staging:dbs# fuser -u lkCAPITALV&nbsp;&nbsp; </div></div><br/>ok！<br/>再次启动Oracle<br/><div class="quote"><div class="quote-title">Quotation</div><div class="quote-content">oracle@staging:~$ sqlplus /nolog<br/><br/>SQL*Plus: Release 10.2.0.1.0 - Production on Mon May 18 16:24:05 2009<br/><br/>Copyright (c) 1982, 2005, Oracle.&nbsp;&nbsp;All rights reserved.<br/>SQL> conn / as sysdba<br/>Connected to an idle instance.<br/>SQL> startup<br/>ORACLE instance started.<br/><br/>Total System Global Area 1224736768 bytes<br/>Fixed Size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2020384 bytes<br/>Variable Size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 318770144 bytes<br/>Database Buffers&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;889192448 bytes<br/>Redo Buffers&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 14753792 bytes<br/>Database mounted.<br/>Database opened.<br/>SQL> exit<br/>Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production<br/>With the Partitioning, OLAP and Data Mining options</div></div><br/>----------------------END----------------------------<br/>Tags - <a href="http://www.askwan.com/tags/oracle/" rel="tag">oracle</a> , <a href="http://www.askwan.com/tags/ora-01102/" rel="tag">ora-01102</a>
]]>
</description>
</item><item>
<link>http://www.askwan.com/post//#blogcomment</link>
<title><![CDATA[[Comments] 遭遇 ORA-01102: cannot mount database in EXCLUSIVE mode]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[Comments]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.askwan.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>