ODBC for Sybase IQ

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
dinagipsh
Participant
Posts: 5
Joined: Wed Jun 04, 2003 8:29 am

ODBC for Sybase IQ

Post by dinagipsh »

Hi,
We have a trouble with the odbc connection to sybase iq.
Datastage 6.01, Solaris 8.
1.I edit the dsenv file to point to the Sybase iq installation directory, added the LD_LIBRARY_PATH.
2.I put the entry into .odbc.ini to point to the odbc driver like
Driver=/sybase_home/lib/dbodbc7.so
3.I edit the uvodbc.config file.
When I run the test of bin/dssh and try to connect to my datasource name, I receive the error of "Specified driver could not be loaded"
From the Datastage test that comes with the branded_odbc:
(branded_odbc/bin/ivtestlib)
I receive the error of wrong ELF class: ELFCLASS64
[?][?][?]
Thank you
WoMaWil
Participant
Posts: 482
Joined: Thu Mar 13, 2003 7:17 am
Location: Amsterdam

Post by WoMaWil »

Shalom Dina,

Did you restart DataStage after changing dsenv?


Wolfgang Huerter
=====================
Cologne, Germany
dinagipsh
Participant
Posts: 5
Joined: Wed Jun 04, 2003 8:29 am

Post by dinagipsh »

Yes, not once.
Starg
Participant
Posts: 16
Joined: Sun May 05, 2002 6:56 pm
Contact:

Post by Starg »

Hi,
Post your $ODBCINI file for the IQ section your having problems with... we use DS5.2r2 on Solaris 8 without any problems (you can also use a sybase open client stage if you want, and therefore no $ODBC settings).

Here is one of my ODBC entries for an IQ server.

[DW_IQ_A_ODBC]
Driver=/data/sybase/ASIQ_1243/asiq12/lib/libodbc.so
Descriprion=DW_IQ_A_ODBC
Database=DW_IQ_A
ServerName=DW_IQ_A
WorkstationID=E4000
LogonID=DBA
Password=SQL
OptimizePrepare=2
SelectMethod=1

Hope that helps.

Starg
Starg
Participant
Posts: 16
Joined: Sun May 05, 2002 6:56 pm
Contact:

Post by Starg »

Another action is to login as the user that runs the datastage processes (eg dsadm) and source the dsenv file, double check that all the environment settings are correct and that you can run all the standard sybase tools.
BIuser
Premium Member
Premium Member
Posts: 238
Joined: Thu Feb 02, 2006 4:03 am
Location: South Africa

Post by BIuser »

Hi,

Wrong ELF class indicates that you are using the 64bit IQ driver. Install the 32 bit driver to resolve the issue.
-------------------------
https://www.ssa.co.za
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Thanks for posting that for future searchers.

Still waiting for one of these to get a response like - "Thank Gawd! I've been waiting five years for someone to help me with my problem!" :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply