<?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>Sybase数据库技术，数据库恢复专家 &#187; 端口</title>
	<atom:link href="http://www.dbainfo.net/tag/%e7%ab%af%e5%8f%a3/feed" rel="self" type="application/rss+xml" />
	<link>https://www.dbainfo.net</link>
	<description>提供Sybase ASE及Sybase SQL Anywhere数据库修复服务，电话：13811580958(微信)，QQ：289965371！We have many years of experience in recovering data from damanged Sybase devices. Contact us by Phone: +86 13811580958 Wechat: 13811580958 Email: 289965371@qq.com</description>
	<lastBuildDate>Sat, 14 Jun 2025 16:28:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>linux Enterprise5.4下启动sybase时不能分配端口的问题解决</title>
		<link>https://www.dbainfo.net/ase-cant-start-due-to-port-unavailable-at-linux54el.htm</link>
		<comments>https://www.dbainfo.net/ase-cant-start-due-to-port-unavailable-at-linux54el.htm#comments</comments>
		<pubDate>Mon, 21 Dec 2009 02:37:25 +0000</pubDate>
		<dc:creator>dbainfo</dc:creator>
				<category><![CDATA[Sybase ASE]]></category>
		<category><![CDATA[端口]]></category>

		<guid isPermaLink="false">http://www.dbainfo.net/?p=107</guid>
		<description><![CDATA[在linux企业版5.4上用两个不同的账号建立了两个sybase数据库服务器。 15.0.3版本的服务器能够正常启动，12.5.4版本的sybase数据库启动时提示： cannot allocate resources for listener protocol tcp ,host xxx.xxx.xxx.xxx ,port 5000,engine 0. cannot start any network listeners.  上网查找原因： 将/etc/hosts中原来的 127.0.0.1 localhost.localdomain localhost 改为： 127.0.0.1 localhost 192.168.2.178 localhost.localdomain 问题解决，能够用端口5000启动数据库服务器了。 将参考文档放在这里以备后来使用。 ------------------------------------------------------------------------------------------------------------------------------ sybase不能访问服务器解决办法 [ 2009-6-5 12:59:00 &#124; By: 梦精灵 ] 不能远程访问fedora平台上的ase的问题 问题的提出： 问题一： a机：fedora4＋ase15 安装后没有修改ase的任何配置（初次使用sybase的东西，全是缺省配置） b机：win2003＋ase125 a机的sybase central可以连接b机的ase b机不能访问a机的ase a机的防火墙以及selinux都关闭了 在a机telnet b 5000没问题 在b机或者a机本机上telnet ip [...]]]></description>
			<content:encoded><![CDATA[<p>在linux企业版5.4上用两个不同的账号建立了两个sybase数据库服务器。</p>
<p>15.0.3版本的服务器能够正常启动，12.5.4版本的sybase数据库启动时提示：</p>
<p>cannot allocate resources for listener protocol tcp ,host xxx.xxx.xxx.xxx ,port 5000,engine 0.</p>
<p>cannot start any network listeners.</p>
<p> 上网查找原因：</p>
<p>将/etc/hosts中原来的</p>
<p>127.0.0.1 localhost.localdomain localhost</p>
<p>改为：</p>
<p>127.0.0.1 localhost</p>
<p>192.168.2.178 localhost.localdomain</p>
<p>问题解决，能够用端口5000启动数据库服务器了。</p>
<p>将参考文档放在这里以备后来使用。</p>
<p>------------------------------------------------------------------------------------------------------------------------------</p>
<h4>sybase不能访问服务器解决办法</h4>
<p>[ 2009-6-5 12:59:00 | By: 梦精灵 ]</p>
<p>不能远程访问fedora平台上的ase的问题</p>
<p><strong>问题的提出：<br />
问题一：</strong> a机：fedora4＋ase15<br />
安装后没有修改ase的任何配置（初次使用sybase的东西，全是缺省配置）<br />
b机：win2003＋ase125<br />
a机的sybase central可以连接b机的ase<br />
b机不能访问a机的ase<br />
a机的防火墙以及selinux都关闭了<br />
在a机telnet b 5000没问题<br />
在b机或者a机本机上telnet ip 5000：<br />
正在连接到172.20.53.26...不能打开到主机的连接， 在端口 5000: 连接失败<br />
但在a机telnet localhost 5000是可以连接的</p>
<p><strong>问题二：</strong><br />
在interfaces文件中将机器名改为ip地址后<br />
启动服务时出现：<br />
00:00000:00008:2006/04/28 11:32:19.49 kernel ninit: cannot find host 172.20.53.26<br />
00:00000:00008:2006/04/28 11:32:19.49 kernel Cannot allocate resources for listener with protocol tcp, host 172.20.53.26, port 5000, engine 0.<br />
00:00000:00008:2006/04/28 11:32:19.49 kernel Cannot start any network listeners.<br />
但使用hostname、localhost、172.0.0.1都没问题。就是会出现前一个问题，不能远程访问，呵呵。</p>
<p>经过一天的上网搜索，发现了一些好的东西。看来internet还真是个好东西。</p>
<p><strong>问题的解决：</strong></p>
<p>问题最终出在hosts文件上。我个人认为应该是ase利用fedora的hosts文件时，ase的不完美的地方<br />
（因为其它的软件没有出现此类问题。呵呵，个人愚见）<br />
fedora4的hosts文件中有一行：<br />
127.0.0.1 localhost hostname<br />
按照ase的说法，这种写法是incorrect<br />
应该是分为两行：<br />
127.0.0.1 localhost<br />
***.***.***.*** hostname<br />
这里是ip地址对应hostname</p>
<p>这样，前面的问题就解决了。呵呵，就这么简单<br />
还有其它的解决办法。下面是我找到的解决办法的原文：<br />
<strong>Can't connect to <strong>server</strong> from different host</strong> You've installed Sybase on your <strong>linux</strong> machine, and you're certain that it's running. You can ping the host where Sybase is running from other hosts on your net, but you can't connect to the database server itself.<br />
Chances are you are on a Red Hat 6.x system, where the standard installation creates an incorrect /etc/hosts file with the hostname as an alias on the localhost line, instead of on a line by itself. You can use netstat -a -n | grep &lt;sybase port&gt; (where sybase port is the port that Sybase is listening on) to verify that Sybase is listening to the correct IP address.</p>
<p>Check your /etc/hosts file - if it looks like this:</p>
<p>127.0.0.1 localhost my_host</p>
<p>then you have a problem - change your /etc/hosts file to look like this instead:<br />
127.0.0.1 localhost<br />
192.168.0.1 my_host</p>
<p>(obviously you need to use the correct IP address for your host, and the correct host name!)<br />
This should fix the problem.</p>
<p>An alternative solution is to change the hosts: entry in /etc/nsswitch.conf so that DNS or NIS is used before /etc/hosts for hostname lookups. By default /etc/nsswitch.conf has the following:</p>
<p>hosts: files nisplus dns<br />
If you change that to something like<br />
hosts: nisplus dns files<br />
host name lookups should only access /etc/hosts if the information isn't available anywhere else, and therefore give the correct IP address for the hostname.</p>
<p>————————————————————————————————————<br />
——— 本文为andkylee个人原创，请在尊重作者劳动成果的前提下进行转载；<br />
——— 转载务必注明原始出处 : <a href="http://www.dbainfo.net">http://www.dbainfo.net</a><br />
——— 关键字： ASE 15.0.3 启动 端口 hosts<br />
————————————————————————————————————
<div style="clear: both; margin: 10px 0pt; border: 1px dashed rgb(153, 153, 153); font-size: 12px; padding: 5px 10px;">
<li>本文链接地址：<a href="https://www.dbainfo.net/ase-cant-start-due-to-port-unavailable-at-linux54el.htm">https://www.dbainfo.net/ase-cant-start-due-to-port-unavailable-at-linux54el.htm</a>；</li>
<li>本文为dbainfo个人原创，请在尊重作者劳动成果的前提下进行转载；</li>
<li>转载务必注明原始出处 : <a href="https://www.dbainfo.net/">Sybase数据库技术，数据库恢复专家</a>；</li>
<li>对《<a href="https://www.dbainfo.net/ase-cant-start-due-to-port-unavailable-at-linux54el.htm">linux Enterprise5.4下启动sybase时不能分配端口的问题解决</a>》有何疑问或见解，请在本文下方发表；</li>
<li>对网站还有其他问题或建议，请提交在<a href="https://www.dbainfo.net/messages" target="_blank">留言板</a>，谢谢！</li>
</div>
<h2  class="related_post_title">随机日志</h2><ul class="related_post"><li>2011-08-30 -- <a href="https://www.dbainfo.net/mysql-generate-mysqldump-command-with-query.htm" title="mysql下生成备份表的命令的语句">mysql下生成备份表的命令的语句</a> (0)</li><li>2011-03-03 -- <a href="https://www.dbainfo.net/replication-server-warm-standby-sync-data-problem-maintenance-user.htm" title="Replication Server warm standby不能同步数据的一个问题解决">Replication Server warm standby不能同步数据的一个问题解决</a> (0)</li><li>2010-08-23 -- <a href="https://www.dbainfo.net/direct-modify-sqlserver-data-page-by-dbcc-writepage.htm" title="利用dbcc writepage命令修改SQL SQLSERVER中的物理页面上的内容">利用dbcc writepage命令修改SQL SQLSERVER中的物理页面上的内容</a> (3)</li><li>2012-10-31 -- <a href="https://www.dbainfo.net/john-chen-resignation-from-sybase.htm" title="Sybase首席执行官程守宗辞职">Sybase首席执行官程守宗辞职</a> (1)</li><li>2010-01-14 -- <a href="https://www.dbainfo.net/sybase-character-set.htm" title="关于sybase的字符集问题">关于sybase的字符集问题</a> (0)</li><li>2014-10-10 -- <a href="https://www.dbainfo.net/ase-object-name-length-limit.htm" title="ASE对象名称长度限制">ASE对象名称长度限制</a> (0)</li><li>2010-02-22 -- <a href="https://www.dbainfo.net/sql-server-installation-problems.htm" title="SQL Server安装出错解决[转]">SQL Server安装出错解决[转]</a> (0)</li><li>2010-03-28 -- <a href="https://www.dbainfo.net/15-reasons-why-sybase-will-be-in-your-future.htm" title="15 reasons why Sybase will be in your future">15 reasons why Sybase will be in your future</a> (0)</li><li>2010-12-13 -- <a href="https://www.dbainfo.net/sqlserver2005-reinstall-sql-engine.htm" title="SQL Server 2005系统数据库master重建、修复">SQL Server 2005系统数据库master重建、修复</a> (0)</li><li>2014-12-20 -- <a href="https://www.dbainfo.net/openserver_certifications.htm" title="Sybase Open Server各版本认证情况">Sybase Open Server各版本认证情况</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>https://www.dbainfo.net/ase-cant-start-due-to-port-unavailable-at-linux54el.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
