SP2-0734: unknown command beginning "sys_contex..." - rest of line ignored I Googled how to get the username of the current user and was told to use:
SQL&gt; sys_context('userenv', 'session_user')

But when I type that command in, I get the error:

SP2-0734: unknown command beginning &quot;sys_contex...&quot; - rest of line ignored

What am I missing? The Oracle version is Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Use dual table part of select
SQL&gt; SELECT sys_context('userenv', 'session_user') FROM dual;

Documentation:
SYS_CONTEXT