a copy of the odbc.ini file which is saved in my unix home directory does not have anyhting that points to
odbc connection to db2 or oracle.Only to SQL Server so i am wondering how i am able to
access databases in oracle and db2 from UNIX?
Well I know it is possible with some ODBC database connections to specify the connection completely in a connection string without storing definitions elsewhere. I do it with ODBC and SQL Server under Windows. However I don't have access to Unix and DB2 to try out.
If it is possible with ODBC DB2 under Unix then I would expect a complete connection string would look like this:
https://www.connectionstrings.com/ibm-db2-odbc/
How do you define a working ODBC DB2 connection? If it doesn't contain a connection string I can only assume it referencing a connection definition somewhere else like Oracle's TNSNAMES.ORA.
Reading the recommendations for your post is a good start like this one.
Thanks Reeza for editing my post. No clue how i forgot the subject line and i aplogize about it.
SASKiwi thanks for the article.
What i was saying is i do have access to oracle and db2 with no problems but i dont see anyhting in the odbc.ini file that points to these 2 engines.
I mean ok i do have the tnsnames.ora saved in oracle/network/admin....and i guess that takes care of the oracle connection but what about the DB2? How come i am still able to read/write from DB2 if i dont have those queries in the odbc.ini
Well I know it is possible with some ODBC database connections to specify the connection completely in a connection string without storing definitions elsewhere. I do it with ODBC and SQL Server under Windows. However I don't have access to Unix and DB2 to try out.
If it is possible with ODBC DB2 under Unix then I would expect a complete connection string would look like this:
https://www.connectionstrings.com/ibm-db2-odbc/
How do you define a working ODBC DB2 connection? If it doesn't contain a connection string I can only assume it referencing a connection definition somewhere else like Oracle's TNSNAMES.ORA.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.