Tracking changes for web app

Tracking changes for web app

Post by Adrian Walter » Thu, 10 Jul 2003 21:01:08



I am working with a web app that allows users to update/insert values. I
would like to track changes via triggers, but I can't figure out how to
determine the user who is making the change. All of the interaction between
the web server & db server occurs under one account - is it possible for me
to determine the user who is making the change based on their login. Any
ideas?
 
 
 

Tracking changes for web app

Post by Andrea Worle » Thu, 10 Jul 2003 21:58:22


Does your web app use Session variables or something to
track the user name?  You could create a field in your
table to store the user.  Then change the code so that
every web app update also changes the <user> field in that
table to the current Session user.  Then the trigger can
grab that field from the inserted table in the trigger.

Quote:>-----Original Message-----
>I am working with a web app that allows users to

update/insert values. I
Quote:>would like to track changes via triggers, but I can't
figure out how to
>determine the user who is making the change. All of the
interaction between
>the web server & db server occurs under one account - is
it possible for me
>to determine the user who is making the change based on
their login. Any
>ideas?

>.


 
 
 

Tracking changes for web app

Post by Adrian Walter » Thu, 10 Jul 2003 22:21:44


I thought about doing something similar to that, but figured my way was
wrong... Thanks for pointing me in the right direction.


Quote:> Does your web app use Session variables or something to
> track the user name?  You could create a field in your
> table to store the user.  Then change the code so that
> every web app update also changes the <user> field in that
> table to the current Session user.  Then the trigger can
> grab that field from the inserted table in the trigger.

> >-----Original Message-----
> >I am working with a web app that allows users to
> update/insert values. I
> >would like to track changes via triggers, but I can't
> figure out how to
> >determine the user who is making the change. All of the
> interaction between
> >the web server & db server occurs under one account - is
> it possible for me
> >to determine the user who is making the change based on
> their login. Any
> >ideas?

> >.

 
 
 

1. Change tracking looses changes

We have a database that has change-tracking turned on.  We
have many inserts and deletes occuring on the indexed
table.  I find that if I perform many inserts/deletes very
quickly that the indexing seems to 'loose' records.  The
table record count increases, but the number of items
(Item Count) in the full-text index remains about the
same.  If I slow down the process to about 1 record every
10 seconds, then I seems to work properly.  Any ideas?

2. Need help in Visual Basic

3. DAO standalone app to ADO web-based app?

4. HELP!!

5. Web Mining using Oracle Web App Server

6. So. California Internet P/A Oppty.

7. Ca - San Diego $$$/Fast Track/Senior Oracle Apps Tech/Functional Analyst

8. HELP!! read text file in sql

9. problem tracking app needed

10. Looking for work tracking db app

11. Using SQL Trace to track web users

12. Web-based Problem/Project tracking system ...