Note: Please be aware that changes in this file are not reflected in DataStage u
ntil the Engine is restarted.
To test access to these libraries
a) Open a telnet session with the machine where the DataStage Engine is running
and log as the same user that is trying to connect in DataStage. Then source the
dsenv file by going to $DSHOME and executing:
this will set the environment variable $ODBCINI (that points to the .odbc.ini co
ntaining the Datasource Names (DSN) and the path to the odbc drivers. This also
will set the environment variable $PATH and the library path (the name of this v
ariable depends on the platform the most common ones are LIBPATH and LD_LIBRARY_
PATH).
b) Then you need to identify the driver you are using in your DSN. This can be o
btained by inspecting the .odbc.ini file. Each DSN has a line that starts with "
Driver=" and then the full path to the odbc driver used. For example in this DSN
:
[iadb]
Driver=/opt/IBM/InformationServer/Server/branded_odbc/lib/VMdb222.so
Description=DataDirect DB2 Wire Protocol Driver
Database=iadb
DynamicSections=100
GrantAuthid=PUBLIC
GrantExecute=1
IpAddress=localhost
IsolationLevel=CURSOR_STABILITY
Package=DB2 package name
TcpPort=50000
WithHold=1
the driver is
/opt/IBM/InformationServer/Server/branded_odbc/lib/VMdb222.so
c) Once you have identified this driver you can use the program "ivtestlib" to c
onfirm that you have acess to the libraries that the driver needs. This program
is located under $DSHOME/../branded_odbc/bin, for example to test the driver of
the example, you can run
cd $DSHOME/../branded_odbc/bin
./ivtestlib /opt/IBM/InformationServer/Server/branded_odbc/lib/VMdb222.so
if the libraries are not configured properly you will get one or more lines sayi
ng "Cannot load ...". This is just an example:
exec(): 0509-036 Cannot load program /opt/IBM/InformationServer/Server/branded_o
dbc/lib/VMdb222.so because of the following errors:
0509-022 Cannot load module /opt/IBM/InformationServer/Server/branded_odbc/lib/V
Mdb222.so.
0509-150 Dependent module libVMicu22.a(VMicu22.so) could not be loaded.
0509-022 Cannot load module libVMicu22.a(VMicu22.so).
0509-026 System error: A file or directory in the path name does not exist.
0509-022 Cannot load module /opt/IBM/InformationServer/Server/branded_odbc/lib/V
Mdb222.so.
0509-150 Dependent module /opt/IBM/InformationServer/Server/branded_odbc/lib/VMd
DataStage uses besides the .odbc.ini file for ODBC connections is the uvodbc.co
nfig file. There is one uvodbc.config file under each project and it has a list
of all the DSN that can be accessed from this project. Instructions on how to mo
dify this file are located in the same file. Here is an excerpt of this file:
***
***
***
***
***
***
To get to any ODBC source other than UniVerse, you need entries
that look as follows (the data source must also be configured
via the operating system's own mechanisms):
<data source name>
DBMSTYPE = ODBC
A common errors while editing this file are suppressing spaces around the "=". I
n the previous example, you should add these lines to this file:
<iadb>
DBMSTYPE = ODBC
Note: there is also an uvodbc.config file under $DSHOME. This file has the same
structure as that under each project. DSNs added to this file will show up in al
l projects.
The final test is to try to import a table from this database by using Designer
and the ODBC DSN. You should be able to see the DSN listed. If you don't see the
DSN, then there is a problem in the uvodbc.config file. If you see the DSN and
you can get the list of tables of this database then the connection is working f
ine and you can use this DSN in a job.
********************************************************************************
********************************************************************************
********************************************************************************
********************************************************************************
**
In DataStage Designer, an error 'Specified security mechanism, (Unknown), is not
supported by server' occurs when trying to connect via ODBC connector to a DB2
database
Problem(Abstract)
In Designer, when testing a connection to a DB2 database within the ODBC connect
or, the following error occurred.
ODBC function "SQL Connect" reported: SQLSTATE = HY000: Natvie Error Code = 8,33
9: Msg = [IBM(DataDirect OEM)][ODBC DB2 Wire Protocol driver]Specified security
mechanism, (Unknown), is not supported by server.
Diagnosing the problem
In the DataDirect ODBC User's Guide:
AuthenticationMethod (AM)
Description
Specifies the method the driver uses to authenticate the user to the server when
a connection is established. If the specified authentication method is not supp
orted by the database server, the connection fails and the driver generates an e
rror.
Valid Values
0 | 1 | 2 | 3 | 4 | 7 | 8
If set to 0 (No Encryption), the driver sends the user ID and password in cl