Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: JDBC 2.0 - CONCUR_UPDATABLE

Re: JDBC 2.0 - CONCUR_UPDATABLE

From: Matt <mattdee89_at_hotmail.com>
Date: Sun, 30 Sep 2001 22:14:31 GMT
Message-ID: <bPMt7.2388$6j6.192877@typhoon2.gnilink.net>


Jim,
This operation is supported by default by the Oracle Database... The thing one has to watch out for is the definition of one's transaction. For example, if I'm 'working' on one record in one table I must ensure that this record DOES NOT have integrity constants enforced by other tables, because if it does the record is locking in the local table and the foreign table.
One can always use the select for update command from your app as well...

For the JDBC drivers, check http://otn.oracle.com but I believe the latest drivers has FULL JDBC 2.0 support as mandated by J2EE 1.3...

Hope this helps....

--
Cheers,
Matt

"In a world without walls or fences, who needs Windows or Gates?"

"Jim Smith" <jsmith_at_cmhcsys.com> wrote in message
news:_d%s7.40$qN3.119394_at_news.uswest.net...

> I need to have a CONCUR_UPDATABLE result set (preferably
> TYPE_SCROLL_SENSITIVE). I'm finding conflicting information about whether
> or not this type of dynamic result set is even supported by the ORACLE
> server let alone implemented by a JDBC driver, and that if I can do it I
can
> only reference a single table in my statement...
>
> SAMPLE PROBLEM:
> We need to select multiple rows at a time, but don't want to lock the
entire
> set of rows in the result set, yet need to ensure data integrity with
> multiple users concurrently accessing the database:
>
> Ex: User 1 executes a query that returns 30 rows. I do NOT want all of
> these rows locked, I simply want to lock the single active record that
user
> 1 is viewing. User 2 should be able to execute a query that returns the
> same results and be able to scroll through her result set unhindered
(until
> she tries to activate the same row that User 1 has active).
>
> -Is this type of operation even supported by ORACLE?
> -Can I do this via JDBC and if so can someone recommend a driver?
>
> Any answers on these issues would be appreciated. Any reference materials
> or sites containing an in depth discussion of these issues would be
welcome
> as well.
>
> Thanks!
>
>
>
>
Received on Sun Sep 30 2001 - 17:14:31 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US