If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Other > KeyDB Database on network access

View Poll Results: What do you think about databases such as KeyDb that does not support OLEDB concepts
I will write my own provider for such databases 0 0%
I will use third party providers for such databases 1 100.00%
I think problems can be solved with efficient coding 0 0%
I never use such databases 0 0%
Multiple Choice Poll. Voters: 1. You may not vote on this poll

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-24-04, 08:17
Sudhakar75 Sudhakar75 is offline
Registered User
 
Join Date: Feb 2004
Posts: 1
Red face KeyDB Database on network access

Hi

To access the database on neworks we have tried with
file sharing concepts. But when two applications on network
try to communicate simultaneously, Database is giving
writelock and read lock problems.




here is the detailed explanation and sample code

We have tested the keyDB both in Linux and Windows network.
Our actual requirement is some thing like this:



We have an application written in Delphi7, we have placed
this appliocation (same copy) on two systems say SystemA
and SystemB and

we placed KeyDB database on SystemC (Windows/Linux). Now
when we tried to connect to KeyDB which is on SystemC from
SystemA and SystemB simultaneously, we are getting
Read/Write lock errors.

So we want to know how to overcome the read & write
lock errors through coding.

Here is the code what we are using:

Constructor KeyDbData.Create();
begin
self.sqlTable:='';
database:=TUdbDataBase.Create(nil);
database.DataBaseName:='\\ibmserver\g\amicus.udb';
tempquery:=TUdbQuery.Create(nil);
tempQuery.Database:=database;
end;



function KeyDbData.executeQry(sqlstr:TStrings):longint;
Begin

query:=TUdbQuery.Create(nil);
Database.LockRetryMaximum:=1000;
Database.LockRetryInterval:=1;
query.Database:=database;
query.SQL:=sqlstr;
query.ExecSQL;
query.Destroy;
end;

So I request, if you have any code samples to over come the problems of read lock and write lock problems

thanks,
sudhakar
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On