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

Home -> Community -> Mailing Lists -> Oracle-L -> A Package to Maintain Roles

A Package to Maintain Roles

From: MacGregor, Ian A. <ian_at_slac.stanford.edu>
Date: Fri, 5 Mar 2004 16:52:28 -0800
Message-ID: <26E3EC48949D134C94A1574B2C89466113A762@exchange2.slac.stanford.edu>


Normally a procedure executes in the security domain of its owner, but one can instruct the procedure to operate in the security domain of the executor. However if the procedure quires a table such as user_roles, the results are the roles owned by the executor regardless of the security domain, due to the predicate on the user_roles table.

I've been asked if there is anyway to create a view similar to user_roles which would return rows as if the owner of the procedure were the package owner, and the query was called from a specified package/

I don't like giving out grant option for roles. Roles lack an owner, but looking at who can grant the role gives one a pretty good idea whom it was created by.

Ian MacGregor
Stanford Linear Accelerator Center
ian_at_slac.stanford.edu



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--

Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
Received on Sat Mar 06 2004 - 01:28:57 CST

Original text of this message

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