我已按照规范(the specification theme)安装了用于PosgreSQL的GoldenGate。我的错误的说明很小(请参阅:the specification theme)。我的错误是:
FailureHandling_CONTINUE_ON_FAILURE
我看过规格书,而Google,我需要专家。
我的ODBC.ini文件是:
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.
我已经在/etc/odbc.ini中的OS中设置了$ ODBCINI环境变量。
为什么会出现错误?
答案 0 :(得分:1)
您在ggsci cmdline中的数据库登录命令错误:
GGSCI(quickstart.cloudera)1> DBLOGIN SOURCEDB 源 USERID postgres
在第6行中,您应该在odbc.ini中使用别名名称,而不是实际的数据库名称,因为您的文件为“ postgre”,因此请尝试以下命令:
DBLOGIN SOURCEDB postgre USERID postgres
祝你好运! :)