<?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; dns</title>
	<atom:link href="https://www.xifenfei.com/tag/dns/feed" rel="self" type="application/rss+xml" />
	<link>https://www.xifenfei.com</link>
	<description>提供7*24专业数据库(Oracle,SQL Server,MySQL,PostgreSQL等)恢复和技术支持@Tel:17813235971</description>
	<lastBuildDate>Thu, 29 Oct 2026 15:31:46 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>dns解析导致opiodr aborting process unknown ospid (7266) as a result of ORA-609类似错误</title>
		<link>https://www.xifenfei.com/2015/10/dns%e8%a7%a3%e6%9e%90%e5%af%bc%e8%87%b4opiodr-aborting-process-unknown-ospid-7266-as-a-result-of-ora-609%e7%b1%bb%e4%bc%bc%e9%94%99%e8%af%af.html</link>
		<comments>https://www.xifenfei.com/2015/10/dns%e8%a7%a3%e6%9e%90%e5%af%bc%e8%87%b4opiodr-aborting-process-unknown-ospid-7266-as-a-result-of-ora-609%e7%b1%bb%e4%bc%bc%e9%94%99%e8%af%af.html#comments</comments>
		<pubDate>Thu, 29 Oct 2015 14:30:48 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[Oracle 监听]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[nsswitch.conf]]></category>
		<category><![CDATA[ORA-609]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=6161</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2015/10/dns%e8%a7%a3%e6%9e%90%e5%af%bc%e8%87%b4opiodr-aborting-process-unknown-ospid-7266-as-a-result-of-ora-609%e7%b1%bb%e4%bc%bc%e9%94%99%e8%af%af.html">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div id="xifenfeicopyright">
<p>联系：<a href="https://www.xifenfei.com/about_xifenfei" target="_blank">手机/微信(+86 17813235971)   QQ(107644445)</a><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&#038;uin=107644445&#038;site=qq&#038;menu=yes"><img src="https://www.xifenfei.com/wp-content/themes/img/site_qq.jpg" alt="QQ咨询惜分飞" title="QQ咨询惜分飞"/></a></p>
<p>标题：<a href="https://www.xifenfei.com/2015/10/dns%e8%a7%a3%e6%9e%90%e5%af%bc%e8%87%b4opiodr-aborting-process-unknown-ospid-7266-as-a-result-of-ora-609%e7%b1%bb%e4%bc%bc%e9%94%99%e8%af%af.html" target="_blank">dns解析导致opiodr aborting process unknown ospid (7266) as a result of ORA-609类似错误</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>数据库alert日志中出现大量类似opiodr aborting process unknown ospid (7266) as a result of ORA-609错误</p>
<pre class="brush: bash; title: ; notranslate">
Tue Oct 27 07:51:10 2015
opiodr aborting process unknown ospid (7266) as a result of ORA-609
Tue Oct 27 08:16:56 2015
opiodr aborting process unknown ospid (7660) as a result of ORA-609
Tue Oct 27 08:17:16 2015
opiodr aborting process unknown ospid (7666) as a result of ORA-609
Tue Oct 27 08:21:50 2015
opiodr aborting process unknown ospid (7725) as a result of ORA-609
Tue Oct 27 08:37:43 2015
opiodr aborting process unknown ospid (7940) as a result of ORA-609
Tue Oct 27 08:51:25 2015
opiodr aborting process unknown ospid (8126) as a result of ORA-609
Tue Oct 27 09:07:16 2015
opiodr aborting process unknown ospid (8359) as a result of ORA-609
Tue Oct 27 09:26:09 2015
opiodr aborting process unknown ospid (8600) as a result of ORA-609
</pre>
<p><strong>测试tnsping</strong></p>
<pre class="brush: bash; title: ; notranslate">
[oracle@Sql admin]$ tnsping orcl

TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 28-OCT-2015 01:40:55

Copyright (c) 1997, 2009, Oracle.  All rights reserved.

Used parameter files:
/opt/oracle/product/11.2.0/db_1/network/admin/sqlnet.ora


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.162)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl.Sql.xifenfei.com)))
OK (20120 msec)
[oracle@Sql admin]$ tnsping orcl

TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 28-OCT-2015 01:42:35

Copyright (c) 1997, 2009, Oracle.  All rights reserved.

Used parameter files:
/opt/oracle/product/11.2.0/db_1/network/admin/sqlnet.ora


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.162)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl.Sql.xifenfei.com)))
OK (41600 msec)
</pre>
<p><strong>hosts文件配置</strong></p>
<pre class="brush: bash; title: ; notranslate">
[oracle@Sql admin]$ vi /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 
192.168.2.162 Sql.xifenfei.com
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
</pre>
<p>同时测试lsnrctl start/stop/status都很慢,但是ping localhost非常快,证明问题在监听之上.search 关键字lsnrctl slow/tnsping slow关键字发现有相关文档:<br />
Bug 8307164 : TNSPING 11G USING DNS AND NOT HOSTS FILE<br />
Listener Startup or Connections Hang in 11g (Doc ID 803838.1)<br />
11g: Remote Connections Take Very Long to Establish (Doc ID 856820.1)<br />
通过这些文档,可以知道在oracle 10g中解析主机名使用gethostbyname()函数,11g中使用了使用getaddrinfo()函数.这个函数对于/etc/nsswitch.conf的调用和ethostbyname()不一样,从而出现此类问题.根据官方建议:</p>
<pre class="brush: bash; title: ; notranslate">
Linux
hosts: files [NOTFOUND=continue] dns OR  hosts:files/dns

HPUX and Solaris
ipnodes: files [NOTFOUND=continue] dns
</pre>
<p><strong>本次解决方法</strong><br />
因为对于没有使用到dns服务器的数据库环境而言,没有必要配置这玩意,给自己埋雷，估计是当时安装yum之时没有清理掉</p>
<pre class="brush: bash; title: ; notranslate">
vi /etc/nsswitch.conf
hosts:      files nds  --&gt;hosts:      files
</pre>
<p><strong>再次测试tnsping,lsnrctl等命令,速度ok</strong></p>
<pre class="brush: bash; title: ; notranslate">
[oracle@Sql&quot;]$ tnsping orcl

TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 28-OCT-2015 01:58:30

Copyright (c) 1997, 2009, Oracle.  All rights reserved.

Used parameter files:
/opt/oracle/product/11.2.0/db_1/network/admin/sqlnet.ora


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.162)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl.Sql.xifenfei.com)))
OK (10 msec)
</pre>
<p>对于此类监听慢的问题，可以通过对client/server端trace进一步跟踪</p>
<pre class="brush: bash; title: ; notranslate">
TRACE_LEVEL_CLIENT = 16
TRACE_FILE_CLIENT = client/server
TRACE_DIRECTORY_CLIENT = [any valid directory path]
TRACE_TIMESTAMP_CLIENT = ON
DIAG_ADR_ENABLED=off
</pre>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2025/02/connect-pdb-sid-use_sid_as_service_listener.html" rel="bookmark" class="crp_title">使用sid方式直接访问pdb(USE_SID_AS_SERVICE_LISTENER)</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/11/%e5%9b%a0%e5%9f%9f%e5%90%8d%e8%a7%a3%e6%9e%90%e5%af%bc%e8%87%b4%e6%95%b0%e6%8d%ae%e5%ba%93%e8%bf%9e%e6%8e%a5%e5%bb%b6%e8%bf%9f%e5%88%86%e6%9e%90.html" rel="bookmark" class="crp_title">因域名解析导致数据库连接延迟分析</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2020/10/ora-01034-ora-27101.html" rel="bookmark" class="crp_title">ORA-01034 ORA-27101故障分析</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2020/01/oracle-to-sql-gateway.html" rel="bookmark" class="crp_title">oracle to sql 透明网络配置</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2016/07/mount%e6%95%b0%e6%8d%ae%e5%ba%93%e4%b9%9f%e5%8f%af%e8%83%bd%e6%9c%89localno%e7%9a%84%e8%bf%9b%e7%a8%8b.html" rel="bookmark" class="crp_title">mount数据库也可能有LOCAL=NO的进程</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/02/%e8%bf%9c%e7%a8%8b%e8%ae%bf%e9%97%aeasm.html" rel="bookmark" class="crp_title">远程访问ASM</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/12/hostname%e9%85%8d%e7%bd%ae%e4%b8%8d%e5%88%87%e5%bd%93%e5%af%bc%e8%87%b4tns-12542%e9%94%99%e8%af%af.html" rel="bookmark" class="crp_title">hostname配置不切当导致TNS-12542错误</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/06/%e5%9b%a0ipc%e5%af%bc%e8%87%b4%e5%a4%9a%e4%b8%aa%e7%9b%91%e5%90%ac%e4%b8%8d%e8%83%bd%e6%ad%a3%e5%b8%b8%e5%90%af%e5%8a%a8.html" rel="bookmark" class="crp_title">因IPC导致多个监听不能正常启动</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/08/ora-609-tns-12537-and-tns-12547-in-11g-alert-log.html" rel="bookmark" class="crp_title">ORA-609 TNS-12537 and TNS-12547 in 11g Alert.log</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/04/%e8%ae%b0%e5%bd%95%e4%b8%80%e6%ac%a1arc1-destination-log_archive_dest_2-network-reconnect-abandoned%e8%a7%a3%e5%86%b3.html" rel="bookmark" class="crp_title">记录一次ARC1: Destination LOG_ARCHIVE_DEST_2 network reconnect abandoned解决</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/03/ipfirst%e4%bd%9c%e7%94%a8%e8%af%b4%e6%98%8e.html" rel="bookmark" class="crp_title">IP=FIRST作用说明</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/03/%e5%9c%a8rac%e4%b8%adlsnrctl%e5%92%8csrvctl%e6%93%8d%e4%bd%9c%e7%9b%91%e5%90%ac%e5%8c%ba%e5%88%ab.html" rel="bookmark" class="crp_title">在RAC中lsnrctl和srvctl操作监听区别</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2015/10/dns%e8%a7%a3%e6%9e%90%e5%af%bc%e8%87%b4opiodr-aborting-process-unknown-ospid-7266-as-a-result-of-ora-609%e7%b1%bb%e4%bc%bc%e9%94%99%e8%af%af.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
