Sethunath Page 2 5/29/2008
Heterogeneous services in Oracle permits connection with non-oracle databasesystems. Oracle provides two types of Heterogeneous Services agents, OracleTransparent Gateways and Generic Connectivity. This document details GenericConnectivity which uses Generic Connectivity agents for ODBC and OLEDB which enableyou to use ODBC and OLEDB drivers to access MySQL that have an ODBC or an OLEDBinterface. Any data source compatible with the ODBC or OLEDB standards can beaccessed using a Generic Connectivity agent. As there is no transparent gatewayavailable for MySQL, it can be used to access MySQL; though with certainlimitations.
Windows XPOracle EE 10.2.0.3MySQL version: 5.0
Login to mysql
H:\> mysql -u root mysql -pEnter password: ****Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 10 to server version: 5.0.24a-community-ntType 'help;' or '\h' for help. Type '\c' to clear the buffer.
Grant privileges to root user
mysql> grant usage on *.* to root@localhost with grant option;Query OK, 0 rows affected (0.05 sec)
mysql> create database oraclecall;Query OK, 0 rows affected (0.04 sec)mysql> grant usage on *.* to root@localhost with grant option;Query OK, 0 rows affected (0.05 sec)mysql> use oraclecall;Database changed
Create a user “oracle”
This user id will be used to authenticate using ODBC/OLEDBmysql> grant all on oraclecall.* to 'oracle'@'localhost' identified by 'oracle';Query OK, 0 rows affected (0.02 sec)mysql> flush PRIVILEGES;Query OK, 0 rows affected (0.08 sec)
Install MySQL ODBC driver 3.51 and configure as follows