ODBC.ini File Help

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
antonyraj.deva
Premium Member
Premium Member
Posts: 138
Joined: Wed Jul 16, 2008 9:51 pm
Location: Kolkata

ODBC.ini File Help

Post by antonyraj.deva »

Hi All,
My requriement is to connect to a DB2/400 (iSeries) & SQL Server sources with the Datastage server in AIX 5.3. and the target is DB2 UDB which is installed in the server itself. I'm a bit confused about the odbc.ini file settings. I herewith attach the sample odbc.ini file I'd modified based on my understanding of the documentations available. Kindly requesting to correct me if I'm wrong in any of the settings.

[DB2 Wire Protocol]
Driver=/datastage/dsadm/Ascential/DataStage/branded_odbc/lib/VMdb220.so
Description=DataDirect 5.00 DB2 Wire Protocol Driver
AddStringToCreateTable=
AlternateID=
Collection=OS/390 and AS/400 (Remove for DB2 UDB)
DynamicSections=100
GrantAuthid=PUBLIC
GrantExecute=1
IpAddress=xxx.x.xxx.xx
IsolationLevel=CURSOR_STABILITY
Location=OS/390 and AS/400 (Remove for DB2 UDB)
LogonID=xyz123
Password=xxxxxx
Package= xxxxxx
PackageOwner= idb2dev1
TcpPort=8471
WithHold=1

[SQLServer]
Driver=/datastage/dsadm/Ascential/DataStage/branded_odbc/lib/VMmsss20.so
Description=DataDirect SQL Server Wire Protocol
Database=recovery
LogonID=xxxxxxxx
Password=xxxxxxx
Address=sql2k5pmlo1,1433
QuotedId=No
AnsiNPW=No

Thanks in Advance...
hailun
Participant
Posts: 40
Joined: Fri Nov 07, 2008 9:07 am

Re: ODBC.ini File Help

Post by hailun »

Is there any error encountered,if so can you post the error information here, usually we just need add coresponding DSN entry in the .odbc.ini file under $DSHOME....
antonyraj.deva wrote:Hi All,
My requriement is to connect to a DB2/400 (iSeries) & SQL Server sources with the Datastage server in AIX 5.3. and the target is DB2 UDB which is installed in the server itself. I'm a bit confused about the odbc.ini file settings. I herewith attach the sample odbc.ini file I'd modified based on my understanding of the documentations available. Kindly requesting to correct me if I'm wrong in any of the settings.

[DB2 Wire Protocol]
Driver=/datastage/dsadm/Ascential/DataStage/branded_odbc/lib/VMdb220.so
Description=DataDirect 5.00 DB2 Wire Protocol Driver
AddStringToCreateTable=
AlternateID=
Collection=OS/390 and AS/400 (Remove for DB2 UDB)
DynamicSections=100
GrantAuthid=PUBLIC
GrantExecute=1
IpAddress=xxx.x.xxx.xx
IsolationLevel=CURSOR_STABILITY
Location=OS/390 and AS/400 (Remove for DB2 UDB)
LogonID=xyz123
Password=xxxxxx
Package= xxxxxx
PackageOwner= idb2dev1
TcpPort=8471
WithHold=1

[SQLServer]
Driver=/datastage/dsadm/Ascential/DataStage/branded_odbc/lib/VMmsss20.so
Description=DataDirect SQL Server Wire Protocol
Database=recovery
LogonID=xxxxxxxx
Password=xxxxxxx
Address=sql2k5pmlo1,1433
QuotedId=No
AnsiNPW=No

Thanks in Advance...
Last edited by hailun on Sat Sep 12, 2009 7:21 am, edited 1 time in total.
Let's Progress Together....
antonyraj.deva
Premium Member
Premium Member
Posts: 138
Joined: Wed Jul 16, 2008 9:51 pm
Location: Kolkata

Post by antonyraj.deva »

There's no error so far since I haven't tried to run any job using ODBC till now. Do I need to create the ODBC profiles also on the local system where the DS client is installed? and $DSHOME points to /datastage/dsadm/Ascential/DataStage/DSEngine> is this the default location for DSHOME?
hailun
Participant
Posts: 40
Joined: Fri Nov 07, 2008 9:07 am

Post by hailun »

Yes /datastage/dsadm/Ascential/DataStage/DSEngine is the home path for Datastage, the .odbc.ini file you are modifying is under this path,right...

Now you need add approciate DSN entry in that file.

[a]
Driver=/datastage/dsadm/Ascential/DataStage/branded_odbc/lib/VMdb220.so
Description=DataDirect 5.00 DB2 Wire Protocol Driver
AddStringToCreateTable=
AlternateID=
Collection=OS/390 and AS/400 (Remove for DB2 UDB)
DynamicSections=100
GrantAuthid=PUBLIC
GrantExecute=1
IpAddress=xxx.x.xxx.xx
IsolationLevel=CURSOR_STABILITY
Location=OS/390 and AS/400 (Remove for DB2 UDB)
LogonID=xyz123
Password=xxxxxx
Package= xxxxxx
PackageOwner= idb2dev1
TcpPort=8471
WithHold=1

[c]
Driver=/datastage/dsadm/Ascential/DataStage/branded_odbc/lib/VMmsss20.so
Description=DataDirect SQL Server Wire Protocol
Database=recovery
LogonID=xxxxxxxx
Password=xxxxxxx
Address=sql2k5pmlo1,1433
QuotedId=No
AnsiNPW=No

After that you need add entry a and c to another file named uvodbc.config under the same path also the uvodbc.config file under project path if not newly created after modifying $DSHOME level uvodbc.config file....

Then you can add odbc stage in your job before uisng the DSN a or c....

antonyraj.deva wrote:There's no error so far since I haven't tried to run any job using ODBC till now. Do I need to create the ODBC profiles also on the local system where the DS client is installed? and $DSHOME points to /datastage/dsadm/Ascential/DataStage/DSEngine> is this the default location for DSHOME?
Last edited by hailun on Mon Sep 14, 2009 7:23 pm, edited 2 times in total.
Let's Progress Together....
rajngt
Participant
Posts: 32
Joined: Wed Jan 04, 2006 6:22 am

Post by rajngt »

this needs to be update if you are trying to connect using ODBC stage otherwise use dsenv file for DB2 connection
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

antonyraj.deva wrote:Do I need to create the ODBC profiles also on the local system where the DS client is installed?
No, all of this happens only on the DataStage server, nothing needs to be done on the client.
-craig

"You can never have too many knives" -- Logan Nine Fingers
antonyraj.deva
Premium Member
Premium Member
Posts: 138
Joined: Wed Jul 16, 2008 9:51 pm
Location: Kolkata

Post by antonyraj.deva »

Thanks a lot Craig & Hailun for the solutions provided.

Rajngt, thanks to you too. Could you kindly tell how a DB2 connection can be made from dsenv file in AIX systems.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The dsenv file only sets environment variables. It does not create connections.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
antonyraj.deva
Premium Member
Premium Member
Posts: 138
Joined: Wed Jul 16, 2008 9:51 pm
Location: Kolkata

Post by antonyraj.deva »

Thanks a lot to everybody, I now have an working ODBC connection.
I'm marking the topic as resolved.
Post Reply