dblink with oracle 11g

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
flaviomil
Posts: 2
Joined: Thu 26 Jul 2012 19:45

dblink with oracle 11g

Post by flaviomil » Thu 26 Jul 2012 19:56

There are two nodes in rac, and a third node is a different database that is connected by dblink.

The connection is done not using the RAC, but by instance in using the format:
server: port: sid.
And the connection is set to direct=false.


on node 1 works ok.
on node 2 I get the error when accessing any dblink.



ORA-018121: date format not recognized

ORA-02063: preceding line from ....

When I run with sqlplus works in both nodes.

Any suggestions ?

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

Re: dblink with oracle 11g

Post by AlexP » Fri 27 Jul 2012 07:31

Hello,

If you have set the Direct property to False, then the OCI mode is used, in which a record from the tnsnames.ora settings file is used in the connection string, but not server:port:sid. I.e. the connection string in the OCI mode looks like the following:

user/passwd@TNSNAME

in the Direct mode

user/passwd@server:port:sid[ServiceName]

Please specify the mode you are using (Direct or OCI), and describe the steps leading to this error in more details.

flaviomil
Posts: 2
Joined: Thu 26 Jul 2012 19:45

Re: dblink with oracle 11g

Post by flaviomil » Fri 27 Jul 2012 13:17

Hello,

I wrote wrong, the error occurr when the direct is set to true.
When I use the oci driver work find in both nodes.
The version of odac is 8.1.4.
what details do you need ?

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

Re: dblink with oracle 11g

Post by AlexP » Fri 03 Aug 2012 08:44

hello,

We have checked the ODAC behaviour when connecting in direct mode to different nodes of the RAC server and the work with the external dblink via both nodes, and didn't manage to reproduce the error on any of nodes. Please provide the query, the script for creating and filling the tables taking part in the query (or the dump of these tables), and the NLS settings of all the servers.

Post Reply