Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 
 Home
 E-mail Us
 Oracle Articles
New Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 

 
 

authid & invoker rights

Oracle Database Tips by Donald BurlesonApril 11, 2015

Question:  I need to understand the authid and invoker rights, and how the authid current_user related to invoker rights.  What does invoker rights mean?.

Answer:  The authid current_user is used when you want a piece of code (PL/SQL) to execute with the privileges of the invoker (the current user), and NOT the user ID that created the procedure.  This is termed a "invoker rights", the opposite of "definer rights".

To understand the authid current_user, consider this type definition where the invoker gets the rights to the :

CREATE TYPE address_t
   AUTHID CURRENT_USER
AS OBJECT (
   address_line1     varchar2(80),
   street_name       varchar2(30),
   street_number     number,
   city              varchar2(30),
   state_or_province varchar2(2),
   country_code varchar2(20));

See this example of authid invoker rights to understand how the invoker rights syntax causes invoker rights, which, in turn, changes the behavior of the PL/SQL code away from the definer rights as we would find in a grant execute or definer rights.

Below is a a query that shows all procedures that have authid = 'DEFINER' (definer rights) or authid = 'CURRENT_USER' (invoker rights).

select
   object_name,
   procedure_name,
   authid
from 
   dba_procedures; 

 

 
Get the Complete
Oracle SQL Tuning Information 

The landmark book "Advanced Oracle SQL Tuning  The Definitive Reference"  is filled with valuable information on Oracle SQL Tuning. This book includes scripts and tools to hypercharge Oracle 11g performance and you can buy it for 30% off directly from the publisher.


 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright © 1996 -  2020

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.

 

 

��  
 
 
Oracle Training at Sea
 
 
 
 
oracle dba poster
 

 
Follow us on Twitter 
 
Oracle performance tuning software 
 
Oracle Linux poster