[英]Progress OpenEdge ERROR [60] [DataDirect][ODBC 20101 driver]6013
I have issue when trying to connect to a progress openedge database using odbc.尝试使用 odbc 连接到进度 opensge 数据库时遇到问题。 The client code is in c# and running in docker.
客户端代码在 c# 中并在 docker 中运行。 Here is my code :
这是我的代码:
using (OdbcConnection cn = new OdbcConnection("DSN=PROGRESS;UID=username;PWD=pass;"))
{
cn.Open();
}
The issue is that program is crashing at the cn.Open()
with the following error : ERROR [60] [DataDirect][ODBC 20101 driver]6013.问题是程序在
cn.Open()
崩溃并出现以下错误:ERROR [60] [DataDirect][ODBC 20101 driver]6013。
I can successfully connect using isql -v PROGRESS username pass
and I can query tables.我可以使用
isql -v PROGRESS username pass
成功连接,我可以查询表。
Environnement : It is a .NET Core app on a docker environment.环境:它是 docker 环境中的 .NET Core 应用程序。 Here is my odbc.ini file :
这是我的 odbc.ini 文件:
[PROGRESS]
Driver=/usr/lib/x86_64-linux-gnu/pgoe27.so
HostName=192.168.2.11
DatabaseName=dbname
LogonID=username
Password=pass
PortNumber=20000
I do not understand why I can connect using isql but not using c# OdbcConnection... Thanks in advance我不明白为什么我可以使用 isql 进行连接,但不能使用 c# OdbcConnection ... 在此先感谢
According to the Progress Knowledgebase the fact that you are getting error numbers (60, 6013) rather than an error message indicates a configuration problem preventing the message description files from being loaded.根据 Progress Knowledgebase,您收到错误编号 (60, 6013) 而不是错误消息的事实表明配置问题阻止加载消息描述文件。
https://knowledgebase.progress.com/articles/Knowledge/3556 says: https://knowledgebase.progress.com/articles/Knowledge/3556说:
Cause: The ODBC driver manager and/or the ODBC driver library cannot load its message files.
原因:ODBC 驱动程序管理器和/或 ODBC 驱动程序库无法加载其消息文件。
InstallDir is not set correctly in the [ODBC] section of the odbc.ini file or the message files in locale/en_US/LC_MESSAGES are missing.
odbc.ini 文件的 [ODBC] 部分中的 InstallDir 设置不正确,或者 locale/en_US/LC_MESSAGES 中的消息文件丢失。
Make sure the following are set correctly:
确保以下设置正确:
Set the environment variable LANG to en_US :
将环境变量 LANG 设置为 en_US :
export LANG=en_US (ksh shell) setenv LANG en_US (csh shell)
Ensure that the environment variable ODBCINI (or ODBC_INI) is pointing to the proper odbc.ini file
确保环境变量 ODBCINI(或 ODBC_INI)指向正确的 odbc.ini 文件
Ensure that in the [ODBC] section of your odbc.ini file the correct installation path of the ODBC drivers is specified for InstallDir eg InstallDir=/opt/odbc
确保在 odbc.ini 文件的 [ODBC] 部分中为 InstallDir 指定了正确的 ODBC 驱动程序安装路径,例如 InstallDir=/opt/odbc
Make sure the .mo / .po messages files exist (odbcinstaldir/locale/en_US/LC_MESSAGES) and can be loaded by your application
确保 .mo / .po 消息文件存在 (odbcinstaldir/locale/en_US/LC_MESSAGES) 并且可以由您的应用程序加载
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.