【问题标题】:Why do I have the GoldenGate for PostgreSQL Error in ODBC?为什么我在 ODBC 中出现 GoldenGate for PostgreSQL 错误?
【发布时间】:2019-07-03 09:06:36
【问题描述】:

我已经按照规范 (the specification theme) 安装了适用于 PosgreSQL 的 GoldenGate。我的错误的规格非常小(请参阅:the specification theme)。我的错误是:

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 环境变量。

为什么会出现错误?

【问题讨论】:

    标签: postgresql odbc oracle-golden-gate


    【解决方案1】:

    您在 ggsci cmdline 中的数据库登录命令错误:

    GGSCI (quickstart.cloudera) 1> DBLOGIN SOURCEDB source USERID postgres

    这里你应该使用 odbc.ini 中的别名,而不是实际的 DB 名称,在你的文件中是“postgre”,在第 6 行,所以试试这个命令:

    DBLOGIN SOURCEDB postgre USERID postgres

    祝你好运! :)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-05-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多