我正在尝试将我的HANA服务器(SLES)与Greenplum群集连接起来。在我的HANA服务器中,我安装了最新版本的PostgreSQL和PostgreSQL ODBC。在“/ usr / local / lib /”路径中,我有以下文件:
-rwxr-xr-x 1 root root 1056 May 8 14:31 psqlodbca.la
-rwxr-xr-x 1 root root 1382864 May 8 14:31 psqlodbca.so
-rwxr-xr-x 1 root root 1056 May 8 14:31 psqlodbcw.la
-rwxr-xr-x 1 root root 1494311 May 8 14:31 psqlodbcw.so
因此我正确安装了PostgreSQL ODBC。 在/etc/odbc.ini中,我有以下配置:
[psqlodbc_test_dsn]
Description = psqlodbc regression test DSN
Driver = PostgreSQL Unicode
Trace = Yes
TraceFile =
Database = contrib_regression
Servername = mdw.aws
Username = root
Password =
Port = 5432
ReadOnly = No
RowVersioning = No
ShowSystemTables = No
ShowOidColumn = No
FakeOidIndex = No
ConnSettings = set lc_messages='C'
在/etc/odbcinst.ini中,我有以下配置:
[PostgreSQL Unicode]
Description = PostgreSQL ODBC driver (Unicode version), for regression tests
Driver = ../.libs/psqlodbcw.so
Debug = 0
CommLog = 0
在/etc/odbc.ini中我更改Driver = /usr/local/lib/psqlodbcw.so并尝试运行“isql -v psqlodbc_test_dsn”时出现以下错误:
[01000][unixODBC][Driver Manager]Can't open lib '/usr/local/lib/psqlodbcw.so' : file not found
[ISQL]ERROR: Could not SQLConnect
但是在/etc/odbc.ini中我更改了Driver = PostgreSQL Unicode并且我尝试运行“isql -v psqlodbc_test_dsn”时出现以下错误:
[IM002][unixODBC][Driver Manager]Data source name not found, and no default driver specified
[ISQL]ERROR: Could not SQLConnect
可能是什么错误?感谢您的支持!