Informatica MySQL ODBC Driver安装和配置

Verify the ODBC driver whether it supports the Community Edition(Optional)

Prerequisites:

·       Install the MySQL Community Server and Client.

·       Create a user and a database for test

·       Install the informatica powercenter client.

Configure the DSN and test the connection

·       Double click Control Panel\All Control Panel Items\Administrative Tools\ Data Sources (ODBC)
and then
configure an ODBC Data Source Name (DSN) Using the MySQL ODBC Driver shipped with informatica.

·        Fill out the DSN, and test the connection, if it shows a warning message like the following figure, that means you should read this document, otherwise, Close the document and sip tea.
                                                

Download the MySQL Community ODBC Driver and Upload it to Powercenter Server

Download

·       You should download the ODBC Driver from MySQL Website. Here is the download link http://dev.mysql.com/downloads/connector/odbc/

·       Select platform

·       Download the Compressed TAR Archive

Upload

·       Decompress the tar Archive and then you will find the libraries in the lib folder.

·       Upload the libmyodbc5a.so (for ASCII) and libmyodbc5w.so (for Unicode) to the $INFA_HOME/ODBC6.1/lib folder (please make sure that file names are unique to other files.)

·       Change the owner(same with the powercenter service owner) and permission(644)

Configure the $ODBCINI and $ODBCINST files

Attention

1.      Please don’t copy and paste directly;

2.      The Driver is completely accurate;

3.      Set DriverUnicodeType to 1 when the codepage is Unicode

4.      Set Charset to utf8 when the codepage is Unicode, otherwise some characters such as Chinese are garbled.

Configure $ODBCINST file

 [ODBC Drivers]

MySQL ODBC Community UNICODE=Installed

MySQL ODBC Community ASCII=Installed

 

Append these two sections:

[MySQL ODBC Community UNICODE]

Driver=/opt/informatica/powercenter/910/ODBC6.1/lib/libmyodbc5w.so

Description=ODBC For MySQL Community Unicode

DriverUnicodeType=1

DriverODBCVer=5.3

FileUsage=0

 

[MySQL ODBC Community ASCII]

Driver=/opt/informatica/powercenter/910/ODBC6.1/lib/libmyodbc5a.so

Description=ODBC For MySQL Community ASCII

DriverODBCVer=5.3

FileUsage=0

 

Configure $ODBCINI file

[MySQL ODBC Community UNICODE]

Driver=/opt/informatica/powercenter/910/ODBC6.1/lib/libmyodbc5w.so

DESCRIPTION=MySQL Community Unicode

Database=<MySQL_Database>

Server=<Server_Hostname_OR_IP>

User=<Login_user>

Password=<Password>

Socket=

Charset=utf8

DriverUnicodeType=1

 

[MySQL ODBC Community ASCII]

Driver=/opt/informatica/powercenter/910/ODBC6.1/lib/libmyodbc5a.so

DESCRIPTION=MySQL Community ASCII

Database=<MySQL_Database>

Server=<Server_Hostname_OR_IP>

User=<Login_user>

Password=<Password>

Socket=

Install MySQL Community ODBC Driver on the client

See Download the MySQL Community ODBC Driver

Test the MySQL Community ODBC Driver

Please the ssgodbc tool to test the  MySQL Community ODBC Driver on the Powercenter Server.

Ssgodbc help guide

Here’s the command’s help:

Usage: ssgodbc -d dsn -u username -p password [-t user] [-v] [-g]

-d Data Source Name

-u odbc username

-p odbc password

-v verbose output

-c column description only

-g get array size only

-t time SQLTablesW for user


转载于:https://my.oschina.net/swuly302/blog/340759

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值