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: unable to create stored outline for sql inside a procedure --

RE: unable to create stored outline for sql inside a procedure --

From: Jamadagni, Rajendra <Rajendra.Jamadagni_at_espn.com>
Date: Wed, 25 Dec 2002 09:28:36 -0800
Message-ID: <F001.00521F35.20021225092836@fatcity.com>


Oracle has very good reason to have this role limitation.  

Suppose you have a role role_a. Through this role you have access to a table table_b. Now you create a procedure that accesses table_b. An assume that your privileges are valid through role only.  

And some wise guy/gal comes in and revokes the role ... what happens next?  

To avoid this situation, Oracle requires that if you will be referring the objects inside stored code, you need EXPLICIT privileges. Create any outline now makes sense because now all the tables will be in on schema.  

Raj


Rajendra Jamadagni MIS, ESPN Inc.

Rajendra dot Jamadagni at ESPN dot com

Any opinion expressed here is personal and doesn't reflect that of ESPN Inc.

QOTD: Any clod can have facts, but having an opinion is an art!

-----Original Message-----
Sent: Tuesday, December 24, 2002 2:14 PM To: Multiple recipients of list ORACLE-L --Resolved

All,  

Oracle support was able to resolve this issue for me and I would like to share the learning. The problem was that I was unable to create stored outline for sql executing within a stored procedure after turning create_stored_outlines=true. Create outlines for sql satetements executing from sqlplus/plsql blocks was not an issue.  

The problem is resolved by granting create any outline privilege to the user explicitly.  

Once I again I was bit by the limitation of roles not passing privilege within stored procedures and this has to be done explicitly. Why oracle has this limitation beats me!!  

Thanks for help Jared & Raj.  

Shaleen


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Jamadagni, Rajendra
  INET: Rajendra.Jamadagni_at_espn.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 Wed Dec 25 2002 - 11:28:36 CST

Original text of this message

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