How do I setup an ODBC connection to Oracle using FireDAC? How do I setup an ODBC connection to Oracle using FireDAC? oracle oracle

How do I setup an ODBC connection to Oracle using FireDAC?


I don't know what was wrong. I found a client installer executable (i.e. that's different from the "instant client", which has no installer, and whose reinstallation did not help either), cleaned up my VM from all Oracle stuff, ran the installer with 'administrator' selection (=all available software in the package) and that finally works. ODBC was installed as well.

The only things that need to be set for the TFDCOnnection are:

DriverName := S_FD_ODBCId;Params.Add('DataSource=' + lODBCName);

with lODBCName being the ODBC System DSN name.

(I intended to leave this as a comment for 10K users and then delete the question, but that's not possible since I put a bounty on it earlier today. Well, maybe it serves anyone else).


I have already encountered similar issue.

I can use SQLPLUS or JDBC to connect to Oracle database, but when I try to define an ODBC connection or a .Net Linq connection, that don't work.

I have then modified my TNSNAMES.ora file and replaced SERVER-NAME by SID and suddently ODBC connection has been possible.