Informatica configure mysql database connection

Recently, I used Informatica to connect to the Mysql database. I encountered some problems. I will summarize it so that other students can encounter the same problem and avoid detours.

Informatica's built-in DataDirect driver supports a variety of databases, such as Oracle, SQL Server, DB2, Mysql, etc., but for Mysql database, DataDirect only supports the enterprise version (commercial version), but the community version we use daily cannot use DataDirect to connect. You need to configure ODBC to connect to the community version of Mysql.

There are two cases for configuring ODBC. Because the systems where the Informatica Server is located are different, the configuration methods are different:

1) Windows system

Take me as an example, Informatica Server is installed on the local machine (Windows7 64-bit system), Mysql 64-bit, at this time, the Mysql 32-bit and 64-bit drivers need to be installed on the local machine. The ODBC configuration process will not be explained in detail here, 32-bit ODBC is used by PowerCenter Designer to connect to Mysql Import Table, and 64-bit ODBC is used by Workflow Manager to configure connection relationships. If Workflow Manager uses 32-bit ODBC, "The architecture between the driver and the application does not match" when running Workflow. Database driver error"


2) Linux system

Linux system configuration Mysql Odbc quoted the example of teacher Xiaozhuang @clshangsha:

The installation process will not be introduced too much. The directory is automatically set. The redhat5.9 Enterprise Edition platform is installed under /usr/lib64 by default. There are two drives: libmyodbc5w.so supports unicode, and libmyodbc5a.so supports ascii. using unicode drives,

Configure Mysql information in infa's odbc.ini file such as:

[REL_MYSQL_APMDB] 【DSN name】

Description=MySql Driver

Driver=/usr/lib64/libmyodbc5w.so [path to install driver]

SERVER=111.111.111.111

PORT=3306

USER=

Password=

Database=【db name】

OPTION=3

SOCKET=

prefetch=500000

DriverUnicodeType=1

Modify the odbc environment variable to add /usr/lib64 [drive path] to LD_LIBRARY_PATH=$ODBCHOME/lib:/usr/lib64:${INFA_HOME}/tools/pcutils/9.1.0:$LD_LIBRARY_PATH

[The blue font is the added path]

 

----------------------------------------------------------

The above information is purely a personal summary. If you have any questions, please contact us in time;

Please indicate the source when reprinting, thank you.

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326750586&siteId=291194637