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 open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.