ODBC.INI file error

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
har
Participant
Posts: 118
Joined: Tue Feb 17, 2004 6:23 pm
Location: cincinnati
Contact:

ODBC.INI file error

Post by har »

Hello,
I'm able to connect sql server db in dev but when i try to connect to same db from QA env the example script in branded_odbc is unable to connect to dsn.And the interesting thing here is , i able to connect to different dsn on same database in QA.
i didnt find any diff bwten two odbc.ini file's.
And ideas:
Here is the odbc.ini file for DEV and QA:
DEV:
[TransferDatabase]
Driver=/apps/ascential/dev/ds/Ascential/DataStage/branded_odbc/lib/VMmsss20.so
Description=DataDirect SQL Server Wire Protocol
Database=TransferDatabase
LogonID=ABC
Password=abc
Address=10.2.210.96,1155
QuotedId=No
AnsiNPW=No

.....................................................................................................
QA :
[TransferDatabase]
Driver=/apps/ascential/tst/ds/Ascential/DataStage/branded_odbc/lib/VMmsss20.so
Description=DataDirect SQL Server Wire Protocol
Database=TransferDatabase
LogonID=ABC
Password=abc
Address=10.2.210.96,1155
QuotedId=No
AnsiNPW=No


The following error is thrown by example script :
SQLSTATE = IM002
NATIVE ERROR = 0
MSG = [DataDirect][ODBC lib] Data source name not found and no default driver specified

SQLConnect: Retrying Connect.
SQLSTATE = IM002
NATIVE ERROR = 0
MSG = [DataDirect][ODBC lib] Data source name not found and no default driver specified

SQLConnect: Retrying Connect.
SQLSTATE = IM002
NATIVE ERROR = 0
MSG = [DataDirect][ODBC lib] Data source name not found and no default driver specified


Thanks,
Har
Har
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

How many entries of "TransferDatabase" do you have in .odbc.ini file?
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
har
Participant
Posts: 118
Joined: Tue Feb 17, 2004 6:23 pm
Location: cincinnati
Contact:

Post by har »

Only one entry
Har
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Make sure the DSN name is identical inside your job and in the .odbc.ini file. Thats the only other thing that could be wrong. Make sure there are no leading trailing spaces. They should be identical.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
har
Participant
Posts: 118
Joined: Tue Feb 17, 2004 6:23 pm
Location: cincinnati
Contact:

Post by har »

I'm trying to test connection form branded_odbc example script.
I check .odbc.ini file and their are no spaces in it.
And i comapre dev and tst enironment .odbc.ini file with diff command and i didnt find any difference.Its so strange for me..
And from tst env i'm able to connect three database on same box and except this one.
Har
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Is 1155 the correct port number in your QA environment?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
har
Participant
Posts: 118
Joined: Tue Feb 17, 2004 6:23 pm
Location: cincinnati
Contact:

Post by har »

Yes and i able to connect this port from dev server.
Not able to connect to same port from QA server.It was so misterious for me.I compare dev and qa .odbc.ini file and their is no difference.
Do i need to contact IBM Tech support or ami doing any silly misatke !
Har
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Delete the entry and retype it again. Save the file and then try again.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
har
Participant
Posts: 118
Joined: Tue Feb 17, 2004 6:23 pm
Location: cincinnati
Contact:

Post by har »

i gone throug the process,wat ur saying but it didnt work ..
Har
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

I guess I have hit the limit to the amount of help I can provide sitting on this side of the screen. Get someone else involved who is present at your site. If to no avail, contact support.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
mctny
Charter Member
Charter Member
Posts: 166
Joined: Thu Feb 02, 2006 6:55 am

Post by mctny »

Did you check your uvconfig.odbc files and compare them?
Thanks,
Chad
__________________________________________________________________
"There are three kinds of people in this world; Ones who know how to count and the others who don't know how to count !"
Post Reply