<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>碧海蓝天 &#187; troubleshooting</title>
	<atom:link href="http://wajoynece.cn/tag/troubleshooting/feed/" rel="self" type="application/rss+xml" />
	<link>http://wajoynece.cn</link>
	<description>Oracle DataBase Linux Software</description>
	<lastBuildDate>Tue, 06 Sep 2011 08:26:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>故障ORA－12516诊断</title>
		<link>http://wajoynece.cn/2009/08/12516/</link>
		<comments>http://wajoynece.cn/2009/08/12516/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 04:18:46 +0000</pubDate>
		<dc:creator>wajoynece</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[troubleshooting]]></category>

		<guid isPermaLink="false">http://wajoynece.cn/?p=154</guid>
		<description><![CDATA[现场报告连接数据库报错：ORA-12519 TNS: no appropriate service handler found 这个错误没遇到过，登录现场环境确认报错情况属实，sqlplus / as sysdba不能登录数据库； 检查操作系统oracle进程数目，与processes=600的设定比较接近； 检查应用服务器连接池连接情况，2台weblogic连接池current都是200，加起来400，有2台tomcat，current情况未知，配置最大75； 检查listener，发现state是blocked &#8216;&#8221;DEDICATED&#8221; established:1 refused:0 state:blocked&#8217; 这里比较异常，正常情况下应该是ready，不解； 求助metalink， 240710.1 找到了原因： By way of instance registration, PMON is responsible for updating the listener with information about a particular instance such as load and dispatcher information. Maximum load for dedicated connections is determined by the [...]]]></description>
			<content:encoded><![CDATA[<p>现场报告连接数据库报错：ORA-12519 TNS: no appropriate service handler found</p>
<p>这个错误没遇到过，登录现场环境确认报错情况属实，sqlplus / as sysdba不能登录数据库；</p>
<p>检查操作系统oracle进程数目，与processes=600的设定比较接近；</p>
<p>检查应用服务器连接池连接情况，2台weblogic连接池current都是200，加起来400，有2台tomcat，current情况未知，配置最大75；</p>
<p>检查listener，发现state是blocked</p>
<blockquote><p>&#8216;&#8221;DEDICATED&#8221; established:1 refused:0 state:blocked&#8217;</p>
</blockquote>
<p>这里比较异常，正常情况下应该是ready，不解；</p>
<p>求助metalink<span style="font-family: helvetica;">，</span><span style="font-family: helvetica;"> <strong>240710.1 </strong></span><span style="font-family: helvetica;">找到了原因：</span></p>
<blockquote><p>By way of instance registration, PMON is responsible for updating the listener<br />
with information about a particular instance  such as load and dispatcher<br />
information. Maximum load for dedicated connections is determined by the<br />
PROCESSES parameter.  The frequency at which PMON provides SERVICE_UPDATE<br />
information varies according to the workload of the instance. The maximum<br />
interval between these service updates is 10 minutes.</p>
<p>The listener counts the number of connections it has established  to the instance<br />
but does not immediately get information about connections that have terminated.<br />
Only when PMON updates  the listener via SERVICE_UPDATE is the listener<br />
informed of current load. Since this can take as long as 10 minutes, there can  be<br />
a difference between the current instance load according to the listener<br />
and the actual instance load.</p>
<p>When the  listener believes the current number of connections has reached maximum<br />
load, it may set the state of the service handler for  an instance to &#8220;blocked&#8221;<br />
and begin refusing incoming client connections with either of the following<br />
errors:</p>
<p>TNS-12516 TNS:listener could not find instance with matching protocol stack</p>
</blockquote>
<p>pmon动态instance信息到listener，这其中就包括process数目的信息，当到达限制时，pmon会通知listener别再申请连接了，listener把相应的服务状态修改为：blocked，客户端再次连接就会报12516错误。</p>
<p>开始解决：两台tomcat服务器运行了归档查询业务，是最近新添加的服务，问题也就出在这里；</p>
<p>关闭tomcat服务器；过一会查看监听状态，发现已经变为ready，sqlplus / as sysdba尝试连接数据库，已经可以连接；</p>
<p>进一步查看session信息，发现tomcat服务器仍然有144个连接，说明tomcat连接有严重泄露情况；</p>
<p>最终，把processes增大，tomcat＝&gt;weblogic，期望可以解决这一问题。</p>
]]></content:encoded>
			<wfw:commentRss>http://wajoynece.cn/2009/08/12516/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>字符型日期字段惹的祸</title>
		<link>http://wajoynece.cn/2009/07/%e5%ad%97%e7%ac%a6%e5%9e%8b%e6%97%a5%e6%9c%9f%e5%ad%97%e6%ae%b5%e6%83%b9%e7%9a%84%e7%a5%b8/</link>
		<comments>http://wajoynece.cn/2009/07/%e5%ad%97%e7%ac%a6%e5%9e%8b%e6%97%a5%e6%9c%9f%e5%ad%97%e6%ae%b5%e6%83%b9%e7%9a%84%e7%a5%b8/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 09:24:34 +0000</pubDate>
		<dc:creator>wajoynece</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[troubleshooting]]></category>

		<guid isPermaLink="false">http://wajoynece.cn/?p=112</guid>
		<description><![CDATA[今天项目中定时任务报错，影响报表数据；日志表看到错误 ORA-01839: date not valid for month specified 起初怀疑是Oracle的bug；……省略一千字，最后发现是在表中掏出两条&#8217;2009-02-29&#8242;这样的字符型日期数据…… 出于应用可以跨数据库的角度，表中日期型数据都使用varchar2存储，留下了隐患。 这是一个教训：日期型数据就要用日期类型字段存储，记得在tom的书中有类似的描述！ 否则可能导致的后果： 可能进入脏数据 也可能导致CBO选择错误的执行计划]]></description>
			<content:encoded><![CDATA[<p>今天项目中定时任务报错，影响报表数据；日志表看到错误<strong> </strong></p>
<p><strong>ORA-01839: date not valid for month specified</strong></p>
<p>起初怀疑是Oracle的bug；……省略一千字，最后发现是在表中掏出两条<strong>&#8217;2009-02-29&#8242;</strong>这样的字符型日期数据……</p>
<p>出于应用可以跨数据库的角度，表中日期型数据都使用varchar2存储，留下了隐患。</p>
<p>这是一个教训：日期型数据就要用日期类型字段存储，记得在tom的书中有类似的描述！<br />
否则可能导致的后果：</p>
<ul>
<li><strong>可能进入脏数据</strong></li>
<li><strong>也可能导致CBO选择错误的执行计划</strong></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://wajoynece.cn/2009/07/%e5%ad%97%e7%ac%a6%e5%9e%8b%e6%97%a5%e6%9c%9f%e5%ad%97%e6%ae%b5%e6%83%b9%e7%9a%84%e7%a5%b8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

