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: Update view problem

Re: Update view problem

From: <rtproffitt_at_my-deja.com>
Date: Thu, 18 Nov 1999 17:16:28 GMT
Message-ID: <811c97$18l$1@nnrp1.deja.com>


In my sample, I get an error message:
update bobv set x='new' where x='old'

       *
ERROR at line 1:
ORA-01732: data manipulation operation not legal on this view Can you be more specific?

Could you not just simply run two updates?

    Update t1_at_db1
    set x='new'
    where x='old';

    Update t1_at_db2
    set x='new'
    where x='old';

Or if timing is a problem, then do one at a time.... Create a list of the x's which are old, then LOOP through the list doing the two updates for each individual item in the list... doing a COMMIT every 1 - n rows (as you see fit).

Also remember that your view is defined as UNION, which will sort and remove duplicates...you may want UNION ALL instead.

Robert Proffitt
Beckman Coulter
Brea, California

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Thu Nov 18 1999 - 11:16:28 CST

Original text of this message

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