Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Want to insert the logged in user into a table in Oracle APEX

VatsaJun 24 2025 — edited Jun 24 2025

Greetings,
I have a requirement, when a user logs in to my APEX application, I want to get the username and insert it into a table. I have written a simple PL/SQL block in the security attributes section in the shared components like this:
declare
l_user varchar2(200) := :APP_USER;
begin
Insert into people_table (username) values l_user;
end;
However, this is not inserting into my table. What am I doing wrong? Any help will be greatly appreciated.
Thanks
Vatsa

This post has been answered by Scott Wesley on Jun 25 2025
Jump to Answer
Comments
Post Details
Added on Jun 24 2025
1 comment
109 views