Skip to Main Content
  • Questions
  • Track users who make updates to a EBS database table from backend

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, Arun.

Asked: November 16, 2016 - 4:00 pm UTC

Last updated: May 27, 2022 - 5:42 am UTC

Version: EBS 12.1.3 / Database 11.1.0.7

Viewed 1000+ times

You Asked

Hi,

We have custom triggers on a few Oracle EBS tables to track & log any insert, update & delete. The trigger captures any changes made through the front end screens. However, if a user does an insert, update or delete to a table in the back end using SQL Plus or any other utilities such as TOAD, SQL Developer, the trigger captures the data that was changed but does not capture the details of the user who made the changes - it just shows up as -1. Is there a way to identify & log the user's user_id / user name, etc along with the data that was changed.

Thanks

and Connor said...

Sounds to me like your custom triggers need enhancement.

There lots of attributes you can capture about a end-user session, eg

SQL> select
  2    user,
  3    sys_context('USERENV','HOST'),
  4    sys_context('USERENV','OS_USER')
  5  from dual;

USER
------------------------------
SYS_CONTEXT('USERENV','HOST')
-----------------------------------------------
SYS_CONTEXT('USERENV','OS_USER')
-----------------------------------------------
MCDONAC
ORADEV\COMCDONA-AU
COMCDONA-AU\comcdona


Check the SQL language guide for the huge amount of SYS_CONTEXT information you can pick up about the client who has connected.

Rating

  (2 ratings)

Is this answer out of date? If it is, please let us know via a Comment

Comments

Thank you !

Arun Kumar, November 18, 2016 - 3:41 pm UTC

Appreciate the information. It has been very useful, appreciate it.

Regards

Connor McDonald
November 19, 2016 - 1:59 am UTC

glad we could help

Does Oraacle recomend to have custom triggers on Base tables in ebs

Dibya Ganguly, May 26, 2022 - 8:49 pm UTC

Does Oraacle recomend to have custom triggers on Base tables in ebs
Connor McDonald
May 27, 2022 - 5:42 am UTC

Generally no because we use EBR extensively.

More to Explore

PL/SQL demos

Check out more PL/SQL tutorials on our LiveSQL tool.

PL/SQL docs

PL/SQL reference manual from the Oracle documentation library