免费注册 查看新帖 |

Chinaunix

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

PB8.0 连接到 Informix 数据库 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-12-17 16:52 |只看该作者 |倒序浏览
我要用 PB8.0 连接到 Informix 数据库,
dataserver:/informix>;onstat -
Informix Dynamic Server Version 7.31.UC4

我是按connection 里的填的,可是连不上数据库,不知是什么原因,请教各位高手了.

// Profile br
SQLCA.DBMS = "IN9 INFORMIX-9"
SQLCA.Database = "tock"    --------库名
SQLCA.UserId = "lih"       --------用户名
SQLCA.DBPass = <******>;   
SQLCA.ServerName = "hostserver@dataserver"     -----主机名 / 数据库服务名
SQLCA.AutoCommit = False
SQLCA.DBParm = "INET_DBPATH='c:\informix',INET_PROTOCOL='onsoctcp',INET_SERVICE='8170',Async=1"

论坛徽章:
0
2 [报告]
发表于 2003-12-18 09:51 |只看该作者

PB8.0 连接到 Informix 数据库

关注。。。。。。

论坛徽章:
0
3 [报告]
发表于 2003-12-19 11:28 |只看该作者

PB8.0 连接到 Informix 数据库

装INFORMIX 客户段,通过ODBC联不行吗

论坛徽章:
0
4 [报告]
发表于 2003-12-19 18:03 |只看该作者

PB8.0 连接到 Informix 数据库

你有没有装PB DATADIRECT或Informix Connection?

论坛徽章:
0
5 [报告]
发表于 2003-12-20 10:13 |只看该作者

PB8.0 连接到 Informix 数据库

我装有客户端的, 可以用Netterm 连上的.
PB 里有 Informix Connection , 应是可以在PB 里连接的
我的PB里也有 Informix Connection IN9
我的主机上的informix版本是
Informix Dynamic Server Version 7.31.UD2

我连接时出现-930的错误,
onbra20a:/home/liucj>;finderr -930
-930    Cannot connect to database server servername.

The application is trying to access another computer system but failed.
Note the server name in the current statement. Ask your network
administrator and DBA to check that the network is operational and that
the particular database server is active. This message appears with
Version 6.0 and later.

论坛徽章:
0
6 [报告]
发表于 2003-12-20 11:01 |只看该作者

PB8.0 连接到 Informix 数据库

// Profile INFORMIX
SQLCA.DBMS = "IN9 INFORMIX-9"
SQLCA.Database = "/c01/main/dev"
SQLCA.UserId = "用户名"
SQLCA.DBPass = <***********>;
SQLCA.ServerName = "192.168.1.100@数据库名l"
SQLCA.AutoCommit = False
SQLCA.DBParm = "INET_PROTOCOL='sesoctcp',INET_SERVICE='1526',INET_DBPATH='/c01/main/dev.dbs'"

我的这样已经连接成功了.  
如不成功EMAIL:LIUBIN@ROCK-WALL.COM

论坛徽章:
0
7 [报告]
发表于 2003-12-20 11:31 |只看该作者

PB8.0 连接到 Informix 数据库

首先,谢谢各位, 但还是不行:
现在的配置是:
出现: error -255  Not in transaction.

  // Profile br
SQLCA.DBMS = "IN9 INFORMIX-9"
SQLCA.Database = "tock@pbdata"
SQLCA.UserId = "lih"
SQLCA.DBPass = <******>;
SQLCA.ServerName = "192.2.1.250@pbdata"
SQLCA.AutoCommit = False
SQLCA.DBParm = ",INET_DBPATH='tock@pbdata',INET_PROTOCOL='onsoctcp',INET_SERVICE='8170'"

pbdata:/informix>;finderr -255
-255    Not in transaction.
The database server cannot execute this COMMIT WORK or ROLLBACK WORK
statement because no BEGIN WORK was executed to start a transaction.
Because no transaction was started, you cannot end one. Any database
modifications that were made are now permanent; they cannot be rolled
back but do not need to be committed. Review the sequence of SQL
statements to see where the transaction should have started.
This error can occur when you open a cursor for update and have not started
a transaction yet.

论坛徽章:
0
8 [报告]
发表于 2003-12-20 12:19 |只看该作者

PB8.0 连接到 Informix 数据库

请加上数据库路径;
SQLCA.Database = "数据库路径及名称不要加扩展名"

另外你的服务器配好了没有?

论坛徽章:
0
9 [报告]
发表于 2003-12-20 14:25 |只看该作者

PB8.0 连接到 Informix 数据库

SQLCA.Database = "tock@pbdata"
如果我不配 SQLCA.Database = "tock@pbdata"
那系统会让我选一个我需要的库,我选了之后点确定就出现了 error -255
"-255 Not in transaction. "
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP