distributed multi-client application DB question

distributed multi-client application DB question

Post by chompy18 » Sat, 08 Mar 2003 10:00:24



Hello all!

I've implemented a java application, with multi-client server.
the DB is on the server, while many clients can access the database
through the server (each client has a dedicated thread).

The problem is, that I don't know how to prevent lock-downs.
The nature of the work, is that a client gets information from the DB
(through the server), then the person working with the client changes
it a little, and then updates the DB.

The problem starts, when 2 clients need to do this, and the work
needed takes more than a hour to complete. that means that either the
second client needs to wait until the first finishes his update, or
that the second client starts working and then there's the bigger
problem of how and what to save.

As I see it, as long as users need to get information for read-only
purposes, I'm ok. but once a user opens information for
add/update/delete purposes, I cannot let any other user open the same
information for read or write purposes, and further more, if the
information is already opened for read-only, I cannot allow it to be
opened for add/update/delete.

Can this be done through settings in the DB? (I'm using access XP DB).
Or is there another solution already implemented in java or jdbc-odbc?

I thought that transaction would solve this for me, but I don't really
see how.

any thoughts anyone???

Thanks...
Sefi.

 
 
 

distributed multi-client application DB question

Post by Axel Halle » Sat, 08 Mar 2003 18:01:34


Transactions are made for exactly this purpose. I suggest you consult some
appropriate literature on this subject, because a lack of understanding of
related subjects such as locking and isolation levels will cause you
trouble.

Axel Hallez

 
 
 

distributed multi-client application DB question

Post by Nick Gine » Mon, 10 Mar 2003 12:20:03


Sounds like you need a database management system that can support record
level locking - access standalone is not really a great choice for that -
you might try MS SQL Server or another a true RDBMS (or... you can check out
MySQL which is open source and available via download).


Quote:> Hello all!

> I've implemented a java application, with multi-client server.
> the DB is on the server, while many clients can access the database
> through the server (each client has a dedicated thread).

> The problem is, that I don't know how to prevent lock-downs.
> The nature of the work, is that a client gets information from the DB
> (through the server), then the person working with the client changes
> it a little, and then updates the DB.

> The problem starts, when 2 clients need to do this, and the work
> needed takes more than a hour to complete. that means that either the
> second client needs to wait until the first finishes his update, or
> that the second client starts working and then there's the bigger
> problem of how and what to save.

> As I see it, as long as users need to get information for read-only
> purposes, I'm ok. but once a user opens information for
> add/update/delete purposes, I cannot let any other user open the same
> information for read or write purposes, and further more, if the
> information is already opened for read-only, I cannot allow it to be
> opened for add/update/delete.

> Can this be done through settings in the DB? (I'm using access XP DB).
> Or is there another solution already implemented in java or jdbc-odbc?

> I thought that transaction would solve this for me, but I don't really
> see how.

> any thoughts anyone???

> Thanks...
> Sefi.

 
 
 

1. Client application installation & SQL Net client application

Hi everyone

At the moment, my client applications installations require to first install
the SQL net client on the client side and then to install the application.

I would like to install the all stuff in one row

I mean install Oracle SQL Net Client & my application the user friendly way
: insert the cd rom, run setup, that's it now run the application

Is it possible or should I keep on asking the users to install SQL Net &
then my application ?

TIA

Vincent

2. SQL Server vs.Oracle

3. Multi-User DB Questions

4. Checking for duplicate rows

5. Question about using Oracle Client to connect Oracle 9i DB (window version)?Thank you

6. Multiple ResultField's in a LookUpField??

7. Multi-table application 1:1:1 question CRAZYMAKING

8. Displaying histograms

9. DB in distributed environment evaluation questions wanted.

10. multi user DB app question

11. SQL Server 4.21 DB-Lib, Multi user applications hangs

12. Distributing Delphi 1.0 DB-Application without Setup

13. Multi-column keys: Multi-questions