I am getting a strange behaviour by Oracle ODBC driver under linux (unixODBC).
I have a program connecting to a database that, when called by an unprivileged user, works as expected while if called with root privileges (tested with both sudo and su) hangs in the SQLDriverConnect call then dies after some minutes (returning code 1) without an error message or anything.
I'm using system DSN and the same exact configuration (only difference is root privileges) and, to make things more funny, I also use the same code to connect to a postgreSQL database with no issue at all both with unprivileged and root user (hence it would not appear to be an unixODBC issue).
Any idea if it can really be the cause of the problem for the Oracle driver or hint on its resolution?
Oracle Driver version: oracle-instantclient11.2-odbc-11.2.0.1.0-1.x86_64