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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Executing stored procedure from diff user

Re: Executing stored procedure from diff user

From: sundeep maini <sundeep_maini_at_yahoo.com>
Date: Mon, 28 Jul 2003 19:49:23 -0800
Message-ID: <F001.005C78A5.20030728194923@fatcity.com>


To fix this problem, compile your package with AUTHID CURRENT USER directive in the Package Signature.

Basically when user B executes package of user A, for the course of the package's run user B becomes user A and the ownership context is that of user A's. When user B runs show_user(tablename), effectively ORacle is trying to resolve tablename in user A's namespace....which is doomed for failure. Worse if A, B and C both have tables with the same name, you will be reporting incorrect results (always A's tables).

HTH

Sundeep Maini
Consultant
Currently on Assignement at Caterpillar Peoria sundeep_maini_k_at_cat.com



Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: sundeep maini
  INET: sundeep_maini_at_yahoo.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Mon Jul 28 2003 - 22:49:23 CDT

Original text of this message

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