Merge over Multiple Schemas [message #264012] |
Fri, 31 August 2007 09:07 |
jaylrob
Messages: 6 Registered: August 2007
|
Junior Member |
|
|
ProcedureA and TableA are located in SchemaA. ProcedureA performs a merge between View B of SchemaB and TableA. ProcedureA is giving a ORA-00942(table or view does not exist) for the following line ... USING (SELECT * FROM B.VIEWB) D
ORA version 9.2.0.6
MERGE INTO A.TableA C
USING (SELECT * FROM B.ViewB) D
ON (C.dealerid = D.di_dealer_id)
WHEN MATCHED THEN UPDATE SET
C.dealername = D.di_dealer_name,
C.dealerno = D.di_dealer_no,
C.fedid = D.di_fed_id,
C.oldate = D.di_online_dte,
Permissions given are as follows
Schema A
----------------
ProcedureA - execute on User A
TableA- Insert, Delete, Update, Select on User A
Schema B
----------------
ViewB - Select on User A, Select on UserARole
[Updated on: Fri, 31 August 2007 09:16] Report message to a moderator
|
|
|
|
|
|
|
|
Re: Merge over Multiple Schemas [message #264077 is a reply to message #264054] |
Fri, 31 August 2007 12:06 |
|
cmerry
Messages: 109 Registered: November 2005 Location: Idaho
|
Senior Member |
|
|
anacedent wrote on Fri, 31 August 2007 08:21 | SQL> SET ROLE NONE
now test any & all DML statements which exist within PL/SQL procedure.
|
Great idea...I never thought about testing it in that way
|
|
|