Accessing another user's table within an Oracle Stored Procedure
问题 I'm writing a stored procedure to copy data from one user's table to another schema. Basically, it is a series of INSERT .. SELECT statements such as this: INSERT INTO GESCHAEFTE SELECT * FROM TURAT03.GESCHAEFTE WHERE kong_nr = 1234; This works fine when issueing from sqlplus (or TOAD for me ;-)) so I know that I have sufficient privileges, but when this is part of stored procedure like this: CREATE OR REPLACE FUNCTION COPY_KONG (pKongNr IN NUMBER) RETURN NUMBER AUTHID CURRENT_USER IS BEGIN