[erlang-questions] Erlang Oracle ODBC connectivity question.

Dana.RUBINO <>
Mon Sep 29 14:49:20 CEST 2008


Hi Robby,

I have progressed slightly.

Turns out I needed to set the %ORACLE_HOME% environment variable (this wasn't on the man page).

It now produces the following error:

        1> {ok, Ref} = odbc:connect("DSN=HWHU;UID=auid;PWD=apwd", []).

        =ERROR REPORT==== 29-Sep-2008::13:40:00 ===
        ODBC: received unexpected info: {tcp_closed,#Port<0.106>}

        ** exception error: no match of right hand side value {error, connection_closed}

        =ERROR REPORT==== 29-Sep-2008::13:40:00 ===
        ** Generic server <0.39.0> terminating
        ** Last message in was {#Port<0.104>,{exit_status,23}}
        ** When Server state == {state,#Port<0.104>,
                                 {<0.31.0>,#Ref<0.0.0.78>},
                                   <0.31.0>,undefined,on,undefined,undefined,on,
                                     connecting,undefined,0,
                                       [#Port<0.102>,#Port<0.103>],
                                 #Port<0.105>,#Port<0.106>}
        ** Reason for termination ==
        ** {port_exit,collecting_of_driver_information_faild}

I am using 10g and have checked the correct ODBC driver is installed (version 10.0.2.0 from Oracle)

Are you suggesting using an MS implementation of the Oracle ODBC driver?

Many Thanks,
Dan

-----Original Message-----
From: Robert Raschke [mailto:]
Sent: 29 September 2008 13:45
To: 
Cc: RUBINO, Dana, GBM
Subject: Re: [erlang-questions] Erlang Oracle ODBC connectivity question.

Which ODBC Driver is your DSN HWHU using?

I ask, because I have had difficulties using the Oracle ODBC driver in the past. I wasn't using Erlang at the time though, but got the same error message. For me, the Microsoft Oracle driver worked fine and I stopped investigating.

Robby

***********************************************************************************
The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB. 
Authorised and regulated by the Financial Services Authority 
 
This e-mail message is confidential and for use by the 
addressee only. If the message is received by anyone other 
than the addressee, please return the message to the sender 
by replying to it and then delete the message from your 
computer. Internet e-mails are not necessarily secure. The 
Royal Bank of Scotland plc does not accept responsibility for 
changes made to this message after it was sent. 

Whilst all reasonable care has been taken to avoid the 
transmission of viruses, it is the responsibility of the recipient to 
ensure that the onward transmission, opening or use of this 
message and any attachments will not adversely affect its 
systems or data. No responsibility is accepted by The 
Royal Bank of Scotland plc in this regard and the recipient should carry 
out such virus and other checks as it considers appropriate. 
Visit our websites at: 
www.rbs.com
www.rbs.com/gbm
www.rbsgc.com
***********************************************************************************




More information about the erlang-questions mailing list