In a project, I’m asked to create a database link between Oracle to MySQL. I thought that I can use Oracle’s Heterogeneous Services. Oracle Database is running on Sparc Server (Solaris 10), so I downloaded the free ODBC packages from unixODBC project. They already provide a binary package for Solaris but it says it will remove any non pkgmgr content in “/usr/local/bin” directory. So I decided to download the source codes and build it manually. Although it sounds like a scientific operation, you just need to run 3 commands to build and install the package in normal conditions but oh unfortunately it took a lot of time to fix “library” dependencies problem and adding MySQL support to unixODBC.
Here are the commands to build unixODBC: