为审计跟踪创建单独的数据库用户 [英] create separate db user for audit trail

查看:66
本文介绍了为审计跟踪创建单独的数据库用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用于Web应用程序(不是网站)的数据库。



对于每个Web应用程序用户,是否建议创建单独的数据库用户?



现在我有要从Web应用程序访问的单个db用户。我的目标是为任何更新或删除提供审计跟踪。如果我正在使用AFTER DELETE Trigger,我无法确定删除记录的确切用户。



请告诉我正确的方法。



提前谢谢。

解决方案

没有。如果你想跟踪使用,需要登录并存储他们所做行动的用户ID。


审计跟踪不应该有单独的数据库。



请参阅添加的链接,该链接可以对创建和维护审计跟踪的最佳实践提供合理的建议。



http://www.4guysfromrolla.com/webtech/041807-1.shtml [ ^ ]



希望这会有所帮助...

I have a database which is used for a web application(not website).

For each web application user, Is it advisable to create separate db user?

Now I have a single db user to access from the web application. My objective is to have an audit trail for any update or delete. If I am using AFTER DELETE Trigger, I am not able to identify the exact user who is deleting the record.

Please advise me the right way to go ahead.

Thank you in advance.

解决方案

No. If you want to track use, require a login and store the user id for actions they do.


There should not be separate DB for Audit trails.

Refer the link added which can give a fair idea on the best practices for creating and maintaining audit trails.

http://www.4guysfromrolla.com/webtech/041807-1.shtml[^]

Hope this helps...


这篇关于为审计跟踪创建单独的数据库用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆