Bug with DATABASE LINKS and TSmartQuery

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Henry
Posts: 6
Joined: Wed 17 May 2006 12:04

Bug with DATABASE LINKS and TSmartQuery

Post by Henry » Fri 16 Jun 2006 17:54

Dear CRLAB-Support,

-ODAC 5.70.1.33 with NET-OPTION
-Delphi 7
-Oracle 9.2.0

Unfortunely, the bug with using database links in TSmartQuery (11608)
still exists. There is no problem anymore when both DB-instances are on
the same computer. But it still exists when the DB-instances are on
different computers.

Could you please check that and give me response as fast as possible?
Thank you for your efforts.

Best regards, Henry

To reproduce the problem try the following:


-- CREATE DATABASE LINK ---------------------------------------------
create database link TEST1
connect to user1 identified by user1
using 'LOCDELL';

--------------------------------------
LOCDELL is a entry in TNSNAMES.ORA like this one:

LOCDELL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = NOTEBOOK2)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = LOC)
)
)

-- CREATE SYNONYM for a table in the remote database
create synonym CU
for CU_STAMM@Test1;

-- SELECT DATA WITH TSmartQuery
you can select data, but you can't change the data in the dataset

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Mon 19 Jun 2006 07:48

To solve this problem try to include schema name in synonym:

Code: Select all

CREATE SYNONYM CU
FOR USER1.CU_STAMM@TEST1

Henry
Posts: 6
Joined: Wed 17 May 2006 12:04

the problem still exists

Post by Henry » Fri 23 Jun 2006 09:34

With more than two users the problem still exists.

[UserA on DB1]--- with synonyms and Database Link -->[UserB on DB2]--- with synonyms -->[UserC on DB2 (here are the data tables)]

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Thu 29 Jun 2006 10:48

This situation will be supported in the next build of ODAC.

Post Reply