为什么我在 ODBC 中出现 GoldenGate for PostgreSQL 错误?
Why do I have the GoldenGate for PostgreSQL Error in ODBC?
我已经按照规范 (the specification theme). The specification for my error is fully small (see: the specification theme) 安装了 The GoldenGate for PosgreSQL。我的错误是:
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.
我已经看过说明书和google,我需要专家。
我的 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 环境变量
为什么会出现这个错误?
你在 ggsci cmdline 中的数据库登录命令是错误的:
GGSCI (quickstart.cloudera) 1> DBLOGIN SOURCEDB source USERID postgres
这里你应该使用 odbc.ini 中的别名,而不是实际的数据库名称,在你的文件中是 "postgre",在第 6 行,所以试试这个命令:
DBLOGIN SOURCEDB postgre USERID postgres
祝你好运! :)
我已经按照规范 (the specification theme). The specification for my error is fully small (see: the specification theme) 安装了 The GoldenGate for PosgreSQL。我的错误是:
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.
我已经看过说明书和google,我需要专家。
我的 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 环境变量为什么会出现这个错误?
你在 ggsci cmdline 中的数据库登录命令是错误的:
GGSCI (quickstart.cloudera) 1> DBLOGIN SOURCEDB source USERID postgres
这里你应该使用 odbc.ini 中的别名,而不是实际的数据库名称,在你的文件中是 "postgre",在第 6 行,所以试试这个命令:
DBLOGIN SOURCEDB postgre USERID postgres
祝你好运! :)