At this state I have no project yet. Just testing in the iex-environment. I fixed the problem in the afternoon by reinstalling the Erlang-package.
Following the instructions on the internet I tried:
Erlang/OTP 19 [erts-8.1] [source-4cc2ce3] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]
Interactive Elixir (1.3.3) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> :odbc.start()
:ok
iex(2)> {:ok, conn} = :odbc.connect('DSN=Oracle_new',[])
** (MatchError) no match of right hand side value: {:error, :connection_closed}
iex(2)>
08:39:02.022 [error] [79, 68, 66, 67, 58, 32, 114, 101, 99, 101, 105, 118, 101, 100, 32, 117, 110, 101, 120, 112, 101, 99, 116, 101, 100, 32, 105, 110, 102, 111, 58, 32, [123, ['tcp_closed', 44, '#Port<0.1395>'], 125], '\n']
08:39:02.069 [error] GenServer #PID<0.88.0> terminating
** (stop) {:port_exit, :collecting_of_driver_information_faild}
Last message: {#Port<0.1393>, {:exit_status, 23}}
State: {:state, #Port<0.1393>, {#PID<0.81.0>, #Reference<0.0.4.230>}, #PID<0.81.0>, :undefined, :on, :undefined, :undefined, :on, :connecting, :undefined, 0, [#Port<0.1391>, #Port<0.1392>], #Port<0.1394>, #Port<0.1395>}
It works on sqlplus with this DSN, it works on isql and it works on Python with the pyodbc-package. Can’t find a hint about what driver-information is missing.