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

Home -> Community -> Usenet -> c.d.o.misc -> Re: How to determine in PL/SQL if a user has a certain role?

Re: How to determine in PL/SQL if a user has a certain role?

From: Holger Peine <peine_at_iese.fraunhofer.de>
Date: Fri, 22 Aug 2003 11:01:35 +0200
Message-ID: <3f45dc04@news.fhg.de>


Mike wrote:

> You can get all roles in database:
> select * from sys.user$ where type#=0;
> Creating function with this kind of query is simple.

Thanks for the tip, Mike, sounds promising. Does the current user need any special privilege to select from the sys.user$ table?

Regards,
Holger.

-- 
Dr. Holger Peine
Fraunhofer IESE, Kaiserslautern, Germany
Phone +49-6301-707-134, Fax -200 (shared)
www.iese.fraunhofer.de/Staff/peine -- PGP key on request or via pgp.mit.edu
Received on Fri Aug 22 2003 - 04:01:35 CDT

Original text of this message

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