I know that the show user command return: USER is "SCOTT"
But is it possible in a sql query or in a plsql script to only get the username of the current user and store it in a variable?
The USER built-in function may be used.
DECLARE
  v VARCHAR2(30);
BEGIN
  v := USER;
END;
                        SYS_CONTEXT( 'USERENV', 'CURRENT_USER' )
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With