Syntax
Description of ora_invoking_user.gif followsPurpose
ORA_INVOKING_USER returns the name of the database user who invoked the current statement or view. This function takes into account the BEQUEATH property of intervening views referenced in the statement. If this function is invoked from within a definer's rights context, then it returns the name of the owner of the definer's rights object. If the invoking user is a Real Application Security user, then it returns user XS$NULL.
This function returns a VARCHAR2 value.
See Also:
BEQUEATH clause of the CREATE VIEW statement
Oracle Database 2 Day + Security Guide for more information on user XS$NULL
Examples
The following example returns the name of the database user who invoked the statement:
SELECT ORA_INVOKING_USER FROM DUAL;
Scripting on this page enhances content navigation, but does not change the content in any way.