BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

dbexpress dephi6 oracle databaselink

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress)
View previous topic :: View next topic  
Author Message
20100
Guest





PostPosted: Fri Feb 24, 2006 7:03 pm    Post subject: dbexpress dephi6 oracle databaselink Reply with quote



 Hello,

my configuration is
DELPHI 6.1 +
2 Oracle Data Base (B1 and B2) on 2 distinct servers

With sql+ I have create a data base link.

With sql+ on B1, the following query is Ok:
select * from MyTabB1@B2; --> OK

It's also Ok with Delphi and a component TQuery:

MyQuery:=TQuery.Create(Nil);
MyQuery.databasename='B1'
MyQuery.add('select * from MyTabB1@B2');
MyQuery.Open -->OK

But with TSQLQuery or TSQLClientDataSet:

Var
MySQLQuery: TSQLQuery;
B1_SQLConnection: TSQLConnection;
Begin
....
MySQLQuery:=TSQLQuery.Create(Nil);
MySQLQuery.SQLConnection:=B1_SQLConnection;
MySQLQuery.add('select * from MyTabB1@B2');
MySQLQuery.Open ; --> KO

The message is :
ORA - 02041 : Client Database not begin a transaction

So, I have declared a new variable TD : TTransactionDesc:

....
B1_SQLConnection.StartTransaction(TD);
MySQLQuery:=TQuery.Create(Nil);
MySQLQuery.SQLConnection:=B1_SQLConnection;
MySQLQuery.add('select * from MyTabB1@B2');
MySQLQuery.Open ; --> KO

The message is :
ORA - 24777 : Use of non-migratable database link not allowed


HELP ME!!!!



--- posted by geoForum on http://delphi.newswhat.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.