2. Openlink
This step is a little bit complicated. You have to done works on both sides of your Linux client machine and NT server.
2.1 On the Client
- From
ftp://www.openlinksw.com/,
download
install.shandlikoxglc.taz(for a libc6 system) orlikoxxxx.taz(for a libc5 system). mkdir /usr/local/openlink- copy
install.shandlikoxglc.tazinto/usr/local/openlink cd /usr/local/openlinksh install.sh, the install script will ask you the owner and group of the program. It will extract things toodbcsdkdirectory under/usr/local/openlinkand copy a.odbc.iniinto the owner's home directory.
2.2 On the Server
- From
ftp://www.openlinksw.com/,
download
ntadm65x.ziponto your NT server. unzip ntadm65x.zipcd disk1- directory of where you unzip the package.- execute
setupand follow the instructions to install the Openlink middleware. - remember to start Openlink request broker from start menu or service control panel.
2.3 Configuration Before Test
- keep the
.odbc.inifile in your home directory. - copy the
udbc.inifrom the bin directory of Openlink middleware install directory to the/etcdirectory of client. - customize
/etc/udbc.ini. In [dsn_sql6] section, change the host, database, username and password entries to fit your server settings. Here is part of my/etc/udbc.ini:[dsn_sql6] Host = 10.0.0.1 ServerType = sql6 ;ServerOptions = Database = pubs ;FetchBufferSize = 30 UserName = sa Password = xxxxxxx
- add to your environment
LD_LIBRARY_PATH='/usr/local/openlink/odbcsdk/lib'and export it. In csh shell, type:setenv LD_LIBRARY_PATH /usr/local/openlink/odbcsdk/lib
2.4 Text with odbctest
cd /usr/local/openlink/odbcsdk/examples./odbctest- type:
dsn=dsn_sql6 - when 'sql>' appears, you can execute your sql clauses to test the connection.
Next Previous Contents