免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1310 | 回复: 4
打印 上一主题 下一主题

求救 sybase odbc 错误 急 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-02-08 13:30 |只看该作者 |倒序浏览
server端 AIX 4.33+SYBASE12.5 +HA
client端  WIN2000+SYBASE OPENCLIENT

客户端用sybase的 dsedit工具能正常连接

用odbc 测试连接时发现如下错误:

[MERANT][ ODBC SYBASE ASE driver] Sybase server is not available or has terminated your connection, you have been successfully connected to the next available HA server 192.168.36.4
   All active transactions has been rolled back

论坛徽章:
0
2 [报告]
发表于 2004-02-09 13:42 |只看该作者

求救 sybase odbc 错误 急

这个应该也不算是 错误

你的ASE是HA环境
这个提示只是证明你原定连接的数据库服务器已经无效(比如已经shutdown,网络故障等),所以将你的连接自动转移到 其 伙伴服务器上

你应该检查数据库服务器端的情况才对!

论坛徽章:
0
3 [报告]
发表于 2004-02-09 17:34 |只看该作者

求救 sybase odbc 错误 急

可是我用dsedit能正常连接,那说明网络连接正常
我登录server端 用showserver查看也一切正常。

论坛徽章:
0
4 [报告]
发表于 2004-02-09 21:21 |只看该作者

求救 sybase odbc 错误 急

dsedit 只是用于配置和测试服务器网络接口信息,没有连接的概念的!

你分别到两台主机上使用isql登录一下看看是否正常
另外,登录进去后执行 sp_companion 命令并把返回结果交上来看看

论坛徽章:
0
5 [报告]
发表于 2004-02-10 09:36 |只看该作者

求救 sybase odbc 错误 急

两边isql登录都正常
主机执行sp_companion
Server 'gcard33_db1' is alive and cluster configured.
Server 'gcard33_db1' is configured for HA services.
Server 'gcard33_db1' is currently in 'Primary normal' mode.
(return status = 0)

从机执行sp_companion
Server 'gcard33_db2' is alive and cluster configured.
Server 'gcard33_db2' is configured for HA services.
Server 'gcard33_db2' is currently in 'Secondary normal' mode.
(return status = 0)

也一切正常啊
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP