Connection error

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
jdorlon
Posts: 202
Joined: Fri 05 Jan 2007 22:07

Connection error

Post by jdorlon » Mon 22 Oct 2012 20:53

Hello,

Oracle Metalink ID 1492721.1 recommends setting this parameter in SQLNet.ora to fix a security issue.

However, when I try that, and attempt to make a connection to the database with a TOraSession, the connection fails with ORA-00000.

What can I do to fix this? I am using Oracle client 11.2.0.3, Oracle Server 11.2.0.3, Delphi XE2 and the current ODAC version.

Thanks,

John Dorlon

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Connection error

Post by AlexP » Tue 23 Oct 2012 14:51

hello,

Please make sure that you have inserted the SQLNET.ALLOWED_LOGON_VERSION=12 line to both client and server SQLNet.ora files.

jdorlon
Posts: 202
Joined: Fri 05 Jan 2007 22:07

Re: Connection error

Post by jdorlon » Tue 23 Oct 2012 16:15

Hello,

I tried that but then I just get a different error. I noticed that I am having the same problems in SQL*Plus, so this is not an ODAC problem. Thanks for your help and sorry to raise the issue here.

-John

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Connection error

Post by AlexP » Wed 24 Oct 2012 12:21

hello,

We have checked our ODAC components behaviour in the OCI mode (and with a standard SQL Plus utility) when working with Oracle server 11.2.0.3 and enabled SQLNET.ALLOWED_LOGON_VERSION=12 option (the client and the server are installed on the same PC), and the connection with the database occurs with no errors. Presently, ODAC doesn't support authentication protocol 12, this protocol will be supported later.
Maybe you are using an older Oracle client, please make sure that Oracle client 11.2.0.3 is set by default, otherwise, set it explicitly in the Home property

jdorlon
Posts: 202
Joined: Fri 05 Jan 2007 22:07

Re: Connection error

Post by jdorlon » Wed 24 Oct 2012 16:12

Thank you. I was using 11.2.0.3 server but only 11.2.0.1 client.

When I tried running it on the server with an 11.2.0.3 client, that seemed to work just fine.
Presently, ODAC doesn't support authentication protocol 12, this protocol will be supported later.
When would this protocol be used? Only when client and server are different machines?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Connection error

Post by AlexP » Thu 25 Oct 2012 09:03

Hello,

That meant that ODAC doesn't support this protocol in the Direct mode, this protocol is implemented in the Oracle client, so ODAC will work correctly in the OCI mode independently on what PC the client and the server are located (on one and the same or on different ones)

jdorlon
Posts: 202
Joined: Fri 05 Jan 2007 22:07

Re: Connection error

Post by jdorlon » Thu 25 Oct 2012 12:59

Oh, OK. Thank you for your help!

Post Reply