Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Error message retrieving data from Oracle database using subquery via Microsoft rdo
Hello David,
Thanks for your response.
I've tried both the suggestions you made; ensuring there's a primary key on the student_id table and that there are no locks on the tables during selection (I've specified that the results set should be read-only, thereby removing the need for any lock). Unfortunately, I still have the problem as reported below. Any further suggestions?
Akin
email: ak_soto at yahoo dot co dot uk
DNP wrote in message <38E671BA.6D8A_at_btinternet.com>...
>If practicable, try putting a Primary Key on Student_ID using the
>following :-
>
>(from a SQL*Plus session logged in as the owning schema of the table
>'Modules'
>
>ALTER TABLE Modules ADD CONSTRAINT Stude_Prim_Key PRIMARY
>KEY(Student_ID);
>
>
>This lets your middleware infer (usually automatically) which column can
>and will be used as a 'keyset' i.e. a unique key for your purposes.
>
>Another thing to look at is locks. Try and take no explicit locks when
>you open the RDO resultset. Rdo should compare the 'as now' versus 'when
>it was read' column values for tuples which you want to update. This way
>it catches the 'lost update' problem, by informing you that the data
>changed since you last read it (thus preventing your update causing a
>'lost update'.
>
>
>David P.
>
>Oracle Certified DBA
>
>
>===============================================================================
![]() |
![]() |