我已经使用规范(规范主题)安装了用于 PosgreSQL 的 GoldenGate 。我的错误的规范非常小(请参阅:规范主题)。我的错误是:
GGSCI (quickstart.cloudera) 1> DBLOGIN SOURCEDB source USERID postgres
Password:
2019-07-02 00:48:15 WARNING OGG-00552 Database operation failed: Couldn't connect to source. ODBC error: SQLSTATE IM002 native database error 0. [DataDirect][ODBC lib] Driver Manager Message file not found. Please check for the value of InstallDir in your odbc.ini.
ERROR: Database operation failed: Couldn't connect to source. ODBC error: SQLSTATE IM002 native database error 0. [DataDirect][ODBC lib] Driver Manager Message file not found. Please check for the value of InstallDir in your odbc.ini.Failed to open data source source for user postgres.
我看过一个规范和谷歌,我需要一个专家。
我的 ODBC.ini 文件是:
[ODBC Data Sources]
postgre=DataDirect 6.1 PostgreSQL Wire Protocol
[ODBC]
IANAAppCodePage=4
InstallDir=/usr/lib64/
[postgre]
Driver=/home/cloudera/gg/lib/GGpsql25.so
Description=DataDirect 6.1 PostgreSQL Wire Protocol
Database=source
HostName=quickstart.cloudera
PortNumber=5432
LogonID=postgres
Password=
我在 /etc/odbc.ini 中的 OS 中设置了 $ODBCINI 环境变量。
为什么会出现错误?