我正在尝试配置我们的Web服务器(RHEL 5.4 x86)以使用unixODBC连接到Oracle数据库.我安装了unixODBC-2.2.11-7.1.1,yum告诉我这是最新版本.我还安装了Oracle InstantClient 11.2和Oracle InstantClient ODBC库.
我已将/usr/lib/oracle/11.2/client/lib中的所有.so文件符号链接到/usr/lib.我已将$LD_LIBRARY_PATH设置为/usr/lib /,将$ORACLE_HOME设置为/usr/lib / oracle,将$TNS_ADMIN设置为包含我的(有效)Tnsnames.ora文件的目录.以下是我的/etc/odbcinst.ini文件的内容:
[Oracle] Description = Oracle ODBC Connection Driver = /usr/lib/libsqora.so.11.1 Setup = FileUsage =
和我的/etc/odbc.ini文件:
[Oracle] Application Attributes = T Attributes = W BatchAutocommitMode = IfAllSuccessful CloseCursor = F DisableDPM = F DisableMTS = T Driver = Oracle EXECSchemaOpt = EXECSyntax = T Failover = T FailoverDelay = 10 FailoverRetryCount = 10 FetchBufferSize = 64000 ForceWCHAR = F Lobs = T Longs = T MetadataIdDefault = F QueryTimeout = T ResultSets = T ServerName = //<host>:<port>/<db> sqlGetData extensions = F Translation DLL = Translation Option = 0 UserID =
(ServerName已被编辑…主机,端口和数据库实际上存在,并且正确)
当我运行isql时,我得到了
$isql -v Oracle isql: symbol lookup error: /usr/lib/libsqora.so.11.1: undefined symbol: sqlGetPrivateProfileStringW
运行dltest给了我
$dltest Oracle sqlConnect [dltest] ERROR dlopen: Oracle: cannot open shared object file: No such file or directory
如果有人有任何见解我将不胜感激,我一直试图让这个连接约5个小时吧…
我要回家过夜,但如果有必要,我很乐意在明天早上向愿意帮助的人提供更多细节……
您可能想在OTN论坛中查看
this discussion.相关的讨论大约发生在线程的75%,第二个帖子是用户ardesai.
原文链接:https://www.f2er.com/oracle/205391.html