This Oracle tutorial explains how to use the Oracle/PLSQL UID function.
The Oracle/PLSQL UID function returns the id number for a user's session.
The syntax for the Oracle/PLSQL UID function is:
UID
There are no parameters or arguments for the UID function.
SELECT UID FROM dual;