I am trying several connection strings found online that claim to let you connect to an Oracle database via odbc (unixodbc) with C's sql lib in a C++ program but non of them actually work if no DSN is configured and specifies the ServerName attribute (host/instance).
Here follows a couple of them, please note that Driver as opposed to DRIVER will not work at all, complaining about DSN not found:
Error I get is always: Message: [unixODBC][Oracle][ODBC][Ora]ORA-12162: TNS:net service name is incorrectly specified
unixODBC version unixODBC-2.2.14-11.el6.x86_64
[Oracle] Description = Oracle Instant client odbc driver (manually edited) Driver = /usr/lib/oracle/11.2/client64/lib/libsqora.so.11.1 FileUsage = 1 Driver Logging = 7